Skip to main content

Tool to provide task id, retrieved from branch name, right into commit message.

Project description

PyRust Task ID

PyRust Task ID MIT GitHub Actions Workflow Status

A written in Rust tool for Python programs that automatically pull task id from branch name to commit message.

Example

Let's imagine you have branch project_name/TASK-111-implement-feature and you need to provide the task TASK-111 into commit message.
Then you can just use this tool.

First, just add hook into .pre-commit-config.yaml:

-   repo: https://github.com/vanya909/pyrust-task-id-pre-commit
    rev: 0.1.2
    hooks:
    -   id: pyrust-task-id
        stages: [commit-msg]
        args:
        -   "project_name/(?P<task_template>TASK-[0-9]{3})-.*"
        -   "{subject}\\n\\n{body}\\n\\nTask ID: {task_id}"

Then run

pre-commit install --hook-type "commit-msg"

Then commit

git commit -m"My cool feature" -m"Can't wait to see this feature in prod."

And then you'll see following commit message:

My cool feature

Can't wait to see this feature in prod.

Task ID: TASK-111

This project uses standalone repo for pre-commit hook because it requires pre-build python wheels from PyPI

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrust_task_id-0.1.2.tar.gz (9.7 kB view details)

Uploaded Source

Built Distributions

pyrust_task_id-0.1.2-py3-none-win_amd64.whl (917.0 kB view details)

Uploaded Python 3 Windows x86-64

pyrust_task_id-0.1.2-py3-none-win32.whl (836.5 kB view details)

Uploaded Python 3 Windows x86

pyrust_task_id-0.1.2-py3-none-musllinux_1_2_x86_64.whl (1.2 MB view details)

Uploaded Python 3 musllinux: musl 1.2+ x86-64

pyrust_task_id-0.1.2-py3-none-musllinux_1_2_i686.whl (1.2 MB view details)

Uploaded Python 3 musllinux: musl 1.2+ i686

pyrust_task_id-0.1.2-py3-none-musllinux_1_2_armv7l.whl (1.1 MB view details)

Uploaded Python 3 musllinux: musl 1.2+ ARMv7l

pyrust_task_id-0.1.2-py3-none-musllinux_1_2_aarch64.whl (1.1 MB view details)

Uploaded Python 3 musllinux: musl 1.2+ ARM64

pyrust_task_id-0.1.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ x86-64

