mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
b9ed8444d3
* [ci skip] Require Changelog at PR time We frequently forget to ask for a changelog entry, and then when we want to release the release maintainer has to go back and manually add them all. It would be better if the changelog was required at PR time so the original submitter can think of the best wording. If a PR is trivial people can add `[ci skip]` or `[changelog skip]`. This implementation uses github actions. * Use correct name of changelog file The changelog is History.md not CHANGELOG.md
13 lines
400 B
YAML
13 lines
400 B
YAML
name: Check Changelog
|
|
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Check that CHANGELOG is touched or PR is [ci skip]-d
|
|
run: |
|
|
cat $GITHUB_EVENT_PATH | jq .pull_request.title | grep -i '\[\(\(changelog skip\)\|\(ci skip\)\)\]' || $( git diff remotes/origin/${{ github.base_ref }} --name-only | grep History.md )
|