ProblemsOfSumit
ProblemsOfSumit

Reputation: 21325

Github for Mac: Pull Request Button is missing

Saturday I installed Github Desktop on my Mac and tried the Github Workflow. Created a branch, committed changes and did a Pull Request. Everything worked.

Today I installed Github for Mac at work - and the Pull Request Button is no where to be found. I'm back home now on my private Mac and the button is missing here as well now.

As you can see on the last screenshot, the branch is up on github.com and ready for a PR. Also the dots in Github for Desktops Timeline (top right) are small, which means the commits are pushed. And there are changes to the dev branch (second screenshots).

Am I doing something wrong?

enter image description here

enter image description here

enter image description here

Update: maybe my branch isn't eligible for a PR? Because the menu item is also greyed out:

enter image description here

I have two branches, they have committed (and pushed) differences... hm.

Upvotes: 6

Views: 3521

Answers (3)

Raskul
Raskul

Reputation: 2209

this is my own issue which is a specific case:

On linux:

my friend gave a laptop to me.

I had a same issue on my friend's laptop that he gave it to me with his github credentials. I did change my username and email in the git config --global and I send a PR, but I didn't see the compare and pull request button. I

I asked him and he was able to see the compare and pull request button.

I remove his ~./ssh/id_rsa.pub and ~./ssh/id_rsa public and his private keys, and replace it with my own laptop public and his private keys. and it worked.

it's like when you login to github, github saves your public key.

so I was able to see the button.

Upvotes: 0

Jowita Emberton
Jowita Emberton

Reputation: 166

Another way of doing this (it worked for me) is to go to:

"Preferences" > "Sign out" > "Sign in" (again)

That way you'll reset your Github desktop (don't worry. You won't lose anything :) )

Upvotes: 8

ProblemsOfSumit
ProblemsOfSumit

Reputation: 21325

I finally got it. As you can see in the screenshots my repository is marked as "other". That's because it was already on my machine and I've not cloned it in Github for Desktop. I just added it.

I cloned that repository as follows

https://githubusername:[email protected]/organization/repo.git

That URL as remote.origin.url probably isn't handled by Github for Desktop so the Repo is marked as "other".

Weird. I recloned my repositories and now everything is working fine.

Upvotes: 2

Related Questions