diff --git a/.github/workflows/github-projects.yml b/.github/workflows/github-projects.yml new file mode 100644 index 0000000..875a795 --- /dev/null +++ b/.github/workflows/github-projects.yml @@ -0,0 +1,97 @@ +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 + - 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