From 5755a4545cf2787200ab9fce17e470db7c8bd9bb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 5 Mar 2026 15:36:32 +0000 Subject: [PATCH 1/3] Initial plan From bbc144e80815ffda04007886b879e2ff89e49189 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 5 Mar 2026 15:38:20 +0000 Subject: [PATCH 2/3] docs: document DCO sign-off requirement in CONTRIBUTING.md Co-authored-by: jaydeluca <7630696+jaydeluca@users.noreply.github.com> --- CONTRIBUTING.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2abbd91e2..9e5fe98ca 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -12,6 +12,30 @@ Prometheus uses GitHub to manage reviews of pull requests. This will avoid unnecessary work and surely give you and us a good deal of inspiration. +## Signing Off Commits + +Every commit must include a `Signed-off-by` line, as required by the +[Developer Certificate of Origin (DCO)](https://developercertificate.org/). + +Sign off each commit by passing `--signoff` (or `-s`) to `git commit`: + +```bash +git commit --signoff -m "Your commit message" +``` + +If you have already created commits without a sign-off, you can retroactively +add it by rebasing (replace `N` with the number of commits to sign off): + +```bash +git rebase --signoff HEAD~N +``` + +Then force-push the branch: + +```bash +git push --force-with-lease +``` + ## Formatting This repository uses [Google Java Format](https://github.com/google/google-java-format) to format From ed49d56594108d78949b5a90f0b7cb2429089313 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 5 Mar 2026 15:57:46 +0000 Subject: [PATCH 3/3] docs: add amend tip and improve sign-off remediation instructions Co-authored-by: jaydeluca <7630696+jaydeluca@users.noreply.github.com> --- CONTRIBUTING.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9e5fe98ca..1e478f0dc 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -23,8 +23,13 @@ Sign off each commit by passing `--signoff` (or `-s`) to `git commit`: git commit --signoff -m "Your commit message" ``` -If you have already created commits without a sign-off, you can retroactively -add it by rebasing (replace `N` with the number of commits to sign off): +To sign off only the most recent commit, use `--amend`: + +```bash +git commit --amend --signoff --no-edit +``` + +To sign off multiple commits, rebase (replace `N` with the number of commits): ```bash git rebase --signoff HEAD~N