From 894a2dd16463230214c2396b60cca98d75065607 Mon Sep 17 00:00:00 2001 From: Pierre Slamich Date: Wed, 4 Sep 2024 11:00:50 +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 0000000..96ef031 --- /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 80d965d2c83af80524c5149c323f959389a6d55f Mon Sep 17 00:00:00 2001 From: Pierre Slamich Date: Wed, 4 Sep 2024 12:54:25 +0200 Subject: [PATCH 2/2] 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 96ef031..11d1000 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