From f5c3d4bc56841bb2d83ed9118b732c1b3ce476fd Mon Sep 17 00:00:00 2001 From: Pierre Slamich Date: Wed, 2 Oct 2024 16:50:54 +0200 Subject: [PATCH] ci: Update github-projects.yml --- .github/workflows/github-projects.yml | 86 ++++++++++++++++++++++++++- 1 file changed, 84 insertions(+), 2 deletions(-) diff --git a/.github/workflows/github-projects.yml b/.github/workflows/github-projects.yml index 241c673..4776e4b 100644 --- a/.github/workflows/github-projects.yml +++ b/.github/workflows/github-projects.yml @@ -4,18 +4,88 @@ on: issues: types: - opened - - labelled - + - labeled + pull_request: + types: + - opened + - labeled jobs: add-to-project: name: Add issue to project runs-on: ubuntu-latest + if: github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' steps: - uses: actions/add-to-project@main with: project-url: https://github.com/orgs/openfoodfacts/projects/19 github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} label-operator: AND + - 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 @@ -28,3 +98,15 @@ 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/105 # Add issue to the Prices project + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} + labeled: ๐Ÿ’ธ Prices + label-operator: OR + - uses: actions/add-to-project@main + with: + project-url: https://github.com/orgs/openfoodfacts/projects/133 # Add issue to the Releases project + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} + labeled: "autorelease:pending" + label-operator: OR