Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
changeset-conventional-commits
Advanced tools
Generate changesets based on the conventional commits.
pnpm dlx changeset-conventional-commits
npx changeset-conventional-commits
pnpm add -D changeset-conventional-commits
pnpm changeset-conventional
in the root.This will generate changeset for each commit.
This library is created based on this PR. There are issues created in changesets for this functionality and there is not update on this yet. So I created this library till that support is implemented.
0.2.5
#27 e526cfb
Thanks @mblackrittr! - fix: duplicate generation of changesets (#26)
The same changesets were generated again, because the duplicate detection failed on trailing line breaks (\n
) it got from git
.
const changesets = ...:
// Data from Commits
[
{
releases: [[Object], [Object]],
summary: "chore(root): add two test packages\n",
packagesChanged: [[Object], [Object]],
},
];
const currentChangesets = ...:
// Data from Changesets
[
{
releases: [[Object], [Object]],
summary: "chore(root): add two test packages",
packagesChanged: [[Object], [Object]],
},
];
Truncating the linebreak at line 165 of src/utils/index.ts
fixed it:
const compareChangeSet = (a: Changeset, b: Changeset): boolean => {
// return a.summary === b.summary && JSON.stringify(a.releases) == JSON.stringify(b.releases);
return (
a.summary.replace(/\n$/, "") === b.summary &&
JSON.stringify(a.releases) == JSON.stringify(b.releases)
);
};
</details>
FAQs
Generate Changesets from conventional commits
We found that changeset-conventional-commits demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.