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

Ability to create suborgs using custom properties. #624

Merged
merged 7 commits into from
May 2, 2024

Conversation

decyjphr
Copy link
Collaborator

Added support to create definitions of suborgs based on custom properties.

You can use custom properties to create a suborg in the .github/suborgs/<suborg>.yml as follows:

suborgproperties:     
- prop1: true
- prop2: frontend

...

In order for this to work, the app has to be given organization_custom_properties: admin permissions and it has to listen to custom_property_values event.

@decyjphr decyjphr requested a review from bryantson April 26, 2024 18:21
@decyjphr decyjphr merged commit 8a83354 into main-enterprise May 2, 2024
1 check passed
@decyjphr decyjphr deleted the decyjphr/suborgs-by-custom-properties branch May 2, 2024 11:39
@@ -5,9 +5,14 @@ suborgrepos:
- test*
# You can use Glob patterns

# List of repos that belong to the suborg

Choose a reason for hiding this comment

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

Suggested change
# List of repos that belong to the suborg
# List of teams that belong to the suborg

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.

2 participants