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

Sign commits, as well as tags #72

Merged
merged 1 commit into from
Sep 5, 2020
Merged

Sign commits, as well as tags #72

merged 1 commit into from
Sep 5, 2020

Conversation

ramsey
Copy link
Contributor

@ramsey ramsey commented Sep 5, 2020

Q A
Documentation no
Bugfix no
BC Break yes
New Feature yes
RFC no
QA no

Description

Currently, automatic-releases signs Git tags using the signing key but not commits. This PR provides support for signing commits, as well.

This is a BC break because some of the interfaces have changed to require Laminas\AutomaticReleases\Gpg\SecretKeyId. This is not an optional parameter. As such, this change might need to wait until 2.0.0, unless the risk is deemed acceptable for 1.7.0 or 1.8.0.

@@ -93,6 +106,12 @@ public function testFailsIfNotOnCorrectBranch(): void
$this->expectException(InvalidArgumentException::class);
$this->expectExceptionMessage('different branch');
(new CommitFileViaConsole())
->__invoke($this->checkout, BranchName::fromName('1.0.x'), 'README.md', 'commit message');
->__invoke(
Copy link
Member

Choose a reason for hiding this comment

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

I think we meed a test that verifies that the commit is signed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Assertion added!

@Ocramius Ocramius added this to the 1.7.0 milestone Sep 5, 2020
Signed-off-by: Ben Ramsey <ben@benramsey.com>
@Ocramius Ocramius merged commit 464cda9 into laminas:1.7.x Sep 5, 2020
@Ocramius Ocramius changed the title feat: sign commits, as well as tags Sign commits, as well as tags Sep 5, 2020
@Ocramius
Copy link
Member

Ocramius commented Sep 5, 2020

FWIW, not a BC break, since this is an application, not a library 👍

@ramsey ramsey deleted the features/signed-commits branch September 5, 2020 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants