|
12 | 12 | except ImportError:
|
13 | 13 | import urllib.request as urllib2
|
14 | 14 |
|
15 |
| -# List of people to ping when the status of a tool changed. |
| 15 | +# List of people to ping when the status of a tool or a book changed. |
16 | 16 | MAINTAINERS = {
|
17 | 17 | 'miri': '@oli-obk @RalfJung @eddyb',
|
18 | 18 | 'clippy-driver': '@Manishearth @llogiq @mcarton @oli-obk @phansch',
|
|
22 | 22 | 'nomicon': '@frewsxcv @Gankro',
|
23 | 23 | 'reference': '@steveklabnik @Havvy @matthewjasper @alercah',
|
24 | 24 | 'rust-by-example': '@steveklabnik @marioidival @projektir',
|
| 25 | + 'embedded-book': '', |
25 | 26 | }
|
26 | 27 |
|
27 | 28 | REPOS = {
|
|
33 | 34 | 'nomicon': 'https://github.com/rust-lang-nursery/nomicon',
|
34 | 35 | 'reference': 'https://github.com/rust-lang-nursery/reference',
|
35 | 36 | 'rust-by-example': 'https://github.com/rust-lang/rust-by-example',
|
| 37 | + 'embedded-book': 'https://github.com/rust-embedded/book', |
36 | 38 | }
|
37 | 39 |
|
38 | 40 |
|
@@ -70,7 +72,7 @@ def issue(
|
70 | 72 |
|
71 | 73 | cc @{}, the PR reviewer, and @rust-lang/compiler -- nominating for prioritization.
|
72 | 74 |
|
73 |
| - ''').format(relevant_pr_number, tool, REPOS[tool], relevant_pr_user, pr_reviewer), |
| 75 | + ''').format(relevant_pr_number, tool, REPOS.get(tool), relevant_pr_user, pr_reviewer), |
74 | 76 | 'title': '`{}` no longer builds after {}'.format(tool, relevant_pr_number),
|
75 | 77 | 'assignees': assignees,
|
76 | 78 | 'labels': ['T-compiler', 'I-nominated'],
|
@@ -137,7 +139,7 @@ def update_latest(
|
137 | 139 | if build_failed:
|
138 | 140 | try:
|
139 | 141 | issue(
|
140 |
| - tool, MAINTAINERS.get(tool), |
| 142 | + tool, MAINTAINERS.get(tool, ''), |
141 | 143 | relevant_pr_number, relevant_pr_user, pr_reviewer,
|
142 | 144 | )
|
143 | 145 | except IOError as e:
|
|
0 commit comments