diff --git a/.github/pr-commands.json b/.github/pr-commands.json deleted file mode 100644 index 54dd7af..0000000 --- a/.github/pr-commands.json +++ /dev/null @@ -1,21 +0,0 @@ -[ - { - "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" - } - } -] diff --git a/.github/workflows/pr-commands.yml b/.github/workflows/pr-commands.yml deleted file mode 100644 index 85b9d9b..0000000 --- a/.github/workflows/pr-commands.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: PR automation -on: - pull_request_target: # zizmor: ignore[dangerous-triggers] - types: - - labeled - - opened -concurrency: - group: pr-commands-${{ github.event.number }} -permissions: {} -jobs: - main: - permissions: - contents: read - pull-requests: write - runs-on: ubuntu-latest - steps: - - name: Checkout Actions - uses: actions/checkout@v4 - with: - repository: 'grafana/grafana-github-actions' - path: ./actions - ref: main - persist-credentials: false - - name: Install Actions - run: npm install --production --prefix ./actions - - name: Get secrets from vault - id: get-secrets - uses: grafana/shared-workflows/actions/get-vault-secrets@main - with: - repo_secrets: | - AWS_DS_TOKEN_CREATOR_ID=aws-ds-token-creator:app_id - AWS_DS_TOKEN_CREATOR_PEM=aws-ds-token-creator:pem - - name: 'Generate token' - id: generate_token - uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a - with: - app_id: ${{ env.AWS_DS_TOKEN_CREATOR_ID }} - private_key: ${{ env.AWS_DS_TOKEN_CREATOR_PEM }} - - name: Run Commands - uses: ./actions/commands - with: - token: ${{ steps.generate_token.outputs.token }} - configPath: pr-commands