Skip to content
This repository was archived by the owner on Aug 30, 2022. It is now read-only.

Commit 445a103

Browse files
committed
[skip ci] Add auto changelog generator
1 parent a7f3a42 commit 445a103

File tree

3 files changed

+96
-8
lines changed

3 files changed

+96
-8
lines changed

.auto-changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"template": "keepachangelog",
3+
"unreleased": true,
4+
"startingDate": "2021-08-08",
5+
"tagPattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
6+
}

.github/workflows/changelog.yml

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,41 @@
11
name: changelog
22

33
on:
4-
pull_request:
4+
release:
5+
types: [published]
56
workflow_dispatch:
67

78
jobs:
8-
generate_changelog:
9+
create_changelog_pr:
910
runs-on: ubuntu-latest
10-
name: Generate changelog for master branch
1111
steps:
12-
- uses: actions/checkout@v1
13-
- name: Generate changelog
14-
uses: heinrichreimer/[email protected]
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-node@v2
1514
with:
16-
token: ${{ secrets.GITHUB_TOKEN }}
17-
- run: cat CHANGELOG.md
15+
node-version: '14'
16+
- name: Update npm packages
17+
uses: technote-space/create-pr-action@v2
18+
with:
19+
GITHUB_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
20+
EXECUTE_COMMANDS: |
21+
npm install -g auto-changelog
22+
auto-changelog
23+
COMMIT_MESSAGE: 'chore: update changelog'
24+
PR_BRANCH_PREFIX: 'changelog/'
25+
PR_BRANCH_NAME: 'chore-update-changelog-${PR_ID}'
26+
PR_TITLE: 'chore: update changelog'
27+
PR_BODY: |
28+
<!-- START pr-commits -->
29+
<!-- END pr-commits -->
30+
## Base PullRequest
31+
${PR_TITLE} (${PR_NUMBER_REF})
32+
## Command results
33+
<details>
34+
<summary>Details: </summary>
35+
${COMMANDS_OUTPUT}
36+
</details>
37+
## Changed files
38+
<details>
39+
<summary>${FILES_SUMMARY}: </summary>
40+
${FILES}
41+
</details>

CHANGELOG.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,63 @@
11
# Changelog
22

3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
9+
10+
<!-- auto-changelog-above -->
11+
12+
## [1.1.13](https://github.com/openflagr/flagr/compare/1.1.12...1.1.13) - 2021-08-07
13+
14+
### Merged
15+
16+
- Prepare for 1.1.13 release [`#13`](https://github.com/openflagr/flagr/pull/13)
17+
- Remove github.com/dgrijalva/jwt-go [`#10`](https://github.com/openflagr/flagr/pull/10)
18+
- [skip ci] Add try-openflagr website [`#6`](https://github.com/openflagr/flagr/pull/6)
19+
- Add codecov and fix docs [`#5`](https://github.com/openflagr/flagr/pull/5)
20+
- Add github CI [`#1`](https://github.com/openflagr/flagr/pull/1)
21+
- Upgrade to 1.16 [`#460`](https://github.com/checkr/flagr/pull/460)
22+
- Fix markdown-it xss and sqlite3 build issue [`#451`](https://github.com/checkr/flagr/pull/451)
23+
- Bump y18n from 4.0.0 to 4.0.3 in /browser/flagr-ui [`#444`](https://github.com/checkr/flagr/pull/444)
24+
- Bump ssri from 6.0.1 to 6.0.2 in /browser/flagr-ui [`#441`](https://github.com/checkr/flagr/pull/441)
25+
- Fix integration tests [`#443`](https://github.com/checkr/flagr/pull/443)
26+
- Bump elliptic from 6.5.3 to 6.5.4 in /browser/flagr-ui [`#435`](https://github.com/checkr/flagr/pull/435)
27+
- Add dropdown by state to filter flags [`#433`](https://github.com/checkr/flagr/pull/433)
28+
- Bump swagger cli / golangci-lint / UI related package.json [`#432`](https://github.com/checkr/flagr/pull/432)
29+
- Fix typo in home.md [`#415`](https://github.com/checkr/flagr/pull/415)
30+
- Add support for kafka auth using SASL with PLAIN mechanism [`#412`](https://github.com/checkr/flagr/pull/412)
31+
- Evaluation with FlagTagsOperator to match any or all tags [`#408`](https://github.com/checkr/flagr/pull/408)
32+
- Allow /api/v1/health bypass auth default [`#407`](https://github.com/checkr/flagr/pull/407)
33+
34+
### Commits
35+
36+
- Fix markdown-it xss [`f039933`](https://github.com/openflagr/flagr/commit/f03993346f7cd573b4afe2995ef1e3d24ff5a105)
37+
- Bump UI related package.json [`827f199`](https://github.com/openflagr/flagr/commit/827f199b1ebc4b124b326e674e9a68b57410711a)
38+
- Bump golangci and swagger cli [`fd23dd1`](https://github.com/openflagr/flagr/commit/fd23dd1e57fa880055c054c2f11a1a27641d883e)
39+
40+
41+
### Migration Guide
42+
43+
All the integration tests are the same, which guarantees the
44+
- API backward compatibility with `checkr/flagr:1.1.12`
45+
- Environment variables are the same and don't need any changes
46+
47+
Docker users:
48+
```
49+
docker pull checkr/flagr:1.1.12
50+
=>
51+
docker pull ghcr.io/openflagr/flagr:1.1.13
52+
```
53+
54+
Golang users:
55+
```
56+
go get github.com/checkr/flagr
57+
=>
58+
go get github.com/openflagr/flagr
59+
```
60+
361
## [1.1.12](https://github.com/checkr/flagr/tree/1.1.12) (2020-09-16)
462

563
[Full Changelog](https://github.com/checkr/flagr/compare/1.1.11...1.1.12)

0 commit comments

Comments
 (0)