Skip to content

A configurable github action that adds a milestone to pull requests.

License

Notifications You must be signed in to change notification settings

HENNGE/add-milestone-action

Repository files navigation

typescript-action status

Add milestone action

Use this action to add a milestone to PR's. To use the action, create a workflow that runs when PRs are opened in your repository. Run this action in a step, optionally configuring the settings.

name: Add oldest milestone to PR

on:
  pull_request:
    types: ['opened', 'reopened', 'synchronize']

jobs:
  arbitrary-job:
    name: Arbitrary Job
    runs-on: ubuntu-latest
    steps:
      - uses: HENNGE/[email protected]
        with:
          token: ${{ github.token }}
          ignore_senders: 'dependabot[bot],dontTriggerUser'
          use_oldest: true

Inputs

  • token is a personal access token . By default ${{github.token}} is used.
  • use_oldest will use the oldest milestone available. By default, the newest is used.
  • ignore_senders is a comma-separated list of senders to ignore. Pull request's opened by these senders will not have a milestone added to it
  • fail_on_none will cause the action to fail if no milestones are available. By default this is disabled.

About

A configurable github action that adds a milestone to pull requests.

Resources

License

Stars

Watchers

Forks

Packages

No packages published