From eccd9780164ce9cc223ac0cc55a81393c16e917e Mon Sep 17 00:00:00 2001 From: Emir Muhammad Date: Tue, 24 Mar 2026 12:45:42 +0100 Subject: [PATCH 1/2] Add yaml file to add to projects --- .github/workflows/Add_to_projects.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/Add_to_projects.yml diff --git a/.github/workflows/Add_to_projects.yml b/.github/workflows/Add_to_projects.yml new file mode 100644 index 0000000..3cf4ae4 --- /dev/null +++ b/.github/workflows/Add_to_projects.yml @@ -0,0 +1,21 @@ +name: Add to Project (Assigned or Review Requested) + +on: + issues: + types: [assigned] + pull_request: + types: [assigned, review_requested] + +jobs: + add-to-project: + runs-on: ubuntu-latest + if: | + (github.event_name == 'issues' && github.event.assignee.login == 'emmuhamm') || + (github.event_name == 'pull_request' && github.event.action == 'assigned' && github.event.assignee.login == 'emmuhamm') || + (github.event_name == 'pull_request' && github.event.action == 'review_requested' && contains(github.event.requested_reviewers.*.login, 'emmuhamm')) + steps: + - uses: actions/add-to-project@v0.6.1 + with: + project-url: https://github.com/orgs/DUNE-DAQ/projects/10/ + github-token: ${{ secrets.EMMUHAMM_PROJECT_PAT }} + From fca4d069805bb4506f7ee8415d3f45effb726912 Mon Sep 17 00:00:00 2001 From: Emir Muhammad <49058518+emmuhamm@users.noreply.github.com> Date: Tue, 24 Mar 2026 12:04:28 +0000 Subject: [PATCH 2/2] Update .github/workflows/Add_to_projects.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/Add_to_projects.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Add_to_projects.yml b/.github/workflows/Add_to_projects.yml index 3cf4ae4..fbe4e9c 100644 --- a/.github/workflows/Add_to_projects.yml +++ b/.github/workflows/Add_to_projects.yml @@ -12,7 +12,7 @@ jobs: if: | (github.event_name == 'issues' && github.event.assignee.login == 'emmuhamm') || (github.event_name == 'pull_request' && github.event.action == 'assigned' && github.event.assignee.login == 'emmuhamm') || - (github.event_name == 'pull_request' && github.event.action == 'review_requested' && contains(github.event.requested_reviewers.*.login, 'emmuhamm')) + (github.event_name == 'pull_request' && github.event.action == 'review_requested' && contains(github.event.pull_request.requested_reviewers.*.login, 'emmuhamm')) steps: - uses: actions/add-to-project@v0.6.1 with: