3 ms·
Show HN: Open current Pull Request in browser with a single command
I wanted to save a few clicks every day, so I spent way too much time to create this simple tool. Learned a bit of Go along the way.
"pro" is a single command for opening Pull Request for current branch. Works with GitHub and Gitlab, on Windows, Linux and macOS.
- ironick09 4y agoYou can just use the GitHub cli as well? `gh pr view -w` will open the current pull request in your browser.
- pankarol 4y agoThat's right, and for GitLab `glab mr view -w` will work. I wanted to have a tool that works with both and lets you open in browser whatever you're currently looking at. So it opens the PR for current branch, repository home page for main branch and PR creation page for new branch. You can also open the repository with `git open` [1], and create a PR clicking the link you see after pushing to GitHub/GitLab, but the goal was to have all three in a single command. [1]: https://github.com/paulirish/git-open https://github.com/paulirish/git-open