Skip to content

No merge sha found for PR * via the GitHub API (StandardError) #927

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

Open
schinj opened this issue Jan 7, 2021 · 4 comments
Open

No merge sha found for PR * via the GitHub API (StandardError) #927

schinj opened this issue Jan 7, 2021 · 4 comments

Comments

@schinj
Copy link

schinj commented Jan 7, 2021

Hi,

Thanks for this amazing library.
I am facing the below issue on running the github_changelog_generator command:

Logs:
...
Found 95 tags
Fetching tags dates: 95/95
Sorting tags...
Received issues: 512
Pull Request count: 504
Filtered pull requests: 408
Filtered issues: 8
Fetching events for issues and PR: 416
Fetching closed dates for issues: 416/416
Fetching SHAs for tags: 95
./vendor/bundle/ruby/2.6.0/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator/generator/generator_fetcher.rb:88:in block in associate_tagged_prs': No merge sha found for PR 57 via the GitHub API (StandardError) from/vendor/bundle/ruby/2.6.0/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator/generator/generator_fetcher.rb:70:in reject'
from ./vendor/bundle/ruby/2.6.0/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator/generator/generator_fetcher.rb:70:in associate_tagged_prs' from ./vendor/bundle/ruby/2.6.0/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator/generator/generator_fetcher.rb:50:in add_first_occurring_tag_to_prs'
from ./vendor/bundle/ruby/2.6.0/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator/generator/generator.rb:151:in fetch_issues_and_pr' from ./vendor/bundle/ruby/2.6.0/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator/generator/generator.rb:47:in compound_changelog'
from ./vendor/bundle/ruby/2.6.0/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator.rb:35:in run' from ./vendor/bundle/ruby/2.6.0/gems/github_changelog_generator-1.15.2/bin/github_changelog_generator:5:in <top (required)>'
from ./vendor/bundle/ruby/2.6.0/bin/github_changelog_generator:23:in load' from ./vendor/bundle/ruby/2.6.0/bin/github_changelog_generator:23:in

'
Warning: PR 57 merge commit was not found in the release branch or tagged git history and no rebased SHA comment was found

Could you please help me in debugging this issue?

@ameir
Copy link
Contributor

ameir commented Jan 14, 2021

I just tested out this project as well and had this same issue. FWIW, I commented out that line and it completed successfully, although I'm sure it's missing some data.

@schinj
Copy link
Author

schinj commented Feb 5, 2021

@ameir But are you able to get the expected changelog set?

@rposborne
Copy link

Seeing this as well on the https://github.com/countries/countries repo for PR 1.

@lukebakken
Copy link

FWIW, I ran into this while trying out this project on Pika (https://github.com/pika/pika/).

Rather than raising the error, I had the message printed via STDERR.puts. In the generated CHANGELOG.md, there were a couple invalid entries but they were easily removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants