Why is the Approve button disabled in GitHub “pull request review”?

前端 未结 4 1931
陌清茗
陌清茗 2021-01-17 14:50

Problem Background:

So far I am the sole owner of a GitHub repo. I committed the code from my system to a branch called release (actually its a tag

相关标签:
4条回答
  • 2021-01-17 14:57

    I have faced the same issue today and managed to resolve it.

    The problem occurs only when the Branch protection rule for the branch into which you are trying to put the code into has the following setting enabled: Include administrators

    The definition of this setting is: Enforces all configured restrictions above for administrators.

    Disable this setting and it will allow you as the sole owner to accept your own pull request.

    0 讨论(0)
  • 2021-01-17 14:58

    I ran into this issue as well, but I was able to resolve it by assigning the Pull request to myself. This allowed me to review and merge my own pull request with the main branch.

    0 讨论(0)
  • 2021-01-17 15:03

    If you were the one who has committed the pull request you cannot approve or request changes on this pull request. It's only available when someone else requested such action.

    So your only option is to comment it.

    0 讨论(0)
  • 2021-01-17 15:15

    I was facing the same issue, I was able to merge branch by just resolving all the conflicts between them.

    Before Resolving the conflict there was a error message something like not able to merge automatically but you can create a pull request.

    then I deleted that pull request and after resolving all conflicts created pull request again and there was a message "Able to merge"

    1. Create Pull Request

    2. Check Message "Able to merge". If there is an error message regarding conflict etc. then maybe you cant merge it by yourself.

    3. Under Pull Request Tab you will see that green button "Merge pull request" is enabled.

    1. By clicking that button Pull Request will merge successfully.
    0 讨论(0)
提交回复
热议问题