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
PyPI Link: https://pypi.org/project/pyrust-task-id/

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.3.tar.gz (9.7 kB view details)

Uploaded Source

Built Distributions

pyrust_task_id-0.1.3-py3-none-win_amd64.whl (918.1 kB view details)

Uploaded Python 3 Windows x86-64

pyrust_task_id-0.1.3-py3-none-win32.whl (836.6 kB view details)

Uploaded Python 3 Windows x86

pyrust_task_id-0.1.3-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.3-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.3-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.3-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.3-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.3-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.3-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.3-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.3-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.3-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.3-py3-none-macosx_11_0_arm64.whl (1.0 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for pyrust_task_id-0.1.3.tar.gz
Algorithm Hash digest
SHA256 a9db1a3abea539fd1a76ec88274bca1383e9f76a17dcd9db08f5ee871515aa8e
MD5 dc74176b48dfae0ed57bd846bbee9792
BLAKE2b-256 e429e480d9e4e606f07bf8e184d4f58817dac50c1dd4636530e0108edc5a0bf1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrust_task_id-0.1.3-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 40225da7d9bb1b27cd3fe60f2c372df07677533a2573ef643af701b9f60c8d70
MD5 8c022799873b607433ed04c13fb3636a
BLAKE2b-256 3a379748484ceadf4d7047d6782f8e80ed2f4affc4272ca6ca809f8b468ad98a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrust_task_id-0.1.3-py3-none-win32.whl
Algorithm Hash digest
SHA256 7fb885630f0935368c113aad3b830909d186aa72e7e96434e8c82eef6d79d7c4
MD5 2d7e75b482c23ed6ce4f5fcbe4b00621
BLAKE2b-256 c1c1d30bf2775872b182b2c8f1918c0586ff7eb6bbffc5b4da28e92b1979116e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrust_task_id-0.1.3-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2809dfc8dc9f79b025be865dbf9b99ce36175ab8478f97591b014da0654b508f
MD5 c5921051a352b4a054ddc9a20146fd1a
BLAKE2b-256 aa972fe51d35f9bae1775cdee6e711f6177c7ca031a8522adac6bb2fcd4b6d4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrust_task_id-0.1.3-py3-none-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 91d59a847872f3139f1e59509f1cb910f0cf202bce26b1831a1e960bf4137d04
MD5 4d1ced189aa3454d984c5f5c38866a9e
BLAKE2b-256 e1cfe585c2bba2f34d06476514cb32b8e1267b010f461572465edaa7cdebb891

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrust_task_id-0.1.3-py3-none-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 5e5360571750743e82aa567566d6131783f19282e16c20bfb89d410abd95d91c
MD5 3dc922f0b74dd614dc2a2304777fc79e
BLAKE2b-256 47012bc31db77eb439d7dd587cb4c5a9f8c1a36e21ebee0e2d1fca5155fb89fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrust_task_id-0.1.3-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 555247a23e6cede3bfabdfbbd7698b27998e467bf0a501ad9c80e9d19ad8c7f9
MD5 6db18228b8d45a2f81a3902b39c7250a
BLAKE2b-256 13ee2b4f78d31d47736e473c5721c60c33a9f63b401d2b9c573099589b1ada6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrust_task_id-0.1.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d02276597ca5c454de5faa6361e65b56ea23948e43aab82a8226c3d854c5355e
MD5 7cfaca4cdce739c08fb2432ece5855ed
BLAKE2b-256 21494dc278e80add503566e686f8ac26001833d51b1fb19c1562a20b9ae80ad8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrust_task_id-0.1.3-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 1c236d1746ebea074be0ac251d68744512ee535ed191a498063ac2c9705eb9bb
MD5 41e97d771f1d1dbd8d9e6648783aa67c
BLAKE2b-256 f3480aaf257603042a96e6fa323eec2f56398a7d901d501447d67b03062a2706

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrust_task_id-0.1.3-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 44fc67ba3bbfc3836312fe33ca930e90757ec5f66b0d6c2eab128b7a7f057dbb
MD5 d0d290155e11891cc77bcb7374684961
BLAKE2b-256 910ed9a28b9cd55b0a0e8dc3e72643271eff232e8f96c20fcb2d45901fc43cf2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrust_task_id-0.1.3-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 2e896306edcd73a49ddb59f2b39975aa3fd4fe0d38457904b0a5cf964f8ced1a
MD5 69e58b8b17b2cb7cddc398a5e4b78f1e
BLAKE2b-256 e13986e12d0147412edac886c2d57e4aeab67fad5ccdc79d66b3da63baddf792

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrust_task_id-0.1.3-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 ed8fc591e6c57e5f097d550766e63d7b3c304325cb279721a1f1825e1dc71c15
MD5 1ca1d80ff575875de068172694144a58
BLAKE2b-256 80cd11bf7c0cb8f8fb813821bdc10b1121e5424e8c179129ea6e366c683e8aa8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrust_task_id-0.1.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 388f3aff87ba8d07f547432015789ce5f14dfcf817b88b1aef06d9dcc6693713
MD5 e877f5ef68027f96112547269d6785f3
BLAKE2b-256 7d043ddbd474c99d170f6e7dcbd0c84e8a0dc3b96e18406d8e37493307b71124

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrust_task_id-0.1.3-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1390bb0c3b2fbb0465b95e8b562bc362703a693b7056ff5a220ee1f8a267de01
MD5 d58e80b89b89740a0ea1fa4559552ab8
BLAKE2b-256 84a82e821d49c108dabe32eadd05a3401c38e4b3b7556f87a21c969b9cfc6f04

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