Skip to content

Commit

Permalink
Use git-commit language for hub pull-request files
Browse files Browse the repository at this point in the history
Whereas `git commit` uses a file called `COMMIT_EDITMSG`, the hub[^1]
command-line tool uses a file called `PULLREQ_EDITMSG`[^2]. This file is
used to edit the message of each commit being submitted in a pull
request, so it makes sense to reuse the git-commit language.

This commit adds `PULLREQ_EDITMSG` to the list of git-commit file-types.

[^1]: https://github.com/github/hub
[^2]: https://github.com/github/hub/blob/c8e68d548a39ec0fab6f674a669c21b54d4eec61/commands/pull_request.go#L225
  • Loading branch information
EricCrosson committed Jan 22, 2023
1 parent d99a720 commit c680f6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,7 @@ source = { git = "https://github.com/camdencheek/tree-sitter-dockerfile", rev =
name = "git-commit"
scope = "git.commitmsg"
roots = []
file-types = ["COMMIT_EDITMSG"]
file-types = ["COMMIT_EDITMSG", "PULLREQ_EDITMSG"]
comment-token = "#"
indent = { tab-width = 2, unit = " " }
rulers = [50, 72]
Expand Down

0 comments on commit c680f6b

Please sign in to comment.