diff --git a/.github/workflows/github-projects.yml b/.github/workflows/github-projects.yml new file mode 100644 index 00000000..a2c3995e --- /dev/null +++ b/.github/workflows/github-projects.yml @@ -0,0 +1,24 @@ +name: Add bugs to the relevant GitHub Projects +on: + issues: + types: + - opened + - labeled + +jobs: + add-to-design-project: + name: Add issues to the 🎨 openfoodfacts-design or 📚 documentation 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: 🎨 Mockup available, 🎨 Mockup required + 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