Chore: auto label internal issues (#108013)

* add PR author

* catch all for internal issues

* ubuntu latest

* no need to add label here anymore
This commit is contained in:
Timur Olzhabayev
2025-07-22 10:01:18 +02:00
committed by GitHub
parent 34f1be796d
commit 487c38da56
2 changed files with 15 additions and 2 deletions
+14
View File
@@ -117,3 +117,17 @@ jobs:
}
env:
SLACK_WEBHOOK_URL: ${{ env.AUTOTRIAGER_SLACK_WEBHOOK_URL }}
auto-label-internal-issues:
needs: [main]
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: "Auto label internal issues"
if: github.repository == 'grafana/grafana' && (github.event.issue.author_association == 'MEMBER' || github.event.issue.author_association == 'OWNER')
run: gh issue edit "$NUMBER" --add-label "$LABELS"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
LABELS: internal