File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 80
80
81
81
// Find lines that match ^(@[a-zA-Z0-9]+)(\s*#.*)?\n$ and extract the usernames
82
82
// const regex = /^(@[a-zA-Z0-9]+)(\s*#.*)?\n$/; // TODO: Fix this regex.
83
- const regex = /^(.*?)$/;
83
+ const regex = /^@ (.*?)$/;
84
84
const reviewer_candidates = fileContentsText
85
85
.split('\n')
86
86
.map(line => line.trim())
@@ -90,18 +90,19 @@ jobs:
90
90
console.log('reviewer_candidates: ', reviewer_candidates);
91
91
92
92
if (reviewer_candidates.length < 1) {
93
- const error_msg = 'ERROR: Could not find any reviewer_candidates';
94
- console.error(error_msg );
95
- throw new Error(error_msg );
93
+ const msg = 'ERROR: Could not find any reviewer_candidates';
94
+ console.error(msg );
95
+ throw new Error(msg );
96
96
}
97
97
98
- if (isCollaborator) {
98
+ if (isCollaborator == true ) {
99
99
// The PR author is a committer, so we skip assigning them
100
100
console.log('Skipping PR authored by committer: ', prAuthor);
101
101
return;
102
102
}
103
103
104
104
// Assign random committer
105
+ return; // TODO: Delete this line.
105
106
await github.rest.issues.addAssignees({
106
107
owner: context.repo.owner,
107
108
repo: context.repo.repo,
You can’t perform that action at this time.
0 commit comments