semantic-release / github

:octocat: semantic-release plugin to publish a GitHub release and comment on released Pull Requests/Issues
https://www.npmjs.com/package/@semantic-release/github
MIT License
422 stars 128 forks source link

Failed step "success" of plugin "@semantic-release/github" #415

Closed seanxu007 closed 3 years ago

seanxu007 commented 3 years ago

I ran npx semantic-release in my Github pipeline with my GITHUB_TOKEN.

Everything went well. A new tag is published, but there comes an error at the last step Failed step "success" of plugin "@semantic-release/github".

Logs show below:

image

Is there anyone who can help me~~ Thanks a lot~~

josh-barker commented 3 years ago

I have observed the same behaviour today.

josh-barker commented 3 years ago

I also found that if I used curl with my token, I'm able to get the issue details using the endpoint in the error. That leads me to believe it could be a timing issue.

skilbjo commented 3 years ago

I am getting a similar (although not exact) error in https://github.com/cycjimmy/semantic-release-action/issues/80

krishna-acondy commented 3 years ago

We've also started having this exact same issue in https://github.com/sasjs/cli.

https://github.com/sasjs/cli/runs/3660512107

Any help on this would be great, thank you! 🙏🏽

ravali-rimmalapudi commented 3 years ago

I am also getting the same error today https://github.com/semantic-release/git/issues/298

RappC commented 3 years ago

Seeing the same error.

Spaideri commented 3 years ago

Posting to raise priority, we are facing the same issue

elektracodes commented 3 years ago

Same error on multiple projects

Christos-Zacharopoulos commented 3 years ago

Seeing the same error!

tthyt commented 3 years ago

I was able to work around this error by suppressing the success commenting in .releaserc

        [
            "@semantic-release/github",
            {
                "successComment": false
            }
        ],

That way the problematic issue search query is skipped and the GH release can be created at least.

tthyt commented 3 years ago

This seems to be related https://github.com/octokit/rest.js/issues/114

aanthonyrizzo commented 3 years ago

I tried reverting to a previous release(semantic-release@17.4.7) and that did not seem to fix the issue either. I did not try earlier releases but it seems @tthyt has the only current workaround.

seanxu007 commented 3 years ago

Thank you @tthyt, to pass over it will be a great solution currently~

travi commented 3 years ago

Are folks still seeing this failure? I did see this happen with one of my projects last night, but have seen several releases complete successfully today with the default config. If this was just an API problem that has been fixed, I would like to close this issue. If folks are still seeing this happen, we can keep it open until we understand better.

gr2m commented 3 years ago

I was trying to reproduce the problem in octokit/rest.js#114 but to no avail either. I also did several releases myself with both semantic-release 17 & 18 today and have not seen the error.

gr2m commented 3 years ago

Mystery solved, please update your lock files, make sure you don't have node-fetch v2.6.3 in there https://github.com/node-fetch/node-fetch/pull/1301