Skip to content

Add require_linear_history on github_branch_protection resource - #887

Merged
jcudit merged 3 commits into
integrations:mainfrom
charlie-collard:add_require_linear_history
Sep 22, 2021
Merged

jcudit merged 3 commits into
integrations:mainfrom
charlie-collard:add_require_linear_history

Conversation

@charlie-collard

@charlie-collard charlie-collard commented Aug 19, 2021 •

Copy link
Copy Markdown
Contributor

Fixes #305

Tested to work locally

@majormoses majormoses left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@dududko

dududko commented Aug 31, 2021

Copy link
Copy Markdown

@majormoses could you please merge this PR into master ?

@jcudit jcudit added this to the v4.15.0 milestone Aug 31, 2021
@jcudit

jcudit commented Aug 31, 2021

Copy link
Copy Markdown
Contributor

❤️ excited to see this one ship. Will need to get this tested but aim to batch this into the next release.

Thanks for the contribution and patience so far!

@jcudit jcudit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All good here to merge once the docs get fixed.

@jcudit
jcudit merged commit 6d22c86 into integrations:main Sep 22, 2021
@dav-tb

dav-tb commented Oct 13, 2021

Copy link
Copy Markdown

Hmmm. Trying to set require_linear_history to true here. No failure from Terraform's planning and applying stages but the setting doesn't get through. On subsequent plan, it sees it as still something to change.

Is there any other setting that may cause it to be ignored?

@schmurfy

Copy link
Copy Markdown

I got exactly the same issue, the plan says it is going to change its value but nothing gets done.
I tried running the plan again with the checkbox checked and unchecked, in both case the value on github was left unchanged after the apply.

@leosunmo

Copy link
Copy Markdown

Same issue here @schmurfy and @Crono1981 . Created an issue for it. Please add any details you have to the issue!

@robzr

robzr commented Nov 13, 2021

Copy link
Copy Markdown

This does not work - there is an issue raised here for it: #952

@ehrenkret

Copy link
Copy Markdown

Looks like this reads the linear history flag but doesn't write it. Opened #994 to write it.

kfcampbell pushed a commit to kfcampbell/terraform-provider-github that referenced this pull request Jul 26, 2022
…ntegrations#887)

* Add `require_linear_history` on `github_branch_protection` resource

* Run gofmt

* Move documentation to correct file
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.

Feature Request > New branch protection features support

9 participants