forked from carbon-language/carbon-lang
-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (83 loc) · 2.88 KB
/
assign_prs.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Part of the Carbon Language project, under the Apache License v2.0 with LLVM
# Exceptions. See /LICENSE for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
name: 'Auto Assign'
on:
pull_request:
types: [opened, ready_for_review]
jobs:
assign_reviewer:
runs-on: ubuntu-latest
steps:
- id: path-filter
uses: dorny/paths-filter@v2
with:
filters: |
leads:
- '*.md'
- 'LICENSE'
- 'docs/project/principles/*'
- 'docs/project/evolution.md'
- 'docs/project/goals.md'
- 'docs/project/roadmap.md'
- 'proposals/*.md'
explorer:
- 'explorer/**'
toolchain:
- 'toolchain/**'
- id: assign-leads
if: steps.changes.outputs.leads == 'true'
uses: kentaro-m/[email protected]
with:
configuration-path: '.github/assign_prs/leads.yaml'
- id: assign-explorer
if: steps.changes.outputs.explorer == 'true'
uses: kentaro-m/[email protected]
with:
configuration-path: '.github/assign_prs/explorer.yaml'
- id: assign-toolchain
if: steps.changes.outputs.toolchain == 'true'
uses: kentaro-m/[email protected]
with:
configuration-path: '.github/assign_prs/toolchain.yaml'
- id: assign-fallback
if:
steps.changes.outputs.leads != 'true' &&
steps.changes.outputs.explorer != 'true' &&
steps.changes.outputs.toolchain != 'true'
uses: kentaro-m/[email protected]
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/[email protected]
# with:
# reviewers: KateGregory, chandlerc, zygoloid
# max-num-of-reviewers: 1
#
# - id: assign-explorer
# if: steps.changes.outputs.explorer == 'true'
# uses: hkusu/[email protected]
# with:
# reviewers: geoffromer, jonmeow, jsiek, zygoloid
# max-num-of-reviewers: 1
#
# - id: assign-toolchain
# if: steps.changes.outputs.toolchain == 'true'
# uses: hkusu/[email protected]
# 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/[email protected]
# with:
# reviewers: chandlerc, jonmeow, josh11b, zygoloid
# max-num-of-reviewers: 1