-
Notifications
You must be signed in to change notification settings - Fork 1
chore: add issues and PRs to FS project board workflow #45
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
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
04d6702
chore: add issues and PRs to FS project board workflow
BigLep d807ef5
chore: pin add-to-project to v2.0.0 and tighten workflow permissions
BigLep 6d58d9c
Merge branch 'master' into phi/add-fs-project-board-workflow
filozone-mgmt-read-write[bot] 503bbc3
Merge branch 'master' into phi/add-fs-project-board-workflow
filozone-mgmt-read-write[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
.github/workflows/add-issues-and-prs-to-fs-project-board.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| ###################################################################################### | ||
| # READ THIS FIRST | ||
| # This file is authored in FilOzone/github-mgmt repository and MANUALLY copied to other repos. | ||
| # See https://github.com/FilOzone/github-mgmt/blob/master/files/workflows/add-issues-and-prs-to-fs-project-board.yml for more info. | ||
| ###################################################################################### | ||
|
|
||
| # This action adds all issues and PRs to the FS project board. | ||
| # It is used to keep the project board up to date with the issues and PRs. | ||
| # It is triggered by the issue and PR events. | ||
| # It assumes a `FILOZZY_CI_ADD_TO_PROJECT` secret is set in the repo. | ||
| # This secret should have the permissions outlined in https://github.com/actions/add-to-project?tab=readme-ov-file#creating-a-pat-and-adding-it-to-your-repository | ||
| name: Add issues and PRs to FS project board | ||
|
|
||
| on: | ||
| issues: | ||
| types: | ||
| - opened | ||
| # Using "pull_request_target" instead of "pull_request" to support PRs from forks. | ||
| # Workflow runs triggered on PRs from forks do not have access to secrets, so "github-token" input below would otherwise be empty. | ||
| # This action does not check out nor execute user code so we should be safe. | ||
| # The action is pinned to an immutable commit SHA to prevent supply-chain risk. | ||
| pull_request_target: | ||
| types: | ||
| - opened | ||
|
|
||
| jobs: | ||
| add-to-project: | ||
| name: Add all issues and PRs to project | ||
| permissions: {} | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/add-to-project@5afcf98fcd03f1c2f92c3c83f58ae24323cc57fd # v2.0.0 | ||
| with: | ||
| project-url: https://github.com/orgs/FilOzone/projects/14 | ||
| github-token: ${{ secrets.FILOZZY_CI_ADD_TO_PROJECT }} | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.