sindresorhus/refined-github

Follow file renames #998

SimenB posted onGitHub

Sort of like git log file vs git log --follow file. There is https://github.com/staff0rd/github-follow-extension, but I couldn't get it to work, and not having yet another extension would be awesome.

Sorry if there is an issue for this already, I was unable to find it.

Example file: https://github.com/facebook/jest/commits/master/packages/jest-cli/src/coverage.template

$ git log --oneline packages/jest-cli/src/coverage.template
0c9d2b6e packages/jest-cli
$ git log --oneline --follow packages/jest-cli/src/coverage.template
0c9d2b6e packages/jest-cli
d612ea12 Move coverage template to non-js file
ce5c2ebc Lint fixes
8efc492a Use eslint for linting
88a94d5d FIRST!

For anyone that wants this, please also send this feature request to GitHub: support@github.com


Any feedback on how to use this? Do I need to compile something into the extension?

posted by onassar about 4 years ago

No this should be working. Do you have an example where this is not working?

posted by yakov116 about 4 years ago

I've got the extension installed, but when I'm looking at the file through GitHub, I can't seem to find the old history (I assume, it would be found by clicking on the History link for the file?)

posted by onassar about 4 years ago

Yes it would be under history. If a file is rename the "next" button will lead you to the renamed file

posted by yakov116 about 4 years ago

Strange. The button isn't showing up for me. Do you have a screenshot you could show me that shows where it would be?

posted by onassar about 4 years ago

What page are you looking at?

posted by yakov116 about 4 years ago

A page like the following: https://github.com/onassar/repo-name/commits/branch-name/path/to/file.css

posted by onassar about 4 years ago

Do you have an actual link I can test on?

posted by yakov116 about 4 years ago

It's in a private repo unfort. Do you have a public link that's working for you? I can try it out and confirm

posted by onassar about 4 years ago

(make sure your have a personal GitHub token set in the extensions options)

posted by simonkotwicz about 4 years ago

Ahh okay that's required? I tried to read through things and assumed the token wasn't required for that to work.

posted by onassar about 4 years ago

For any api interaction on a private repo you will need a token

posted by yakov116 about 4 years ago

Okay thanks. Which specific permissions are required for that feature?

posted by onassar about 4 years ago

The repo

posted by yakov116 about 4 years ago

Sorry to be pedantic, but which settings in repo? I don't want to grand the extension more settings than it needs. Does it need all of them?

posted by onassar about 4 years ago

If you want to use it in a private repo, repo is the only scope you need. Unfortunately repo includes everything else under it.

For public repositories you probably don't need any scopes since the token already allows read-only access to all public repositories.

posted by fregante about 4 years ago

Okay gr8 thanks.

posted by onassar about 4 years ago

Fund this Issue

$80.00
Rewarded

Rewarded pull request

Recent activities

bfred-it was rewarded by sindresorhus for sindresorhus/refined-github# 998
about 6 years ago
bfred-it submitted an output to  sindresorhus/ refined-github# 998
about 6 years ago