-
Notifications
You must be signed in to change notification settings - Fork 36
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
Newly added packages update all issues and prs in the history #90
Comments
The logs out put this on a new package |
There look to be a couple of places the success hook could be called } else {
const commits = await getCommits({...context, lastRelease, nextRelease});
nextRelease.notes = await plugins.generateNotes({...context, commits, lastRelease, nextRelease});
if (options.dryRun) {
logger.warn(`Skip ${nextRelease.gitTag} tag creation in dry-run mode`);
} else {
await addNote({channels: [...currentRelease.channels, nextRelease.channel]}, nextRelease.gitHead, {cwd, env});
await push(options.repositoryUrl, {cwd, env});
await pushNotes(options.repositoryUrl, {cwd, env});
logger.success(
`Add ${nextRelease.channel ? `channel ${nextRelease.channel}` : 'default channel'} to tag ${
nextRelease.gitTag
}`
);
}
context.branch.tags.push({
version: nextRelease.version,
channel: nextRelease.channel,
gitTag: nextRelease.gitTag,
gitHead: nextRelease.gitHead,
});
const releases = await plugins.addChannel({...context, commits, lastRelease, currentRelease, nextRelease});
context.releases.push(...releases);
await plugins.success({...context, lastRelease, commits, nextRelease, releases});
} and const releases = await plugins.publish(context);
context.releases.push(...releases);
await plugins.success({...context, releases}); the first one isn't passing the |
@antongolub this one is really rather problematic. Any chance you might be able to look at this? |
Ok, I will dig this issue next week, but I cannot promise a quick fix. We really have a lot of work to do right now, sorry. |
@antongolub friendly check in 😄 |
My recipe for success in GTD is procrastination and multitasking |
Any traction here? Everytime I add a new package everyone in my org gets hammered with 500 emails. I'm also worries that this is going to kill out git hub access throu CI and we will start getting rate limited wich would break the build process for every project in the org |
@antongolub re-nudge. |
I'm so sorry, but I have no resources left for volunteer projects at this moment. Hope that someone else will be able to continue this work. |
how about now? 😄 |
I'm afraid, the situation with available time is only getting worse. |
when a new packages is added to an existing monorepo the initial release of the package results in adding the release success comment on every PR/Issue before it.
The commits aren't filtered. It updates months worth of Pull requests + Issues, and GitHub sends out dozens of email notifications
It seems something went wrong here.
https://github.com/semantic-release/github/blob/d70e766d275b856dbe95f48358dcb9e6025748a7/lib/success.js#L43
We need to debug this point to make sure, that only filtered commits are passed to plugin method.
Originally posted by @antongolub in #41 (comment)
The text was updated successfully, but these errors were encountered: