Skip to content

SPEC 8 signed commits clarification #380

Closed
@lucascolley

Description

@lucascolley

I am looking into addressing the following sentence of SPEC 8 at data-apis/array-api-extra#166:

It is also strongly recommended that the repository requires signed commits so that each release corresponds to a verified commit.

Since I don't want to require signed commits from every contributor, the easiest way to do this seems to be to require signed commits just on the release branch. The GitHub docs at https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches#require-signed-commits say:

You can also merge signed and verified commits into the branch using a pull request. However, you cannot squash and merge a pull request into the branch on GitHub unless you are the author of the pull request. You can squash and merge pull requests locally.

But that doesn't really answer these questions: can I merge unsigned commits into a protected branch as a signed merge commit? Would such a merge have to be a squash? If so, can I do this from the GitHub web UI, or only locally?

cc @matthewfeickert

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