Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: introduce CommitSigner interface #442

Merged
merged 5 commits into from
Jan 25, 2023
Merged

feat: introduce CommitSigner interface #442

merged 5 commits into from
Jan 25, 2023

Conversation

chingor13
Copy link
Contributor

@chingor13 chingor13 commented Jan 24, 2023

Towards #337

This introduces an interface to allow providing a commit signer, but does not include any implementation.

@chingor13 chingor13 requested a review from a team as a code owner January 24, 2023 18:47
@chingor13 chingor13 requested a review from a team January 24, 2023 18:47
@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label Jan 24, 2023
Copy link
Contributor

@bcoe bcoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable to me. I think we should probably have a concrete signer in this repository eventually, once we've figured out the best option for this.

@@ -44,6 +60,9 @@ export async function createCommit(
message,
tree: treeSha,
parents: [refHead],
signature,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you can find the REST documentation in the GitHub API, adding it here as a comment would be useful.

I'm interested to know what options we have available to us for a signing algorithm (I'm hoping we might be able to use something other than GPG).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a link to the create commit API docs. It looks like only PGP is supported for this API

test/commit-and-push.ts Show resolved Hide resolved
@chingor13 chingor13 enabled auto-merge (squash) January 25, 2023 16:51
@chingor13 chingor13 merged commit 4801592 into main Jan 25, 2023
@chingor13 chingor13 deleted the commit-signer branch January 25, 2023 16:57
This was referenced Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants