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
…5045)

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]>

---------

Signed-off-by: Jack Baldry <[email protected]>
Co-authored-by: Joey Orlando <[email protected]>
  • Loading branch information
jdbaldry and joeyorlando authored Sep 19, 2024
1 parent 11f5f48 commit d9b1196
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 35 deletions.
10 changes: 0 additions & 10 deletions .github/issue_and_pr_commands.json

This file was deleted.

15 changes: 15 additions & 0 deletions .github/workflows/add-to-docs-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
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: grafana/writers-toolkit/add-to-docs-project@add-to-docs-project/v1
25 changes: 0 additions & 25 deletions .github/workflows/issue_commands.yml

This file was deleted.

0 comments on commit d9b1196

Please sign in to comment.