Skip to content

submit: warn if a branch's base is unsubmitted #715

submit: warn if a branch's base is unsubmitted

submit: warn if a branch's base is unsubmitted #715

Workflow file for this run

name: Require changelog
on:
pull_request:
types:
# On by default if types not specified:
- "opened"
- "reopened"
- "synchronize"
# For `skip-label` handling:
- "labeled"
- "unlabeled"
permissions:
pull-requests: write
jobs:
check-changelog:
name: Check for changelog
runs-on: ubuntu-latest
if: ${{ github.actor != 'renovate[bot]' }}
steps:
- name: Check
uses: brettcannon/[email protected]
# Run only if PR body doesn't contain '[skip changelog]'.
if: ${{ !contains(github.event.pull_request.body, '[skip changelog]') }}
with:
file-pattern: |
.changes/unreleased/*.yaml
CHANGELOG.md
skip-label: "skip changelog"
token: ${{ secrets.GITHUB_TOKEN }}
failure-message: >-
Missing a changelog file in ${file-pattern};
please add one or apply the ${skip-label} label to the pull request
if a changelog entry is not needed.