From e9e733f8fc3424defe2edfd3abc85d701b334fb0 Mon Sep 17 00:00:00 2001 From: Pierre Slamich Date: Wed, 4 Sep 2024 10:32:23 +0200 Subject: [PATCH 1/2] ci: Create github-projects.yml --- .github/workflows/github-projects.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/github-projects.yml diff --git a/.github/workflows/github-projects.yml b/.github/workflows/github-projects.yml new file mode 100644 index 0000000000..96ef031309 --- /dev/null +++ b/.github/workflows/github-projects.yml @@ -0,0 +1,12 @@ + - uses: actions/add-to-project@main + with: + project-url: https://github.com/orgs/openfoodfacts/projects/132 # Add issue to the Top upvoted issues board + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} + labeled: ⭐ top issue, 👍 Top 10 Issue! + label-operator: OR + - uses: actions/add-to-project@main + with: + project-url: https://github.com/orgs/openfoodfacts/projects/57 # Add issue to the Most impactful issues board + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} + labeled: 🎯 P0, 🎯 P1 + label-operator: OR From 996bd6098573d8ac17ed0be63c5a43cdd1bac66d Mon Sep 17 00:00:00 2001 From: Pierre Slamich Date: Wed, 4 Sep 2024 12:59:03 +0200 Subject: [PATCH 2/2] ci: Update github-projects.yml --- .github/workflows/github-projects.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/github-projects.yml b/.github/workflows/github-projects.yml index 96ef031309..11d1000fe2 100644 --- a/.github/workflows/github-projects.yml +++ b/.github/workflows/github-projects.yml @@ -1,3 +1,19 @@ +name: Add bugs and PRs to the relevant GitHub Projects + +on: + issues: + types: + - opened + - labeled + pull_request: + types: + - opened + - labeled +jobs: + add-to-project: + name: Add issue to project + runs-on: ubuntu-latest + steps: - uses: actions/add-to-project@main with: project-url: https://github.com/orgs/openfoodfacts/projects/132 # Add issue to the Top upvoted issues board