You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary:
Before, I was just munging the label to the name, so I wouldn't have
to change a lot of code. This didn't work because the name was used
in places where the code needs it to actually be a name (e.g. when
telling github what reviewers to add to the PR).
So now I store names and labels separately, and just print the label
explicitly when emitting the comment text. This also gives me more
control over where the label goes; all in all a more maintainable
arrangement.
Issue: https://khanacademy.atlassian.net/browse/FEI-5970
## Test plan:
yarn jest
Author: csilvers
Reviewers: lillialexis, csilvers, MiguelCastillo
Required Reviewers:
Approved By: lillialexis
Checks: ✅ gerald, ✅ lint_and_unit, ✅ autofix, ✅ build_index
Pull Request URL: #90
Copy file name to clipboardExpand all lines: setup-files/NOTIFIED
+7
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,10 @@ Examples:
7
7
# This rule will notify @owner1 on changes to all files
8
8
# **/* @owner1
9
9
10
+
# This rule will notify @owner1 on changes to all files, and the rule
11
+
# has a label "allfiles", which will be included in the github PR info.
12
+
# allfiles: **/* @owner1
13
+
10
14
# This rule will notify @owner1 and @Org/team1 on changes to all .js files
11
15
# **/*.js @owner1 @Org/team1
12
16
@@ -37,6 +41,9 @@ Regex Examples:
37
41
# This rule will notify @owner1 on changes that include the word "gerald"
38
42
# "/gerald/ig" @owner1
39
43
44
+
# This rule will notify @owner1 on changes that include the word "gerald", and has a label "used_gerald", which will be included in the github PR info.
45
+
# used_gerald: "/gerald/ig" @owner1
46
+
40
47
# This rule will notify @owner1 on changes that *add* the word "gerald"
Copy file name to clipboardExpand all lines: setup-files/REVIEWERS
+6
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,9 @@ Examples:
7
7
# This rule will request @owner1 for review on changes to all files. This rule will also request @owner2 for a blocking review.
8
8
# **/* @owner1 @owner2!
9
9
10
+
# This rule will request @owner1 for review on changes to all files, and the rule has a label "allfiles", which will be included in the github PR info.
11
+
# allfiles: **/* @owner1
12
+
10
13
# This rule will request @owner1 and @Org/team1 for review on changes to all .js files
11
14
# **/*.js @owner1 @Org/team1
12
15
@@ -37,6 +40,9 @@ Regex Examples:
37
40
# This rule will request @owner1 for review on changes that include the word "gerald"
38
41
# "/gerald/ig" @owner1
39
42
43
+
# This rule will request @owner1 for review on changes that include the word "gerald", and has a label "used_gerald", which will be included in the github PR info.
44
+
# used_gerald: "/gerald/ig" @owner1
45
+
40
46
# This rule will request @owner1 for review on changes that *add* the word "gerald"
0 commit comments