Skip to content

feat : Support repository property for GitHub organization ruleset#2356

Merged
stevehipwell merged 23 commits intointegrations:mainfrom
Pipedrive-OSS:Support-repository_property-for-github_organization_ruleset
Mar 23, 2026
Merged

feat : Support repository property for GitHub organization ruleset#2356
stevehipwell merged 23 commits intointegrations:mainfrom
Pipedrive-OSS:Support-repository_property-for-github_organization_ruleset

Conversation

@Moser-ss
Copy link
Copy Markdown
Contributor

@Moser-ss Moser-ss commented Aug 20, 2024

Resolves #2137
Introduces the support to use repository_property to target repositories in the ruleset

The changes were manually tested against a GitHub Organization with an enterprise plan.
It is not possible to add properties with the source system because the lib version doesn't allow that. It is necessary to update to version v65


Before the change?

  • Cannot target ruleset using repository_property

After the change?

  • The ruleset can use the repository_property under the conditions block

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

@Moser-ss Moser-ss marked this pull request as draft August 20, 2024 18:57
@Moser-ss Moser-ss marked this pull request as ready for review August 20, 2024 22:58
@Moser-ss Moser-ss force-pushed the Support-repository_property-for-github_organization_ruleset branch from bb62d7a to 40c5111 Compare August 28, 2024 13:17
@Moser-ss Moser-ss changed the title Support repository property for GitHub organization ruleset feat : Support repository property for GitHub organization ruleset Sep 3, 2024
@Moser-ss
Copy link
Copy Markdown
Contributor Author

Moser-ss commented Sep 7, 2024

@kfcampbell, could you take a quick look to see if I need to improve anything in this PR

Copy link
Copy Markdown
Contributor

@kfcampbell kfcampbell left a comment

Choose a reason for hiding this comment

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

Thanks! Have you looked at expanding the tests in github/resource_github_organization_ruleset_test.go to cover this usecase yet?

@Moser-ss
Copy link
Copy Markdown
Contributor Author

A test case was added, I hope the change was not to ugly

@Moser-ss
Copy link
Copy Markdown
Contributor Author

Moser-ss commented Oct 5, 2024

@kfcampbell can I do anything to speed up the review of this PR?

@stevehipwell
Copy link
Copy Markdown
Collaborator

@Moser-ss I think you need to update the docs to reflect these changes?

@Moser-ss
Copy link
Copy Markdown
Contributor Author

Moser-ss commented Nov 9, 2024

@stevehipwell Docs updated, thanks for catching that.

@wrighbr
Copy link
Copy Markdown

wrighbr commented Nov 14, 2024

@PaarthShah @kfcampbell Would you have an estimate on when this PR might be reviewed and merged?

@PaarthShah
Copy link
Copy Markdown

@PaarthShah @kfcampbell Would you have an estimate on when this PR might be reviewed and merged?

@wrighbr No idea, I'm not a maintainer 😅

@alexymantha
Copy link
Copy Markdown

alexymantha commented Dec 16, 2024

We also need this feature. It's been stale for a little while, anything we can do to get this merged?

@daniddelrio
Copy link
Copy Markdown

+1 on this PR. Would be great if this can get merged soon

@ChrisStatham
Copy link
Copy Markdown

@kfcampbell If you have a chance to review this feature it would be appreciated thanks!

@aditya-nair1
Copy link
Copy Markdown

aditya-nair1 commented Jan 7, 2025

@kfcampbell +1, thanks!

@vimc9
Copy link
Copy Markdown

vimc9 commented Jan 7, 2025

@kfcampbell would be grateful for your review here 🚀 🚀 🚀

@tayven-bigelow
Copy link
Copy Markdown

@kfcampbell - Any chance of getting a review / approval of this PR?

@graham1228
Copy link
Copy Markdown

➕ 1️⃣ on getting this merged. Would love to migrate our bash scripts to TF, but need this functionality.

@lfraile
Copy link
Copy Markdown

lfraile commented Apr 7, 2025

