This action add milestone to PRs.:hammer:
required The GITHUB_TOKEN secret.
required The path for the milestone configurations. Default ".github/milestone.yml"
The added milestone.
base-branch:
- "(master)"
- "releases\\/(v\\d+)"
head-branch:
- "feature\\/(v\\d+)\\/.+"
name: Pull Request Milestone
on:
pull_request:
types:
- opened
jobs:
milestone:
name: Pull Request Milestone
runs-on: ubuntu-latest
steps:
- uses: iyu/actions-milestone@v1
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/milestone.yml