How do I reference a specific issue comment on github? - 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.

Related

Azure DevOps - Wiki link in overview - how to forward to home page instead of new page form

When I go to Overview->Wiki I see a new doc form:
When I remove selected part of the URL (see selected URL on 1st photo) then I'm forwarded to home page:
How to set 2nd page as initial?
During my test, I was able to reproduce your issue.
In my wiki, usually I will be navigated to the Project Wiki, and when I enter the code wikis below, especially those that have nothing inside, like my "testwiki" below. I would also be trapped in the same loop as yours until I edit the url with "dev.azure.com/abc/xyz/_wiki/wikis/projectname.wiki".
So I tried the rest api to delete the empty wiki, and I am able to jump out of the loop by myself.
DELETE https://dev.azure.com/{organization}/{project}/_apis/wiki/wikis/{wikiIdentifier}?api-version=7.0

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 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.

Duplicate Title Tags Webmaster Tools - URL 1: Has No Date, URL 2: Has Date Appended

So just going through GOogle Webmaster to clean out some 404's and check overall site health, and I've only just discovered about 200 posts that have been flagged as having Duplicate Title Tags.
So here's one common example. Post seems to have two versions, one with out the date format and one with. There isn't two versions of the post in the database, so it's just the one post but I guess has been indexed twice. I do believe I played with changing Permalink format a while back, to remove the date, so pretty sure this would be the few posts that slipped through.
https://www.dropbox.com/s/i2kono8jba0m6m0/Screenshot%202014-03-10%2014.41.53.jpg
Alternative NFL Team Logo Designs by Justin Halpern
/alternative-nfl-team-logo-designs-by-justin-halpern/2012/02/02
/alternative-nfl-team-logo-designs-by-justin-halpern
Wondering the easiest way to simply ignore/fix/noindex/redirect the 'non date' version (last line) for all these few 100 posts.
To clarify my permalink structure is:
imjustcreative.com/example-post/2012/02/02
I did think I could use Yoasts Canonical Link feature in each 'edit post' and set the canonical link appropriately, but not sure if that's possible as each post is viewable in it's own formate, ie I can view each of the post versions without any automatic URL structure change.
So kind, :)
Graham

Creating an RSS feed for Github Stars

Is there some way to get an RSS feed for one's github stars list?
I want to get it into Pinboard via IFTTT.
The current answer here gives the stars as JSON rather than RSS. Here's how I get my GitHub stars through the IFTTT RSS service:
Use the "New feed item matches" trigger
Enter your GitHub user RSS feed:
https://github.com/csu.atom
Set the "Keyword or simple phrase" that IFTTT will use to match items to:
[your username] starred
For example, my filter is set to csu starred (the word "starred" alone would probably work, but then the trigger might also fire on some false positives, like if a repository name or something else includes the word "starred").
Add whatever action you want to happen whenever this trigger fires. The link to the starred repository is in the {{EntryUrl}} variable and the title is in {{EntryTitle}}.
Your Github stars are available in JSON at a URL like this: https://api.github.com/users/username/starred (sub in your own username of course)
I found this Yahoo! Pipes thing to turn your stars into an RSS feed.
The Yahoo Pipes service has shut down, and IFTTT apparently dropped the stars trigger from their Github channel. So I went and created the same thing in my own Huginn instance, using a Website Agent and a Post Agent.
IFTTT now has this option. All you have to do is create a recipe.
Just put the "New Starred Repository" for THIS. And then do the appropriate steps for Pinboard for THAT.
EDIT
So apparently it might not work anymore, maybe, however on browsing the recipies I found this, which probably does work so try it, just remember to edit it for your github username
I've combined the SiftRSS service (https://siftrss.com/) with https://github.com/username.atom activity feed the OP mentioned. On SiftRSS I filter the activity feed with a /\bstarred\s\w+\/\w+/ regex on the title attribute. Works flawlessly but is dependend on a third party service, if one needs to self-host, I would also recommend using Huginn as #larcher already mentioned.