From 0c1e8cc42c11db2c46d93d8eeb07b7898f7165eb Mon Sep 17 00:00:00 2001 From: Pierre Slamich Date: Sat, 16 Nov 2024 12:23:56 +0100 Subject: [PATCH 1/2] ci: send translations PRs to the translation project --- .github/workflows/github-projects.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/github-projects.yml b/.github/workflows/github-projects.yml index f75e08ecb1..f09428b377 100644 --- a/.github/workflows/github-projects.yml +++ b/.github/workflows/github-projects.yml @@ -110,3 +110,9 @@ jobs: github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} labeled: "autorelease:pending" label-operator: OR + - uses: actions/add-to-project@main + with: + project-url: https://github.com/orgs/openfoodfacts/projects/136 # Add issue to the Translations project + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} + labeled: 🌐 Translations, translations + label-operator: OR From 7c43b6b7af2f81cd156c4f1b3904dd7f1416d8e9 Mon Sep 17 00:00:00 2001 From: Pierre Slamich Date: Sat, 16 Nov 2024 12:36:00 +0100 Subject: [PATCH 2/2] ci: Update github-projects.yml --- .github/workflows/github-projects.yml | 37 ++++++++++++++++++++++++--- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/.github/workflows/github-projects.yml b/.github/workflows/github-projects.yml index f09428b377..1c656d0770 100644 --- a/.github/workflows/github-projects.yml +++ b/.github/workflows/github-projects.yml @@ -4,11 +4,42 @@ on: issues: types: - opened + - edited + - deleted + - transferred + - pinned + - unpinned + - closed + - reopened + - assigned + - unassigned - labeled - pull_request: + - unlabeled + - locked + - unlocked + - milestoned + - demilestoned + + pull_request_target: types: - - opened - - labeled + - assigned + - unassigned + - labeled + - unlabeled + - opened + - edited + - closed + - reopened + - synchronize + - converted_to_draft + - ready_for_review + - locked + - unlocked + - review_requested + - review_request_removed + - auto_merge_enabled + - auto_merge_disabled + jobs: add-to-project: name: Add issue to project