A GitHub action that reports a failure if a PR's base branch doesn't match that of the issue's milestone.
- There must be an issue number in a commit message, PR Title, or branch name
- Each release branch must have a workflow scoped to only it's branch, and it must specify the corresponding milestone
on:
pull_request:
types: [opened]
branches: [sp]
jobs:
branch-checker:
runs-on: ubuntu-latest
steps:
- uses: SpiderStrategies/gh-action-branch-checker@master
with:
milestoneNumber: 1
repo-token: ${{ secrets.GITHUB_TOKEN }}