microsoft / winget-create

The Windows Package Manager Manifest Creator command-line tool (aka wingetcreate)
MIT License
492 stars 84 forks source link

NotFoundException error during pull request creation #287

Closed ryfu-msft closed 2 years ago

ryfu-msft commented 2 years ago

Brief description of your issue

There is a known issue where winget-create is unable to create a reference to the repository if the main/master branch is behind by a certain number of commits. To resolve this issue, the user needs to perform the following steps to update the master branch:

git remote add upstream git@github.com:microsoft/winget-pkgs.git
git switch master
git reset upstream/master --hard 
git push

Steps to reproduce

Leave the master branch of a forked winget-pkgs repository unchanged until it is behind the upstream/master branch by a large number of commits.

Expected behavior

Pull request should be created

Actual behavior

NotFoundException is thrown and pull request does not get created

Environment

Winget-Create 1.0.4.0