Skip to content

Broadshield/actions-milestone

 
 

Repository files navigation

GitHub Actions status

ActionsMilestone

This action add milestone to PRs.:hammer:

Inputs

repo-token

required The GITHUB_TOKEN secret.

configuration-path

required The path for the milestone configurations. Default ".github/milestone.yml"

Outputs

milestone

The added milestone.

Example usage

.github/milestone.yml

base-branch:
  - "(master)"
  - "releases\\/(v\\d+)"

head-branch:
  - "feature\\/(v\\d+)\\/.+"

.github/workflows/milestone.yml

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

About

This action add milestone to PRs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 95.6%
  • JavaScript 4.4%