agencenous/git-templates
最新稳定版本:1.1.0
Composer 安装命令:
composer require agencenous/git-templates
包简介
Install GitLab issue templates from a local directory or a remote repository.
关键字:
README 文档
README
Tool for creating/syncing issue templates in git projects
Version: 1.1.0
Available templates:
- Default.md: Template for a feature request (use case, technical description, impacted modules, points of concern, estimations).
- Incident.md: Template for a bug
Install
composer require agencenous/git-templates --dev
Usage
From the project root:
vendor/bin/gitlab-templates
Templates are createed in .gitlab/issue_templates/.
Project Directory
The target project directory is defined in this order:
- Option
--project-dir/-d composer.jsonkeyextra.git-templates-project-dir- Environment variable
PROJECT_DIR - Default : current directory
Via composer.json
{
"extra": {
"git-templates-project-dir": "subdir"
}
}
Repository Type
The repository type is defined in this order:
- Option
--repository-type/-r composer.jsonkeyextra.git-templates-repository-type- Environment variable
REPOSITORY_TYPE - Default :
gitlab
Available repository types: gitlab, github, gitbucket.
Template destination by repository type:
gitlab->.gitlab/issue_templatesgithub->.github/ISSUE_TEMPLATEgitbucket->.gitbucket/issue_templates
Examples
Command line:
vendor/bin/git-templates -r github
Via environment variable
REPOSITORY_TYPE=gitbucket vendor/bin/git-templates
Via composer.json
{
"extra": {
"git-templates-repository-type": "gitlab"
}
}
Locale
The locale is defined in this order:
- Option
--locale/-l composer.jsonkeyextra.git-templates-locale- Environment variable
LANGUAGE - Default :
en_US
Available locales: fr_FR, en_US.
Examples
Command line:
vendor/bin/git-templates -l fr_FR
Via environment variable
LANGUAGE=fr_FR vendor/bin/git-templates
Via composer.json
{
"extra": {
"git-templates-locale": "fr_FR"
}
}
Options
| Option | Alias | Description |
|---|---|---|
--project-dir |
-d |
Root path of the project (default : extra.git-templates-project-dir, then PROJECT_DIR, then current directory) |
--repository-type |
-r |
Repository type to use (default : extra.git-templates-repository-type, then REPOSITORY_TYPE, then gitlab) |
--locale |
-l |
Locale to use (default : extra.git-templates-locale, then LANGUAGE, then en_US) |
Licence
统计信息
- 总下载量: 52
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2026-04-13