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
// Skip changelog check if PR has "no-changelog" label
195
-
consthasNoChangelogLabel=labelable.labels?.some(
196
-
(label)=>label.name==="no-changelog"
197
-
);
198
-
199
-
// Require changelog entry
200
-
if(hasNoChangelogLabel){
201
-
console.log(`PR ${labelable.number} has "no-changelog" label. Skipping changelog entry check.`);
202
-
}elseif(!hasChangelogEntry(labelable.body)){
203
-
consterrorMessage=`PR is missing a valid "CHANGELOG entry:" line.`;
204
-
console.log(errorMessage);
205
-
206
-
core.setFailed(errorMessage);
207
-
process.exit(1);
208
-
}
209
209
}else{
210
210
consterrorMessage=`PR body does not match template ('pull-request-template.md').\n\nMake sure PR's body includes all section titles.\n\nSections titles are listed here: https://github.com/MetaMask/metamask-extension/blob/main/.github/scripts/shared/template.ts#L40-L47`;
0 commit comments