mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Add auto-triager github action (#92807)
* Chore: Add auto-triager github action * Add codeowners * Add link * Update .github/workflows/auto-triager.yml Co-authored-by: Timur Olzhabayev <timur.olzhabayev@grafana.com> --------- Co-authored-by: Timur Olzhabayev <timur.olzhabayev@grafana.com>
This commit is contained in:
parent
1395cd89da
commit
a3e7e3dbfa
1
.github/CODEOWNERS
vendored
1
.github/CODEOWNERS
vendored
@ -693,6 +693,7 @@ embed.go @grafana/grafana-as-code
|
|||||||
/.github/workflows/commands.yml @torkelo
|
/.github/workflows/commands.yml @torkelo
|
||||||
/.github/workflows/community-release.yml @grafana/grafana-release-guild
|
/.github/workflows/community-release.yml @grafana/grafana-release-guild
|
||||||
/.github/workflows/detect-breaking-changes-* @grafana/plugins-platform-frontend
|
/.github/workflows/detect-breaking-changes-* @grafana/plugins-platform-frontend
|
||||||
|
/.github/workflows/auto-triager.yml @grafana/plugins-platform-frontend
|
||||||
/.github/workflows/doc-validator.yml @grafana/docs-tooling
|
/.github/workflows/doc-validator.yml @grafana/docs-tooling
|
||||||
/.github/workflows/epic-add-to-platform-ux-parent-project.yml @meanmina
|
/.github/workflows/epic-add-to-platform-ux-parent-project.yml @meanmina
|
||||||
/.github/workflows/github-release.yml @grafana/grafana-release-guild
|
/.github/workflows/github-release.yml @grafana/grafana-release-guild
|
||||||
|
45
.github/workflows/auto-triager.yml
vendored
Normal file
45
.github/workflows/auto-triager.yml
vendored
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
# This workflow is triggered when a new issue is opened
|
||||||
|
# It will run an internal github action to try to automate the triage process
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types: [opened]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check-label:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Send issue to the auto triager action
|
||||||
|
id: auto_triage
|
||||||
|
# https://github.com/grafana/auto-triager/blob/main/action.yml
|
||||||
|
uses: grafana/auto-triager@main
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
issue_number: ${{ github.event.issue.number }}
|
||||||
|
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
|
||||||
|
# Leaving the actionin monitoring mode for now
|
||||||
|
# should be set to true when ready to use
|
||||||
|
# add_labels: true
|
||||||
|
add_labels: false
|
||||||
|
|
||||||
|
- name: Labels from auto triage
|
||||||
|
run: |
|
||||||
|
echo ${{ steps.auto_triage.outputs.triage_labels }}
|
||||||
|
|
||||||
|
- name: "Send Slack notification"
|
||||||
|
if : ${{ steps.auto_triage.outputs.triage_labels != '' }}
|
||||||
|
uses: slackapi/slack-github-action@v1.27.0
|
||||||
|
with:
|
||||||
|
payload: >
|
||||||
|
{
|
||||||
|
"icon_emoji": ":robocto:",
|
||||||
|
"username": "Auto Triager",
|
||||||
|
"type": "mrkdwn",
|
||||||
|
"text": "Auto triager found the following labels: ${{ steps.auto_triage.outputs.triage_labels }} for [issue #${{ github.event.issue.number }}](${{ github.event.issue.html_url }})",
|
||||||
|
"channel": "#triage-automation-ci"
|
||||||
|
}
|
||||||
|
env:
|
||||||
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
Loading…
Reference in New Issue
Block a user