-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
✨ Support commit's URL and issues autolink in changelog #16
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work 👏
const packageInfo = await readPkgUp() | ||
packageJson = packageInfo.pkg || {} | ||
} catch (e) { | ||
packageJson = {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
packageJson
is already empty, no ?
packageJson.repository = { url } | ||
normalizePackageData(packageJson) | ||
} catch (e) { | ||
packageJson = {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here you can return null directly we don't want to go further ?
Closes #15
gitmoji-changelog-core:
repoInfo.js
: Extract git repo info frompackage.json
, if not exists from .git remote originmeta.repository
object in the object generated by the core. it contains meta-information about the repository:{ type, domain, user, project, url, bugsUrl }
gitmoji-changelog-markdown:
Here the result: CHANGELOG.md