Repository navigation
ci: use checkout v7.0.1, check all commits - #19
Merged
Merged
Conversation
GitHub runs a set of automatic checks on each change. The files in .github/workflows list those checks. Each check starts with actions/checkout. That is a step from GitHub that downloads the code before the checks run. This change makes every check use release v7.0.1 of that step. The label v7.0.1 always names that one release. A label like v7 can be moved to a newer release later, which could change what the step does. The change edits 11 lines in docs.yml, security.yml and workspace.yml. Nothing else changes.
One of the automatic checks reads commit messages. It tests them against the rules in the .gitlint file, using a tool called gitlint. This change makes that check look at every commit in a change: - For a pull request, it checks every commit that is not yet on the branch the pull request targets. - For a push, it checks every commit added since the last commit that was already on that branch. - If that commit is missing, the branch is new, or the push replaced it, it checks every commit that is not yet on the main branch. If there are none, the check passes. This catches a bad message in any of these commits, not just in the newest one.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GitHub runs a set of automatic checks on each change to this repository. The files in
.github/workflowslist those checks. This pull request makes two small changes to them.Each check starts with
actions/checkout. That is a step from GitHub that downloads the code before the checks run. The first change makes every check use releasev7.0.1of that step. The labelv7.0.1always names that one release. A label likev7can be moved to a newer release later.One check reads commit messages and tests them against the rules in the
.gitlintfile. It uses a tool called gitlint. The second change makes this check look at every commit in a pull request or push, not just the newest one.Approach
docs.yml,security.ymlandworkspace.yml. Each of these lines namesactions/checkout@v7.0.1. Nothing else changes.workspace.yml. It picks the commits to check like this:Verification
.github/workflowsfor both commits with actionlint, a tool that checks these files for mistakes. It found no problems.