Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Sync - recognise existing PRs and treat as success #710

@ewels

Description

@ewels

See #709 (comment)

Need to catch the following error:

ERROR     Sync failed for nf-core/ampliseq:                          sync.py:385
GitHub API returned code 422:
{
    "message": "Validation Failed",
    "errors": [
        {
            "resource": "PullRequest",
            "code": "custom",
            "message": "A pull request already exists for nf-core:TEMPLATE."
        }
    ],
    "documentation_url": "https://developer.github.com/v3/pulls/#create-a-pull-request"
}

and treat it as a success - in this scenario the PR to update the template already exists, and our new commit is appended to it.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions