-
Notifications
You must be signed in to change notification settings - Fork 1
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
jira-translator-cdevents : translate jira issue and worklog events into ticket CDEvents #1
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Jalander Ramagiri <jalander.ramagiri@est.tech>
Signed-off-by: Jalander Ramagiri <jalander.ramagiri@est.tech>
Signed-off-by: Jalander Ramagiri <jalander.ramagiri@est.tech>
Signed-off-by: Jalander Ramagiri <jalander.ramagiri@est.tech>
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.
Most of my comments are very minor, so should be able to be resolved fairly quickly
pEvent = &JiraEvent{event} | ||
return |
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.
pEvent = &JiraEvent{event} | |
return | |
return &JiraEvent{event} |
Event string | ||
} | ||
|
||
func NewJiraEvent(event string) (pEvent *JiraEvent) { |
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.
func NewJiraEvent(event string) (pEvent *JiraEvent) { | |
func NewJiraEvent(event string) *JiraEvent { |
"net/http" | ||
) | ||
|
||
type JiraEvent struct { |
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.
If it is only a single string field, we can do something like this instead
type JiraEvent string
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.
Most of my comments are very minor, so should be able to be resolved fairly quickly
This PR includes the changes for a plugin implementation of
EventTranslator
interface that is exposed by CDEvents Webhook Adapter to translate jira events into CDEvents.Below are the Jira events that are currently have mappings with CDEvents and are supported by this translator.
Note:
webhook-adapter
dependency also will be updated once sdk-go v0.4 releasedSigned-off-by: Jalander Ramagiri @rjalander