Skip to content
Merged
Show file tree
Hide file tree
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
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