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
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
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:
pull-request-codecommit
Auto merge
In some cases it makes sense to directly merge the pull request, in those cases you can use:
pull-request-codecommit --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:
pull-request-codecommit --branch my-target-branch
Testing locally
./create_repo.sh
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
File details
Details for the file pull-request-codecommit-0.3.0.tar.gz
.
File metadata
- Download URL: pull-request-codecommit-0.3.0.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 892aba1528fa3792f16d4b1d4a37298d7efbb2fb54a98e131db43ac5e8cc34ea |
|
MD5 | 72c0ab7f2f15236fdd140f4225267c9b |
|
BLAKE2b-256 | e13d329a95c37ddd436e9b28680a57063e307919306ddf96e4857e82d7d4c346 |