iolivernguyen / git-pr Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
$ git-pr
259323a4 Rename head -> HEAD for case-sensitive filesystems
panic: failed to find last pull request number
goroutine 1 [running]:
main.must[...](...)
/home/duane/tmp/git-pr/utils.go:49
main.main()
/home/duane/tmp/git-pr/main.go:59 +0xfd6
I've noticed when using git-pr that each PR after the first includes all commits from the first PR to N-1. This makes it difficult for reviewers, as it is not a "normal" way to configure a PR on github. (For example, my coworkers complain that it is more difficult to add a comment to a commit than to the files/lines of a PR; they also say it is confusing to see all commits together if their review is needed on only one of them).
In another tool that I've considered using, graphite, they seem to be pointing each remote branch base to the previous remote branch, like a linked list. This seems to be a reasonable compromise. Consider for example:
PR 1 (main <> pr123)
PR 2 (main <> pr124)
The above makes PR 2 show all commits from PR 1 and PR 2 in its files.
However, the following does not:
PR 1 (main <> pr123)
PR 2 (pr123 <> pr124)
In the latter example, as long as PR 1 is merged before PR 2, then everything works as expected--each PR appears to be an independent pull request showing only its commit in the stack, and merging or rebasing using the Github Button also does what it is supposed to (e.g. rebase onto main, and trigger CI build).
Is this a desirable workflow for you? Would it make sense to alter git-pr to do this, or at least make it an option?
(If so, we would no longer need the -> REVIEW <-
instructions & link, as it would just be the "normal Github way").
I accidentally tried running "git-pr" inside a cloned "git-pr" repo:
~/tmp/git-pr$ git-pr
fatal: ambiguous argument 'origin/main..head': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
panic: failed to find common ancestor for origin/main and head: exit status 128
goroutine 1 [running]:
main.must[...](...)
/home/duane/tmp/git-pr/utils.go:49
main.main()
/home/duane/tmp/git-pr/main.go:36 +0x125c
I'm new to git-pr so I'm not sure what's going on, but I thought it might be something that needs a boost so it can be more informative if this happens to others in a more serious situation.
I'm pretty sure I'm doing something wrong. I have my gh
cli client authenticated with a token and testing it, I can access the repository. Now, when I run git-pr
, I get this error message:
missing config "token"
gh auth status
confirms that I'm logged in and access should be ok as well..?
โ Token scopes: gist, read:gpg_key, read:org, read:project, read:public_key, read:ssh_signing_key, read:user, repo, user:email
What am I missing?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.