Преглед изворни кода

Fix assign action in use (#1400)

I accidentally put in one I'd considered, instead of the one I'd decided was probably the best fit, and the names are so similar I didn't notice.

NOTE: This still isn't totally working, but I think it will when we go public.
Jon Ross-Perkins пре 3 година
родитељ
комит
7d253dc08d
1 измењених фајлова са 37 додато и 4 уклоњено
  1. 37 4
      .github/workflows/assign_prs.yaml

+ 37 - 4
.github/workflows/assign_prs.yaml

@@ -30,19 +30,19 @@ jobs:
 
       - id: assign-leads
         if: steps.changes.outputs.leads == 'true'
-        uses: shufo/auto-assign-reviewer-by-files@v1.1.3
+        uses: kentaro-m/auto-assign-action@v1.2.1
         with:
           configuration-path: '.github/assign_prs/leads.yaml'
 
       - id: assign-explorer
         if: steps.changes.outputs.explorer == 'true'
-        uses: shufo/auto-assign-reviewer-by-files@v1.1.3
+        uses: kentaro-m/auto-assign-action@v1.2.1
         with:
           configuration-path: '.github/assign_prs/explorer.yaml'
 
       - id: assign-toolchain
         if: steps.changes.outputs.toolchain == 'true'
-        uses: shufo/auto-assign-reviewer-by-files@v1.1.3
+        uses: kentaro-m/auto-assign-action@v1.2.1
         with:
           configuration-path: '.github/assign_prs/toolchain.yaml'
 
@@ -51,6 +51,39 @@ jobs:
           steps.changes.outputs.leads != 'true' &&
           steps.changes.outputs.explorer != 'true' &&
           steps.changes.outputs.toolchain != 'true'
-        uses: shufo/auto-assign-reviewer-by-files@v1.1.3
+        uses: kentaro-m/auto-assign-action@v1.2.1
         with:
           configuration-path: '.github/assign_prs/fallback.yaml'
+# TODO: Consider the below. While private it currently fails more sharply, but
+# may be a better post-public choice.
+#
+#      - id: assign-leads
+#        if: steps.changes.outputs.leads == 'true'
+#        uses: hkusu/review-assign-action@v1.3.0
+#        with:
+#          reviewers: KateGregory, chandlerc, zygoloid
+#          max-num-of-reviewers: 1
+#
+#      - id: assign-explorer
+#        if: steps.changes.outputs.explorer == 'true'
+#        uses: hkusu/review-assign-action@v1.3.0
+#        with:
+#          reviewers: geoffromer, jonmeow, jsiek, zygoloid
+#          max-num-of-reviewers: 1
+#
+#      - id: assign-toolchain
+#        if: steps.changes.outputs.toolchain == 'true'
+#        uses: hkusu/review-assign-action@v1.3.0
+#        with:
+#          reviewers: chandlerc, jonmeow, zygoloid
+#          max-num-of-reviewers: 1
+#
+#      - id: assign-fallback
+#        if:
+#          steps.changes.outputs.leads != 'true' &&
+#          steps.changes.outputs.explorer != 'true' &&
+#          steps.changes.outputs.toolchain != 'true'
+#        uses: hkusu/review-assign-action@v1.3.0
+#        with:
+#          reviewers: chandlerc, jonmeow, josh11b, zygoloid
+#          max-num-of-reviewers: 1