From 6e39a7d1a7c239bffee85fa4f13b46b6c03121d7 Mon Sep 17 00:00:00 2001 From: Pierre Slamich Date: Mon, 9 Sep 2024 12:19:37 +0200 Subject: [PATCH 1/2] ci: Create github-projects.yml --- .github/workflows/github-projects.yml | 43 +++++++++++++++++++++++++++ 1 file changed, 43 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..7241c12 --- /dev/null +++ b/.github/workflows/github-projects.yml @@ -0,0 +1,43 @@ +name: Add issues to the relevant GitHub Projects project + +on: + issues: + types: + - opened + - labeled + - edited +jobs: + add-to-project: + name: Add issues to the relevant GitHub Projects project + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@main + with: + project-url: https://github.com/orgs/openfoodfacts/projects/11 + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} + labeled: ๐ŸŽจ Mockups available, ๐ŸŽจ Mockup required + label-operator: OR + - uses: actions/add-to-project@main + with: + project-url: https://github.com/orgs/openfoodfacts/projects/4 # Add issue to the packaging project + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} + labeled: packaging input + label-operator: OR + - uses: actions/add-to-project@main + with: + project-url: https://github.com/orgs/openfoodfacts/projects/35 # Add issue to the a11y project + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} + labeled: accessibility + label-operator: OR + - 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 52dd3bca1813f103d3be131e96d2af50d6354be1 Mon Sep 17 00:00:00 2001 From: Pierre Slamich Date: Mon, 9 Sep 2024 12:46:10 +0200 Subject: [PATCH 2/2] Update github-projects.yml --- .github/workflows/github-projects.yml | 54 +++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/.github/workflows/github-projects.yml b/.github/workflows/github-projects.yml index 7241c12..875a795 100644 --- a/.github/workflows/github-projects.yml +++ b/.github/workflows/github-projects.yml @@ -41,3 +41,57 @@ jobs: github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} labeled: ๐ŸŽฏ P0, ๐ŸŽฏ P1 label-operator: OR + - uses: actions/add-to-project@main + with: + project-url: https://github.com/orgs/openfoodfacts/projects/43 # Add issue to the open products facts project + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} + labeled: ๐Ÿ“ธ Open Products Facts + label-operator: OR + - uses: actions/add-to-project@main + with: + project-url: https://github.com/orgs/openfoodfacts/projects/37 # Add issue to the open beauty facts project + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} + labeled: ๐Ÿงด Open Beauty Facts + label-operator: OR + - uses: actions/add-to-project@main + with: + project-url: https://github.com/orgs/openfoodfacts/projects/4 # Add issue to the packaging project + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} + labeled: ๐Ÿ“ฆ Packaging + label-operator: OR + - uses: actions/add-to-project@main + with: + project-url: https://github.com/orgs/openfoodfacts/projects/25 # Add issue to the documentation project + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} + labeled: ๐Ÿ“š Documentation + label-operator: OR + - uses: actions/add-to-project@main + with: + project-url: https://github.com/orgs/openfoodfacts/projects/5 # Add issue to the folksonomy project + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} + labeled: ๐Ÿท๏ธ Folksonomy Project + label-operator: OR + - uses: actions/add-to-project@main + with: + project-url: https://github.com/orgs/openfoodfacts/projects/44 # Add issue to the data quality project + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} + labeled: ๐Ÿงฝ Data quality + label-operator: OR + - uses: actions/add-to-project@main + with: + project-url: https://github.com/orgs/openfoodfacts/projects/82 # Add issue to the search project + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} + labeled: ๐Ÿ”Ž Search + label-operator: OR + - uses: actions/add-to-project@main + with: + project-url: https://github.com/orgs/openfoodfacts/projects/41 # Add issue to the producer platform project + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} + labeled: ๐Ÿญ Producers Platform + label-operator: OR + - uses: actions/add-to-project@main + with: + project-url: https://github.com/orgs/openfoodfacts/projects/92 # Add issue to the Nutri-Score project + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} + labeled: ๐Ÿšฆ Nutri-Score + label-operator: OR