mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
07389d1030
auto-milestone needs repo write access
28 lines
767 B
YAML
28 lines
767 B
YAML
name: Auto-milestone
|
|
on:
|
|
pull_request_target:
|
|
types:
|
|
- opened
|
|
- reopened
|
|
- closed
|
|
- ready_for_review
|
|
|
|
permissions:
|
|
pull-requests: write
|
|
contents: write
|
|
|
|
# Note: this action runs with write permissions on GITHUB_TOKEN even from forks
|
|
# so it must not run untrusted code (such as checking out the pull request)
|
|
jobs:
|
|
main:
|
|
runs-on: ubuntu-latest
|
|
if: github.event.pull_request.draft == false
|
|
steps:
|
|
# Note: Github will not trigger other actions from this because it uses
|
|
# the GITHUB_TOKEN token
|
|
- name: Run auto-milestone
|
|
uses: grafana/grafana-github-actions-go/auto-milestone@main
|
|
with:
|
|
pr: ${{ github.event.pull_request.number }}
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|