You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Add Milestone By Due Date
v1.2.0
This Action adds the current milestone or the milestone with the farthest due date to issues and pull requests. The Action ignores milestones that are past due, as well as milestones with no due date. Here are successful test runs for current and farthest due milestones.
# .github/workflows/add-milestone.yml
name: Add Milestone
on:
issues:
types: [opened]
branches: [master]
pull_request:
types: [opened]
branches: [master]
jobs:
add:
runs-on: ubuntu-latest
steps:
- uses: benelan/[email protected]
with:
farthest: true # remove this line to add the current milestone
1.2.0 (2021-09-21)
- Allow the workflow to run on any event action (9bce688)
1.1.1 (2021-09-21)
1.1.0 (2021-09-13)
- add option to use the milestone with the farthest due date (9ac638a)