-
Notifications
You must be signed in to change notification settings - Fork 43
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
Implement getting entity name for gitlab provider #4430
Conversation
@@ -210,6 +210,15 @@ type newPropertiesConfig struct { | |||
skipPrefixCheck bool | |||
} | |||
|
|||
// MustNewProperties creates Properties from a map or panics | |||
func MustNewProperties(props map[string]any, opts ...newPropertiesOption) *Properties { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not against adding this to the properties module, but would it suffice to have the method in the tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not able to import from a _test.go
file. I moved this where it's used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved with two nits/suggestions
This adds a simple implementation of getting the name for an entity based on given properties. This also introduces the first properties for the GitLab provider, which are the group and project. Related-To: #4331 Signed-off-by: Juan Antonio Osorio <[email protected]>
c6b69c5
to
169537e
Compare
Summary
This adds a simple implementation of getting the name for an entity
based on given properties. This also introduces the first properties for
the GitLab provider, which are the group and project.
Related-To: #4331
Change Type
Mark the type of change your PR introduces:
Testing
Outline how the changes were tested, including steps to reproduce and any relevant configurations.
Attach screenshots if helpful.
Review Checklist: