Skip to content

Commit

Permalink
Chore: add label to external contributions (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinwcyu authored Feb 7, 2025
1 parent bd34e20 commit 428c559
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/pr-commands.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[
{
"type": "author",
"name": "pr/external",
"notMemberOf": {
"org": "grafana"
},
"ignoreList": ["renovate[bot]", "dependabot[bot]", "grafana-delivery-bot[bot]", "grafanabot"],
"action": "updateLabel",
"addLabel": "pr/external"
},
{
"type": "label",
"name": "pr/external",
"action": "addToProject",
"addToProject": {
"url": "https://github.com/orgs/grafana/projects/97",
"column": "Incoming"
}
}
]
31 changes: 31 additions & 0 deletions .github/workflows/pr-commands.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: PR automation
on:
pull_request_target:
types:
- labeled
- opened
concurrency:
group: pr-commands-${{ github.event.number }}
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Checkout Actions
uses: actions/checkout@v4
with:
repository: 'grafana/grafana-github-actions'
path: ./actions
ref: main
- name: Install Actions
run: npm install --production --prefix ./actions
- name: 'Generate token'
id: generate_token
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
with:
app_id: ${{ secrets.AWS_DS_TOKEN_CREATOR_ID }}
private_key: ${{ secrets.AWS_DS_TOKEN_CREATOR_PEM }}
- name: Run Commands
uses: ./actions/commands
with:
token: ${{ steps.generate_token.outputs.token }}
configPath: pr-commands

0 comments on commit 428c559

Please sign in to comment.