triage-incoming.yml 839 B

12345678910111213141516171819202122232425262728
  1. name: Move new issues into the issue triage board
  2. on:
  3. issues:
  4. types: [ opened ]
  5. jobs:
  6. add_new_issues:
  7. name: Add new issues to the triage board
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: octokit/graphql-action@v2.x
  11. id: add_to_project
  12. with:
  13. headers: '{"GraphQL-Features": "projects_next_graphql"}'
  14. query: |
  15. mutation add_to_project($projectid:ID!,$contentid:ID!) {
  16. addProjectV2ItemById(input: {projectId: $projectid contentId: $contentid}) {
  17. item {
  18. id
  19. }
  20. }
  21. }
  22. projectid: ${{ env.PROJECT_ID }}
  23. contentid: ${{ github.event.issue.node_id }}
  24. env:
  25. PROJECT_ID: "PVT_kwDOAIB0Bs4AFDdZ"
  26. GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}