PHPackages                             gild/add-issue-number - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. gild/add-issue-number

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

gild/add-issue-number
=====================

It is a library that provides the function to automatically add the issue number and ticket number to the beginning of the comment at the time of commit.

v1.0.1(4y ago)0111MITShell

Since Apr 28Pushed 4y agoCompare

[ Source](https://github.com/gild-inc/lib_add-issue-number)[ Packagist](https://packagist.org/packages/gild/add-issue-number)[ RSS](/packages/gild-add-issue-number/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (1)

概要
--

[](#概要)

課題番号やチケット番号をコミット時のコメント先頭に自動的に追加する機能を提供するライブラリです。

導入要件
----

[](#導入要件)

- なし

導入方法
----

[](#導入方法)

`composer.json`に以下追加します。

```
{
    "scripts": {
        "post-autoload-dump": [
            "bash vendor/gild/add-issue-number/execution.sh"
        ]
    }
}
```

```
composer require --dev gild/add-issue-number ^1.0
```

管理対象ファイルについて
------------

[](#管理対象ファイルについて)

`.git_hooks`配下に生成されているファイルについては、管理対象ファイルとしてください。

### main.sh

[](#mainsh)

処理自体は利用者が設定管理することが可能です。 ファイル名の変更は不可です。

既にgit-hookを使われてる方について
---------------------

[](#既にgit-hookを使われてる方について)

本ライブラリ導入前にgit-hookを利用しているケースで既にprepare-commit-msgに何かしらのスクリプトを記述している場合を想定し、削除や上書きはしておりません。

prepare-commit-msgは`.buckup`という接尾辞を付与して退避しています。

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

2

Last Release

1470d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a61fae1c0fc35124fe49ae3c904d43952fc1b6c1d6401eff93f9393f2880aeb7?d=identicon)[gild](/maintainers/gild)

---

Top Contributors

[![mg1986jp](https://avatars.githubusercontent.com/u/20254686?v=4)](https://github.com/mg1986jp "mg1986jp (7 commits)")

---

Tags

automationgitasanaprepare-commit-msgaddpivotalissue-numberjira-softwareback-log

### Embed Badge

![Health badge](/badges/gild-add-issue-number/health.svg)

```
[![Health](https://phpackages.com/badges/gild-add-issue-number/health.svg)](https://phpackages.com/packages/gild-add-issue-number)
```

###  Alternatives

[czproject/git-php

Library for work with Git repository in PHP.

5544.9M81](/packages/czproject-git-php)[cypresslab/gitelephant

An abstraction layer for git written in PHP

6131.0M23](/packages/cypresslab-gitelephant)[bruli/php-git-hooks

Git hooks for PHP projects.

675370.8k5](/packages/bruli-php-git-hooks)[kkszymanowski/traitor

Add a trait use statement to existing PHP class

1305.2M16](/packages/kkszymanowski-traitor)[marcocesarato/php-conventional-changelog

Generate changelogs and release notes from a project's commit messages and metadata and automate versioning with semver.org and conventionalcommits.org

2511.3M109](/packages/marcocesarato-php-conventional-changelog)[ramsey/conventional-commits

A PHP library for creating and validating commit messages according to the Conventional Commits specification. Includes a CaptainHook action!

1931.2M121](/packages/ramsey-conventional-commits)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
