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
Copy file name to clipboardExpand all lines: .github/CONTRIBUTING.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ When you're done with your project / bugfix / feature and ready to submit a PR,
19
19
-[ ]**Meet the spec**: Make sure the PR adds functionality that matches the issue you're closing. This is especially important for bounties: sometimes design or implementation details are included in the conversation, so read carefully!
20
20
-[ ]**Close the issue**: If this PR closes an open issue, fill out the "Related issues" section with `Fixes: #$ISSUE_NUMBER`. Ex. For closing issue 418, include the line `Fixes: #418`. If it doesn't close the issue but addresses it partially, just include a reference to the issue number, like `#418`.
21
21
-[ ]**Keep it simple**: Try not to include multiple features in a single PR, and don't make extraneous changes outside the scope of your contribution. All those touched files make things harder to review ;)
22
-
-[ ]**PR against `main`**: Submit your PR against the `main` branch. This is where we merge new features so they get some time to receive extra testing before being pushed to `master` for production. If your PR is a hot-fix that needs to be published urgently, you may submit a PR against the `master` branch, but this PR will receive tighter scrutiny before merging.
22
+
-[ ]**PR against `main`**: Submit your PR against the `main` branch. This is where we merge new features so they get some time to receive extra testing before being pushed to `stable` for production. If your PR is a hot-fix that needs to be published urgently, you may submit a PR against the `stable` branch, but this PR will receive tighter scrutiny before merging.
23
23
-[ ]**Get reviewed by MetaMask Internal Developers**: All PRs require 2 approvals from MetaMask Internal Developers before merging.
24
24
-[ ]**Ensure the PR is correctly labeled.**: More detail about PR labels can be found [here](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md).
25
25
-[ ]**PR Titles**: Must adhere to the [Conventional Commits specification](https://www.conventionalcommits.org)
Copy file name to clipboardExpand all lines: .github/scripts/check-template-and-add-labels.ts
+57-2Lines changed: 57 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -185,6 +185,22 @@ async function main(): Promise<void> {
185
185
labelable,
186
186
invalidPullRequestTemplateLabel,
187
187
);
188
+
189
+
// Skip changelog check if PR has "no-changelog" label
190
+
consthasNoChangelogLabel=labelable.labels?.some(
191
+
(label)=>label.name==="no-changelog"
192
+
);
193
+
194
+
// Require changelog entry
195
+
if(hasNoChangelogLabel){
196
+
console.log(`PR ${labelable.number} has "no-changelog" label. Skipping changelog entry check.`);
197
+
}elseif(!hasChangelogEntry(labelable.body)){
198
+
consterrorMessage=`PR is missing a valid "CHANGELOG entry:" line.`;
199
+
console.log(errorMessage);
200
+
201
+
core.setFailed(errorMessage);
202
+
process.exit(1);
203
+
}
188
204
}else{
189
205
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`;
190
206
console.log(errorMessage);
@@ -274,9 +290,14 @@ function extractReleaseVersionFromBugReportIssueBody(
274
290
constcleanedBody=body.replace(/\r?\n/g,' ');
275
291
276
292
// Extract version from the cleaned body
277
-
constregex=/###Version\s+((.*?)(?=|$))/;
293
+
constregex=/###Version\s+(.*?)(?=\s+###|$)/;
278
294
constversionMatch=cleanedBody.match(regex);
279
-
constversion=versionMatch?.[1];
295
+
constfullVersionString=versionMatch?.[1]?.trim();
296
+
297
+
// Extract just the x.x.x part from the full version string
0 commit comments