Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Type Error in release.js #93

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

Ishaparte
Copy link

@Ishaparte Ishaparte commented Mar 16, 2025

PR Description

Fixed issue #6

  • Fixed the TypeError for release.body.replace().
  • the error was due to release.body being undefined.
  • Added condition for releaseNotes before calling .replace().
  • For missing release notes it will give output as No release note available.

@Ishaparte Ishaparte requested review from a team as code owners March 16, 2025 10:20
@Ishaparte
Copy link
Author

@erickzhao I have created a pr kindly check and let me know if any changes are needed.

if (parsed.prerelease.length) {
releaseNotes = releaseNotes.split(new RegExp(`@${escapeRegExp(version.substr(1))}\`?.`))[1];
}
releaseNotes =
'# Release Notes\n' +
releaseNotes.replace(/# Release Notes for [^\r\n]+(?:(?:\n)|(?:\r\n))/i, '');
}else{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This formatting is not correct (did you run lint?)

@@ -0,0 +1,2910 @@
{
"name": "@electron/history",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be committed.

@@ -4,15 +4,15 @@

"@electron/github-app-auth@^1.2.0":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@electron/github-app-auth/-/github-app-auth-1.2.0.tgz#004b0926116f88d537f1291c00ca751241bff1af"
resolved "https://registry.npmjs.org/@electron/github-app-auth/-/github-app-auth-1.2.0.tgz"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be changed.

@codebytere
Copy link
Member

@Ishaparte please see review comments. Additionally, please ensure your commit adheres to project standards and your commits are signed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants