issue-lifecycle.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. name: Issue lifecycle
  2. on:
  3. issues:
  4. types:
  5. - opened
  6. - edited
  7. - labeled
  8. - unlabeled
  9. - closed
  10. - reopened
  11. - typed
  12. - untyped
  13. - field_added
  14. - field_removed
  15. pull_request:
  16. types:
  17. - opened
  18. - edited
  19. - reopened
  20. - review_requested
  21. pull_request_review:
  22. types:
  23. - submitted
  24. permissions:
  25. contents: read
  26. concurrency:
  27. group: issue-lifecycle-${{ github.event.issue.number || github.event.pull_request.number || github.run_id }}
  28. cancel-in-progress: false
  29. jobs:
  30. lifecycle:
  31. name: Issue lifecycle
  32. if: >-
  33. (github.event_name != 'pull_request_review' || github.event.review.state == 'changes_requested') &&
  34. (github.event_name != 'pull_request' || github.event.action != 'edited' || github.event.changes.body != null)
  35. runs-on: ubuntu-latest
  36. steps:
  37. - name: Check out trusted policy
  38. uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
  39. with:
  40. ref: ${{ github.event.repository.default_branch }}
  41. persist-credentials: false
  42. - name: Create project token
  43. id: app-token
  44. uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1
  45. with:
  46. client-id: ${{ vars.DSH_ISSUE_APP_CLIENT_ID }}
  47. private-key: ${{ secrets.DSH_ISSUE_APP_PRIVATE_KEY }}
  48. owner: deepseek-harness
  49. repositories: deepseek-harness
  50. - name: Handle repository event
  51. env:
  52. GH_TOKEN: ${{ steps.app-token.outputs.token }}
  53. run: node .github/issue-management/policy.mjs lifecycle