Skip to content

Adding a web link to remediate commits that are not signed off #170

@gr2m

Description

@gr2m

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

  1. person submits a PR (e.g. fixing a typo using GitHub's UI) without signing their commit
  2. The DCO app adds a comment prompting the user to sign, providing a link to do so
  3. The link redirects to a custom route of the DCO app with a reference to the pull request
  4. The user is asked to authenticate using GitHub
  5. The app creates an empty commit with the correct commit body to sign off on the previous commit, authenticated as the user.
  6. The user gets redirected to the pull request
  7. Because of the newly added remediation commit, DCO can now set the status to success
  8. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions