diff --git a/.chglog/CHANGELOG.tpl.md b/.chglog/CHANGELOG.tpl.md
new file mode 100644
index 000000000..a76fb7111
--- /dev/null
+++ b/.chglog/CHANGELOG.tpl.md
@@ -0,0 +1,82 @@
+# {{ .Info.Title }}
+
+{{ if .Versions -}}
+{{ if .Unreleased.CommitGroups -}}
+
+
+## Unreleased
+
+{{ range .Unreleased.CommitGroups -}}
+
+### {{ .Title }}
+
+{{ range .Commits -}}
+
+- [`{{ .Hash.Short }}`]({{ $.Info.RepositoryURL }}/commit/{{ .Hash.Long }}) {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
+ {{ if .Body }}
+ {{ indent .Body 4 }}
+ {{ end -}}
+ {{ end }}
+ {{ end -}}
+ {{ end -}}
+ {{ end -}}
+
+{{ range .Versions }}
+
+
+## {{ if .Tag.Previous }}[ {{ .Tag.Name }}]( {{ $.Info.RepositoryURL }}/compare/ {{ .Tag.Previous.Name }}... {{ .Tag.Name }}) {{ else }} {{ .Tag.Name }} {{ end }}
+
+> Released on {{ datetime "January 02, 2006" .Tag.Date }}
+
+{{ range .CommitGroups -}}
+
+### {{ .Title }}
+
+{{ range .Commits -}}
+
+- [`{{ .Hash.Short }}`]({{ $.Info.RepositoryURL }}/commit/{{ .Hash.Long }}) {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
+ {{ if .Body }}
+ {{ indent .Body 4 }}
+ {{ end -}}
+ {{ end }}
+ {{ end -}}
+
+{{- if .RevertCommits -}}
+
+### ⏪ Reverts
+
+{{ range .RevertCommits -}}
+
+- [`{{ .Hash.Short }}`]({{ $.Info.RepositoryURL }}/commit/{{ .Hash.Long }}) {{ .Revert.Header }}
+ {{ if .Body }}
+ {{ indent .Body 4 }}
+ {{ end -}}
+ {{ end }}
+ {{ end -}}
+
+{{- if .MergeCommits -}}
+
+### 🔀 Pull Requests
+
+{{ range .MergeCommits -}}
+
+- [`{{ .Hash.Short }}`]({{ $.Info.RepositoryURL }}/commit/{{ .Hash.Long }}) {{ .Header }}
+ {{ if .Body }}
+ {{ indent .Body 4 }}
+ {{ end -}}
+ {{ end }}
+ {{ end -}}
+
+{{- if .NoteGroups -}}
+{{ range .NoteGroups -}}
+
+### {{ .Title }}
+
+{{ range .Notes }}
+
+
+{{ .Body }}
+{{ end }}
+{{ end -}}
+{{ end -}}
+{{ end -}}
diff --git a/.chglog/config.yml b/.chglog/config.yml
new file mode 100644
index 000000000..1a3a179d4
--- /dev/null
+++ b/.chglog/config.yml
@@ -0,0 +1,62 @@
+style: github
+template: CHANGELOG.tpl.md
+info:
+ title: CHANGELOG
+ repository_url: https://github.com/maicol07/flarum-ext-sso
+options:
+ commits:
+ filters:
+ Type:
+ - feat
+ - update
+ - perf
+ - fix
+ - fixed
+ - revert
+ - rename
+ - refactor
+ - style
+ - docs
+ - build
+ - ci
+ - chore
+ commit_groups:
+ sort_by: Custom
+ title_order:
+ - feat
+ - update
+ - perf
+ - fix
+ - fixed
+ - revert
+ - rename
+ - refactor
+ - style
+ - docs
+ - build
+ - ci
+ - chore
+ title_maps:
+ feat: ✨ Features
+ fix: 🐛 Bug Fixes
+ fixed: 🐛 Bug Fixes
+ perf: ⚡ Performance Improvements
+ docs: 📝 Docs changes
+ refactor: ♻ Code Refactoring
+ rename: 🚚 Renamed
+ revert: ⏪ Reverted
+ update: 🔄 Updates
+ build: 👷 Building scripts changes
+ chore: Other changes
+ style: 🎨 Code styling
+ ci: 👷 CI changes
+ header:
+ pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$"
+ pattern_maps:
+ - Type
+ - Scope
+ - Subject
+ notes:
+ keywords:
+ - BREAKING CHANGE
+ - 💥
diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml
new file mode 100644
index 000000000..5db998b5f
--- /dev/null
+++ b/.github/workflows/changelog.yml
@@ -0,0 +1,40 @@
+name: Build changelog
+on:
+ push:
+ branches:
+ - master
+ workflow_dispatch:
+ inputs:
+ next_version:
+ description: "Next version tag"
+ required: false
+ commit_message:
+ description: "Commit message"
+ required: false
+
+jobs:
+ package:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repo
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+ submodules: recursive
+ - uses: maicol07/github-changelog-action@patch-1
+ with:
+ next_version: ${{ github.event.inputs.next_version }}
+ - uses: oleksiyrudenko/gha-git-credentials@v2-latest
+ with:
+ token: '${{ secrets.GITHUB_TOKEN }}'
+ - run: "git commit -m \"changelog: 🔖 Updated changelog for commit ${{ github.sha }}\" -a"
+ if: ${{ !github.event.inputs.commit_message && !github.event.inputs.next_version }}
+ - run: "git commit -m \"release: 🔖 ${{ github.event.inputs.next_version }}\" -a"
+ if: ${{ !github.event.inputs.commit_message && github.event.inputs.next_version }}
+ - run: "git commit -m \"${{ github.event.inputs.commit_message }}\" -a"
+ if: ${{ github.event.inputs.commit_message }}
+ - name: Push changes
+ uses: ad-m/github-push-action@master
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ branch: ${{ github.ref }}
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 3bfceefa3..01acb2995 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -6,4 +6,17 @@
+
+
+
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.old.md
old mode 100755
new mode 100644
similarity index 100%
rename from CHANGELOG.md
rename to CHANGELOG.old.md