+1 On desperately needing this PR to get approved :(

@tayven-bigelow
Copy link
Copy Markdown

@kfcampbell - Is there any chance we could get this merged?
Is there something missing or any sort of directive as to why it hasn't been approved?

@stevehipwell
Copy link
Copy Markdown
Collaborator

@tayven-bigelow check out the commit history for this repo, I don't think GitHub are providing engineering resources here at the moment.

@loksonarius
Copy link
Copy Markdown

tyvm for setting up this PR, I really hope it merges in soon 🙏

@Maksym-Perehinets
Copy link
Copy Markdown

hi, is there any chance to get this one merged?
+1

@deiga
Copy link
Copy Markdown
Collaborator

deiga commented Nov 18, 2025

Hey there 👋

We're looking into getting this into a mergeable state :)

This PR will need to wait until #2891 is merged as the ruleset resources in the SDK have changed.

@Moser-ss Could you try rebasing and retargeting this branch to go-github-v68?

@jack-sdx
Copy link
Copy Markdown

Really looking forward to this capability. 🚀

…ory conditions

ExactlyOneOf has known issues with nested optional list blocks in Terraform SDK.
Use ConflictsWith + AtLeastOneOf pattern for reliable "exactly one" validation
across repository_name, repository_id, and repository_property conditions.

Updated test expectations to match new error message format from ConflictsWith.

Addresses feedback from PR integrations#2356 comment r2968116244, references fix from integrations#3235
@Moser-ss Moser-ss force-pushed the Support-repository_property-for-github_organization_ruleset branch from 4ea85bf to 1bf703e Compare March 20, 2026 23:41
@Moser-ss
Copy link
Copy Markdown
Contributor Author

@deiga PR rebased, and applied the changes requested by @mkushakov
Also ran the tests, fmt and lint

@deiga
Copy link
Copy Markdown
Collaborator

deiga commented Mar 21, 2026

@stevehipwell @robert-crandall this has been stuck with problems on our side very long.
Could we prioritise it's review and merge?

Copy link
Copy Markdown
Collaborator

@stevehipwell stevehipwell left a comment

Choose a reason for hiding this comment

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

LGTM

@stevehipwell
Copy link
Copy Markdown
Collaborator

@robert-crandall could you please review this?

@deiga
Copy link
Copy Markdown
Collaborator

deiga commented Mar 23, 2026

@robert-crandall Thanks! Could you check the mergeability if this PR? At some point it was blocked due to open comments, which we couldn't resolve

@mkushakov
Copy link
Copy Markdown

mkushakov commented Mar 23, 2026

@robert-crandall Thanks! Could you check the mergeability if this PR? At some point it was blocked due to open comments, which we couldn't resolve

@deiga if you click this small icon, it should show you unresolved comments which are sometimes invisible due to force-pushing or long PR discussions:
image

@deiga
Copy link
Copy Markdown
Collaborator

deiga commented Mar 23, 2026

@mkushakov Thanks, I think we checked those and they were missing any way to resolve them 😬

@mkushakov
Copy link
Copy Markdown

mkushakov commented Mar 23, 2026

@deiga can you try to click this small check button?
image

@robert-crandall robert-crandall dismissed mkushakov’s stale review March 23, 2026 17:09

This was addressed

@robert-crandall
Copy link
Copy Markdown

@deiga Can you try resolving conversations with blocking changes requested? For example, #2356 (comment)

@deiga
Copy link
Copy Markdown
Collaborator

deiga commented Mar 23, 2026

@deiga Can you try resolving conversations with blocking changes requested? For example, #2356 (comment)

That's not mine, so I can't 😬 @Moser-ss maybe can?

The one comment which is mine just shows an error when clicking on the resolve button...
image

@robert-crandall
Copy link
Copy Markdown

@deiga I've resolved the remaining unresolved conversations, you are good to merge this now.

@stevehipwell stevehipwell merged commit 94f71cf into integrations:main Mar 23, 2026
7 checks passed
@github-project-automation github-project-automation bot moved this from BLOCKED to Done in Terraform Provider Mar 23, 2026
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in 🧰 Octokit Active Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Feature New feature or request

Projects

Development

Successfully merging this pull request may close these issues.

[FEAT]: Support targeting dynamic list by properties in organizational rulesets