Skip to content

Instantly share code, notes, and snippets.

View Omgitslock's full-sized avatar
🏠
Working from home

Danil Pavlusenko Omgitslock

🏠
Working from home
View GitHub Profile
@Omgitslock
Omgitslock / post-commit.dist.php
Created September 10, 2019 16:50
post commit hook
#!/usr/bin/env php
<?php
const PREFIX_FORMAT = '@^\[([\w\s\d_-]+?)\]@';
/**
* Правим текущее сообщение коммита
*
* Пусть текущая ветка - master,
* тогда сообщения коммита примут следующий вид