{
  "slug": "glab-issue-create-and-glab-mr-create-accept-template-e5aff430e82a",
  "title": "glab issue create and glab mr create accept --template",
  "tools": [
    "glab"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-04-23T15:19:06.801Z",
  "announced_at": "2026-04-23T15:19:06.801Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When creating an issue or merge request from a local repository and you want to pre-populate its description from a template, pass `--template <template>` to the matching create command. Use a template name or path; local repository templates are read from the corresponding `.gitlab` template directory.",
    "examples": [
      "glab issue create -t \"<title>\" --template <template>",
      "glab mr create -t \"<title>\" --template <template>"
    ],
    "gotchas": [
      "Version: v1.93.0",
      "--template <template>: Pre-populates the description. For issues, a template name is looked up in `.gitlab/issue_templates/`; for merge requests, in `.gitlab/merge_request_templates/`. The `.md` extension is optional. An absolute path or value containing a path separator is read as a file path.",
      "-t, --title <title>: Supplies the issue or merge request title; the examples combine it with `--template`.",
      "Prerequisite: Templates are loaded from the local repository; remote repository templates are not supported.",
      "Prerequisite: Authenticate with the GitLab instance before running authenticated commands. The docs list personal access tokens with `api` and `write_repository` scopes as one authentication option."
    ]
  },
  "why_it_matters": "Create an issue or merge request using a repository template.",
  "sources": [
    "https://gitlab.com/gitlab-org/cli/-/releases/v1.93.0",
    "https://docs.gitlab.com/cli/issue/create/",
    "https://docs.gitlab.com/cli/mr/create/",
    "https://gitlab.com/gitlab-org/cli/-/merge_requests/3144",
    "https://docs.gitlab.com/cli/authentication/"
  ],
  "rank": 0.96038,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2b-20261017",
    "verdict_id": "wave2b-20261017:wave2b-20261017-4000a9310826dc13-4:gate",
    "evidence_hash": "b5e7405071b216ab9747ac1411392e67eaa6491ba05f612b78acd34ff675ed0b"
  },
  "review": {
    "draft_hash": "2cd94f059916a52e5d66d24f1c75c6ea1a22550105259c36d32336388698a1c0",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2b-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.96 >= 0.9; 2 needed) and Jev gave 0.76 (>= 0.6 needed)."
  }
}
