assign_prs.yaml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. # Exceptions. See /LICENSE for license information.
  3. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. name: 'Auto Assign'
  5. on:
  6. pull_request_target:
  7. types: [opened, ready_for_review]
  8. jobs:
  9. assign_reviewer:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - id: filter
  13. uses: dorny/paths-filter@v2
  14. with:
  15. filters: |
  16. leads:
  17. - '*.md'
  18. - 'LICENSE'
  19. - 'docs/project/principles/*'
  20. - 'docs/project/evolution.md'
  21. - 'docs/project/goals.md'
  22. - 'docs/project/roadmap.md'
  23. - 'proposals/*.md'
  24. explorer:
  25. - 'explorer/**'
  26. toolchain:
  27. - 'toolchain/**'
  28. - id: assign-leads
  29. if: steps.filter.outputs.leads == 'true'
  30. uses: hkusu/review-assign-action@v1.3.0
  31. with:
  32. reviewers: KateGregory, chandlerc, zygoloid
  33. max-num-of-reviewers: 1
  34. - id: assign-explorer
  35. if: steps.filter.outputs.explorer == 'true'
  36. uses: hkusu/review-assign-action@v1.3.0
  37. with:
  38. reviewers: geoffromer, jonmeow, zygoloid
  39. max-num-of-reviewers: 1
  40. - id: assign-toolchain
  41. if: steps.filter.outputs.toolchain == 'true'
  42. uses: hkusu/review-assign-action@v1.3.0
  43. with:
  44. reviewers: chandlerc, jonmeow, zygoloid
  45. max-num-of-reviewers: 1
  46. - id: assign-fallback
  47. if: |
  48. steps.filter.outputs.leads != 'true' &&
  49. steps.filter.outputs.explorer != 'true' &&
  50. steps.filter.outputs.toolchain != 'true'
  51. uses: hkusu/review-assign-action@v1.3.0
  52. with:
  53. reviewers: chandlerc, jonmeow, josh11b, zygoloid
  54. max-num-of-reviewers: 1