Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
calendar

GitHub Action

Add Milestone By Due Date

v1.1.1

Add Milestone By Due Date

calendar

Add Milestone By Due Date

Add the milestone with the current or farthest due date to pull requests and issues

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Add Milestone By Due Date

uses: benelan/[email protected]

Learn more about this action in benelan/milestone-action

Choose a version

milestone-action status

Add Milestone By Due Date

This action adds the current or farthest due milestone to issues and pull requests. The current milestone is the one due the soonest, excluding milestones that are past due, based on the datetime that the action is run. Here are successful test runs for current and farthest due milestones.

Usage

# .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