From 51f663a04ddde99258c4e72cd05434201a007dc0 Mon Sep 17 00:00:00 2001 From: Steve Loeppky Date: Tue, 8 Jul 2025 14:53:02 -0700 Subject: [PATCH 1/3] Add workflow for auto adding PRs and issues to FS project board This is part of https://github.com/FilOzone/github-mgmt/issues/10 --- ...add-issues-and-prs-to-fs-project-board.yml | 27 +++++++++++++++++++ github/FilOzone.yml | 12 +++++++++ 2 files changed, 39 insertions(+) create mode 100644 files/workflows/add-issues-and-prs-to-fs-project-board.yml diff --git a/files/workflows/add-issues-and-prs-to-fs-project-board.yml b/files/workflows/add-issues-and-prs-to-fs-project-board.yml new file mode 100644 index 0000000..8a81597 --- /dev/null +++ b/files/workflows/add-issues-and-prs-to-fs-project-board.yml @@ -0,0 +1,27 @@ +# This file is authored in FilOzone/github-mgmt repository and copied to other repos. +# If you need to make changes, either: +# 1. Make the changes in FilOzone/github-mgmt repository OE +# 2. Make the changes in the local repo and remove the copying from github-mgmt. + +# 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. +name: Add issues and PRs to FS project board + +on: + issues: + types: + - opened + pull_request: + types: + - opened + +jobs: + add-to-project: + name: Add all issues and prs to project + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@v1.0.2 + with: + project-url: https://github.com/orgs/FilOzone/projects/14 + github-token: ${{ secrets.FILOZZY_CI_ADD_TO_PROJECT }} \ No newline at end of file diff --git a/github/FilOzone.yml b/github/FilOzone.yml index a24d36a..1190616 100644 --- a/github/FilOzone.yml +++ b/github/FilOzone.yml @@ -165,6 +165,9 @@ repositories: - lordshashank - rvagg - silent-cipher + files: + .github/workflows/add-issues-and-prs-to-fs-project-board.yml: + content: workflows/add-issues-and-prs-to-fs-project-board.yml has_discussions: false merge_commit_message: PR_TITLE merge_commit_title: MERGE_MESSAGE @@ -189,6 +192,9 @@ repositories: - rvagg push: - silent-cipher + files: + .github/workflows/add-issues-and-prs-to-fs-project-board.yml: + content: workflows/add-issues-and-prs-to-fs-project-board.yml has_discussions: false merge_commit_message: PR_BODY merge_commit_title: PR_TITLE @@ -382,6 +388,9 @@ repositories: - frrist - LexLuthr - nijoe1 + files: + .github/workflows/add-issues-and-prs-to-fs-project-board.yml: + content: workflows/add-issues-and-prs-to-fs-project-board.yml has_discussions: false merge_commit_message: PR_TITLE merge_commit_title: MERGE_MESSAGE @@ -455,6 +464,9 @@ repositories: - silent-cipher - timfong888 - TippyFlitsUK + files: + .github/workflows/add-issues-and-prs-to-fs-project-board.yml: + content: workflows/add-issues-and-prs-to-fs-project-board.yml has_discussions: false merge_commit_message: PR_TITLE merge_commit_title: MERGE_MESSAGE From 0f10ad4facd2410827755b5b1d4bae1b5c3e6e3e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 8 Jul 2025 21:54:03 +0000 Subject: [PATCH 2/3] fix@16155173517 [skip fix] --- github/FilOzone.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/github/FilOzone.yml b/github/FilOzone.yml index 1190616..62ce4dc 100644 --- a/github/FilOzone.yml +++ b/github/FilOzone.yml @@ -165,7 +165,7 @@ repositories: - lordshashank - rvagg - silent-cipher - files: + files: .github/workflows/add-issues-and-prs-to-fs-project-board.yml: content: workflows/add-issues-and-prs-to-fs-project-board.yml has_discussions: false @@ -192,7 +192,7 @@ repositories: - rvagg push: - silent-cipher - files: + files: .github/workflows/add-issues-and-prs-to-fs-project-board.yml: content: workflows/add-issues-and-prs-to-fs-project-board.yml has_discussions: false @@ -388,7 +388,7 @@ repositories: - frrist - LexLuthr - nijoe1 - files: + files: .github/workflows/add-issues-and-prs-to-fs-project-board.yml: content: workflows/add-issues-and-prs-to-fs-project-board.yml has_discussions: false @@ -464,7 +464,7 @@ repositories: - silent-cipher - timfong888 - TippyFlitsUK - files: + files: .github/workflows/add-issues-and-prs-to-fs-project-board.yml: content: workflows/add-issues-and-prs-to-fs-project-board.yml has_discussions: false From 64ffc8537572a6d3c355f93e5bac149554485b9c Mon Sep 17 00:00:00 2001 From: Steve Loeppky Date: Tue, 8 Jul 2025 14:58:23 -0700 Subject: [PATCH 3/3] Improved comments. --- .../add-issues-and-prs-to-fs-project-board.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/files/workflows/add-issues-and-prs-to-fs-project-board.yml b/files/workflows/add-issues-and-prs-to-fs-project-board.yml index 8a81597..2a611fd 100644 --- a/files/workflows/add-issues-and-prs-to-fs-project-board.yml +++ b/files/workflows/add-issues-and-prs-to-fs-project-board.yml @@ -1,11 +1,16 @@ -# This file is authored in FilOzone/github-mgmt repository and copied to other repos. +###################################################################################### +# READ THIS FIRST +# This file is authored in FilOzone/github-mgmt repository and copied to other repos via automation. # If you need to make changes, either: -# 1. Make the changes in FilOzone/github-mgmt repository OE -# 2. Make the changes in the local repo and remove the copying from github-mgmt. +# 1. Make the changes in FilOzone/github-mgmt repository OR +# 2. Make the changes in the local repo and remove the automated copying from github-mgmt. +###################################################################################### # 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: