From 5d9c0a8c4abcdee44cb7bdb2d79000cea0c850d4 Mon Sep 17 00:00:00 2001 From: David Lange Date: Tue, 28 Apr 2026 15:47:21 +0530 Subject: [PATCH] add action to populate pull request project table with new or newly reopened pull requests --- .github/workflows/add_to_fcc_pr_project.yaml | 14 ++++++++++++++ .github/workflows/fcc-prs.yaml | 13 +++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/add_to_fcc_pr_project.yaml create mode 100644 .github/workflows/fcc-prs.yaml diff --git a/.github/workflows/add_to_fcc_pr_project.yaml b/.github/workflows/add_to_fcc_pr_project.yaml new file mode 100644 index 000000000..e184d1c46 --- /dev/null +++ b/.github/workflows/add_to_fcc_pr_project.yaml @@ -0,0 +1,14 @@ +on: + workflow_call: +jobs: + add-to-project: + name: Add issue to project + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@v1.0.2 + with: + project-url: https://github.com/orgs/HEP-FCC/projects/7 + github-token: ${{ secrets.FCC_PR_PROJECT_TOKEN }} + #we can eventually add label requirements + #labeled: needs-triage + #label-operator: OR \ No newline at end of file diff --git a/.github/workflows/fcc-prs.yaml b/.github/workflows/fcc-prs.yaml new file mode 100644 index 000000000..ae874bd30 --- /dev/null +++ b/.github/workflows/fcc-prs.yaml @@ -0,0 +1,13 @@ +name: Add PR to FCC PR tracker + +on: + pull_request: + types: + - opened + - reopened + +jobs: + call-ci: + uses: HEP-FCC/FCCSW/.github/workflows/add_to_fcc_pr_project.yml@main + + \ No newline at end of file