pyrust_task_id-0.1.2-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl (1.3 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ s390x

pyrust_task_id-0.1.2-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (1.2 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ppc64le

pyrust_task_id-0.1.2-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl (1.2 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ i686

pyrust_task_id-0.1.2-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (1.1 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ARMv7l

pyrust_task_id-0.1.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.1 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

pyrust_task_id-0.1.2-py3-none-macosx_11_0_arm64.whl (1.0 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

pyrust_task_id-0.1.2-py3-none-macosx_10_12_x86_64.whl (1.1 MB view details)

Uploaded Python 3 macOS 10.12+ x86-64

File details

Details for the file pyrust_task_id-0.1.2.tar.gz.

File metadata

  • Download URL: pyrust_task_id-0.1.2.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.7.7

File hashes

Hashes for pyrust_task_id-0.1.2.tar.gz
Algorithm Hash digest
SHA256 a33534201e22f6982f0121cc9952f64a4e4d8150db6e38d3daba8078695ad1b1
MD5 1660e1ee940478dd655e3a569f306a0e
BLAKE2b-256 993d432909d2a64abdbd6d769e94cc52e1c9c6852e63a4cbf0e6029f3e118d5b

See more details on using hashes here.

File details

Details for the file pyrust_task_id-0.1.2-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for pyrust_task_id-0.1.2-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 7d56c7573e4176bb5672ae35c55d49e15a221adb9c9e3d8f96860d9de8be7995
MD5 9b8cd8aeeadeea45350a8743ad2b0f4d
BLAKE2b-256 c84b1cd552714104deda861875d531929ddd330ed8d1a8d4b89277fdbf0e666e

See more details on using hashes here.

File details

Details for the file pyrust_task_id-0.1.2-py3-none-win32.whl.

File metadata

File hashes

Hashes for pyrust_task_id-0.1.2-py3-none-win32.whl
Algorithm Hash digest
SHA256 0eb3f8a6e55fe70b93b42d6bdcf313f993a683a2e3b749b48fc6b0288b1bb6f1
MD5 2ca33c299b96548b2b17c86d37cc4a7f
BLAKE2b-256 227366f89cb4ccce556de758608a272c79b1d5295e27c115f8a57fd4ecfd4aa8

See more details on using hashes here.

File details

Details for the file pyrust_task_id-0.1.2-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pyrust_task_id-0.1.2-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b03ecafa08f91744e9a92e5e6db5c68fa62c2808be18f5e1f0aa7eeb41e8b54d
MD5 3a4b51d0947ec68bf6a324a18c5b8ea0
BLAKE2b-256 5bd2590c5df32446f4f94e7287796bd894bf0f01629fd5b047df86431e204f7c

See more details on using hashes here.

File details

Details for the file pyrust_task_id-0.1.2-py3-none-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for pyrust_task_id-0.1.2-py3-none-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 2b3f4a0c41bc0a0f6e74ed533ea5ea02c25414b7497e787a700923b56c91bcaf
MD5 02889a71ab346fee8f8bc989d9275bf3
BLAKE2b-256 7f04c14809d49236eda6bcc762ec0ccd0af6bf1810e3a31ff8252d56ccda8286

See more details on using hashes here.

File details

Details for the file pyrust_task_id-0.1.2-py3-none-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for pyrust_task_id-0.1.2-py3-none-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 ef35be4af57ba7911bb7989f4b6a88688931a4fb83e5f4afbf3925ac5dc64b79
MD5 d24aac5fccaf2c0eabb3a6ca0128eb97
BLAKE2b-256 d2324c5d566d5d08e8824c8e4e06d04fcea3252fcddfe15363885329ae3eed65

See more details on using hashes here.

File details

Details for the file pyrust_task_id-0.1.2-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for pyrust_task_id-0.1.2-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 970030b1b6d6380e5b4ab14caafe66dfd9d3582277a77ac63881fc1fe028bdc7
MD5 722b4a811079037d993b9ac810a7fd6d
BLAKE2b-256 1bd9af874f49d69c539446b4f72450a393cf9538dc649056aa8d4ae18a437d2e

See more details on using hashes here.

File details

Details for the file pyrust_task_id-0.1.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyrust_task_id-0.1.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 97a02ac0f4704f20fe52efcea05faf22b59f2904a0b68073c132cd92ded022f0
MD5 51d9c58ce33474e318739c3be1cde042
BLAKE2b-256 3a5befc241368e2f44838d669512418aba3c548a3517650b32c1c4dce27e6b7c

See more details on using hashes here.

File details

Details for the file pyrust_task_id-0.1.2-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for pyrust_task_id-0.1.2-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 dd2f2b6b57b83c9c794708c3058cdd4331b3cdd70b345248450bb0e3227113a6
MD5 8bc5f33d9c8fb748e6dbbe29f0104e9e
BLAKE2b-256 cdbe35dfb13c6d490ec410feecfd81ef1f7cf78a53efd7238ee2845b748f942c

See more details on using hashes here.

File details

Details for the file pyrust_task_id-0.1.2-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for pyrust_task_id-0.1.2-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 08acdfe420cdfbac87c72d52a35abc85d0a5fbb3016da342abf073627e84ed68
MD5 821635fc8a8280eb32695f9b93c3faf8
BLAKE2b-256 3fa254202c2fd63fbe85fe909d2a06230e243fc1b7396637865286570d093de4

See more details on using hashes here.

File details

Details for the file pyrust_task_id-0.1.2-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for pyrust_task_id-0.1.2-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 b722d2c850a21bbd2aadebaf0ba42f172372e128cd663af9f722cf91bee4c21d
MD5 f540d006e5ea14761d7057fbec1dfeaa
BLAKE2b-256 53431beda29f198c31ea0abb841711356ec75d576fbc182b052b264930fe65c2

See more details on using hashes here.

File details

Details for the file pyrust_task_id-0.1.2-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for pyrust_task_id-0.1.2-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 3aed6af6632289adeeb1c1b85c9e7a5aca7904b6892bb40222cd8bc299c3a9e0
MD5 5d060ef078737ea2370dabdf8e5761a4
BLAKE2b-256 4377f0e033e58c9bea46cd79e8f536ff2e0ac7c7c0d9759e2ca70bc7ca185323

See more details on using hashes here.

File details

Details for the file pyrust_task_id-0.1.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyrust_task_id-0.1.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 05e7e2d29a5e2fe16144820f90f59e8cfa9e9acc51dee3f1309b0f26e9512d60
MD5 75dc2520cb365f65e08727a33ee56d40
BLAKE2b-256 c363f8007a212abb4f7a39dae12d51d3152df4264bda9c6db3f29544ab6d6f08

See more details on using hashes here.

File details

Details for the file pyrust_task_id-0.1.2-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyrust_task_id-0.1.2-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 479ea327a664f93c18be2578a16ed54cbb3d3aa0cb52eab59ac6295c57ad86b6
MD5 d5f54707d3b424287fa43c396398036b
BLAKE2b-256 82ec2c0dd83f6127a59ddb406b5cefe9bc359ac9687bd4f5db4ac2584454b2cd

See more details on using hashes here.

File details

Details for the file pyrust_task_id-0.1.2-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for pyrust_task_id-0.1.2-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 74111b115f1da676a665058a9eb5d7c730d48e08cf6b54079494feae633c8c2d
MD5 e70eec85b8208ceeecf42539977c8687
BLAKE2b-256 18a38a2b5ffbe691850acb7d56b1f5b693ddc6f3a05e9aa332e0861723bc89ff

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page