DavideViolante / sprint-milestone-action

A GitHub Action to automatically create Milestones to manage sprints with custom sprint duration.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sprint Milestone Action

Coverage Status Maintainability Donate

Automatically generate milestones to manage sprints.

How it works

  1. Get the current milestones
  2. Get the milestone with the highest due date
  3. Generate a new milestone using that due date + sprint-duration weeks (see inputs below)

Inputs

sprint-duration

The duration of the sprint expressed in weeks. Default is 1.

Outputs

milestone-number

The new milestone number.

milestone-title

The new milestone title.

milestone-due_on

The new milestone due on.

Example usage

name: Sprint Milestone

on:
  schedule:
    # Every monday at 12UTC, create the new milestone
    - cron: "0 12 * * 1"

jobs:
  sprint_milestone:
    runs-on: ubuntu-latest
    steps:
    - uses: davideviolante/sprint-milestone-action@v2.2.1
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      with:
        sprint-duration: 2 # Default is 1

Bug or feedback?

Please open an issue.

Author

About

A GitHub Action to automatically create Milestones to manage sprints with custom sprint duration.

License:MIT License


Languages

Language:JavaScript 100.0%