GithubHelp home page GithubHelp logo

Comments (17)

pmowrer avatar pmowrer commented on May 29, 2024 1

Haven't had a chance to look at this... Thanks for the research!

Sounds like maybe all we need to do is wrap the success plugin like we do the others. The primary reason this library even exists is to allow monkey patching the output of getCommits to filter commits based on package since semantic-release won't allow it.

from semantic-release-monorepo.

milesj avatar milesj commented on May 29, 2024 1

Our releases are taking longer and longer because it's adding so many comments to PRs. If someone can point me to the location of what to fix, I can take a stab at it. Maybe wrapping the success plugin?

from semantic-release-monorepo.

pmowrer avatar pmowrer commented on May 29, 2024 1

Thanks so much for trying it out @travi! That's good enough for me... just published a new release with the fix!

from semantic-release-monorepo.

pmowrer avatar pmowrer commented on May 29, 2024

I think you're right! Haven't had a chance to look into it. Here's a few related issues:

semantic-release/github#50
semantic-release/github#63

Help wanted!

from semantic-release-monorepo.

pmowrer avatar pmowrer commented on May 29, 2024

As a temporary workaround, the comments can be turned off by overriding the default success and fail plugins (e.g. set them to empty arrays) in the release configuration

from semantic-release-monorepo.

stalniy avatar stalniy commented on May 29, 2024

I did some investigation and see that github/success function receives context.commits and that array of commits are not filtered by semanatic-release-monorepo.

Will try to understand why is that

from semantic-release-monorepo.

stalniy avatar stalniy commented on May 29, 2024

semantic-release looking for all commits starting until last release:

  const commits = await getCommits(lastRelease.gitHead, options.branch, logger);

Later it passes this array of commits to every plugin call, in options.commits. That's why github plugin receives the list of all commits, parses them and send comments to wrong issues.

from semantic-release-monorepo.

milesj avatar milesj commented on May 29, 2024

Has there been an update on this? It's pretty noise right now every time a release happens.

from semantic-release-monorepo.

cpinnix avatar cpinnix commented on May 29, 2024

@milesj I don't have an update for you at the moment. But we will be looking into this in the next week or so.

from semantic-release-monorepo.

prisis avatar prisis commented on May 29, 2024

Is there a way to help you?

from semantic-release-monorepo.

pmowrer avatar pmowrer commented on May 29, 2024

I have a branch up that should fix this, github-comments-fix, if anyone's willing to give it a try.

from semantic-release-monorepo.

 avatar commented on May 29, 2024

Has anyone tried this? Can we get this fixed in the package?

from semantic-release-monorepo.

stalniy avatar stalniy commented on May 29, 2024

Just FYI:

I switched to solution semantic-release/semantic-release#193 (comment)

Similar hack but is much simpler and augments only single package. Haven’t tried to enable release comments however. Better cross-release support

from semantic-release-monorepo.

 avatar commented on May 29, 2024

Just FYI:

I switched to solution semantic-release/semantic-release#193 (comment)

Similar hack but is much simpler and augments only single package. Haven’t tried to enable release comments however. Better cross-release support

You should check out semantic-release-plus! Should be essentially the same, but it’s always kept up to date with semantic-release itself.

from semantic-release-monorepo.

travi avatar travi commented on May 29, 2024

I have a branch up that should fix this, github-comments-fix, if anyone's willing to give it a try.

@pmowrer i've been testing this branch out a fair amount today, and it seems to be working as i would expect. what would it take to include this in a published release (even a pre-release would be ok with me)?

from semantic-release-monorepo.

pmowrer avatar pmowrer commented on May 29, 2024

πŸŽ‰ This issue has been resolved in version 7.0.3 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

from semantic-release-monorepo.

travi avatar travi commented on May 29, 2024

thanks!

from semantic-release-monorepo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.