Skip to content

Commit 6e47e40

Browse files
Remove the - before the PR name
1 parent 84ebbe4 commit 6e47e40

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/libs/GithubUtils.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,15 @@ class GithubUtils {
126126
}
127127
PRListSection = PRListSection[1];
128128
const unverifiedPRs = _.map(
129-
[...PRListSection.matchAll(new RegExp(`- (${PULL_REQUEST_REGEX.source})[\r\n]\\s+- \\[ \\] QA`, 'g'))],
129+
[...PRListSection.matchAll(new RegExp(`(${PULL_REQUEST_REGEX.source})[\r\n]\\s+- \\[ \\] QA`, 'g'))],
130130
match => ({
131131
url: match[1],
132132
number: GithubUtils.getPullRequestNumberFromURL(match[1]),
133133
isVerified: false,
134134
}),
135135
);
136136
const verifiedPRs = _.map(
137-
[...PRListSection.matchAll(new RegExp(`- (${PULL_REQUEST_REGEX.source})[\r\n]\\s+- \\[x\\] QA`, 'g'))],
137+
[...PRListSection.matchAll(new RegExp(`(${PULL_REQUEST_REGEX.source})[\r\n]\\s+- \\[x\\] QA`, 'g'))],
138138
match => ({
139139
url: match[1],
140140
number: GithubUtils.getPullRequestNumberFromURL(match[1]),
@@ -162,15 +162,15 @@ class GithubUtils {
162162
}
163163
deployBlockerSection = deployBlockerSection[1];
164164
const unresolvedDeployBlockers = _.map(
165-
[...deployBlockerSection.matchAll(new RegExp(`- (${ISSUE_OR_PULL_REQUEST_REGEX.source})[\r\n]\\s+- \\[ \\] QA`, 'g'))],
165+
[...deployBlockerSection.matchAll(new RegExp(`(${ISSUE_OR_PULL_REQUEST_REGEX.source})[\r\n]\\s+- \\[ \\] QA`, 'g'))],
166166
match => ({
167167
url: match[1],
168168
number: GithubUtils.getIssueOrPullRequestNumberFromURL(match[1]),
169169
isResolved: false,
170170
}),
171171
);
172172
const resolvedDeployBlockers = _.map(
173-
[...deployBlockerSection.matchAll(new RegExp(`- (${ISSUE_OR_PULL_REQUEST_REGEX.source})[\r\n]\\s+- \\[x\\] QA`, 'g'))],
173+
[...deployBlockerSection.matchAll(new RegExp(`(${ISSUE_OR_PULL_REQUEST_REGEX.source})[\r\n]\\s+- \\[x\\] QA`, 'g'))],
174174
match => ({
175175
url: match[1],
176176
number: GithubUtils.getIssueOrPullRequestNumberFromURL(match[1]),
@@ -227,7 +227,7 @@ class GithubUtils {
227227
if (!_.isEmpty(sortedPRList)) {
228228
issueBody += '\r\n**This release contains changes from the following pull requests:**';
229229
_.each(sortedPRList, (URL) => {
230-
issueBody += `\r\n\r\n- ${URL}`;
230+
issueBody += `\r\n\r\n${URL}`;
231231
issueBody += _.contains(verifiedPRList, URL) ? '\r\n - [x] QA' : '\r\n - [ ] QA';
232232
issueBody += _.contains(accessabilityPRList, URL) ? '\r\n - [x] Accessibility' : '\r\n - [ ] Accessibility';
233233
});
@@ -237,7 +237,7 @@ class GithubUtils {
237237
if (!_.isEmpty(deployBlockers)) {
238238
issueBody += '\r\n\r\n\r\n**Deploy Blockers:**';
239239
_.each(sortedDeployBlockers, (URL) => {
240-
issueBody += `\r\n\r\n- ${URL}`;
240+
issueBody += `\r\n\r\n${URL}`;
241241
issueBody += _.contains(resolvedDeployBlockers, URL) ? '\r\n - [x] QA' : '\r\n - [ ] QA';
242242
issueBody += _.contains(accessabilityPRList, URL) ? '\r\n - [x] Accessibility' : '\r\n - [ ] Accessibility';
243243
});
@@ -321,7 +321,7 @@ class GithubUtils {
321321
static getReleaseBody(pullRequests) {
322322
return _.map(
323323
pullRequests,
324-
number => `- ${this.getPullRequestURLFromNumber(number)}`,
324+
number => `${this.getPullRequestURLFromNumber(number)}`,
325325
).join('\r\n');
326326
}
327327

0 commit comments

Comments
 (0)