dev: fix commit linter target and lint all commits
- Was formerly processing the internal merge commit, which never conforms to our conventions, but is also unrelated to the work at hand. - Now lints the range of commits applicable to the event, and not just the latest commit.
This commit is contained in:
parent
0ca34af323
commit
74f72c15b3
2 changed files with 2 additions and 2 deletions
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
|
@ -11,4 +11,4 @@ jobs:
|
|||
- uses: actions/checkout@v2.3.1
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- run: bin/doom ci lint-commits HEAD~1
|
||||
- run: bin/doom ci lint-commits ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }}
|
||||
|
|
|
@ -144,7 +144,7 @@
|
|||
(insert
|
||||
(cdr (doom-call-process
|
||||
"git" "log"
|
||||
(format "%s...%s" from (or to "HEAD")))))
|
||||
(format "%s..%s" from (or to "HEAD")))))
|
||||
(while (re-search-backward "^commit \\([a-z0-9]\\{40\\}\\)" nil t)
|
||||
(push (cons (match-string 1)
|
||||
(replace-regexp-in-string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue