Skip to content

Commit 743b5b8

Browse files
authored
ci: create add-issues-and-prs-to-fs-project-board.yml (#41)
Followup to FilOzone/github-mgmt#10
1 parent 40329d1 commit 743b5b8

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
######################################################################################
2+
# READ THIS FIRST
3+
# This file is authored in filecoin-project/github-mgmt repository and MANUALLY copied to other repos.
4+
# See https://github.com/filecoin-project/github-mgmt/blob/master/files/workflows/add-issues-and-prs-to-fs-project-board.yml for more info.
5+
######################################################################################
6+
7+
# This action adds all issues and PRs with a "team/fs-wg" label to the FS project board.
8+
# It is used to keep the FS project board up to date with the issues and PRs.
9+
# It is triggered by the issue and PR events.
10+
# It assumes a `FILOZZY_CI_ADD_TO_PROJECT` secret is set in the repo.
11+
# 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
12+
name: Add issues and PRs to FS project board
13+
14+
on:
15+
issues:
16+
types:
17+
- labeled
18+
# Using "pull_request_target" instead of "pull_request" to support PRs from forks.
19+
# Workflow runs triggered on PRs from forks do not have access to secrets, so "github-token" input below would otherwise be empty.
20+
# This action does not check out nor execute user code so we should be safe.
21+
# We also hardcode to specific hash to ensure no unintended changes underneath us.
22+
pull_request_target:
23+
types:
24+
- labeled
25+
26+
jobs:
27+
add-to-project:
28+
name: Add all "team/fs-wg" issues and PRs to project
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/add-to-project@244f685bbc3b7adfa8466e08b698b5577571133e # v1.0.2
32+
with:
33+
project-url: https://github.com/orgs/FilOzone/projects/14
34+
github-token: ${{ secrets.FILOZZY_CI_ADD_TO_PROJECT }}
35+
labeled: team/fs-wg

0 commit comments

Comments
 (0)