You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Separate member and collaborator configurations
- Separate trusted apps from the member and collaborator handling
Signed-off-by: Dale Haiducek <[email protected]>
Commit: github.GitCommit{Message: "not signed off"},
272
+
Author: github.User{
273
+
Login: "test",
274
+
},
275
+
},
276
+
},
277
+
issueState: "open",
278
+
hasDCONo: true,
279
+
hasDCOYes: false,
280
+
281
+
addedLabel: fmt.Sprintf("/#3:%s", dcoNoLabel),
282
+
expectedStatus: github.StatusFailure,
283
+
addedComment: "/#3:Thanks for your pull request. Before we can look at it, you'll need to add a 'DCO signoff' to your commits.\n\n"+
284
+
":memo: **Please follow instructions in the [contributing guide](https://github.com///blob/master/CONTRIBUTING.md) to update your "+
285
+
"commits with the DCO**\n\nFull details of the Developer Certificate of Origin can be found at "+
286
+
"[developercertificate.org](https://developercertificate.org/).\n\n**The list of commits missing DCO signoff**:\n\n"+
287
+
"- [sha](https://github.com///commits/sha) not signed off\n\n<details>\n\nInstructions for interacting with me using PR comments are "+
288
+
"available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related "+
289
+
"to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) "+
290
+
"repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).\n</details>\n",
258
291
},
259
292
{
260
293
name: "should add label and update status context if an user is member of the trusted org (one commit signed, one non-signed)",
@@ -415,6 +448,55 @@ Full details of the Developer Certificate of Origin can be found at [developerce
415
448
416
449
<details>
417
450
451
+
Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
452
+
</details>
453
+
`,
454
+
},
455
+
{
456
+
name: "should fail dco check as one unsigned commit is not from the trusted app",
Commit: github.GitCommit{Message: "not signed off"},
470
+
Author: github.User{
471
+
Login: "test",
472
+
},
473
+
},
474
+
{
475
+
SHA: "sha2",
476
+
Commit: github.GitCommit{Message: "not signed off"},
477
+
Author: github.User{
478
+
Login: "my-trusted-app",
479
+
},
480
+
},
481
+
},
482
+
issueState: "open",
483
+
hasDCONo: false,
484
+
hasDCOYes: false,
485
+
486
+
addedLabel: fmt.Sprintf("/#3:%s", dcoNoLabel),
487
+
expectedStatus: github.StatusFailure,
488
+
addedComment: `/#3:Thanks for your pull request. Before we can look at it, you'll need to add a 'DCO signoff' to your commits.
489
+
490
+
:memo: **Please follow instructions in the [contributing guide](https://github.com///blob/master/CONTRIBUTING.md) to update your commits with the DCO**
491
+
492
+
Full details of the Developer Certificate of Origin can be found at [developercertificate.org](https://developercertificate.org/).
493
+
494
+
**The list of commits missing DCO signoff**:
495
+
496
+
- [sha](https://github.com///commits/sha) not signed off
497
+
498
+
<details>
499
+
418
500
Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
419
501
</details>
420
502
`,
@@ -463,7 +545,7 @@ Instructions for interacting with me using PR comments are available [here](http
463
545
{
464
546
name: "should skip dco check as commit is from a collaborator",
465
547
config: plugins.Dco{
466
-
SkipDCOCheckForMembers: true,
548
+
SkipDCOCheckForMembers: false,
467
549
SkipDCOCheckForCollaborators: true,
468
550
TrustedOrg: "kubernetes",
469
551
},
@@ -771,6 +853,35 @@ Instructions for interacting with me using PR comments are available [here](http
0 commit comments