From 5a4e7403ff9ac53747759446d9ba9cd36462d689 Mon Sep 17 00:00:00 2001 From: dragos-mateescu-visma <83346176+dragos-mateescu-visma@users.noreply.github.com> Date: Wed, 9 Jun 2021 16:10:52 +0300 Subject: [PATCH 1/4] update changelog-generator --- .github/workflows/changelog-generator.yml | 44 ++++++++++++----------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/.github/workflows/changelog-generator.yml b/.github/workflows/changelog-generator.yml index 510fbf48c..63d453fa6 100644 --- a/.github/workflows/changelog-generator.yml +++ b/.github/workflows/changelog-generator.yml @@ -1,20 +1,24 @@ -- name: Run Changelog CI - uses: saadmk11/changelog-ci@v0.8.0 - with: - # Optional, you can provide any name for your changelog file, - # defaults to `CHANGELOG.md` if not provided. - changelog_filename: MY_CHANGELOG.md - # Optional, only required when you want more customization - # e.g: group your changelog by labels with custom titles, - # different version prefix, pull request title and version number regex etc. - # config file can be in JSON or YAML format. - config_file: changelog-ci-config.json - # Optional, This will be used to configure git - # defaults to `github-actions[bot]` if not provided. - committer_username: 'test' - committer_email: 'test@test.com' - env: - # optional, only required for `private` repositories - # and required if the changelog comment - # option is turned on through the config file - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} +name: Changelog CI + +# Controls when the action will run. Triggers the workflow on a pull request +on: + pull_request: + types: [ opened, reopened ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + # Checks-out your repository + - uses: actions/checkout@v2 + + - name: Run Changelog CI + uses: saadmk11/changelog-ci@v0.8.0 + with: + changelog_filename: CHANGELOG.md + config_file: changelog-ci-config.json + # Add this if you are using it on a private repository + # Or if you have turned on commenting through the config file. + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} From 9c063890c0c6f6bb37c9b8a91febedfd2ebb77f5 Mon Sep 17 00:00:00 2001 From: dragos-mateescu-visma <83346176+dragos-mateescu-visma@users.noreply.github.com> Date: Wed, 9 Jun 2021 16:12:40 +0300 Subject: [PATCH 2/4] create config file for changelog generator action --- .github/workflows/changelog-ci-config.json | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/changelog-ci-config.json diff --git a/.github/workflows/changelog-ci-config.json b/.github/workflows/changelog-ci-config.json new file mode 100644 index 000000000..68b91b764 --- /dev/null +++ b/.github/workflows/changelog-ci-config.json @@ -0,0 +1,26 @@ +{ + "changelog_type": "commit_message", + "header_prefix": "Version:", + "commit_changelog": true, + "comment_changelog": true, + "pull_request_title_regex": "^Release", + "version_regex": "v?([0-9]{1,2})+[.]+([0-9]{1,2})+[.]+([0-9]{1,2})\\s\\(\\d{1,2}-\\d{1,2}-\\d{4}\\)", + "group_config": [ + { + "title": "Bug Fixes", + "labels": ["bug", "bugfix"] + }, + { + "title": "Code Improvements", + "labels": ["improvements", "enhancement"] + }, + { + "title": "New Features", + "labels": ["feature"] + }, + { + "title": "Documentation Updates", + "labels": ["docs", "documentation", "doc"] + } + ] +} From 13db527fb9af68252b0e811bf77ef1a1a5197edd Mon Sep 17 00:00:00 2001 From: dragos-mateescu-visma <83346176+dragos-mateescu-visma@users.noreply.github.com> Date: Wed, 9 Jun 2021 16:13:06 +0300 Subject: [PATCH 3/4] add CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1 @@ + From 935f1e163a1feb55a223f07234b427daeb579d23 Mon Sep 17 00:00:00 2001 From: dragos-mateescu-visma <83346176+dragos-mateescu-visma@users.noreply.github.com> Date: Wed, 9 Jun 2021 16:14:27 +0300 Subject: [PATCH 4/4] remove version regex to apply the default semVer --- .github/workflows/changelog-ci-config.json | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/changelog-ci-config.json b/.github/workflows/changelog-ci-config.json index 68b91b764..75565acc8 100644 --- a/.github/workflows/changelog-ci-config.json +++ b/.github/workflows/changelog-ci-config.json @@ -4,7 +4,6 @@ "commit_changelog": true, "comment_changelog": true, "pull_request_title_regex": "^Release", - "version_regex": "v?([0-9]{1,2})+[.]+([0-9]{1,2})+[.]+([0-9]{1,2})\\s\\(\\d{1,2}-\\d{1,2}-\\d{4}\\)", "group_config": [ { "title": "Bug Fixes",