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

while creating organization-rule-set it is not working as expected #86

Open
A660988 opened this issue Aug 22, 2024 · 2 comments
Open

while creating organization-rule-set it is not working as expected #86

A660988 opened this issue Aug 22, 2024 · 2 comments

Comments

@A660988
Copy link

A660988 commented Aug 22, 2024

Hello I am trying to create organizatio rule set.

I am giving the hard coded value in the following compoition

image

Wgen we apply claim, seems it is not creating the ruleset as expected. 
**The value I am providing to parameter name **condition** that is not working.**
```
Example 
conditions:
          - ref_name:
              - include: 
                 - ~ALL     
              - exclude:
                 - "refs/heads/dev*"
          - repository_name:
              - include:
                 - epis-events
                 - epis-dev-services-library
 ```

image

Can you please look into this and suggest what is wrong here?

Thanks in Advance

@A660988 A660988 changed the title while creating organization-rule-set it is not taking the ~ALL for ref name while creating organization-rule-set it is not working as expected Aug 23, 2024
@A660988
Copy link
Author

A660988 commented Aug 28, 2024

Is there any update please?

@AtzeDeVries
Copy link
Collaborator

hi @A660988 , i think the cause of the issue is that you are using ref_name and repository_name but you should use refName and repositoryId according to the CRD.

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

No branches or pull requests

2 participants