Fix commit-validation CI.

Hopefully. See #9286.
This commit is contained in:
John MacFarlane
2023-12-26 22:46:56 -08:00
parent b1a1f04168
commit b9b8343645
+2 -2
View File
@@ -1,5 +1,5 @@
name: commit-validation
on: [ push, pull_request ]
on: [ pull_request ]
permissions:
contents: read
@@ -16,7 +16,7 @@ jobs:
result-encoding: json
script: |
var longlines = 0;
const commits = ${{ toJSON(github.event.commits) }}
const commits = ${{ toJSON(github.event.pull_request.commits) }}
for (const commit of commits) {
for (const line of commit.message.split('\n')) {
if (line.length > 78) {