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

add support for web commit sign off #2007

Merged

Conversation

rumenvasilev
Copy link
Contributor

Resolves #2006


Before the change?

After the change?

  • Passing web_commit_signoff_required allows you to toggle this on or off (off by default).

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

rumenvasilev and others added 3 commits November 7, 2023 15:11
Signed-off-by: Rumen Vasilev <git@rumenvasilev.com>
Signed-off-by: Rumen Vasilev <git@rumenvasilev.com>
@@ -678,6 +685,7 @@ func resourceGithubRepositoryRead(d *schema.ResourceData, meta interface{}) erro
d.Set("allow_squash_merge", repo.GetAllowSquashMerge())
d.Set("allow_update_branch", repo.GetAllowUpdateBranch())
d.Set("delete_branch_on_merge", repo.GetDeleteBranchOnMerge())
d.Set("web_commit_signoff_required", repo.GetWebCommitSignoffRequired())
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be set somewhere in the Create/Update methods as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Did I miss adding it somewhere? I’ve tested this feature and it works as expected (adding, removing, updating the setting).

Is it possible that you’re asking for the other PR (the bug for gitcommit paginated call)?

@rumenvasilev
Copy link
Contributor Author

@kfcampbell is there a reason you are not merging this?

@kfcampbell
Copy link
Member

It slipped through the cracks for me; apologies. I'll get it merged and released soon.

@kfcampbell kfcampbell merged commit 0b984fb into integrations:main Nov 21, 2023
3 checks passed
@rumenvasilev rumenvasilev deleted the web_commit_signoff_required branch November 22, 2023 06:43
avidspartan1 pushed a commit to avidspartan1/terraform-provider-github that referenced this pull request Feb 5, 2024
* add support for web commit sign off

Signed-off-by: Rumen Vasilev <git@rumenvasilev.com>

* include test assertion

Signed-off-by: Rumen Vasilev <git@rumenvasilev.com>

---------

Signed-off-by: Rumen Vasilev <git@rumenvasilev.com>
Co-authored-by: Keegan Campbell <me@kfcampbell.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT]: Add support for web commit sign off in non-org repositories
2 participants