Skip to content

fix(ci): add DCO sign-off to release PR commits#239

Merged
rhuanbarreto merged 3 commits into
mainfrom
fix/release-dco-signoff
Apr 27, 2026
Merged

fix(ci): add DCO sign-off to release PR commits#239
rhuanbarreto merged 3 commits into
mainfrom
fix/release-dco-signoff

Conversation

@rhuanbarreto

Copy link
Copy Markdown
Contributor

Summary

  • Installs a prepare-commit-msg git hook before simple-release-action runs, which appends the Signed-off-by trailer to the release commit automatically
  • Adds inline DCO verification + status check (DCO Sign-off Check) on the release PR commit, since the DCO workflow doesn't trigger on release PRs (pushes via GITHUB_TOKEN don't cascade workflow events)

Context

PR #237 was blocked because:

  1. The release commit from simple-release-action had no Signed-off-by trailer
  2. The DCO workflow only triggers on pull_request events, which don't fire when GITHUB_TOKEN creates/updates a PR

The @conventional-changelog/git-client (used by simple-release-action) calls git commit -m <msg> but doesn't support --signoff. The prepare-commit-msg hook intercepts this and appends the trailer. Note: --no-verify only skips pre-commit and commit-msg hooks, not prepare-commit-msg.

Test plan

  • Merge this PR, then trigger a release (push to main or wait for next version bump)
  • Verify the release PR commit message includes Signed-off-by: github-actions[bot] <...>
  • Verify the DCO Sign-off Check status appears as ✓ on the release PR

The release workflow creates commits via simple-release-action which
doesn't support the --signoff flag. This adds a prepare-commit-msg
git hook before the action runs to append the Signed-off-by trailer
automatically. Also sets the DCO status check on the release PR
commit since the DCO workflow doesn't trigger (GITHUB_TOKEN pushes
don't cascade workflow events).

Signed-off-by: Rhuan Barreto <rhuan.barreto@gmail.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Apr 27, 2026

Copy link
Copy Markdown

Deploying archgate-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0cb04ec
Status: ✅  Deploy successful!
Preview URL: https://eeb0ff5a.archgate-cli.pages.dev
Branch Preview URL: https://fix-release-dco-signoff.archgate-cli.pages.dev

View logs

GitHub's "Update branch" button creates merge commits without a
Signed-off-by trailer. These are platform-generated and should not
require DCO sign-off. Use `git rev-list --no-merges` to skip them.

Signed-off-by: Rhuan Barreto <rhuan.barreto@gmail.com>
@rhuanbarreto rhuanbarreto merged commit 946e169 into main Apr 27, 2026
10 checks passed
@rhuanbarreto rhuanbarreto deleted the fix/release-dco-signoff branch April 27, 2026 21:55
@github-actions github-actions Bot mentioned this pull request Apr 27, 2026
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