makepr
v1.1.3
Published
Quickly open url for PR or something else using url template in package.json.
Downloads
393
Readme
makepr
Quickly open url for PR or something else using url template in package.json
Requires a workign git command in shell
This tool will lookup current branch using git command git branch --show-current and generate and open the url.
Usage
NEW version is available as binary for multiple platforms, compiled with ZIG. https://github.com/hrgdavor/makepr/releases .
Original version using Nodejs. install the tool via npm.
npm i -g makeprConfigure your pacakge.json. Add a makepr section that defines url to call based on current branch.
Example for gitea/forgejo
"makepr":{
"url":"https://your-git-server.com/organization/repo/compare/main...{BRANCH}"
}github example url: https://github.com/hrgdavor/makepr/compare/main...{BRANCH}
Run the command anywhere inside your project
makeprSetup in eclipse
Find path to the command after isntalling
- win:
where makeprin cmd (%homepath%\AppData\Roaming\npm\makepr.cmd) resolve folder by pasting%homepath%\AppData\Roaming\npmin file explorer - mac:
which makeprin shell - linux:
whereis makeprin shell (/usr/bin/makepr)
set the location in eclipse and set working directory to variable ${project_loc}

