Get a link to a specific line in a diff using GitHub API? -
using github api i'm looking way generate link specific line in diff.
i can contruct "compare between commits" url, example: https://github.com/emmetog/feature-flags/compare/master...d8f9c29bfd0b87d26123b78b76feca8e4c87ad8
and visiting url in browser can click on specific line , this: https://github.com/emmetog/feature-flags/compare/master...d8f9c29bfd0b87d26123b78b76feca8e4c87ad8#diff-21171d4ef87ca8e3591556dd18dfa456r26
however, need generate last bit, #diff-21171d4ef87ca8e3591556dd18dfa456r26
bit, programatically throught github api, or else find way of linking specific line in diff without going through browser.
is possible?
it impossible.
i read https://developer.github.com/v3/repos/commits/#compare-two-commits
i tried
curl https://github.com/emmetog/feature-flags/compare/master...d8f9c29bfd0b87d26123b78b76feca8e4c87ad8
by using github api, can not specify line 26th of different between new version , old version of file
src/emmetog/featureflag/entity/featureflag.php
because difference of 2 revisions doesn't happen @ line 26, impossible comparing. or filesrc/emmetog/featureflag/entity/featureflag.php
has 10 lines of code, impossible comparing.in html webpage, id =
diff-21171d4ef87ca8e3591556dd18dfa456r26
auto-generated id. can not specify intentional way before executing github api request.
Comments
Post a Comment