ci: add issues and PRs to FOC project board#74
Merged
Conversation
Adds the standard FilOzone workflow that auto-adds newly opened issues and PRs to the FOC project board (org project #14), matching the canonical version in FilOzone/github-mgmt and FilOzone/synapse-sdk. This repo previously had no such automation, so recently opened items had to be added to the board manually. Requires the FILOZZY_CI_ADD_TO_PROJECT secret to be available to this repo. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Adds a GitHub Actions workflow to automatically add newly opened issues and pull requests in this repo to the FilOzone org project board (#14), reducing manual project-board triage.
Changes:
- Introduces a workflow triggered on
issues: openedandpull_request_target: openedto auto-add items to org project #14. - Uses
actions/add-to-projectpinned to a specific commit and setscontinue-on-errorto avoid failing when items already exist on the board.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| # 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 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 |
Comment on lines
+28
to
+30
|
|
||
| jobs: | ||
| add-to-project: |
| # pull_request_target runs the workflow file from the base branch (main), | ||
| # not from the PR branch, so attackers cannot modify this workflow via PR. | ||
| # This action does not check out nor execute user code so we should be safe. | ||
| # We also hardcode to specific hash to ensure no unintended changes underneath us. |
|
|
||
| jobs: | ||
| add-to-project: | ||
| name: Add all issues and prs to project |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Adds the standard FilOzone workflow that automatically adds newly opened issues and PRs to the FOC project board (org project #14).
Why
An audit of issues/PRs opened across the FilOzone org in the last two weeks found that every recent item in this repo was missing from the FOC board, because this repo had no auto-add automation. Items had to be added manually (the existing backlog has now been added by hand).
This file is the canonical version copied from FilOzone/github-mgmt, modeled on synapse-sdk#700:
issues: openedandpull_request_target: opened(the latter so fork PRs are covered)actions/add-to-projectto a specific commit hash (v2.0.0)continue-on-errorso it does not fail when an item is already on the boardPrerequisite
Requires the
FILOZZY_CI_ADD_TO_PROJECTsecret to be available to this repo (repo secret, or org secret with this repo selected). If it is not yet granted, the workflow will run but be unable to add items until the secret is provisioned.