I cannot remove a pull request on github - github

I have a pull request showing on Github and a button which says compare and pull request then when I click on it it says There isn't anything to compare, master and other-branch are identical. It also says there are no changed files.
If I click on pull requests in the header bar then I still get the same yellow box saying compare and pull request above the box with the actual pull requests in but within that box it says I have 0 open pull requests and 2 closed pull requests from a year ago.
How can I get rid of this?

Related

How to remove [WIP] work in progress tag from pull request on github?

I have made a pull request yesterday with the [WIP] tag and now my task is finished, I want the review so how will I remove that WIP tag from the Pull request to make that review ready from the organization repository on GitHub?
You need to click edit on the right of the PR when you open it, and then you can change the name, else the reviewer when merging into the main branch can change the name, and i suggest to use the git naming convention, to have a clean and organized history, using also gitmojis

How can I link an issue when am I filling out a pull request form on GitHub?

There is a manual https://docs.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue
and I cannot complete the 4th step because I cannot find "Linked issues".
just write #issue number in pull request description to link the isuue
you can also write fixes #issue number closes #issue number to automatically close an issue when your pull request is accepted and merged
if you are the owner of the repository you can link an issue by clicking the setting icon in the Linked Issues on the right sidebar but if you are an outside contributor then you cant use it to change or link any issue you can only see which issues are linked

How do I view the initial set of commits on a github.com repo without paging through hundreds of pages of commits?

I don't want to clone the repo locally and search through it. I am just trying to get the date of the first couple commits.
It's pretty easy if you modify the URL when browsing through the history.
Instructions:
On the landing page of the repo, find the number of commits.
For example, the googlesamples/unity-jar-resolver repo almost 500 commits as of today.
Click on the commits tab, scroll down, and click on the Older button at the bottom of the page.
URL should look like this:
https://github.com/googlesamples/unity-jar-resolver/commits/master?after=e703601cec96ff60883b8999ca9aaa3ef2e459d9+34
You want to modify the number at the end of the URL (+34).
master?after=e703601cec96ff60883b8999ca9aaa3ef2e459d9+34
Change 34 (or whatever number you see) to the total commits minus about 50. In my case, that would be 450 (500-50).
Should now look like this:
https://github.com/googlesamples/unity-jar-resolver/commits/master?after=e703601cec96ff60883b8999ca9aaa3ef2e459d9+450
Load that URL and you should see your initial set of commits.

Pull request at GitHub results in Compare changes page - how to proceed?

I wanted to fix some typos in a Microsoft documentation repo. I clicked on its New pull request button. That resulted in the following page being displayed:
As you can see, the green Create pull request button is disabled. How do I proceed from here? In other repos (such as for Amazon documentation), the process works differently, and I am able to directly create a pull request.
The common scenario of making such PRs looks like the following:
fork the repository http://prntscr.com/m7yhq0
make a new branch there with name like fix/several-typos http://prntscr.com/m7ytis
change a file and commit your changes to the branch (there should not be any difficulties)
go to the original repository, click New pull request and choose compare across forks http://prntscr.com/m7yih0
select necessary branches for PR and then the button Create pull request will be enabled.
Review your changes displayed below and click Create pull request
Hope that will help.

Where can I see my pull requests on GitHub?

Is there a way to view on GitHub:
All my pull requests
My open pull requests
The only place where I usually see that is in my Contribution Activity, which unfortunately does not go further than 1 month ago.
On the main homepage (not your userpage) there is a bar at the top with four buttons:
News Feed Pull Requests Issues Stars
Click Pull Requests.
This home page can be accessed by clicking the octocat logo in the top-left, whereas your userpage is accessed by clicking your username in the top-right.
It should look like this:
I had the same question this morning and would have found hyperlinks easier than the accepted answer (which led me to write my own)!
All my pull requests: These aren't (currently) shown on one page. But...
My open pull requests: https://github.com/dashboard/pulls (open PRs are shown by default)
My closed pull requests: https://github.com/dashboard/pulls?state=closed
October 2014
GitHub have launched new dashboards.
Example New URLs
All my pull requests: https://github.com/pulls?q=is:pr+author:johnsyweb
My open pull requests: https://github.com/pulls (your open PRs are still shown by default)
My closed pull requests: https://github.com/pulls?q=is:pr+is:closed+author:johnsyweb
Note: Use your GitHub username rather than mine, which I've left in merely as an example.
Visit github.com/pulls to see all your PRs.
(Just to add some snapshot snippets for visual benefits here, in addition to the already very well-documented responses previously / above)
GitHub Main Page
On GitHub Main Page, there is a box on the right called "Repositories you contribute to" - I believe these are the repositories where user raised a pull-request and got merged.
GitHub Pull Page
... and more on GitHub Pull Page:
Open:
Closed:
i used the pulse option in the right side panel https://github.com/{your username}/{your repo}/pulse
To view the pull requests that your team is working on, you can use the Github "team" query like team:myOrg/myTeamName. Or you can use MyTeamsPRs which lets you do the same but with an easier-to-use UI.