pull-request-codecommit creates a PR within CodeCommit based on your commit messages.
Project description
pull-request-codecommit
This tool makes it easy to create pull requests for AWS CodeCommit. It relies on the Conventional Commits standard. It looks at the git commits between the current and the destination branch. Then it tries to create a pull request with this information as input.
Installation
You can install the pull-request-codecommit
tool by running the following command:
pip install pull-request-codecommit
You can update an existing installation with the following command:
pip install --upgrade pull-request-codecommit
Installation in venv
Typically, you would want to run your dependencies isolated. You can install [pull-request-codecommit][pull-request-codecommit] in a venv
using the following commands:
python -m venv .venv
source .venv/bin/activate
pip install pull-request-codecommit
You need to add the .venv/bin/
path to your system PATH
. This is needed for the git pr
commands to function.
Configuration
The tool uses the following file ~/.aws/pull-request-codecommit
. It will first load the default
profile and then, if
provided the profile specific settings.
[profile default]
branch=main
[profile acme-profile]
branch=develop
Usage
To use pull-request-codecommit
you just execute the following command:
git pr
Auto merge
In some cases it makes sense to directly merge the pull request, in those cases you can use:
git pr --auto-merge
This will directly merge the pull request using the fast-forward merge strategy. If the merge is successful, it will:
- Merge and close the pull request.
- Checkout the destination branch.
- Pull the latest changes. (This will pull the just merged changes locally)
- Remove the working branch.
From this point you are ready for the next change.
Update existing pull request
When a pull requests exists a proposal is made to update the existing pull request.
Overwrite target branch
When you want to overwrite the target branch you need to supply the --branch <name>
option:
git pr --branch my-target-branch
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pull_request_codecommit-0.5.11.tar.gz
.
File metadata
- Download URL: pull_request_codecommit-0.5.11.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf950effb6ec9066dcb2afcb9ca9bc2936ca131b2c15af0abb7132ca5f6b0ee9 |
|
MD5 | 1bdf2394d761e23d8aa0ec7d8827916a |
|
BLAKE2b-256 | cb7769241f5f4edf7d210946d623dd344e94086e91bf69aef739e2418d8d9bf0 |
Provenance
File details
Details for the file pull_request_codecommit-0.5.11-py3-none-any.whl
.
File metadata
- Download URL: pull_request_codecommit-0.5.11-py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 842209b4bc783e5d6d6764d8926fcc68759e8beb77e39eba212176c78b535452 |
|
MD5 | 2d717da6fdf8556670c54dbc11b6a745 |
|
BLAKE2b-256 | fe255105f71d94ec2aae7516422fbbc41b9510bb9412132527b36785262547dc |