-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Checks PR to ensure new changelog entry file is present and va…
…lid (#2126) * echo vars * env vars * create go file * skip logic * use log.Fatal * import changelog package * check file * rename to check-changelog * test file * validate file if present * comment * test file error * remove file * help message * doc * Update contributing/changelog-process.md Co-authored-by: Agustin Bettati <[email protected]> * Update contributing/changelog-process.md Co-authored-by: Agustin Bettati <[email protected]> * rename to check-changelog-entry-file * additional info in error message * extract function validateChangelog --------- Co-authored-by: Agustin Bettati <[email protected]>
- Loading branch information
1 parent
5a7d85c
commit 3ccc11c
Showing
6 changed files
with
285 additions
and
5 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,19 @@ | ||
name: Check changelog entry file | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, synchronize, edited, labeled, unlabeled] | ||
|
||
jobs: | ||
check: | ||
env: | ||
PR_TITLE: ${{ github.event.pull_request.title }} | ||
PR_NUMBER: ${{ github.event.pull_request.number }} | ||
PR_LABELS: ${{ toJson(github.event.pull_request.labels.*.name) }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 | ||
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 | ||
with: | ||
go-version-file: 'go.mod' | ||
- run: make check-changelog-entry-file |
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
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
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
Oops, something went wrong.