-
Notifications
You must be signed in to change notification settings - Fork 84
Open
Description
This is a suggest to lower the barrier for creating remediation commits (depends on #147).
As of now, there is no simple way using the GitHub UI to add empty commits with the correct commit message body to sign off for previous commits.
I suggest to implement the following flow
- person submits a PR (e.g. fixing a typo using GitHub's UI) without signing their commit
- The DCO app adds a comment prompting the user to sign, providing a link to do so
- The link redirects to a custom route of the DCO app with a reference to the pull request
- The user is asked to authenticate using GitHub
- The app creates an empty commit with the correct commit body to sign off on the previous commit, authenticated as the user.
- The user gets redirected to the pull request
- Because of the newly added remediation commit, DCO can now set the status to success
- Bonus: the comment from the DCO app gets hidden as outdated
This could be an opt-in feature.
Note: Adding the comment will require an additional permission which needs to be approved by owners of all installations. But we can add the same link to the check runs we create, where we already document how to fix commits that are not signed off. It will be the simplest solution of all.
What do you think @ryjones @brianwarner @ashleywolf?
Willmish, ryjones, hexagonrecursion and fruffy
Metadata
Metadata
Assignees
Labels
No labels