承接 agencenous/git-templates 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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:

  1. Option --project-dir / -d
  2. composer.json key extra.git-templates-project-dir
  3. Environment variable PROJECT_DIR
  4. Default : current directory

Via composer.json

{
   "extra": {
     "git-templates-project-dir": "subdir"
   }
}

Repository Type

The repository type is defined in this order:

  1. Option --repository-type / -r
  2. composer.json key extra.git-templates-repository-type
  3. Environment variable REPOSITORY_TYPE
  4. Default : gitlab

Available repository types: gitlab, github, gitbucket.

Template destination by repository type:

  • gitlab -> .gitlab/issue_templates
  • github -> .github/ISSUE_TEMPLATE
  • gitbucket -> .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:

  1. Option --locale / -l
  2. composer.json key extra.git-templates-locale
  3. Environment variable LANGUAGE
  4. 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

GPL-3.0

统计信息

  • 总下载量: 52
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 9
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2026-04-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固