Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
npm install -g bbpr
Use the bbpr
command from a feature branch to start a pull request process.
Please log an issue or send an email if you get any error during the quick start process.
bbpr (BitBucket Pull Requests) is a cross-platform, interactive, configurable program helping you making pull requests from your terminal.
A positive side effect of using bbpr is that it can also help you standardize the pull request process across members of your team. Forgetting little details when doing a pull request is very easy (forgetting to add a reviewer, not providing detailed specifications helping your teammates understand where they should focus their attention while reviewing, etc). bbpr wants to partner up with you on that journey, so that your future pull requests will always be picture perfect.
First, make sure you have the latest stable versions of the following programs installed on your computer: node.js, npm, and git or mercurial depending on which version control system your team is using.
The single best way to use bbpr is to install it globally on your computer:
npm install -g bbpr
then you can use the bbpr
command from your terminal. But, read along, there is more.
bbpr comes bundled with a global configuration file (bbpr.config.js
) by default, which means you can use it right after installing the module globally on your computer with the bbpr
terminal command. bbpr also leaves you with a series of commandline options in order to configure the program to your taste:
Command | Description |
---|---|
bbpr | Starts the interactive pull request process. bbpr first looks locally for a configuration file, and defaults to the global configuration file if it does not find one. Note that cached passwords are however always retrieved from the global configuration file. |
bbpr init | Initializes a local bbpr configuration file for your repository. |
bbpr -l | Opens your local bbpr configuration file. |
bbpr -l reset | Resets your local bbpr configuration file to the default configuration. |
bbpr -l <path to configuration file> | Sets your local bbpr configuration file to the file specified. The specified path can be relative, absolute, or remote (http/https). |
bbpr -g | Opens your global bbpr configuration file. |
bbpr -g reset | Resets your global bbpr configuration file to the default configuration. |
bbpr -g <path to configuration file> | Sets your global bbpr configuration file to the file specified. The specified path can be relative, absolute, or remote (http/https). |
Here are all the properties you can set in your bbpr.config.js
configuration file, whether global or local:
module.exports = {
user: {
password: null, // null or String.
// If null and cachePwd is set to true, this property will be set to the (encrypted) password you entered via the prompt for your next BBPR sessions.
// If not null and cachePwd is set to true, it will use the encrypted password stored in this property.
// In any other case, you will be prompted at each BBPR session to provide your BitBucket password.
cachePwd: false // Boolean. See the password property for detailed explanation.
},
demo: {
shouldPrompt: false, // Boolean. Set to true if you'll need a demo link with your PR.
shouldPromptDescription: false, // Boolean. Set to true if you'll need a description with your demo.
demoIntro: '', // String. Introduction appearing in your pull request description right before your demo url
basePath: '', // String. Base path to your demo (ex. https://mydemo.com/). Provide only if needing a demo. It will be ignored otherwise.
// You can also provide a basePath with the below path variables as such https://mydemo.com/{{repositoryName}}/{{sourceBranch}}/{{orAnyPathVariableListedBelow}}
pathVariables: {
repositoryName: null, // null or Function with signature (repositoryName) => String. Formatting function for repositoryName.
repositoryOwner: null, // null or Function with signature (repositoryOwner) => String. Formatting function for repositoryOwner.
pullRequestAuthor: null, // null or Function with signature (pullRequestAuthor) => String. Formatting function for pullRequestAuthor.
sourceBranch: null, // null or Function with signature (sourceBranch) => String. Formatting function for sourceBranch.
destinationBranch: null // null or Function with signature (destinationBranch) => String. Formatting function for destinationBranch.
}
},
reviewers: {
default: [], // Array of String. Each entry must be a valid BitBucket username. These are the reviewers who are assign to reviewing your work. An empty Array is also valid.
potential: [] // Array of String. Each entry must be a valid BitBucket username. These are the reviewers who may be assigned to reviewing your work. An empty Array is also valid.
},
branches: {
source: {
close: true // Boolean. Set to false if you do not want your source branch to be closed after merging in the destination branch.
},
dest: {
default: '' // String. Set to your main branch (ex: master or default), or the branch to which you are making PRs most often. Defaults to default for Mercurial and master for Git
}
},
globalVars: {
openFileCommand: '' // String. Your preferred terminal command to open your config file (javascript file). BBPR uses a default command according to your platform if empty.
}
}
Ideas and suggestions are strongly encouraged. What would be your needs?
Please do not hesitate to make any change at any time to bbpr by submitting a pull request, an issue, or any suggestion for improvements you might have.
Michel Moreau - michmoreau.l@gmail.com
FAQs
Make pull requests through the Bitbucket API 2.0 from your terminal
The npm package bbpr receives a total of 14 weekly downloads. As such, bbpr popularity was classified as not popular.
We found that bbpr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.