Skip to content

Commit

Permalink
Add calens check to verify changelog entries in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ishank011 committed Aug 11, 2020
1 parent fd1ac13 commit 1fd9a3f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ steps:
- name: changelog
image: golang:1.13
commands:
- make release-deps && /go/bin/calens
- make check-changelog-drone PR=$DRONE_PULL_REQUEST
environment:
GITHUB_API_TOKEN:
Expand Down
3 changes: 3 additions & 0 deletions changelog/unreleased/calens-check-ci.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Enhancement: Add calens check to verify changelog entries in CI

https://github.com/cs3org/reva/pull/1077
6 changes: 2 additions & 4 deletions tools/check-changelog/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,8 @@ func main() {
prID := flag.Int("pr", 0, "the ID of the PR")
flag.Parse()

if *prID > 0 {
if skipPR(*prID) {
return
}
if *prID > 0 && skipPR(*prID) {
return
}

branch := "master"
Expand Down

0 comments on commit 1fd9a3f

Please sign in to comment.