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..2a611fd --- /dev/null +++ b/files/workflows/add-issues-and-prs-to-fs-project-board.yml @@ -0,0 +1,32 @@ +###################################################################################### +# 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 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: + 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..62ce4dc 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