Make it easier to find developer sign-off instructions (#6739)
* Make it easier to find sign-off instructions by linking directly to DCO docs from danger message.
This commit is contained in:
parent
e26d87c73d
commit
09a91c4541
|
@ -0,0 +1 @@
|
||||||
|
Link directly to DCO docs from danger message.
|
|
@ -83,7 +83,7 @@ if (requiresSignOff) {
|
||||||
const hasPRBodySignOff = pr.body.includes(signOff)
|
const hasPRBodySignOff = pr.body.includes(signOff)
|
||||||
const hasCommitSignOff = danger.git.commits.every(commit => commit.message.includes(signOff))
|
const hasCommitSignOff = danger.git.commits.every(commit => commit.message.includes(signOff))
|
||||||
if (!hasPRBodySignOff && !hasCommitSignOff) {
|
if (!hasPRBodySignOff && !hasCommitSignOff) {
|
||||||
fail("Please add a sign-off to either the PR description or to the commits themselves.")
|
fail("Please add a sign-off to either the PR description or to the commits themselves. See instructions [here](https://matrix-org.github.io/synapse/latest/development/contributing_guide.html#sign-off).")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue