-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from weaveworks/WKP-1914/add-changelog-generator
add changelog generator
- Loading branch information
Showing
4 changed files
with
57 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"header_prefix": "Version:", | ||
"commit_changelog": true, | ||
"pull_request_title_regex": ".*", | ||
"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"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: changelog | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
generate-changelog: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Create changelog | ||
env: | ||
CHANGELOG_GITHUB_TOKEN: "${{ secrets.CHANGELOG_CREATION_TOKEN }}" | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
docker run --rm -v "${GITHUB_WORKSPACE}":"/usr/local/src/your-app" ferrarimarco/github-changelog-generator -u weaveworks -p weave-gitops | ||
git add . | ||
git commit -m "Created changelog" | ||
git push origin HEAD:master | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
package main | ||
|
||
import "fmt" | ||
import ( | ||
"fmt" | ||
) | ||
|
||
func main() { | ||
fmt.Println("Hello World!") | ||
} | ||
|
||
func test() string { | ||
return "test" | ||
a := 1 | ||
w := 1 | ||
x := 6 | ||
y := 28 | ||
z := 496 | ||
q := 8128 | ||
return fmt.Sprintf("%s:%d", "test", a*w*x*y*z*q) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters