-
Notifications
You must be signed in to change notification settings - Fork 961
Conversation
PushEvents bool `json:"push_events"` | ||
TagPushEvents bool `json:"tag_push_events"` | ||
VulnerabilityEvents bool `json:"vulnerability_events"` | ||
WikiPageEvents bool `json:"wiki_page_events"` | ||
|
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.
this should include this as well:
LabelsToBeNotified string `json:"labels_to_be_notified,omitempty"`
LabelsToBeNotifiedBehavior string `json:"labels_to_be_notified_behavior,omitempty"`
PushChannel string `json:"push_channel,omitempty"`
IssueChannel string `json:"issue_channel,omitempty"`
ConfidentialIssueChannel string `json:"confidential_issue_channel,omitempty"`
MergeRequestChannel string `json:"merge_request_channel,omitempty"`
NoteChannel string `json:"note_channel,omitempty"`
ConfidentialNoteChannel string `json:"confidential_note_channel,omitempty"`
TagPushChannel string `json:"tag_push_channel,omitempty"`
PipelineChannel string `json:"pipeline_channel,omitempty"`
WikiPageChannel string `json:"wiki_page_channel,omitempty"`
DeploymentChannel string `json:"deployment_channel,omitempty"`
IncidentChannel string `json:"incident_channel,omitempty"`
VulnerabilityChannel string `json:"vulnerability_channel,omitempty"`
AlertChannel string `json:"alert_channel,omitempty"`
aside from the missing fields i mentioned, this appears to be working. is it possible to change the |
97d833a
to
ceea2d5
Compare
Nice catch, added them to the struct 👍🏻 And no, the API doesn't return the properties on the PUT call, so it needs another GET call is you want the updated/saved properties from the server... |
it does - all the json output from our discussion in #2040 was from the |
settings := new(SlackApplication)
req, err := s.client.NewRequest(http.MethodPut, u, opt, options)
if err != nil {
return nil, err
}
resp, err := s.client.Do(req, &settings)
fmt.Println("-- SetSlackApplication --")
fmt.Printf("Inheritted: %t\n", settings.Inherited)
fmt.Println("-- SetSlackApplication --")
|
80a1c74
to
05a4a80
Compare
I guess this should fix it, but the tests now fail 😏 Yet I'm out of time to spend on this for now, so will have another look next weekend or so... |
if you don't have time for this right now i can take a look at fixing the tests, i'd like to see this get merged b/c i'd like to start work on the terraform resource for it. |
Thanks you very much for the help @jgangemi! |
Fixes #2039