Commit Graph

8 Commits

Author SHA1 Message Date
Donatas Abraitis
b3b0679cb0 tools: Use specific syntax for conditions for Github actions
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-03-13 09:52:13 +02:00
Donatas Abraitis
754a054059 tools: Do not run commit linter for other branches than master
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-03-05 21:15:18 +02:00
Donatas Abraitis
8b40b2f655 tools: Add help url when commitlint fails
Just point to our workflow documentation.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-03-03 10:05:53 +02:00
Donatas Abraitis
463e8d5d0a tools: Replace pull_request_target to pull_request for commitlint action
Tested locally, it works. So it seems that, pull_request_target is not
working properly, let's check.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-02-07 23:16:41 +02:00
Donatas Abraitis
8428482abb tools: Fetch more commits for commitlint to validate the commit
Note: It's necessary that you specify the fetch-depth argument to
actions/checkout@v2 step. By default they fetch only latest commit of the
branch, but we need more commits since we validate a range of commit messages.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-02-07 22:03:42 +02:00
Donatas Abraitis
0a18c855fd tools: Revalidate commits when PR is updated
Trigger GH action also if labeled, unlabeled.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-02-07 21:55:31 +02:00
Donatas Abraitis
5e66e742d7 tools: Add build as a valid prefix for commit messages
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-02-07 21:41:20 +02:00
Donatas Abraitis
f05a0c1dde tools: Add commit linter
Run under Github Actions, and restrict commit messages, structure, with, etc.

Enforce using only our specified prefixes for commit messages. It reduces the
work release managers do when _crafting_ release notes.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-01-31 13:25:25 +02:00