Skip to content

ci: use checkout v7.0.1, check all commits - #19

Merged
npmccallum merged 2 commits into
mainfrom
bot/devmap/checkout-v7.0.1
Oct 31, 2026
Merged

npmccallum merged 2 commits into
mainfrom
bot/devmap/checkout-v7.0.1

Conversation

@npmccallum

Copy link
Copy Markdown
Contributor

Summary

GitHub runs a set of automatic checks on each change to this repository. The files in .github/workflows list 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 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.

One check reads commit messages and tests them against the rules in the .gitlint file. 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

  • The first commit edits 11 lines in docs.yml, security.yml and workspace.yml. Each of these lines names actions/checkout@v7.0.1. Nothing else changes.
  • The second commit edits the commit message check in workspace.yml. It picks the commits to check like this:
    • For a pull request, every commit that is not yet on the branch the pull request targets.
    • For a push, 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, every commit that is not yet on the main branch. If there are none, the check passes.

Verification

  • All local tests were run and passed for every commit in this series independently
  • For each commit, I ran the format check, the Rust lint check (clippy), all the tests and doc tests, the license header check, and the dependency checks (cargo deny and cargo audit). All of them passed.
  • For each commit, I ran the commit message check over the commits in this pull request. It passed.
  • I checked the files in .github/workflows for both commits with actionlint, a tool that checks these files for mistakes. It found no problems.
  • I tried the new commit message check in a scratch copy, with a bad message in an older commit. It caught the bad message for a pull request, for a push, and for a new branch. It passed once all the messages were good.
  • I did not run the tests that need root access, which use the Linux kernel's device-mapper (the kernel feature that builds virtual disks) and loop devices (files used as disks). I also did not run the macOS and Windows tests. This pull request changes only the workflow files and no Rust code, so those tests do not cover anything it changes.

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.
@npmccallum
npmccallum merged commit 444ef40 into main Oct 31, 2026
22 checks passed
@npmccallum
npmccallum deleted the bot/devmap/checkout-v7.0.1 branch October 31, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant