From 8addbfdb30e53a762d905de1e23600a075799503 Mon Sep 17 00:00:00 2001 From: Steve Loeppky Date: Mon, 6 Jul 2026 12:41:23 -0700 Subject: [PATCH] ci: add issues and PRs to FOC project board 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) --- ...add-issues-and-prs-to-fs-project-board.yml | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/add-issues-and-prs-to-fs-project-board.yml diff --git a/.github/workflows/add-issues-and-prs-to-fs-project-board.yml b/.github/workflows/add-issues-and-prs-to-fs-project-board.yml new file mode 100644 index 0000000..ed54d9c --- /dev/null +++ b/.github/workflows/add-issues-and-prs-to-fs-project-board.yml @@ -0,0 +1,38 @@ +###################################################################################### +# 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. + # pull_request_target has access to secrets even for fork PRs, which is necessary + # for this action to authenticate and add items to the project board. + # 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. + pull_request_target: + types: + - opened + +jobs: + add-to-project: + name: Add all issues and prs to project + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@5afcf98fcd03f1c2f92c3c83f58ae24323cc57fd # v2.0.0 + continue-on-error: true # Don't fail if item already exists in project. actions/add-to-project does not currently handle this case gracefully. + with: + project-url: https://github.com/orgs/FilOzone/projects/14 + github-token: ${{ secrets.FILOZZY_CI_ADD_TO_PROJECT }}