Skip to content

Issue responder: Handle PRs that do not allow edits from maintainers #5

@mbargull

Description

@mbargull

If we get a 201 response code from a push to a PR branch, this likely means the contributor did not check the "Allow edits from maintainers" box. We may want to reflect that in the Bot response message.

ref: bioconda/bioconda-recipes#19753 (comment):

I encountered an error updating your PR branch. You can report this to bioconda/core if you'd like.
-The Bot

Failed with: https://github.com/bioconda/bioconda-recipes/commit/7e49c223dbcf2737533de3518724e53632778d59/checks?check_suite_id=402686325#step:3:463

git push
To github.com:pravs3683/bioconda-recipes.git
 ! [remote rejected]     fix_quantwiq-iq -> fix_quantwiq-iq (permission denied)
error: failed to push some refs to 'git@github.com:pravs3683/bioconda-recipes.git'
the response code was 201
##[error]Node run failed with exit code 1

since the PR does not allow edit from maintainers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions