Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: add label to external contributions #499

Merged
merged 1 commit into from
Mar 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Chore: add label to external contributions
kevinwcyu committed Feb 6, 2025

Verified

This commit was signed with the committer’s verified signature.
kevinwcyu Kevin Yu
commit faab62be3daf7b5bda95629cc74202e593de5237
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