Skip to content

Labeling issues #26050

Discussion options

You must be logged in to vote

Hi @alvin-seville ,

Glad to see you in Github Community Forum!

You can use ‘issues’ with type ‘demilestoned’ to trigger the workflow(please use in ‘master’ branch), and then use rest api to add a ‘Needs Milestone’ label for the issue. Please check below docs for more detail.

https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows#issues-event-issues

https://developer.github.com/v3/issues/labels/#add-labels-to-an-issue

Code sample as below:

name: milestone
on:
  issues:
    types: demilestoned
jobs:
  demilestoned:
    runs-on: [ubuntu-latest]
    steps:
      - name: get issue
        run: |
          echo ${{ github.event.issue.url }}…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants