Skip to content

Commit

Permalink
Use centralized 'Add to docs project' workflow with GitHub App auth
Browse files Browse the repository at this point in the history
Until this is merged, it is likely that any issues labeled `type/docs` won't be added to the [organization project](https://github.com/orgs/grafana/projects/69).

The underlying action is centralized so that any future changes are made in one place (`grafana/writers-toolkit`). The action is versioned to protect workflows from breaking changes.

The action uses Vault secrets instead of the discouraged organization secrets.

The workflow uses a consistent name so that future changes can be made programmatically.

Relates to https://github.com/orgs/grafana/projects/279/views/9?pane=issue&itemId=44280262

Signed-off-by: Jack Baldry <[email protected]>
  • Loading branch information
jdbaldry committed Sep 18, 2024
1 parent 580d30c commit e4742e2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 31 deletions.
10 changes: 0 additions & 10 deletions .github/issue_commands.json

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/add-to-docs-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Add to docs project
on:
issues:
types: [labeled]
pull_request:
types: [labeled]
jobs:
main:
if: ${{ github.event.label.name == 'type/docs' }}
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: grafana/writers-toolkit/add-to-docs-project@add-to-docs-project/v1
21 changes: 0 additions & 21 deletions .github/workflows/issue_commands.yml

This file was deleted.

0 comments on commit e4742e2

Please sign in to comment.