How can I link an issue when am I filling out a pull request form on GitHub? - 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

Related

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.

Host page from github

I am trying to host a web page from github. Namely, I am trying to do that with the page: https://github.com/oobarbazanoo/JS-BuyList.
I type to the address bar oobarbazanoo.github.io/JS-BuyList and nothing happens I just get an error.
What am I doing wrong?
In order to solve the problem follow these steps:
Go to you Repository.
At the top choose Settings.
Go to the GitHub Pages.
Choose the source you need and save it.
Wait a few minutes, then copy and paste web link which will be given in GitHub Pages section.

How to view detailed activities of a repo on GitHub?

I was able to see all details of activities on GitHub, such as who made a pull request, who put a comment on the pull request, etc. But for some reason, once I navigated out of that page a few days ago, I was never able to get back to such a page and find it again on GitHub.
(The "pulse" doesn't have such info as it is a higher level summary.)
How can the detailed activities page be shown on GitHub?
P.S. with the greatest effort to find it, it turns out the page might simply be https://github.com but it lists all repos that I was involved in previously, instead of just the repo I want to look at. So I wonder if there is a way to see what https://github.com is listing except it is for a particular repo only.
That pretty much sounds like the "Notifications" page. When logged in, click on the "Bell" symbol top right; you'll be taken to
https://github.com/notifications

How to make dynamic github badges, that is, images in README which change state?

How do you add a "badge" in GitHub README so that it is dynamic? By "badge", I mean
The question is even if one puts a URL in GitHub README which maps to a server returning an svg/png, how does it update automatically on GitHub README page?
As an example if you visit the link
, you'd see the updated status of the issue (which is closed), but my GitHub README page still shows outdated badge, that is, shows the issue being open.
What is an example server code (say in golang) which can render github badges dynamically?
It's just an image at a URL. It's up to the server (your example looks like Jenkins) to decide what image to provide.

How do I reference a specific issue comment on github?

I'm trying to refer to a specific issue comment on github, in my readme. But I can't find any information on how to do that (here for example). I know that it's possible to link to issues, but is it possible to link to specific comments in that issue?
You can click on the date in the header of the comment to get a URL to the comment
For example, for issue https://github.com/centic9/jgit-cookbook/issues/5 one of the comments has the following link: https://github.com/centic9/jgit-cookbook/issues/5#issuecomment-51084491.
Simple method:
Every comment in github has header like below
[Commenter Name] commented on [x days ago]
Right click the date information i.e. [x days ago] and copy the link
Since August 2018, there is a more intuitive (and likely more reliable) way.
See "Copy the URL of a comment":
Previously, in order to grab a permalink to a comment within an issue or pull request, you’d need to copy the URL from a comment’s timestamp.
Now you can click Copy URL within the comment’s options menu to quickly copy the URL to your clipboard.
.
This works on commits in a Pull Request too:
https://github.com/moby/moby/pull/37558#discussion_r211356672 refers to:
And since February 2019, that works on mobile too!
Issue and pull request comment permalinks can now be copied on mobile devices, via the comment action menu.