Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I review my own pull request on GitHub? [duplicate]

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 based on develop branch, if that matters). In GitHub, I created a pull request where base branch is master and compare branch is release.

But I am only allowed to comment on review, not allowed to approve. What may be the reason?

Note: There is no merge conflicts and while creating the pull request the green signal of merging possible was displayed.

enter image description here

Here is how the master branch is protected by me:

enter image description here

like image 805
Dexter Avatar asked May 20 '18 14:05

Dexter


3 Answers

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.

like image 186
Number16BusShelter Avatar answered Oct 20 '22 12:10

Number16BusShelter


I am the only developer in my github profile. I am admin of the project. Yet I am not authorized to approve my own PR. I do see an option to merge using admin Priviledges. enter image description here

like image 23
Aseem Avatar answered Oct 20 '22 13:10

Aseem


Looks like workaround until github adds BE validation :) But just open DevTools in your browser and remove disabled prop from the 'approve' radio button input. Works for me. enter image description here

like image 38
Tarás Avatar answered Oct 20 '22 13:10

Tarás