@@ -30,7 +30,7 @@ type ListProjectEventsOptions struct {
30
30
// ListProjectEvents retrieves events for a specific project
31
31
func (e * EventsAPI ) ListProjectEvents (orgSlug , projectSlug string , opts * ListProjectEventsOptions ) ([]models.Event , * client.PaginationInfo , error ) {
32
32
endpoint := fmt .Sprintf ("/projects/%s/%s/events/" , orgSlug , projectSlug )
33
-
33
+
34
34
params := url.Values {}
35
35
if opts != nil {
36
36
if opts .StatsPeriod != "" {
@@ -81,7 +81,7 @@ type ListIssueEventsOptions struct {
81
81
// ListIssueEvents retrieves events for a specific issue
82
82
func (e * EventsAPI ) ListIssueEvents (orgSlug string , issueID string , opts * ListIssueEventsOptions ) ([]models.Event , * client.PaginationInfo , error ) {
83
83
endpoint := fmt .Sprintf ("/organizations/%s/issues/%s/events/" , orgSlug , issueID )
84
-
84
+
85
85
params := url.Values {}
86
86
if opts != nil {
87
87
if opts .Start != "" {
@@ -139,7 +139,7 @@ type ListIssuesOptions struct {
139
139
// ListIssues retrieves issues for an organization
140
140
func (e * EventsAPI ) ListIssues (orgSlug string , opts * ListIssuesOptions ) ([]models.Issue , * client.PaginationInfo , error ) {
141
141
endpoint := fmt .Sprintf ("/organizations/%s/issues/" , orgSlug )
142
-
142
+
143
143
params := url.Values {}
144
144
if opts != nil {
145
145
for _ , env := range opts .Environment {
@@ -187,7 +187,7 @@ func (e *EventsAPI) ListIssues(orgSlug string, opts *ListIssuesOptions) ([]model
187
187
// GetProjectEvent retrieves a specific event for a project
188
188
func (e * EventsAPI ) GetProjectEvent (orgSlug , projectSlug , eventID string ) (* models.Event , error ) {
189
189
endpoint := fmt .Sprintf ("/projects/%s/%s/events/%s/" , orgSlug , projectSlug , eventID )
190
-
190
+
191
191
resp , err := e .client .Get (endpoint , nil )
192
192
if err != nil {
193
193
return nil , err
@@ -204,7 +204,7 @@ func (e *EventsAPI) GetProjectEvent(orgSlug, projectSlug, eventID string) (*mode
204
204
// GetIssue retrieves a specific issue
205
205
func (e * EventsAPI ) GetIssue (orgSlug , issueID string ) (* models.Issue , error ) {
206
206
endpoint := fmt .Sprintf ("/organizations/%s/issues/%s/" , orgSlug , issueID )
207
-
207
+
208
208
resp , err := e .client .Get (endpoint , nil )
209
209
if err != nil {
210
210
return nil , err
@@ -226,7 +226,7 @@ type GetIssueEventOptions struct {
226
226
// GetIssueEvent retrieves a specific event for an issue
227
227
func (e * EventsAPI ) GetIssueEvent (orgSlug , issueID , eventID string , opts * GetIssueEventOptions ) (* models.Event , error ) {
228
228
endpoint := fmt .Sprintf ("/organizations/%s/issues/%s/events/%s/" , orgSlug , issueID , eventID )
229
-
229
+
230
230
params := url.Values {}
231
231
if opts != nil {
232
232
for _ , env := range opts .Environment {
@@ -245,4 +245,4 @@ func (e *EventsAPI) GetIssueEvent(orgSlug, issueID, eventID string, opts *GetIss
245
245
}
246
246
247
247
return & event , nil
248
- }
248
+ }
0 commit comments