submit: warn if a branch's base is unsubmitted #715
Workflow file for this run
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
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. |