Repository navigation
Add revert-file feature - #2182
Conversation
|
This seems to work correctly, except it doesn't work on repos you don't have push rights to 😬 which sucks. A workaround is to submit the changes through the form on the Alternatives? Am I doing anything wrong in the API? The PUT requests receives a 404 when trying to revert the first file on https://github.com/sindresorhus/refined-github/pull/2146/files |
|
I'm gonna restate the problem just so I'm sure I really understand what's happening. Scenarios when it works
Scenarios when it fails
The second failure case is what we're talking about, right? If so, I bet you've found a bug. If the edit form works, that's an option (as gross as it may be). I can't think of another way of doing it short of hooking in isomorphic-git and just doing a full blown commit. |
|
Yeah I think the bug here is that the API doesn’t follow the “Allow changes from maintainers” checkbox. We had this issue on other features. Best case scenario is that someone already found a solution to this or I’m doing something wrong. Even if I report it to GitHub it’s not gonna be fixed for a while, I bet I’m not the first one to notice it.
|
This comment has been minimized.
This comment has been minimized.
I'm swamped at the moment, could you test and report that? |
|
It looks like they know of the limitation and they don’t care. This thread doesn’t exist anymore: http://web.archive.org/web/20180813143533/https://platform.github.community/t/access-token-should-allow-push-if-allow-edits-from-maintainers-checked/1072
|
revert-file feature (WIP, broken)revert-file feature
revert-file featurerevert-file feature (WIP, broken in Firefox)
revert-file feature (WIP, broken in Firefox)revert-file feature

Closes #1901
Test
IssueHunt Summary
Referenced issues
This pull request has been submitted to:
IssueHunt has been backed by the following sponsors. Become a sponsor