-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathNOTIFIED
67 lines (42 loc) · 3.07 KB
/
NOTIFIED
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
[NOTIFY RULES]
Be sure to read through https://khanacademy.atlassian.net/wiki/spaces/FRONTEND/pages/598278672/Gerald+Documentation before adding any rules!
Examples:
# This rule will notify @owner1 on changes to all files
# **/* @owner1
# This rule will notify @owner1 on changes to all files, and the rule
# has a label "allfiles", which will be included in the github PR info.
# allfiles: **/* @owner1
# This rule will notify @owner1 and @Org/team1 on changes to all .js files
# **/*.js @owner1 @Org/team1
# This rule will notify @owner1 and @owner2 on changes to all files in the src/ directory. It will not match files in nested directories, such as src/about/about.js
# src/* @owner1 @owner2
# This rule will notify @owner1 and @owner2 on changes to all files in the src/ directory, recursively. In contrast to the rule above, it WILL match src/about/about.js
# src/** @owner1 @owner2
# This rule will notify @owner1 on changes to all files that have the word "gerald" in its name
# **/*gerald* @owner1
# The following rules will both notify @owner1 on changes to any file that ends with .js, .txt, or .yml
# **/*.(js|txt|yml) @owner1 # This is in the style of Regex groups (https://www.regular-expressions.info/brackets.html)
# **/*.{js,txt,yml} @owner1 # This is in the style of Bash brace expansions (https://github.com/micromatch/braces)
# This rule will notify @owner1 on changes made to main.js or main.test.js. Read more about extended globbing: https://github.com/micromatch/micromatch#extglobs
# main?(.test).js @owner1
# This rule will notify @owner1 on changes made to file-1, file-2, and file-3.
# file-[1-5] @owner1 # This is in the style of Regex character glasses (https://github.com/micromatch/micromatch#regex-character-classes)
# This rule will notify @owner1 on changes made to file-0, file-2, file-3, ..., file-9.
# file-[[:digit:]] @owner1 # This uses POSIX character classes (https://github.com/micromatch/picomatch#posix-brackets)
Regex Examples:
# This rule will notify @owner1 on changes that include the word "gerald"
# "/gerald/ig" @owner1
# 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.
# used_gerald: "/gerald/ig" @owner1
# This rule will notify @owner1 on changes that *add* the word "gerald"
# "/^\+.*gerald/igm" @owner1
# This rule will notify @owner1 on changes that *remove* the word "gerald"
# "/^\-.*gerald/igm" @owner1
# This rule will notify @owner1 on changes that *add OR remove* the word "gerald"
# "/^(\-|\+).*gerald/igm" @owner1
----Everything above this line will be ignored!----
[ON PULL REQUEST] (DO NOT DELETE THIS LINE)
# Notify these people for any changes made to any file
[ON PUSH WITHOUT PULL REQUEST] (DO NOT DELETE THIS LINE)
# Adding yourself below this line will notify you of any changes to this branch that don't go through a pull-request.
# This is analogous to Herald's "Differential Revision is False" condition.