Skip to content
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

Can't create a second PR #12

Open
ghost opened this issue Jun 20, 2022 · 0 comments
Open

Can't create a second PR #12

ghost opened this issue Jun 20, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Jun 20, 2022

I have a PR open, but I have a couple new modules, so I tried running your script again and it failed:

Starting pull request on GitHub...
Traceback (most recent call last):
  File "fetchuuid.py", line 160, in <module>
    pr = repo.create_pull(pr_title, pr_message, "main", '{}:{}'.format(username, 'main'), False)
  File "/home/rsholmes/.local/lib/python3.8/site-packages/github/Repository.py", line 1348, in create_pull
    return self.__create_pull_1(*args, **kwds)
  File "/home/rsholmes/.local/lib/python3.8/site-packages/github/Repository.py", line 1370, in __create_pull_1
    return self.__create_pull(
  File "/home/rsholmes/.local/lib/python3.8/site-packages/github/Repository.py", line 1392, in __create_pull
    headers, data = self._requester.requestJsonAndCheck(
  File "/home/rsholmes/.local/lib/python3.8/site-packages/github/Requester.py", line 353, in requestJsonAndCheck
    return self.__check(
  File "/home/rsholmes/.local/lib/python3.8/site-packages/github/Requester.py", line 378, in __check
    raise self.__createException(status, responseHeaders, output)
github.GithubException.GithubException: 422 {"message": "Validation Failed", "errors": [{"resource": "PullRequest", "code": "custom", "message": "A pull request already exists for holmesrichards:main."}], "documentation_url": "https://docs.github.com/rest/reference/pulls#create-a-pull-request"}
rsholmes@rich-holmes-desktop:~/Documents/Hobbies/Music/Instruments/Synths/Kosmodular Grid/kmgenerator (updates)$ 
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

0 participants