tools: lint PR commit messages without approval · nodejs/node@e5bbcfd · GitHub
Skip to content

Commit e5bbcfd

Browse files
panvaaduh95
authored andcommitted
tools: lint PR commit messages without approval
Use pull_request_target to run commit message linting without fork workflow approval. Fetch the first commit through the API and pass its message to a pinned validator as JSON on stdin. Capture validator output and report failures through escaped annotations, using only read access to pull requests. Signed-off-by: Filip Skokan <panva.ip@gmail.com> PR-URL: #65875 Reviewed-By: Mike McCready <66998419+MikeMcC399@users.noreply.github.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 0d14c0e commit e5bbcfd

2 files changed

Lines changed: 33 additions & 29 deletions

File tree

‎.github/workflows/commit-lint-problem-matcher.json‎

Lines changed: 0 additions & 13 deletions
This file was deleted.

‎.github/workflows/commit-lint.yml‎

Lines changed: 33 additions & 16 deletions

0 commit comments

Comments
 (0)