Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Merge requests
  • !7762

Merged
Created Sep 17, 2014 by Administrator@rootOwner

Allow commit messages to close several issues at once

  • Overview 37
  • Commits 1
  • Changes 6

Created by: jubianchi

This PR improves how commit message can close issues.

Until now, we were able to close single issues in commit message using some keywords. But closing several issues at once seemed impossible.

With this patch, we can mix keywords and issues # in commit message to close issues. For example:

git commit -m"Awesome commit message (Fix #20, Fixes #21 and Closes #22) This commit is also related to #17 and fixes #18"

Using such commit message will close #20, #21, #22 and #18. #17 won't be closed as it does not match the pattern. It also works with multiline commit messages.

http://feedback.gitlab.com/forums/176466-general/suggestions/5673472-allow-multiple-issues-to-be-closed-from-a-commit-m

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: github/fork/jubianchi/commit-closing-issues