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.

  1. i read https://developer.github.com/v3/repos/commits/#compare-two-commits

  2. i tried curl https://github.com/emmetog/feature-flags/compare/master...d8f9c29bfd0b87d26123b78b76feca8e4c87ad8

  3. 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 file src/emmetog/featureflag/entity/featureflag.php has 10 lines of code, impossible comparing.

  4. in html webpage, id = diff-21171d4ef87ca8e3591556dd18dfa456r26 auto-generated id. can not specify intentional way before executing github api request.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -