assign_prs.yaml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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:
  7. types: [opened, ready_for_review]
  8. jobs:
  9. assign_reviewer:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - id: path-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.changes.outputs.leads == 'true'
  30. uses: kentaro-m/auto-assign-action@v1.2.1
  31. with:
  32. configuration-path: '.github/assign_prs/leads.yaml'
  33. - id: assign-explorer
  34. if: steps.changes.outputs.explorer == 'true'
  35. uses: kentaro-m/auto-assign-action@v1.2.1
  36. with:
  37. configuration-path: '.github/assign_prs/explorer.yaml'
  38. - id: assign-toolchain
  39. if: steps.changes.outputs.toolchain == 'true'
  40. uses: kentaro-m/auto-assign-action@v1.2.1
  41. with:
  42. configuration-path: '.github/assign_prs/toolchain.yaml'
  43. - id: assign-fallback
  44. if:
  45. steps.changes.outputs.leads != 'true' &&
  46. steps.changes.outputs.explorer != 'true' &&
  47. steps.changes.outputs.toolchain != 'true'
  48. uses: kentaro-m/auto-assign-action@v1.2.1
  49. with:
  50. configuration-path: '.github/assign_prs/fallback.yaml'
  51. # TODO: Consider the below. While private it currently fails more sharply, but
  52. # may be a better post-public choice.
  53. #
  54. # - id: assign-leads
  55. # if: steps.changes.outputs.leads == 'true'
  56. # uses: hkusu/review-assign-action@v1.3.0
  57. # with:
  58. # reviewers: KateGregory, chandlerc, zygoloid
  59. # max-num-of-reviewers: 1
  60. #
  61. # - id: assign-explorer
  62. # if: steps.changes.outputs.explorer == 'true'
  63. # uses: hkusu/review-assign-action@v1.3.0
  64. # with:
  65. # reviewers: geoffromer, jonmeow, jsiek, zygoloid
  66. # max-num-of-reviewers: 1
  67. #
  68. # - id: assign-toolchain
  69. # if: steps.changes.outputs.toolchain == 'true'
  70. # uses: hkusu/review-assign-action@v1.3.0
  71. # with:
  72. # reviewers: chandlerc, jonmeow, zygoloid
  73. # max-num-of-reviewers: 1
  74. #
  75. # - id: assign-fallback
  76. # if:
  77. # steps.changes.outputs.leads != 'true' &&
  78. # steps.changes.outputs.explorer != 'true' &&
  79. # steps.changes.outputs.toolchain != 'true'
  80. # uses: hkusu/review-assign-action@v1.3.0
  81. # with:
  82. # reviewers: chandlerc, jonmeow, josh11b, zygoloid
  83. # max-num-of-reviewers: 1