From 712888c722c12a28e37f37525aa581e032aeace3 Mon Sep 17 00:00:00 2001 From: Pierre Slamich Date: Tue, 29 Oct 2024 17:09:35 +0100 Subject: [PATCH] ci: Create github-projects.yml --- .github/workflows/github-projects.yml | 92 +++++++++++++++++++++++++++ 1 file changed, 92 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..3c74011 --- /dev/null +++ b/.github/workflows/github-projects.yml @@ -0,0 +1,92 @@ +name: Add bugs to the relevant GitHub projects + +on: + issues: + types: + - opened + - edited + - transfered + +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/36 # Add issue to the open pet food facts project + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} + labeled: ๐Ÿพ Open Pet Food Facts + 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/19 # Add issue to the infrastructure project + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} + labeled: infrastructure + 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 + - 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