From f0d44e2e0e7f0b7e2ef0ef5594e6e385f3e96fc1 Mon Sep 17 00:00:00 2001 From: Nathan Button Date: Tue, 10 Sep 2019 09:14:07 -0700 Subject: [PATCH 1/4] Use Go modules Simply ran `go mod init github.com/pagerduty/go-pagerduty` Converted `PagerDuty/go-pagerduty` to match lowercased package nameing standards https://blog.golang.org/package-names Updated the `github.com/Sirupsen/logrus` import to current lowercase name --- .circleci/config.yml | 2 +- CHANGELOG.md | 150 +++++++++++++------------- Dockerfile | 4 +- README.md | 10 +- command/addon_delete.go | 2 +- command/addon_install.go | 4 +- command/addon_list.go | 4 +- command/addon_show.go | 2 +- command/addon_update.go | 4 +- command/escalation_policy_create.go | 4 +- command/escalation_policy_list.go | 4 +- command/escalation_policy_show.go | 4 +- command/event_v2_manage.go | 4 +- command/incident_list.go | 4 +- command/maintenance_window_create.go | 4 +- command/meta.go | 4 +- command/oncall_list.go | 4 +- command/schedule_create.go | 4 +- command/schedule_list.go | 4 +- command/schedule_override_create.go | 4 +- command/service_create.go | 4 +- command/service_integration_create.go | 4 +- command/service_list.go | 4 +- command/service_show.go | 4 +- command/team_list.go | 4 +- command/team_show.go | 2 +- command/user_list.go | 4 +- command/vendor_list.go | 4 +- command/vendor_show.go | 2 +- examples/escalation_policies.go | 2 +- examples/event.go | 2 +- go.mod | 11 ++ go.sum | 40 +++++++ 33 files changed, 182 insertions(+), 131 deletions(-) create mode 100644 go.mod create mode 100644 go.sum diff --git a/.circleci/config.yml b/.circleci/config.yml index f17b2f78..48f452ab 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ jobs: build: docker: - image: circleci/golang:1.8.3 - working_directory: /go/src/github.com/PagerDuty/go-pagerduty + working_directory: /go/src/github.com/pagerduty/go-pagerduty steps: - checkout - run: diff --git a/CHANGELOG.md b/CHANGELOG.md index 5936ccc3..6d2ed098 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,88 +1,88 @@ # Change Log -## [1.0.0](https://github.com/PagerDuty/go-pagerduty/tree/1.0.0) (2018-05-28) +## [1.0.0](https://github.com/pagerduty/go-pagerduty/tree/1.0.0) (2018-05-28) **Fixed bugs:** -- Escalation Policy's repeat\_enabled Is Ignored [\#57](https://github.com/PagerDuty/go-pagerduty/issues/57) -- Problems running freshly built pd utility [\#39](https://github.com/PagerDuty/go-pagerduty/issues/39) -- Manage Incident gives error [\#32](https://github.com/PagerDuty/go-pagerduty/issues/32) -- Added missing slash to delete integration method url [\#59](https://github.com/PagerDuty/go-pagerduty/pull/59) ([jescochu](https://github.com/jescochu)) +- Escalation Policy's repeat\_enabled Is Ignored [\#57](https://github.com/pagerduty/go-pagerduty/issues/57) +- Problems running freshly built pd utility [\#39](https://github.com/pagerduty/go-pagerduty/issues/39) +- Manage Incident gives error [\#32](https://github.com/pagerduty/go-pagerduty/issues/32) +- Added missing slash to delete integration method url [\#59](https://github.com/pagerduty/go-pagerduty/pull/59) ([jescochu](https://github.com/jescochu)) **Closed issues:** -- Trouble creating an integration [\#102](https://github.com/PagerDuty/go-pagerduty/issues/102) -- Client does not trigger events [\#101](https://github.com/PagerDuty/go-pagerduty/issues/101) -- Paging help [\#94](https://github.com/PagerDuty/go-pagerduty/issues/94) -- Help with incident creation API [\#89](https://github.com/PagerDuty/go-pagerduty/issues/89) -- Memory leak because of response body is not closed [\#66](https://github.com/PagerDuty/go-pagerduty/issues/66) -- Since and Until don't work for log\_entries [\#61](https://github.com/PagerDuty/go-pagerduty/issues/61) -- service: auto\_resolve\_timeout & acknowledgement\_timeout cannot be set to null [\#51](https://github.com/PagerDuty/go-pagerduty/issues/51) -- Possible to create new service and integration together [\#42](https://github.com/PagerDuty/go-pagerduty/issues/42) -- Documentation does not match code [\#16](https://github.com/PagerDuty/go-pagerduty/issues/16) -- Typo in repo description [\#15](https://github.com/PagerDuty/go-pagerduty/issues/15) -- Webhook decoder [\#14](https://github.com/PagerDuty/go-pagerduty/issues/14) -- incident\_key for create\_event [\#13](https://github.com/PagerDuty/go-pagerduty/issues/13) +- Trouble creating an integration [\#102](https://github.com/pagerduty/go-pagerduty/issues/102) +- Client does not trigger events [\#101](https://github.com/pagerduty/go-pagerduty/issues/101) +- Paging help [\#94](https://github.com/pagerduty/go-pagerduty/issues/94) +- Help with incident creation API [\#89](https://github.com/pagerduty/go-pagerduty/issues/89) +- Memory leak because of response body is not closed [\#66](https://github.com/pagerduty/go-pagerduty/issues/66) +- Since and Until don't work for log\_entries [\#61](https://github.com/pagerduty/go-pagerduty/issues/61) +- service: auto\_resolve\_timeout & acknowledgement\_timeout cannot be set to null [\#51](https://github.com/pagerduty/go-pagerduty/issues/51) +- Possible to create new service and integration together [\#42](https://github.com/pagerduty/go-pagerduty/issues/42) +- Documentation does not match code [\#16](https://github.com/pagerduty/go-pagerduty/issues/16) +- Typo in repo description [\#15](https://github.com/pagerduty/go-pagerduty/issues/15) +- Webhook decoder [\#14](https://github.com/pagerduty/go-pagerduty/issues/14) +- incident\_key for create\_event [\#13](https://github.com/pagerduty/go-pagerduty/issues/13) **Merged pull requests:** -- Fix pagination for ListOnCalls [\#90](https://github.com/PagerDuty/go-pagerduty/pull/90) ([IainCole](https://github.com/IainCole)) -- Revert "Fix inconsistency with some REST Options objects passed by reference …" [\#88](https://github.com/PagerDuty/go-pagerduty/pull/88) ([mimato](https://github.com/mimato)) -- Adding travis config, fixup Makefile [\#87](https://github.com/PagerDuty/go-pagerduty/pull/87) ([mimato](https://github.com/mimato)) -- Fixed invalid JSON descriptor for FirstTriggerLogEntry [\#86](https://github.com/PagerDuty/go-pagerduty/pull/86) ([mwisniewski0](https://github.com/mwisniewski0)) -- \[incidents\] fix entries typo in a few places [\#85](https://github.com/PagerDuty/go-pagerduty/pull/85) ([joeyparsons](https://github.com/joeyparsons)) -- Fix inconsistency with some REST Options objects passed by reference … [\#79](https://github.com/PagerDuty/go-pagerduty/pull/79) ([lowesoftware](https://github.com/lowesoftware)) -- Explicit JSON reference to schedules [\#77](https://github.com/PagerDuty/go-pagerduty/pull/77) ([domudall](https://github.com/domudall)) -- Adding AlertCreation to Service struct [\#76](https://github.com/PagerDuty/go-pagerduty/pull/76) ([domudall](https://github.com/domudall)) -- Add support for escalation rules [\#71](https://github.com/PagerDuty/go-pagerduty/pull/71) ([heimweh](https://github.com/heimweh)) -- Fix maintenance window JSON [\#69](https://github.com/PagerDuty/go-pagerduty/pull/69) ([domudall](https://github.com/domudall)) -- Fixing Maintenance typo [\#68](https://github.com/PagerDuty/go-pagerduty/pull/68) ([domudall](https://github.com/domudall)) -- Update event.go - fix a memory leak [\#65](https://github.com/PagerDuty/go-pagerduty/pull/65) ([AngelRefael](https://github.com/AngelRefael)) -- Add query to vendor [\#64](https://github.com/PagerDuty/go-pagerduty/pull/64) ([heimweh](https://github.com/heimweh)) -- Fix JSON decode \(errorObject\) [\#63](https://github.com/PagerDuty/go-pagerduty/pull/63) ([heimweh](https://github.com/heimweh)) -- fix since and until by adding them to url scheme [\#60](https://github.com/PagerDuty/go-pagerduty/pull/60) ([ethansommer](https://github.com/ethansommer)) -- fix webhook struct member name [\#58](https://github.com/PagerDuty/go-pagerduty/pull/58) ([pgray](https://github.com/pgray)) -- Incident - Add status field to incident [\#56](https://github.com/PagerDuty/go-pagerduty/pull/56) ([heimweh](https://github.com/heimweh)) -- enable fetch log entries via incident api [\#55](https://github.com/PagerDuty/go-pagerduty/pull/55) ([flyinprogrammer](https://github.com/flyinprogrammer)) -- Allow service timeouts to be disabled [\#53](https://github.com/PagerDuty/go-pagerduty/pull/53) ([heimweh](https://github.com/heimweh)) -- Schedule restriction - Add support for start\_day\_of\_week [\#52](https://github.com/PagerDuty/go-pagerduty/pull/52) ([heimweh](https://github.com/heimweh)) -- Add vendor support [\#49](https://github.com/PagerDuty/go-pagerduty/pull/49) ([heimweh](https://github.com/heimweh)) -- Add schedules listing [\#46](https://github.com/PagerDuty/go-pagerduty/pull/46) ([Marc-Morata-Fite](https://github.com/Marc-Morata-Fite)) -- dont declare main twice in examples [\#45](https://github.com/PagerDuty/go-pagerduty/pull/45) ([ranjib](https://github.com/ranjib)) -- add service show [\#44](https://github.com/PagerDuty/go-pagerduty/pull/44) ([cmluciano](https://github.com/cmluciano)) -- \(feat\)implement integration creation [\#43](https://github.com/PagerDuty/go-pagerduty/pull/43) ([ranjib](https://github.com/ranjib)) -- \(chore\)add create event example [\#41](https://github.com/PagerDuty/go-pagerduty/pull/41) ([ranjib](https://github.com/ranjib)) -- \(bug\)Add test. fix version issue [\#40](https://github.com/PagerDuty/go-pagerduty/pull/40) ([ranjib](https://github.com/ranjib)) -- Remove subdomain argument from escalation\_policy example. [\#38](https://github.com/PagerDuty/go-pagerduty/pull/38) ([cmluciano](https://github.com/cmluciano)) -- Skip JSON encoding if no payload was given [\#37](https://github.com/PagerDuty/go-pagerduty/pull/37) ([heimweh](https://github.com/heimweh)) -- \(feat\)add ability API and CLI [\#36](https://github.com/PagerDuty/go-pagerduty/pull/36) ([ranjib](https://github.com/ranjib)) -- Make updates to Escalation Policies work [\#35](https://github.com/PagerDuty/go-pagerduty/pull/35) ([heimweh](https://github.com/heimweh)) -- Fix misspelling in User struct and add JSON tags [\#34](https://github.com/PagerDuty/go-pagerduty/pull/34) ([heimweh](https://github.com/heimweh)) -- \(bug\)allow passing headers in http do call. fix manage incident call [\#33](https://github.com/PagerDuty/go-pagerduty/pull/33) ([ranjib](https://github.com/ranjib)) -- \(chore\)get rid of logrus from all core structs except CLI entries. fix schedule override command [\#31](https://github.com/PagerDuty/go-pagerduty/pull/31) ([ranjib](https://github.com/ranjib)) -- \(bug\)rename override struct [\#30](https://github.com/PagerDuty/go-pagerduty/pull/30) ([ranjib](https://github.com/ranjib)) -- \(bug\)implement schedule override [\#29](https://github.com/PagerDuty/go-pagerduty/pull/29) ([ranjib](https://github.com/ranjib)) -- fix misspelling in trigger\_summary\_data's JSON key. [\#28](https://github.com/PagerDuty/go-pagerduty/pull/28) ([tomwans](https://github.com/tomwans)) -- Correctly set meta flag for incident list [\#26](https://github.com/PagerDuty/go-pagerduty/pull/26) ([afirth](https://github.com/afirth)) -- Add \*.swp to gitignore [\#25](https://github.com/PagerDuty/go-pagerduty/pull/25) ([afirth](https://github.com/afirth)) -- Support the /oncalls endpoint in the CLI [\#24](https://github.com/PagerDuty/go-pagerduty/pull/24) ([afirth](https://github.com/afirth)) -- Refactor to work correctly with V2 API [\#23](https://github.com/PagerDuty/go-pagerduty/pull/23) ([dthagard](https://github.com/dthagard)) -- \(feat\)Add webhook decoding capability [\#22](https://github.com/PagerDuty/go-pagerduty/pull/22) ([ranjib](https://github.com/ranjib)) -- \(chore\)Decode event API response. [\#21](https://github.com/PagerDuty/go-pagerduty/pull/21) ([ranjib](https://github.com/ranjib)) -- \(bug\)add incident\_key field in event api client [\#20](https://github.com/PagerDuty/go-pagerduty/pull/20) ([ranjib](https://github.com/ranjib)) -- \(chore\)nuke sub domain, v2 api does not need one [\#19](https://github.com/PagerDuty/go-pagerduty/pull/19) ([ranjib](https://github.com/ranjib)) -- Implement list users CLI [\#17](https://github.com/PagerDuty/go-pagerduty/pull/17) ([ranjib](https://github.com/ranjib)) -- Add team\_ids\[\] query string arg [\#12](https://github.com/PagerDuty/go-pagerduty/pull/12) ([marklap](https://github.com/marklap)) -- Incidents fix [\#11](https://github.com/PagerDuty/go-pagerduty/pull/11) ([jareksm](https://github.com/jareksm)) -- Added APIListObject to Option types to allow setting offset and [\#10](https://github.com/PagerDuty/go-pagerduty/pull/10) ([jareksm](https://github.com/jareksm)) -- fix typo [\#9](https://github.com/PagerDuty/go-pagerduty/pull/9) ([sjansen](https://github.com/sjansen)) -- implement incident list cli. event posting api [\#8](https://github.com/PagerDuty/go-pagerduty/pull/8) ([ranjib](https://github.com/ranjib)) -- CLI for create escalation policy, maintainenance window , schedule ov… [\#7](https://github.com/PagerDuty/go-pagerduty/pull/7) ([ranjib](https://github.com/ranjib)) -- \(feat\)implement create service cli [\#6](https://github.com/PagerDuty/go-pagerduty/pull/6) ([ranjib](https://github.com/ranjib)) -- \(feat\)list service cli [\#5](https://github.com/PagerDuty/go-pagerduty/pull/5) ([ranjib](https://github.com/ranjib)) -- \(feat\)implement addon update/delete [\#4](https://github.com/PagerDuty/go-pagerduty/pull/4) ([ranjib](https://github.com/ranjib)) -- \(feat\)Show addon cli [\#3](https://github.com/PagerDuty/go-pagerduty/pull/3) ([ranjib](https://github.com/ranjib)) -- \(feat\) addon list api. create cli [\#2](https://github.com/PagerDuty/go-pagerduty/pull/2) ([ranjib](https://github.com/ranjib)) -- \(chore\) list addon [\#1](https://github.com/PagerDuty/go-pagerduty/pull/1) ([ranjib](https://github.com/ranjib)) +- Fix pagination for ListOnCalls [\#90](https://github.com/pagerduty/go-pagerduty/pull/90) ([IainCole](https://github.com/IainCole)) +- Revert "Fix inconsistency with some REST Options objects passed by reference …" [\#88](https://github.com/pagerduty/go-pagerduty/pull/88) ([mimato](https://github.com/mimato)) +- Adding travis config, fixup Makefile [\#87](https://github.com/pagerduty/go-pagerduty/pull/87) ([mimato](https://github.com/mimato)) +- Fixed invalid JSON descriptor for FirstTriggerLogEntry [\#86](https://github.com/pagerduty/go-pagerduty/pull/86) ([mwisniewski0](https://github.com/mwisniewski0)) +- \[incidents\] fix entries typo in a few places [\#85](https://github.com/pagerduty/go-pagerduty/pull/85) ([joeyparsons](https://github.com/joeyparsons)) +- Fix inconsistency with some REST Options objects passed by reference … [\#79](https://github.com/pagerduty/go-pagerduty/pull/79) ([lowesoftware](https://github.com/lowesoftware)) +- Explicit JSON reference to schedules [\#77](https://github.com/pagerduty/go-pagerduty/pull/77) ([domudall](https://github.com/domudall)) +- Adding AlertCreation to Service struct [\#76](https://github.com/pagerduty/go-pagerduty/pull/76) ([domudall](https://github.com/domudall)) +- Add support for escalation rules [\#71](https://github.com/pagerduty/go-pagerduty/pull/71) ([heimweh](https://github.com/heimweh)) +- Fix maintenance window JSON [\#69](https://github.com/pagerduty/go-pagerduty/pull/69) ([domudall](https://github.com/domudall)) +- Fixing Maintenance typo [\#68](https://github.com/pagerduty/go-pagerduty/pull/68) ([domudall](https://github.com/domudall)) +- Update event.go - fix a memory leak [\#65](https://github.com/pagerduty/go-pagerduty/pull/65) ([AngelRefael](https://github.com/AngelRefael)) +- Add query to vendor [\#64](https://github.com/pagerduty/go-pagerduty/pull/64) ([heimweh](https://github.com/heimweh)) +- Fix JSON decode \(errorObject\) [\#63](https://github.com/pagerduty/go-pagerduty/pull/63) ([heimweh](https://github.com/heimweh)) +- fix since and until by adding them to url scheme [\#60](https://github.com/pagerduty/go-pagerduty/pull/60) ([ethansommer](https://github.com/ethansommer)) +- fix webhook struct member name [\#58](https://github.com/pagerduty/go-pagerduty/pull/58) ([pgray](https://github.com/pgray)) +- Incident - Add status field to incident [\#56](https://github.com/pagerduty/go-pagerduty/pull/56) ([heimweh](https://github.com/heimweh)) +- enable fetch log entries via incident api [\#55](https://github.com/pagerduty/go-pagerduty/pull/55) ([flyinprogrammer](https://github.com/flyinprogrammer)) +- Allow service timeouts to be disabled [\#53](https://github.com/pagerduty/go-pagerduty/pull/53) ([heimweh](https://github.com/heimweh)) +- Schedule restriction - Add support for start\_day\_of\_week [\#52](https://github.com/pagerduty/go-pagerduty/pull/52) ([heimweh](https://github.com/heimweh)) +- Add vendor support [\#49](https://github.com/pagerduty/go-pagerduty/pull/49) ([heimweh](https://github.com/heimweh)) +- Add schedules listing [\#46](https://github.com/pagerduty/go-pagerduty/pull/46) ([Marc-Morata-Fite](https://github.com/Marc-Morata-Fite)) +- dont declare main twice in examples [\#45](https://github.com/pagerduty/go-pagerduty/pull/45) ([ranjib](https://github.com/ranjib)) +- add service show [\#44](https://github.com/pagerduty/go-pagerduty/pull/44) ([cmluciano](https://github.com/cmluciano)) +- \(feat\)implement integration creation [\#43](https://github.com/pagerduty/go-pagerduty/pull/43) ([ranjib](https://github.com/ranjib)) +- \(chore\)add create event example [\#41](https://github.com/pagerduty/go-pagerduty/pull/41) ([ranjib](https://github.com/ranjib)) +- \(bug\)Add test. fix version issue [\#40](https://github.com/pagerduty/go-pagerduty/pull/40) ([ranjib](https://github.com/ranjib)) +- Remove subdomain argument from escalation\_policy example. [\#38](https://github.com/pagerduty/go-pagerduty/pull/38) ([cmluciano](https://github.com/cmluciano)) +- Skip JSON encoding if no payload was given [\#37](https://github.com/pagerduty/go-pagerduty/pull/37) ([heimweh](https://github.com/heimweh)) +- \(feat\)add ability API and CLI [\#36](https://github.com/pagerduty/go-pagerduty/pull/36) ([ranjib](https://github.com/ranjib)) +- Make updates to Escalation Policies work [\#35](https://github.com/pagerduty/go-pagerduty/pull/35) ([heimweh](https://github.com/heimweh)) +- Fix misspelling in User struct and add JSON tags [\#34](https://github.com/pagerduty/go-pagerduty/pull/34) ([heimweh](https://github.com/heimweh)) +- \(bug\)allow passing headers in http do call. fix manage incident call [\#33](https://github.com/pagerduty/go-pagerduty/pull/33) ([ranjib](https://github.com/ranjib)) +- \(chore\)get rid of logrus from all core structs except CLI entries. fix schedule override command [\#31](https://github.com/pagerduty/go-pagerduty/pull/31) ([ranjib](https://github.com/ranjib)) +- \(bug\)rename override struct [\#30](https://github.com/pagerduty/go-pagerduty/pull/30) ([ranjib](https://github.com/ranjib)) +- \(bug\)implement schedule override [\#29](https://github.com/pagerduty/go-pagerduty/pull/29) ([ranjib](https://github.com/ranjib)) +- fix misspelling in trigger\_summary\_data's JSON key. [\#28](https://github.com/pagerduty/go-pagerduty/pull/28) ([tomwans](https://github.com/tomwans)) +- Correctly set meta flag for incident list [\#26](https://github.com/pagerduty/go-pagerduty/pull/26) ([afirth](https://github.com/afirth)) +- Add \*.swp to gitignore [\#25](https://github.com/pagerduty/go-pagerduty/pull/25) ([afirth](https://github.com/afirth)) +- Support the /oncalls endpoint in the CLI [\#24](https://github.com/pagerduty/go-pagerduty/pull/24) ([afirth](https://github.com/afirth)) +- Refactor to work correctly with V2 API [\#23](https://github.com/pagerduty/go-pagerduty/pull/23) ([dthagard](https://github.com/dthagard)) +- \(feat\)Add webhook decoding capability [\#22](https://github.com/pagerduty/go-pagerduty/pull/22) ([ranjib](https://github.com/ranjib)) +- \(chore\)Decode event API response. [\#21](https://github.com/pagerduty/go-pagerduty/pull/21) ([ranjib](https://github.com/ranjib)) +- \(bug\)add incident\_key field in event api client [\#20](https://github.com/pagerduty/go-pagerduty/pull/20) ([ranjib](https://github.com/ranjib)) +- \(chore\)nuke sub domain, v2 api does not need one [\#19](https://github.com/pagerduty/go-pagerduty/pull/19) ([ranjib](https://github.com/ranjib)) +- Implement list users CLI [\#17](https://github.com/pagerduty/go-pagerduty/pull/17) ([ranjib](https://github.com/ranjib)) +- Add team\_ids\[\] query string arg [\#12](https://github.com/pagerduty/go-pagerduty/pull/12) ([marklap](https://github.com/marklap)) +- Incidents fix [\#11](https://github.com/pagerduty/go-pagerduty/pull/11) ([jareksm](https://github.com/jareksm)) +- Added APIListObject to Option types to allow setting offset and [\#10](https://github.com/pagerduty/go-pagerduty/pull/10) ([jareksm](https://github.com/jareksm)) +- fix typo [\#9](https://github.com/pagerduty/go-pagerduty/pull/9) ([sjansen](https://github.com/sjansen)) +- implement incident list cli. event posting api [\#8](https://github.com/pagerduty/go-pagerduty/pull/8) ([ranjib](https://github.com/ranjib)) +- CLI for create escalation policy, maintainenance window , schedule ov… [\#7](https://github.com/pagerduty/go-pagerduty/pull/7) ([ranjib](https://github.com/ranjib)) +- \(feat\)implement create service cli [\#6](https://github.com/pagerduty/go-pagerduty/pull/6) ([ranjib](https://github.com/ranjib)) +- \(feat\)list service cli [\#5](https://github.com/pagerduty/go-pagerduty/pull/5) ([ranjib](https://github.com/ranjib)) +- \(feat\)implement addon update/delete [\#4](https://github.com/pagerduty/go-pagerduty/pull/4) ([ranjib](https://github.com/ranjib)) +- \(feat\)Show addon cli [\#3](https://github.com/pagerduty/go-pagerduty/pull/3) ([ranjib](https://github.com/ranjib)) +- \(feat\) addon list api. create cli [\#2](https://github.com/pagerduty/go-pagerduty/pull/2) ([ranjib](https://github.com/ranjib)) +- \(chore\) list addon [\#1](https://github.com/pagerduty/go-pagerduty/pull/1) ([ranjib](https://github.com/ranjib)) diff --git a/Dockerfile b/Dockerfile index 650a6921..7ffa0fc0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ FROM golang -ADD . /go/src/github.com/PagerDuty/go-pagerduty -WORKDIR /go/src/github.com/PagerDuty/go-pagerduty +ADD . /go/src/github.com/pagerduty/go-pagerduty +WORKDIR /go/src/github.com/pagerduty/go-pagerduty RUN go get ./... && go test -v -race -cover ./... diff --git a/README.md b/README.md index eeb83444..104cbd91 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![GoDoc](https://godoc.org/github.com/PagerDuty/go-pagerduty?status.svg)](http://godoc.org/github.com/PagerDuty/go-pagerduty) [![Go Report Card](https://goreportcard.com/badge/github.com/PagerDuty/go-pagerduty)](https://goreportcard.com/report/github.com/PagerDuty/go-pagerduty) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/gojp/goreportcard/blob/master/LICENSE) +[![GoDoc](https://godoc.org/github.com/pagerduty/go-pagerduty?status.svg)](http://godoc.org/github.com/pagerduty/go-pagerduty) [![Go Report Card](https://goreportcard.com/badge/github.com/pagerduty/go-pagerduty)](https://goreportcard.com/report/github.com/pagerduty/go-pagerduty) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/gojp/goreportcard/blob/master/LICENSE) # go-pagerduty go-pagerduty is a CLI and [go](https://golang.org/) client library for the [PagerDuty v2 API](https://v2.developer.pagerduty.com/v2/page/api-reference). @@ -7,12 +7,12 @@ go-pagerduty is a CLI and [go](https://golang.org/) client library for the [Page First, download the source code ```cli -go get github.com/PagerDuty/go-pagerduty +go get github.com/pagerduty/go-pagerduty ``` Next build the application. ```cli -cd $GOPATH/src/github.com/PagerDuty/go-pagerduty +cd $GOPATH/src/github.com/pagerduty/go-pagerduty go build -o $GOPATH/bin/pd command/* ``` If you do not have the dependencies necessary to build the project, run this in the project root and try again @@ -55,7 +55,7 @@ package main import ( "fmt" - "github.com/PagerDuty/go-pagerduty" + "github.com/pagerduty/go-pagerduty" ) var authtoken = "" // Set your auth token here @@ -82,7 +82,7 @@ simply by setting a new value in the `HTTPClient` field. ## Contributing -1. Fork it ( https://github.com/PagerDuty/go-pagerduty/fork ) +1. Fork it ( https://github.com/pagerduty/go-pagerduty/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) diff --git a/command/addon_delete.go b/command/addon_delete.go index a4e66e0c..c9ace0ad 100644 --- a/command/addon_delete.go +++ b/command/addon_delete.go @@ -2,7 +2,7 @@ package main import ( "fmt" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "strings" ) diff --git a/command/addon_install.go b/command/addon_install.go index c166c8a3..9ee1100c 100644 --- a/command/addon_install.go +++ b/command/addon_install.go @@ -3,8 +3,8 @@ package main import ( "encoding/json" "fmt" - "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + "github.com/pagerduty/go-pagerduty" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "os" "strings" diff --git a/command/addon_list.go b/command/addon_list.go index 7192d254..a385c2be 100644 --- a/command/addon_list.go +++ b/command/addon_list.go @@ -2,8 +2,8 @@ package main import ( "fmt" - "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + "github.com/pagerduty/go-pagerduty" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" "strings" diff --git a/command/addon_show.go b/command/addon_show.go index 05f7b09f..082c086a 100644 --- a/command/addon_show.go +++ b/command/addon_show.go @@ -2,7 +2,7 @@ package main import ( "fmt" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" "strings" diff --git a/command/addon_update.go b/command/addon_update.go index 271a940f..d8abfe20 100644 --- a/command/addon_update.go +++ b/command/addon_update.go @@ -3,8 +3,8 @@ package main import ( "encoding/json" "fmt" - "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + "github.com/pagerduty/go-pagerduty" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "strings" ) diff --git a/command/escalation_policy_create.go b/command/escalation_policy_create.go index 4c1b03d9..00e3025b 100644 --- a/command/escalation_policy_create.go +++ b/command/escalation_policy_create.go @@ -3,8 +3,8 @@ package main import ( "encoding/json" "fmt" - "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + "github.com/pagerduty/go-pagerduty" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "os" "strings" diff --git a/command/escalation_policy_list.go b/command/escalation_policy_list.go index dacc118b..1361a3ba 100644 --- a/command/escalation_policy_list.go +++ b/command/escalation_policy_list.go @@ -2,8 +2,8 @@ package main import ( "fmt" - "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + "github.com/pagerduty/go-pagerduty" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" "strings" diff --git a/command/escalation_policy_show.go b/command/escalation_policy_show.go index abbbd32f..00a5010a 100644 --- a/command/escalation_policy_show.go +++ b/command/escalation_policy_show.go @@ -2,8 +2,8 @@ package main import ( "fmt" - "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + "github.com/pagerduty/go-pagerduty" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" "strings" diff --git a/command/event_v2_manage.go b/command/event_v2_manage.go index e6f86c01..fdf6735a 100644 --- a/command/event_v2_manage.go +++ b/command/event_v2_manage.go @@ -6,8 +6,8 @@ import ( "os" "strings" - pagerduty "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + pagerduty "github.com/pagerduty/go-pagerduty" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" ) diff --git a/command/incident_list.go b/command/incident_list.go index 48b4ca6f..bdedd96e 100644 --- a/command/incident_list.go +++ b/command/incident_list.go @@ -2,8 +2,8 @@ package main import ( "fmt" - "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + "github.com/pagerduty/go-pagerduty" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" "strings" diff --git a/command/maintenance_window_create.go b/command/maintenance_window_create.go index d2c320e7..218d44f0 100644 --- a/command/maintenance_window_create.go +++ b/command/maintenance_window_create.go @@ -3,8 +3,8 @@ package main import ( "encoding/json" "fmt" - "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + "github.com/pagerduty/go-pagerduty" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "os" "strings" diff --git a/command/meta.go b/command/meta.go index 371accce..682bfa79 100644 --- a/command/meta.go +++ b/command/meta.go @@ -3,8 +3,8 @@ package main import ( "flag" "fmt" - "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + "github.com/pagerduty/go-pagerduty" + log "github.com/sirupsen/logrus" "github.com/mitchellh/go-homedir" "gopkg.in/yaml.v2" "io/ioutil" diff --git a/command/oncall_list.go b/command/oncall_list.go index 2e3025e8..1064a8f1 100644 --- a/command/oncall_list.go +++ b/command/oncall_list.go @@ -4,8 +4,8 @@ import ( "fmt" "strings" - "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + "github.com/pagerduty/go-pagerduty" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" ) diff --git a/command/schedule_create.go b/command/schedule_create.go index 4f5bc841..f9da1772 100644 --- a/command/schedule_create.go +++ b/command/schedule_create.go @@ -3,8 +3,8 @@ package main import ( "encoding/json" "fmt" - "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + "github.com/pagerduty/go-pagerduty" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "os" "strings" diff --git a/command/schedule_list.go b/command/schedule_list.go index faed8856..40b9903c 100644 --- a/command/schedule_list.go +++ b/command/schedule_list.go @@ -6,8 +6,8 @@ import ( yaml "gopkg.in/yaml.v2" - pagerduty "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + pagerduty "github.com/pagerduty/go-pagerduty" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" ) diff --git a/command/schedule_override_create.go b/command/schedule_override_create.go index 6a76d042..0fc207ff 100644 --- a/command/schedule_override_create.go +++ b/command/schedule_override_create.go @@ -3,8 +3,8 @@ package main import ( "encoding/json" "fmt" - "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + "github.com/pagerduty/go-pagerduty" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "os" "strings" diff --git a/command/service_create.go b/command/service_create.go index ca32475d..fe4e70ef 100644 --- a/command/service_create.go +++ b/command/service_create.go @@ -3,8 +3,8 @@ package main import ( "encoding/json" "fmt" - "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + "github.com/pagerduty/go-pagerduty" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "os" "strings" diff --git a/command/service_integration_create.go b/command/service_integration_create.go index c84987ed..507da551 100644 --- a/command/service_integration_create.go +++ b/command/service_integration_create.go @@ -3,8 +3,8 @@ package main import ( "encoding/json" "fmt" - "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + "github.com/pagerduty/go-pagerduty" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "os" "strings" diff --git a/command/service_list.go b/command/service_list.go index 85aae15d..6c05def6 100644 --- a/command/service_list.go +++ b/command/service_list.go @@ -2,8 +2,8 @@ package main import ( "fmt" - "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + "github.com/pagerduty/go-pagerduty" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" "strings" diff --git a/command/service_show.go b/command/service_show.go index 2534289d..8e8a5a95 100644 --- a/command/service_show.go +++ b/command/service_show.go @@ -2,8 +2,8 @@ package main import ( "fmt" - "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + "github.com/pagerduty/go-pagerduty" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" "strings" diff --git a/command/team_list.go b/command/team_list.go index caf1ea43..f3515c80 100644 --- a/command/team_list.go +++ b/command/team_list.go @@ -2,8 +2,8 @@ package main import ( "fmt" - "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + "github.com/pagerduty/go-pagerduty" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" "strings" diff --git a/command/team_show.go b/command/team_show.go index 7e81f5f8..4e0f7bca 100644 --- a/command/team_show.go +++ b/command/team_show.go @@ -2,7 +2,7 @@ package main import ( "fmt" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" "strings" diff --git a/command/user_list.go b/command/user_list.go index 8a6f8952..442dd491 100644 --- a/command/user_list.go +++ b/command/user_list.go @@ -4,8 +4,8 @@ import ( "fmt" "strings" - "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + "github.com/pagerduty/go-pagerduty" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" ) diff --git a/command/vendor_list.go b/command/vendor_list.go index 8d5648f2..0bce5b55 100644 --- a/command/vendor_list.go +++ b/command/vendor_list.go @@ -2,8 +2,8 @@ package main import ( "fmt" - "github.com/PagerDuty/go-pagerduty" - log "github.com/Sirupsen/logrus" + "github.com/pagerduty/go-pagerduty" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" "strings" diff --git a/command/vendor_show.go b/command/vendor_show.go index f42a753b..9abb3f03 100644 --- a/command/vendor_show.go +++ b/command/vendor_show.go @@ -2,7 +2,7 @@ package main import ( "fmt" - log "github.com/Sirupsen/logrus" + log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" "strings" diff --git a/examples/escalation_policies.go b/examples/escalation_policies.go index 685721d3..e1747879 100644 --- a/examples/escalation_policies.go +++ b/examples/escalation_policies.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "github.com/PagerDuty/go-pagerduty" + "github.com/pagerduty/go-pagerduty" ) var ( diff --git a/examples/event.go b/examples/event.go index f18ff889..394cb574 100644 --- a/examples/event.go +++ b/examples/event.go @@ -1,7 +1,7 @@ package main import ( - "github.com/PagerDuty/go-pagerduty" + "github.com/pagerduty/go-pagerduty" "log" ) diff --git a/go.mod b/go.mod new file mode 100644 index 00000000..bf42bcf1 --- /dev/null +++ b/go.mod @@ -0,0 +1,11 @@ +module github.com/pagerduty/go-pagerduty + +go 1.12 + +require ( + github.com/google/go-querystring v1.0.0 + github.com/mitchellh/cli v1.0.0 + github.com/mitchellh/go-homedir v1.1.0 + github.com/sirupsen/logrus v1.4.2 + gopkg.in/yaml.v2 v2.2.2 +) diff --git a/go.sum b/go.sum new file mode 100644 index 00000000..84af6c83 --- /dev/null +++ b/go.sum @@ -0,0 +1,40 @@ +github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310 h1:BUAU3CGlLvorLI26FmByPp2eC2qla6E1Tw+scpcg/to= +github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= +github.com/bgentry/speakeasy v0.1.0 h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY= +github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys= +github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= +github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk= +github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= +github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA= +github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/go-multierror v1.0.0 h1:iVjPR7a6H0tWELX5NxNe7bYopibicUzc7uPribsnS6o= +github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= +github.com/konsorten/go-windows-terminal-sequences v1.0.1 h1:mweAR1A6xJ3oS2pRaGiHgQ4OO8tzTaLawm8vnODuwDk= +github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/mattn/go-colorable v0.0.9 h1:UVL0vNpWh04HeJXV0KLcaT7r06gOH2l4OW6ddYRUIY4= +github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= +github.com/mattn/go-isatty v0.0.3 h1:ns/ykhmWi7G9O+8a448SecJU3nSMBXJfqQkl0upE1jI= +github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= +github.com/mitchellh/cli v1.0.0 h1:iGBIsUe3+HZ/AD/Vd7DErOt5sU9fa8Uj7A2s1aggv1Y= +github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= +github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= +github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/posener/complete v1.1.1 h1:ccV59UEOTzVDnDUEFdT95ZzHVZ+5+158q8+SJb2QV5w= +github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= +github.com/sirupsen/logrus v1.4.2 h1:SPIRibHv4MatM3XXNO2BJeFLZwZ2LvZgfQ5+UNI2im4= +github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= +github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190422165155-953cdadca894 h1:Cz4ceDQGXuKRnVBDTS23GTn/pU5OE2C0WrNTOYK1Uuc= +golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= From 742411e2b4b2e4f00eeb286c4d6bfba0ecf9d4dc Mon Sep 17 00:00:00 2001 From: Nathan Button Date: Tue, 10 Sep 2019 09:36:57 -0700 Subject: [PATCH 2/4] update ci to go 1.12 --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 48f452ab..81aa7b7c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,7 +2,7 @@ version: 2 jobs: build: docker: - - image: circleci/golang:1.8.3 + - image: circleci/golang:1.12 working_directory: /go/src/github.com/pagerduty/go-pagerduty steps: - checkout From 52f992b06d3966eb45ab2fa60033a879155a9691 Mon Sep 17 00:00:00 2001 From: Nathan Button Date: Tue, 22 Oct 2019 08:09:14 -0700 Subject: [PATCH 3/4] undo the PagerDuty - pagerduty change --- .circleci/config.yml | 2 +- CHANGELOG.md | 150 +++++++++++++------------- Dockerfile | 4 +- README.md | 10 +- command/addon_install.go | 2 +- command/addon_list.go | 2 +- command/addon_update.go | 2 +- command/escalation_policy_create.go | 2 +- command/escalation_policy_list.go | 2 +- command/escalation_policy_show.go | 2 +- command/event_v2_manage.go | 2 +- command/incident_list.go | 2 +- command/maintenance_window_create.go | 2 +- command/meta.go | 2 +- command/oncall_list.go | 2 +- command/schedule_create.go | 2 +- command/schedule_list.go | 2 +- command/schedule_override_create.go | 2 +- command/service_create.go | 2 +- command/service_integration_create.go | 2 +- command/service_list.go | 2 +- command/service_show.go | 2 +- command/team_list.go | 2 +- command/user_list.go | 2 +- command/vendor_list.go | 2 +- examples/escalation_policies.go | 2 +- examples/event.go | 2 +- go.mod | 2 +- 28 files changed, 107 insertions(+), 107 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 81aa7b7c..4688896c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ jobs: build: docker: - image: circleci/golang:1.12 - working_directory: /go/src/github.com/pagerduty/go-pagerduty + working_directory: /go/src/"github.com/PagerDuty/go-pagerduty" steps: - checkout - run: diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d2ed098..5b91f378 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,88 +1,88 @@ # Change Log -## [1.0.0](https://github.com/pagerduty/go-pagerduty/tree/1.0.0) (2018-05-28) +## [1.0.0](https://"github.com/PagerDuty/go-pagerduty"/tree/1.0.0) (2018-05-28) **Fixed bugs:** -- Escalation Policy's repeat\_enabled Is Ignored [\#57](https://github.com/pagerduty/go-pagerduty/issues/57) -- Problems running freshly built pd utility [\#39](https://github.com/pagerduty/go-pagerduty/issues/39) -- Manage Incident gives error [\#32](https://github.com/pagerduty/go-pagerduty/issues/32) -- Added missing slash to delete integration method url [\#59](https://github.com/pagerduty/go-pagerduty/pull/59) ([jescochu](https://github.com/jescochu)) +- Escalation Policy's repeat\_enabled Is Ignored [\#57](https://"github.com/PagerDuty/go-pagerduty"/issues/57) +- Problems running freshly built pd utility [\#39](https://"github.com/PagerDuty/go-pagerduty"/issues/39) +- Manage Incident gives error [\#32](https://"github.com/PagerDuty/go-pagerduty"/issues/32) +- Added missing slash to delete integration method url [\#59](https://"github.com/PagerDuty/go-pagerduty"/pull/59) ([jescochu](https://github.com/jescochu)) **Closed issues:** -- Trouble creating an integration [\#102](https://github.com/pagerduty/go-pagerduty/issues/102) -- Client does not trigger events [\#101](https://github.com/pagerduty/go-pagerduty/issues/101) -- Paging help [\#94](https://github.com/pagerduty/go-pagerduty/issues/94) -- Help with incident creation API [\#89](https://github.com/pagerduty/go-pagerduty/issues/89) -- Memory leak because of response body is not closed [\#66](https://github.com/pagerduty/go-pagerduty/issues/66) -- Since and Until don't work for log\_entries [\#61](https://github.com/pagerduty/go-pagerduty/issues/61) -- service: auto\_resolve\_timeout & acknowledgement\_timeout cannot be set to null [\#51](https://github.com/pagerduty/go-pagerduty/issues/51) -- Possible to create new service and integration together [\#42](https://github.com/pagerduty/go-pagerduty/issues/42) -- Documentation does not match code [\#16](https://github.com/pagerduty/go-pagerduty/issues/16) -- Typo in repo description [\#15](https://github.com/pagerduty/go-pagerduty/issues/15) -- Webhook decoder [\#14](https://github.com/pagerduty/go-pagerduty/issues/14) -- incident\_key for create\_event [\#13](https://github.com/pagerduty/go-pagerduty/issues/13) +- Trouble creating an integration [\#102](https://"github.com/PagerDuty/go-pagerduty"/issues/102) +- Client does not trigger events [\#101](https://"github.com/PagerDuty/go-pagerduty"/issues/101) +- Paging help [\#94](https://"github.com/PagerDuty/go-pagerduty"/issues/94) +- Help with incident creation API [\#89](https://"github.com/PagerDuty/go-pagerduty"/issues/89) +- Memory leak because of response body is not closed [\#66](https://"github.com/PagerDuty/go-pagerduty"/issues/66) +- Since and Until don't work for log\_entries [\#61](https://"github.com/PagerDuty/go-pagerduty"/issues/61) +- service: auto\_resolve\_timeout & acknowledgement\_timeout cannot be set to null [\#51](https://"github.com/PagerDuty/go-pagerduty"/issues/51) +- Possible to create new service and integration together [\#42](https://"github.com/PagerDuty/go-pagerduty"/issues/42) +- Documentation does not match code [\#16](https://"github.com/PagerDuty/go-pagerduty"/issues/16) +- Typo in repo description [\#15](https://"github.com/PagerDuty/go-pagerduty"/issues/15) +- Webhook decoder [\#14](https://"github.com/PagerDuty/go-pagerduty"/issues/14) +- incident\_key for create\_event [\#13](https://"github.com/PagerDuty/go-pagerduty"/issues/13) **Merged pull requests:** -- Fix pagination for ListOnCalls [\#90](https://github.com/pagerduty/go-pagerduty/pull/90) ([IainCole](https://github.com/IainCole)) -- Revert "Fix inconsistency with some REST Options objects passed by reference …" [\#88](https://github.com/pagerduty/go-pagerduty/pull/88) ([mimato](https://github.com/mimato)) -- Adding travis config, fixup Makefile [\#87](https://github.com/pagerduty/go-pagerduty/pull/87) ([mimato](https://github.com/mimato)) -- Fixed invalid JSON descriptor for FirstTriggerLogEntry [\#86](https://github.com/pagerduty/go-pagerduty/pull/86) ([mwisniewski0](https://github.com/mwisniewski0)) -- \[incidents\] fix entries typo in a few places [\#85](https://github.com/pagerduty/go-pagerduty/pull/85) ([joeyparsons](https://github.com/joeyparsons)) -- Fix inconsistency with some REST Options objects passed by reference … [\#79](https://github.com/pagerduty/go-pagerduty/pull/79) ([lowesoftware](https://github.com/lowesoftware)) -- Explicit JSON reference to schedules [\#77](https://github.com/pagerduty/go-pagerduty/pull/77) ([domudall](https://github.com/domudall)) -- Adding AlertCreation to Service struct [\#76](https://github.com/pagerduty/go-pagerduty/pull/76) ([domudall](https://github.com/domudall)) -- Add support for escalation rules [\#71](https://github.com/pagerduty/go-pagerduty/pull/71) ([heimweh](https://github.com/heimweh)) -- Fix maintenance window JSON [\#69](https://github.com/pagerduty/go-pagerduty/pull/69) ([domudall](https://github.com/domudall)) -- Fixing Maintenance typo [\#68](https://github.com/pagerduty/go-pagerduty/pull/68) ([domudall](https://github.com/domudall)) -- Update event.go - fix a memory leak [\#65](https://github.com/pagerduty/go-pagerduty/pull/65) ([AngelRefael](https://github.com/AngelRefael)) -- Add query to vendor [\#64](https://github.com/pagerduty/go-pagerduty/pull/64) ([heimweh](https://github.com/heimweh)) -- Fix JSON decode \(errorObject\) [\#63](https://github.com/pagerduty/go-pagerduty/pull/63) ([heimweh](https://github.com/heimweh)) -- fix since and until by adding them to url scheme [\#60](https://github.com/pagerduty/go-pagerduty/pull/60) ([ethansommer](https://github.com/ethansommer)) -- fix webhook struct member name [\#58](https://github.com/pagerduty/go-pagerduty/pull/58) ([pgray](https://github.com/pgray)) -- Incident - Add status field to incident [\#56](https://github.com/pagerduty/go-pagerduty/pull/56) ([heimweh](https://github.com/heimweh)) -- enable fetch log entries via incident api [\#55](https://github.com/pagerduty/go-pagerduty/pull/55) ([flyinprogrammer](https://github.com/flyinprogrammer)) -- Allow service timeouts to be disabled [\#53](https://github.com/pagerduty/go-pagerduty/pull/53) ([heimweh](https://github.com/heimweh)) -- Schedule restriction - Add support for start\_day\_of\_week [\#52](https://github.com/pagerduty/go-pagerduty/pull/52) ([heimweh](https://github.com/heimweh)) -- Add vendor support [\#49](https://github.com/pagerduty/go-pagerduty/pull/49) ([heimweh](https://github.com/heimweh)) -- Add schedules listing [\#46](https://github.com/pagerduty/go-pagerduty/pull/46) ([Marc-Morata-Fite](https://github.com/Marc-Morata-Fite)) -- dont declare main twice in examples [\#45](https://github.com/pagerduty/go-pagerduty/pull/45) ([ranjib](https://github.com/ranjib)) -- add service show [\#44](https://github.com/pagerduty/go-pagerduty/pull/44) ([cmluciano](https://github.com/cmluciano)) -- \(feat\)implement integration creation [\#43](https://github.com/pagerduty/go-pagerduty/pull/43) ([ranjib](https://github.com/ranjib)) -- \(chore\)add create event example [\#41](https://github.com/pagerduty/go-pagerduty/pull/41) ([ranjib](https://github.com/ranjib)) -- \(bug\)Add test. fix version issue [\#40](https://github.com/pagerduty/go-pagerduty/pull/40) ([ranjib](https://github.com/ranjib)) -- Remove subdomain argument from escalation\_policy example. [\#38](https://github.com/pagerduty/go-pagerduty/pull/38) ([cmluciano](https://github.com/cmluciano)) -- Skip JSON encoding if no payload was given [\#37](https://github.com/pagerduty/go-pagerduty/pull/37) ([heimweh](https://github.com/heimweh)) -- \(feat\)add ability API and CLI [\#36](https://github.com/pagerduty/go-pagerduty/pull/36) ([ranjib](https://github.com/ranjib)) -- Make updates to Escalation Policies work [\#35](https://github.com/pagerduty/go-pagerduty/pull/35) ([heimweh](https://github.com/heimweh)) -- Fix misspelling in User struct and add JSON tags [\#34](https://github.com/pagerduty/go-pagerduty/pull/34) ([heimweh](https://github.com/heimweh)) -- \(bug\)allow passing headers in http do call. fix manage incident call [\#33](https://github.com/pagerduty/go-pagerduty/pull/33) ([ranjib](https://github.com/ranjib)) -- \(chore\)get rid of logrus from all core structs except CLI entries. fix schedule override command [\#31](https://github.com/pagerduty/go-pagerduty/pull/31) ([ranjib](https://github.com/ranjib)) -- \(bug\)rename override struct [\#30](https://github.com/pagerduty/go-pagerduty/pull/30) ([ranjib](https://github.com/ranjib)) -- \(bug\)implement schedule override [\#29](https://github.com/pagerduty/go-pagerduty/pull/29) ([ranjib](https://github.com/ranjib)) -- fix misspelling in trigger\_summary\_data's JSON key. [\#28](https://github.com/pagerduty/go-pagerduty/pull/28) ([tomwans](https://github.com/tomwans)) -- Correctly set meta flag for incident list [\#26](https://github.com/pagerduty/go-pagerduty/pull/26) ([afirth](https://github.com/afirth)) -- Add \*.swp to gitignore [\#25](https://github.com/pagerduty/go-pagerduty/pull/25) ([afirth](https://github.com/afirth)) -- Support the /oncalls endpoint in the CLI [\#24](https://github.com/pagerduty/go-pagerduty/pull/24) ([afirth](https://github.com/afirth)) -- Refactor to work correctly with V2 API [\#23](https://github.com/pagerduty/go-pagerduty/pull/23) ([dthagard](https://github.com/dthagard)) -- \(feat\)Add webhook decoding capability [\#22](https://github.com/pagerduty/go-pagerduty/pull/22) ([ranjib](https://github.com/ranjib)) -- \(chore\)Decode event API response. [\#21](https://github.com/pagerduty/go-pagerduty/pull/21) ([ranjib](https://github.com/ranjib)) -- \(bug\)add incident\_key field in event api client [\#20](https://github.com/pagerduty/go-pagerduty/pull/20) ([ranjib](https://github.com/ranjib)) -- \(chore\)nuke sub domain, v2 api does not need one [\#19](https://github.com/pagerduty/go-pagerduty/pull/19) ([ranjib](https://github.com/ranjib)) -- Implement list users CLI [\#17](https://github.com/pagerduty/go-pagerduty/pull/17) ([ranjib](https://github.com/ranjib)) -- Add team\_ids\[\] query string arg [\#12](https://github.com/pagerduty/go-pagerduty/pull/12) ([marklap](https://github.com/marklap)) -- Incidents fix [\#11](https://github.com/pagerduty/go-pagerduty/pull/11) ([jareksm](https://github.com/jareksm)) -- Added APIListObject to Option types to allow setting offset and [\#10](https://github.com/pagerduty/go-pagerduty/pull/10) ([jareksm](https://github.com/jareksm)) -- fix typo [\#9](https://github.com/pagerduty/go-pagerduty/pull/9) ([sjansen](https://github.com/sjansen)) -- implement incident list cli. event posting api [\#8](https://github.com/pagerduty/go-pagerduty/pull/8) ([ranjib](https://github.com/ranjib)) -- CLI for create escalation policy, maintainenance window , schedule ov… [\#7](https://github.com/pagerduty/go-pagerduty/pull/7) ([ranjib](https://github.com/ranjib)) -- \(feat\)implement create service cli [\#6](https://github.com/pagerduty/go-pagerduty/pull/6) ([ranjib](https://github.com/ranjib)) -- \(feat\)list service cli [\#5](https://github.com/pagerduty/go-pagerduty/pull/5) ([ranjib](https://github.com/ranjib)) -- \(feat\)implement addon update/delete [\#4](https://github.com/pagerduty/go-pagerduty/pull/4) ([ranjib](https://github.com/ranjib)) -- \(feat\)Show addon cli [\#3](https://github.com/pagerduty/go-pagerduty/pull/3) ([ranjib](https://github.com/ranjib)) -- \(feat\) addon list api. create cli [\#2](https://github.com/pagerduty/go-pagerduty/pull/2) ([ranjib](https://github.com/ranjib)) -- \(chore\) list addon [\#1](https://github.com/pagerduty/go-pagerduty/pull/1) ([ranjib](https://github.com/ranjib)) +- Fix pagination for ListOnCalls [\#90](https://"github.com/PagerDuty/go-pagerduty"/pull/90) ([IainCole](https://github.com/IainCole)) +- Revert "Fix inconsistency with some REST Options objects passed by reference …" [\#88](https://"github.com/PagerDuty/go-pagerduty"/pull/88) ([mimato](https://github.com/mimato)) +- Adding travis config, fixup Makefile [\#87](https://"github.com/PagerDuty/go-pagerduty"/pull/87) ([mimato](https://github.com/mimato)) +- Fixed invalid JSON descriptor for FirstTriggerLogEntry [\#86](https://"github.com/PagerDuty/go-pagerduty"/pull/86) ([mwisniewski0](https://github.com/mwisniewski0)) +- \[incidents\] fix entries typo in a few places [\#85](https://"github.com/PagerDuty/go-pagerduty"/pull/85) ([joeyparsons](https://github.com/joeyparsons)) +- Fix inconsistency with some REST Options objects passed by reference … [\#79](https://"github.com/PagerDuty/go-pagerduty"/pull/79) ([lowesoftware](https://github.com/lowesoftware)) +- Explicit JSON reference to schedules [\#77](https://"github.com/PagerDuty/go-pagerduty"/pull/77) ([domudall](https://github.com/domudall)) +- Adding AlertCreation to Service struct [\#76](https://"github.com/PagerDuty/go-pagerduty"/pull/76) ([domudall](https://github.com/domudall)) +- Add support for escalation rules [\#71](https://"github.com/PagerDuty/go-pagerduty"/pull/71) ([heimweh](https://github.com/heimweh)) +- Fix maintenance window JSON [\#69](https://"github.com/PagerDuty/go-pagerduty"/pull/69) ([domudall](https://github.com/domudall)) +- Fixing Maintenance typo [\#68](https://"github.com/PagerDuty/go-pagerduty"/pull/68) ([domudall](https://github.com/domudall)) +- Update event.go - fix a memory leak [\#65](https://"github.com/PagerDuty/go-pagerduty"/pull/65) ([AngelRefael](https://github.com/AngelRefael)) +- Add query to vendor [\#64](https://"github.com/PagerDuty/go-pagerduty"/pull/64) ([heimweh](https://github.com/heimweh)) +- Fix JSON decode \(errorObject\) [\#63](https://"github.com/PagerDuty/go-pagerduty"/pull/63) ([heimweh](https://github.com/heimweh)) +- fix since and until by adding them to url scheme [\#60](https://"github.com/PagerDuty/go-pagerduty"/pull/60) ([ethansommer](https://github.com/ethansommer)) +- fix webhook struct member name [\#58](https://"github.com/PagerDuty/go-pagerduty"/pull/58) ([pgray](https://github.com/pgray)) +- Incident - Add status field to incident [\#56](https://"github.com/PagerDuty/go-pagerduty"/pull/56) ([heimweh](https://github.com/heimweh)) +- enable fetch log entries via incident api [\#55](https://"github.com/PagerDuty/go-pagerduty"/pull/55) ([flyinprogrammer](https://github.com/flyinprogrammer)) +- Allow service timeouts to be disabled [\#53](https://"github.com/PagerDuty/go-pagerduty"/pull/53) ([heimweh](https://github.com/heimweh)) +- Schedule restriction - Add support for start\_day\_of\_week [\#52](https://"github.com/PagerDuty/go-pagerduty"/pull/52) ([heimweh](https://github.com/heimweh)) +- Add vendor support [\#49](https://"github.com/PagerDuty/go-pagerduty"/pull/49) ([heimweh](https://github.com/heimweh)) +- Add schedules listing [\#46](https://"github.com/PagerDuty/go-pagerduty"/pull/46) ([Marc-Morata-Fite](https://github.com/Marc-Morata-Fite)) +- dont declare main twice in examples [\#45](https://"github.com/PagerDuty/go-pagerduty"/pull/45) ([ranjib](https://github.com/ranjib)) +- add service show [\#44](https://"github.com/PagerDuty/go-pagerduty"/pull/44) ([cmluciano](https://github.com/cmluciano)) +- \(feat\)implement integration creation [\#43](https://"github.com/PagerDuty/go-pagerduty"/pull/43) ([ranjib](https://github.com/ranjib)) +- \(chore\)add create event example [\#41](https://"github.com/PagerDuty/go-pagerduty"/pull/41) ([ranjib](https://github.com/ranjib)) +- \(bug\)Add test. fix version issue [\#40](https://"github.com/PagerDuty/go-pagerduty"/pull/40) ([ranjib](https://github.com/ranjib)) +- Remove subdomain argument from escalation\_policy example. [\#38](https://"github.com/PagerDuty/go-pagerduty"/pull/38) ([cmluciano](https://github.com/cmluciano)) +- Skip JSON encoding if no payload was given [\#37](https://"github.com/PagerDuty/go-pagerduty"/pull/37) ([heimweh](https://github.com/heimweh)) +- \(feat\)add ability API and CLI [\#36](https://"github.com/PagerDuty/go-pagerduty"/pull/36) ([ranjib](https://github.com/ranjib)) +- Make updates to Escalation Policies work [\#35](https://"github.com/PagerDuty/go-pagerduty"/pull/35) ([heimweh](https://github.com/heimweh)) +- Fix misspelling in User struct and add JSON tags [\#34](https://"github.com/PagerDuty/go-pagerduty"/pull/34) ([heimweh](https://github.com/heimweh)) +- \(bug\)allow passing headers in http do call. fix manage incident call [\#33](https://"github.com/PagerDuty/go-pagerduty"/pull/33) ([ranjib](https://github.com/ranjib)) +- \(chore\)get rid of logrus from all core structs except CLI entries. fix schedule override command [\#31](https://"github.com/PagerDuty/go-pagerduty"/pull/31) ([ranjib](https://github.com/ranjib)) +- \(bug\)rename override struct [\#30](https://"github.com/PagerDuty/go-pagerduty"/pull/30) ([ranjib](https://github.com/ranjib)) +- \(bug\)implement schedule override [\#29](https://"github.com/PagerDuty/go-pagerduty"/pull/29) ([ranjib](https://github.com/ranjib)) +- fix misspelling in trigger\_summary\_data's JSON key. [\#28](https://"github.com/PagerDuty/go-pagerduty"/pull/28) ([tomwans](https://github.com/tomwans)) +- Correctly set meta flag for incident list [\#26](https://"github.com/PagerDuty/go-pagerduty"/pull/26) ([afirth](https://github.com/afirth)) +- Add \*.swp to gitignore [\#25](https://"github.com/PagerDuty/go-pagerduty"/pull/25) ([afirth](https://github.com/afirth)) +- Support the /oncalls endpoint in the CLI [\#24](https://"github.com/PagerDuty/go-pagerduty"/pull/24) ([afirth](https://github.com/afirth)) +- Refactor to work correctly with V2 API [\#23](https://"github.com/PagerDuty/go-pagerduty"/pull/23) ([dthagard](https://github.com/dthagard)) +- \(feat\)Add webhook decoding capability [\#22](https://"github.com/PagerDuty/go-pagerduty"/pull/22) ([ranjib](https://github.com/ranjib)) +- \(chore\)Decode event API response. [\#21](https://"github.com/PagerDuty/go-pagerduty"/pull/21) ([ranjib](https://github.com/ranjib)) +- \(bug\)add incident\_key field in event api client [\#20](https://"github.com/PagerDuty/go-pagerduty"/pull/20) ([ranjib](https://github.com/ranjib)) +- \(chore\)nuke sub domain, v2 api does not need one [\#19](https://"github.com/PagerDuty/go-pagerduty"/pull/19) ([ranjib](https://github.com/ranjib)) +- Implement list users CLI [\#17](https://"github.com/PagerDuty/go-pagerduty"/pull/17) ([ranjib](https://github.com/ranjib)) +- Add team\_ids\[\] query string arg [\#12](https://"github.com/PagerDuty/go-pagerduty"/pull/12) ([marklap](https://github.com/marklap)) +- Incidents fix [\#11](https://"github.com/PagerDuty/go-pagerduty"/pull/11) ([jareksm](https://github.com/jareksm)) +- Added APIListObject to Option types to allow setting offset and [\#10](https://"github.com/PagerDuty/go-pagerduty"/pull/10) ([jareksm](https://github.com/jareksm)) +- fix typo [\#9](https://"github.com/PagerDuty/go-pagerduty"/pull/9) ([sjansen](https://github.com/sjansen)) +- implement incident list cli. event posting api [\#8](https://"github.com/PagerDuty/go-pagerduty"/pull/8) ([ranjib](https://github.com/ranjib)) +- CLI for create escalation policy, maintainenance window , schedule ov… [\#7](https://"github.com/PagerDuty/go-pagerduty"/pull/7) ([ranjib](https://github.com/ranjib)) +- \(feat\)implement create service cli [\#6](https://"github.com/PagerDuty/go-pagerduty"/pull/6) ([ranjib](https://github.com/ranjib)) +- \(feat\)list service cli [\#5](https://"github.com/PagerDuty/go-pagerduty"/pull/5) ([ranjib](https://github.com/ranjib)) +- \(feat\)implement addon update/delete [\#4](https://"github.com/PagerDuty/go-pagerduty"/pull/4) ([ranjib](https://github.com/ranjib)) +- \(feat\)Show addon cli [\#3](https://"github.com/PagerDuty/go-pagerduty"/pull/3) ([ranjib](https://github.com/ranjib)) +- \(feat\) addon list api. create cli [\#2](https://"github.com/PagerDuty/go-pagerduty"/pull/2) ([ranjib](https://github.com/ranjib)) +- \(chore\) list addon [\#1](https://"github.com/PagerDuty/go-pagerduty"/pull/1) ([ranjib](https://github.com/ranjib)) diff --git a/Dockerfile b/Dockerfile index 7ffa0fc0..8c2b12e6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ FROM golang -ADD . /go/src/github.com/pagerduty/go-pagerduty -WORKDIR /go/src/github.com/pagerduty/go-pagerduty +ADD . /go/src/"github.com/PagerDuty/go-pagerduty" +WORKDIR /go/src/"github.com/PagerDuty/go-pagerduty" RUN go get ./... && go test -v -race -cover ./... diff --git a/README.md b/README.md index 104cbd91..02f98de3 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![GoDoc](https://godoc.org/github.com/pagerduty/go-pagerduty?status.svg)](http://godoc.org/github.com/pagerduty/go-pagerduty) [![Go Report Card](https://goreportcard.com/badge/github.com/pagerduty/go-pagerduty)](https://goreportcard.com/report/github.com/pagerduty/go-pagerduty) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/gojp/goreportcard/blob/master/LICENSE) +[![GoDoc](https://godoc.org/"github.com/PagerDuty/go-pagerduty"?status.svg)](http://godoc.org/"github.com/PagerDuty/go-pagerduty") [![Go Report Card](https://goreportcard.com/badge/"github.com/PagerDuty/go-pagerduty")](https://goreportcard.com/report/"github.com/PagerDuty/go-pagerduty") [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/gojp/goreportcard/blob/master/LICENSE) # go-pagerduty go-pagerduty is a CLI and [go](https://golang.org/) client library for the [PagerDuty v2 API](https://v2.developer.pagerduty.com/v2/page/api-reference). @@ -7,12 +7,12 @@ go-pagerduty is a CLI and [go](https://golang.org/) client library for the [Page First, download the source code ```cli -go get github.com/pagerduty/go-pagerduty +go get "github.com/PagerDuty/go-pagerduty" ``` Next build the application. ```cli -cd $GOPATH/src/github.com/pagerduty/go-pagerduty +cd $GOPATH/src/"github.com/PagerDuty/go-pagerduty" go build -o $GOPATH/bin/pd command/* ``` If you do not have the dependencies necessary to build the project, run this in the project root and try again @@ -55,7 +55,7 @@ package main import ( "fmt" - "github.com/pagerduty/go-pagerduty" + ""github.com/PagerDuty/go-pagerduty"" ) var authtoken = "" // Set your auth token here @@ -82,7 +82,7 @@ simply by setting a new value in the `HTTPClient` field. ## Contributing -1. Fork it ( https://github.com/pagerduty/go-pagerduty/fork ) +1. Fork it ( https://"github.com/PagerDuty/go-pagerduty"/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) diff --git a/command/addon_install.go b/command/addon_install.go index 9ee1100c..fc0cbe31 100644 --- a/command/addon_install.go +++ b/command/addon_install.go @@ -3,7 +3,7 @@ package main import ( "encoding/json" "fmt" - "github.com/pagerduty/go-pagerduty" + ""github.com/PagerDuty/go-pagerduty"" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "os" diff --git a/command/addon_list.go b/command/addon_list.go index a385c2be..9aa7e19d 100644 --- a/command/addon_list.go +++ b/command/addon_list.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "github.com/pagerduty/go-pagerduty" + ""github.com/PagerDuty/go-pagerduty"" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" diff --git a/command/addon_update.go b/command/addon_update.go index d8abfe20..a54f7164 100644 --- a/command/addon_update.go +++ b/command/addon_update.go @@ -3,7 +3,7 @@ package main import ( "encoding/json" "fmt" - "github.com/pagerduty/go-pagerduty" + ""github.com/PagerDuty/go-pagerduty"" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "strings" diff --git a/command/escalation_policy_create.go b/command/escalation_policy_create.go index 00e3025b..a2a26328 100644 --- a/command/escalation_policy_create.go +++ b/command/escalation_policy_create.go @@ -3,7 +3,7 @@ package main import ( "encoding/json" "fmt" - "github.com/pagerduty/go-pagerduty" + ""github.com/PagerDuty/go-pagerduty"" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "os" diff --git a/command/escalation_policy_list.go b/command/escalation_policy_list.go index 1361a3ba..6f6e88f1 100644 --- a/command/escalation_policy_list.go +++ b/command/escalation_policy_list.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "github.com/pagerduty/go-pagerduty" + ""github.com/PagerDuty/go-pagerduty"" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" diff --git a/command/escalation_policy_show.go b/command/escalation_policy_show.go index 00a5010a..73eb25db 100644 --- a/command/escalation_policy_show.go +++ b/command/escalation_policy_show.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "github.com/pagerduty/go-pagerduty" + ""github.com/PagerDuty/go-pagerduty"" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" diff --git a/command/event_v2_manage.go b/command/event_v2_manage.go index fdf6735a..d71fafaa 100644 --- a/command/event_v2_manage.go +++ b/command/event_v2_manage.go @@ -6,7 +6,7 @@ import ( "os" "strings" - pagerduty "github.com/pagerduty/go-pagerduty" + pagerduty ""github.com/PagerDuty/go-pagerduty"" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" ) diff --git a/command/incident_list.go b/command/incident_list.go index bdedd96e..793eaa92 100644 --- a/command/incident_list.go +++ b/command/incident_list.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "github.com/pagerduty/go-pagerduty" + ""github.com/PagerDuty/go-pagerduty"" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" diff --git a/command/maintenance_window_create.go b/command/maintenance_window_create.go index 218d44f0..663b99f0 100644 --- a/command/maintenance_window_create.go +++ b/command/maintenance_window_create.go @@ -3,7 +3,7 @@ package main import ( "encoding/json" "fmt" - "github.com/pagerduty/go-pagerduty" + ""github.com/PagerDuty/go-pagerduty"" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "os" diff --git a/command/meta.go b/command/meta.go index 682bfa79..e8df4a4c 100644 --- a/command/meta.go +++ b/command/meta.go @@ -3,7 +3,7 @@ package main import ( "flag" "fmt" - "github.com/pagerduty/go-pagerduty" + ""github.com/PagerDuty/go-pagerduty"" log "github.com/sirupsen/logrus" "github.com/mitchellh/go-homedir" "gopkg.in/yaml.v2" diff --git a/command/oncall_list.go b/command/oncall_list.go index 1064a8f1..db7af5cc 100644 --- a/command/oncall_list.go +++ b/command/oncall_list.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/pagerduty/go-pagerduty" + ""github.com/PagerDuty/go-pagerduty"" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" diff --git a/command/schedule_create.go b/command/schedule_create.go index f9da1772..710c7ad9 100644 --- a/command/schedule_create.go +++ b/command/schedule_create.go @@ -3,7 +3,7 @@ package main import ( "encoding/json" "fmt" - "github.com/pagerduty/go-pagerduty" + ""github.com/PagerDuty/go-pagerduty"" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "os" diff --git a/command/schedule_list.go b/command/schedule_list.go index 40b9903c..e60501b0 100644 --- a/command/schedule_list.go +++ b/command/schedule_list.go @@ -6,7 +6,7 @@ import ( yaml "gopkg.in/yaml.v2" - pagerduty "github.com/pagerduty/go-pagerduty" + pagerduty ""github.com/PagerDuty/go-pagerduty"" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" ) diff --git a/command/schedule_override_create.go b/command/schedule_override_create.go index 0fc207ff..b9cbc85c 100644 --- a/command/schedule_override_create.go +++ b/command/schedule_override_create.go @@ -3,7 +3,7 @@ package main import ( "encoding/json" "fmt" - "github.com/pagerduty/go-pagerduty" + ""github.com/PagerDuty/go-pagerduty"" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "os" diff --git a/command/service_create.go b/command/service_create.go index fe4e70ef..24e0c9c1 100644 --- a/command/service_create.go +++ b/command/service_create.go @@ -3,7 +3,7 @@ package main import ( "encoding/json" "fmt" - "github.com/pagerduty/go-pagerduty" + ""github.com/PagerDuty/go-pagerduty"" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "os" diff --git a/command/service_integration_create.go b/command/service_integration_create.go index 507da551..dd0ec2f2 100644 --- a/command/service_integration_create.go +++ b/command/service_integration_create.go @@ -3,7 +3,7 @@ package main import ( "encoding/json" "fmt" - "github.com/pagerduty/go-pagerduty" + ""github.com/PagerDuty/go-pagerduty"" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "os" diff --git a/command/service_list.go b/command/service_list.go index 6c05def6..1ff0f661 100644 --- a/command/service_list.go +++ b/command/service_list.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "github.com/pagerduty/go-pagerduty" + ""github.com/PagerDuty/go-pagerduty"" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" diff --git a/command/service_show.go b/command/service_show.go index 8e8a5a95..694ff464 100644 --- a/command/service_show.go +++ b/command/service_show.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "github.com/pagerduty/go-pagerduty" + ""github.com/PagerDuty/go-pagerduty"" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" diff --git a/command/team_list.go b/command/team_list.go index f3515c80..7f38eee8 100644 --- a/command/team_list.go +++ b/command/team_list.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "github.com/pagerduty/go-pagerduty" + ""github.com/PagerDuty/go-pagerduty"" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" diff --git a/command/user_list.go b/command/user_list.go index 442dd491..a0fd768d 100644 --- a/command/user_list.go +++ b/command/user_list.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/pagerduty/go-pagerduty" + ""github.com/PagerDuty/go-pagerduty"" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" diff --git a/command/vendor_list.go b/command/vendor_list.go index 0bce5b55..73a0d5c3 100644 --- a/command/vendor_list.go +++ b/command/vendor_list.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "github.com/pagerduty/go-pagerduty" + ""github.com/PagerDuty/go-pagerduty"" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" diff --git a/examples/escalation_policies.go b/examples/escalation_policies.go index e1747879..47880ade 100644 --- a/examples/escalation_policies.go +++ b/examples/escalation_policies.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "github.com/pagerduty/go-pagerduty" + ""github.com/PagerDuty/go-pagerduty"" ) var ( diff --git a/examples/event.go b/examples/event.go index 394cb574..a3c69a6d 100644 --- a/examples/event.go +++ b/examples/event.go @@ -1,7 +1,7 @@ package main import ( - "github.com/pagerduty/go-pagerduty" + ""github.com/PagerDuty/go-pagerduty"" "log" ) diff --git a/go.mod b/go.mod index bf42bcf1..017ff18f 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/pagerduty/go-pagerduty +module github.com/PagerDuty/go-pagerduty go 1.12 From ca32b9c5cdc0b50d2632f5dc45db658b0580af05 Mon Sep 17 00:00:00 2001 From: Nathan Button Date: Tue, 22 Oct 2019 08:09:58 -0700 Subject: [PATCH 4/4] typo in replace --- .circleci/config.yml | 2 +- CHANGELOG.md | 150 +++++++++++++------------- Dockerfile | 4 +- README.md | 10 +- command/addon_install.go | 2 +- command/addon_list.go | 2 +- command/addon_update.go | 2 +- command/escalation_policy_create.go | 2 +- command/escalation_policy_list.go | 2 +- command/escalation_policy_show.go | 2 +- command/event_v2_manage.go | 2 +- command/incident_list.go | 2 +- command/maintenance_window_create.go | 2 +- command/meta.go | 2 +- command/oncall_list.go | 2 +- command/schedule_create.go | 2 +- command/schedule_list.go | 2 +- command/schedule_override_create.go | 2 +- command/service_create.go | 2 +- command/service_integration_create.go | 2 +- command/service_list.go | 2 +- command/service_show.go | 2 +- command/team_list.go | 2 +- command/user_list.go | 2 +- command/vendor_list.go | 2 +- examples/escalation_policies.go | 2 +- examples/event.go | 2 +- 27 files changed, 106 insertions(+), 106 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4688896c..6f495fba 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ jobs: build: docker: - image: circleci/golang:1.12 - working_directory: /go/src/"github.com/PagerDuty/go-pagerduty" + working_directory: /go/src/github.com/PagerDuty/go-pagerduty steps: - checkout - run: diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b91f378..5936ccc3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,88 +1,88 @@ # Change Log -## [1.0.0](https://"github.com/PagerDuty/go-pagerduty"/tree/1.0.0) (2018-05-28) +## [1.0.0](https://github.com/PagerDuty/go-pagerduty/tree/1.0.0) (2018-05-28) **Fixed bugs:** -- Escalation Policy's repeat\_enabled Is Ignored [\#57](https://"github.com/PagerDuty/go-pagerduty"/issues/57) -- Problems running freshly built pd utility [\#39](https://"github.com/PagerDuty/go-pagerduty"/issues/39) -- Manage Incident gives error [\#32](https://"github.com/PagerDuty/go-pagerduty"/issues/32) -- Added missing slash to delete integration method url [\#59](https://"github.com/PagerDuty/go-pagerduty"/pull/59) ([jescochu](https://github.com/jescochu)) +- Escalation Policy's repeat\_enabled Is Ignored [\#57](https://github.com/PagerDuty/go-pagerduty/issues/57) +- Problems running freshly built pd utility [\#39](https://github.com/PagerDuty/go-pagerduty/issues/39) +- Manage Incident gives error [\#32](https://github.com/PagerDuty/go-pagerduty/issues/32) +- Added missing slash to delete integration method url [\#59](https://github.com/PagerDuty/go-pagerduty/pull/59) ([jescochu](https://github.com/jescochu)) **Closed issues:** -- Trouble creating an integration [\#102](https://"github.com/PagerDuty/go-pagerduty"/issues/102) -- Client does not trigger events [\#101](https://"github.com/PagerDuty/go-pagerduty"/issues/101) -- Paging help [\#94](https://"github.com/PagerDuty/go-pagerduty"/issues/94) -- Help with incident creation API [\#89](https://"github.com/PagerDuty/go-pagerduty"/issues/89) -- Memory leak because of response body is not closed [\#66](https://"github.com/PagerDuty/go-pagerduty"/issues/66) -- Since and Until don't work for log\_entries [\#61](https://"github.com/PagerDuty/go-pagerduty"/issues/61) -- service: auto\_resolve\_timeout & acknowledgement\_timeout cannot be set to null [\#51](https://"github.com/PagerDuty/go-pagerduty"/issues/51) -- Possible to create new service and integration together [\#42](https://"github.com/PagerDuty/go-pagerduty"/issues/42) -- Documentation does not match code [\#16](https://"github.com/PagerDuty/go-pagerduty"/issues/16) -- Typo in repo description [\#15](https://"github.com/PagerDuty/go-pagerduty"/issues/15) -- Webhook decoder [\#14](https://"github.com/PagerDuty/go-pagerduty"/issues/14) -- incident\_key for create\_event [\#13](https://"github.com/PagerDuty/go-pagerduty"/issues/13) +- Trouble creating an integration [\#102](https://github.com/PagerDuty/go-pagerduty/issues/102) +- Client does not trigger events [\#101](https://github.com/PagerDuty/go-pagerduty/issues/101) +- Paging help [\#94](https://github.com/PagerDuty/go-pagerduty/issues/94) +- Help with incident creation API [\#89](https://github.com/PagerDuty/go-pagerduty/issues/89) +- Memory leak because of response body is not closed [\#66](https://github.com/PagerDuty/go-pagerduty/issues/66) +- Since and Until don't work for log\_entries [\#61](https://github.com/PagerDuty/go-pagerduty/issues/61) +- service: auto\_resolve\_timeout & acknowledgement\_timeout cannot be set to null [\#51](https://github.com/PagerDuty/go-pagerduty/issues/51) +- Possible to create new service and integration together [\#42](https://github.com/PagerDuty/go-pagerduty/issues/42) +- Documentation does not match code [\#16](https://github.com/PagerDuty/go-pagerduty/issues/16) +- Typo in repo description [\#15](https://github.com/PagerDuty/go-pagerduty/issues/15) +- Webhook decoder [\#14](https://github.com/PagerDuty/go-pagerduty/issues/14) +- incident\_key for create\_event [\#13](https://github.com/PagerDuty/go-pagerduty/issues/13) **Merged pull requests:** -- Fix pagination for ListOnCalls [\#90](https://"github.com/PagerDuty/go-pagerduty"/pull/90) ([IainCole](https://github.com/IainCole)) -- Revert "Fix inconsistency with some REST Options objects passed by reference …" [\#88](https://"github.com/PagerDuty/go-pagerduty"/pull/88) ([mimato](https://github.com/mimato)) -- Adding travis config, fixup Makefile [\#87](https://"github.com/PagerDuty/go-pagerduty"/pull/87) ([mimato](https://github.com/mimato)) -- Fixed invalid JSON descriptor for FirstTriggerLogEntry [\#86](https://"github.com/PagerDuty/go-pagerduty"/pull/86) ([mwisniewski0](https://github.com/mwisniewski0)) -- \[incidents\] fix entries typo in a few places [\#85](https://"github.com/PagerDuty/go-pagerduty"/pull/85) ([joeyparsons](https://github.com/joeyparsons)) -- Fix inconsistency with some REST Options objects passed by reference … [\#79](https://"github.com/PagerDuty/go-pagerduty"/pull/79) ([lowesoftware](https://github.com/lowesoftware)) -- Explicit JSON reference to schedules [\#77](https://"github.com/PagerDuty/go-pagerduty"/pull/77) ([domudall](https://github.com/domudall)) -- Adding AlertCreation to Service struct [\#76](https://"github.com/PagerDuty/go-pagerduty"/pull/76) ([domudall](https://github.com/domudall)) -- Add support for escalation rules [\#71](https://"github.com/PagerDuty/go-pagerduty"/pull/71) ([heimweh](https://github.com/heimweh)) -- Fix maintenance window JSON [\#69](https://"github.com/PagerDuty/go-pagerduty"/pull/69) ([domudall](https://github.com/domudall)) -- Fixing Maintenance typo [\#68](https://"github.com/PagerDuty/go-pagerduty"/pull/68) ([domudall](https://github.com/domudall)) -- Update event.go - fix a memory leak [\#65](https://"github.com/PagerDuty/go-pagerduty"/pull/65) ([AngelRefael](https://github.com/AngelRefael)) -- Add query to vendor [\#64](https://"github.com/PagerDuty/go-pagerduty"/pull/64) ([heimweh](https://github.com/heimweh)) -- Fix JSON decode \(errorObject\) [\#63](https://"github.com/PagerDuty/go-pagerduty"/pull/63) ([heimweh](https://github.com/heimweh)) -- fix since and until by adding them to url scheme [\#60](https://"github.com/PagerDuty/go-pagerduty"/pull/60) ([ethansommer](https://github.com/ethansommer)) -- fix webhook struct member name [\#58](https://"github.com/PagerDuty/go-pagerduty"/pull/58) ([pgray](https://github.com/pgray)) -- Incident - Add status field to incident [\#56](https://"github.com/PagerDuty/go-pagerduty"/pull/56) ([heimweh](https://github.com/heimweh)) -- enable fetch log entries via incident api [\#55](https://"github.com/PagerDuty/go-pagerduty"/pull/55) ([flyinprogrammer](https://github.com/flyinprogrammer)) -- Allow service timeouts to be disabled [\#53](https://"github.com/PagerDuty/go-pagerduty"/pull/53) ([heimweh](https://github.com/heimweh)) -- Schedule restriction - Add support for start\_day\_of\_week [\#52](https://"github.com/PagerDuty/go-pagerduty"/pull/52) ([heimweh](https://github.com/heimweh)) -- Add vendor support [\#49](https://"github.com/PagerDuty/go-pagerduty"/pull/49) ([heimweh](https://github.com/heimweh)) -- Add schedules listing [\#46](https://"github.com/PagerDuty/go-pagerduty"/pull/46) ([Marc-Morata-Fite](https://github.com/Marc-Morata-Fite)) -- dont declare main twice in examples [\#45](https://"github.com/PagerDuty/go-pagerduty"/pull/45) ([ranjib](https://github.com/ranjib)) -- add service show [\#44](https://"github.com/PagerDuty/go-pagerduty"/pull/44) ([cmluciano](https://github.com/cmluciano)) -- \(feat\)implement integration creation [\#43](https://"github.com/PagerDuty/go-pagerduty"/pull/43) ([ranjib](https://github.com/ranjib)) -- \(chore\)add create event example [\#41](https://"github.com/PagerDuty/go-pagerduty"/pull/41) ([ranjib](https://github.com/ranjib)) -- \(bug\)Add test. fix version issue [\#40](https://"github.com/PagerDuty/go-pagerduty"/pull/40) ([ranjib](https://github.com/ranjib)) -- Remove subdomain argument from escalation\_policy example. [\#38](https://"github.com/PagerDuty/go-pagerduty"/pull/38) ([cmluciano](https://github.com/cmluciano)) -- Skip JSON encoding if no payload was given [\#37](https://"github.com/PagerDuty/go-pagerduty"/pull/37) ([heimweh](https://github.com/heimweh)) -- \(feat\)add ability API and CLI [\#36](https://"github.com/PagerDuty/go-pagerduty"/pull/36) ([ranjib](https://github.com/ranjib)) -- Make updates to Escalation Policies work [\#35](https://"github.com/PagerDuty/go-pagerduty"/pull/35) ([heimweh](https://github.com/heimweh)) -- Fix misspelling in User struct and add JSON tags [\#34](https://"github.com/PagerDuty/go-pagerduty"/pull/34) ([heimweh](https://github.com/heimweh)) -- \(bug\)allow passing headers in http do call. fix manage incident call [\#33](https://"github.com/PagerDuty/go-pagerduty"/pull/33) ([ranjib](https://github.com/ranjib)) -- \(chore\)get rid of logrus from all core structs except CLI entries. fix schedule override command [\#31](https://"github.com/PagerDuty/go-pagerduty"/pull/31) ([ranjib](https://github.com/ranjib)) -- \(bug\)rename override struct [\#30](https://"github.com/PagerDuty/go-pagerduty"/pull/30) ([ranjib](https://github.com/ranjib)) -- \(bug\)implement schedule override [\#29](https://"github.com/PagerDuty/go-pagerduty"/pull/29) ([ranjib](https://github.com/ranjib)) -- fix misspelling in trigger\_summary\_data's JSON key. [\#28](https://"github.com/PagerDuty/go-pagerduty"/pull/28) ([tomwans](https://github.com/tomwans)) -- Correctly set meta flag for incident list [\#26](https://"github.com/PagerDuty/go-pagerduty"/pull/26) ([afirth](https://github.com/afirth)) -- Add \*.swp to gitignore [\#25](https://"github.com/PagerDuty/go-pagerduty"/pull/25) ([afirth](https://github.com/afirth)) -- Support the /oncalls endpoint in the CLI [\#24](https://"github.com/PagerDuty/go-pagerduty"/pull/24) ([afirth](https://github.com/afirth)) -- Refactor to work correctly with V2 API [\#23](https://"github.com/PagerDuty/go-pagerduty"/pull/23) ([dthagard](https://github.com/dthagard)) -- \(feat\)Add webhook decoding capability [\#22](https://"github.com/PagerDuty/go-pagerduty"/pull/22) ([ranjib](https://github.com/ranjib)) -- \(chore\)Decode event API response. [\#21](https://"github.com/PagerDuty/go-pagerduty"/pull/21) ([ranjib](https://github.com/ranjib)) -- \(bug\)add incident\_key field in event api client [\#20](https://"github.com/PagerDuty/go-pagerduty"/pull/20) ([ranjib](https://github.com/ranjib)) -- \(chore\)nuke sub domain, v2 api does not need one [\#19](https://"github.com/PagerDuty/go-pagerduty"/pull/19) ([ranjib](https://github.com/ranjib)) -- Implement list users CLI [\#17](https://"github.com/PagerDuty/go-pagerduty"/pull/17) ([ranjib](https://github.com/ranjib)) -- Add team\_ids\[\] query string arg [\#12](https://"github.com/PagerDuty/go-pagerduty"/pull/12) ([marklap](https://github.com/marklap)) -- Incidents fix [\#11](https://"github.com/PagerDuty/go-pagerduty"/pull/11) ([jareksm](https://github.com/jareksm)) -- Added APIListObject to Option types to allow setting offset and [\#10](https://"github.com/PagerDuty/go-pagerduty"/pull/10) ([jareksm](https://github.com/jareksm)) -- fix typo [\#9](https://"github.com/PagerDuty/go-pagerduty"/pull/9) ([sjansen](https://github.com/sjansen)) -- implement incident list cli. event posting api [\#8](https://"github.com/PagerDuty/go-pagerduty"/pull/8) ([ranjib](https://github.com/ranjib)) -- CLI for create escalation policy, maintainenance window , schedule ov… [\#7](https://"github.com/PagerDuty/go-pagerduty"/pull/7) ([ranjib](https://github.com/ranjib)) -- \(feat\)implement create service cli [\#6](https://"github.com/PagerDuty/go-pagerduty"/pull/6) ([ranjib](https://github.com/ranjib)) -- \(feat\)list service cli [\#5](https://"github.com/PagerDuty/go-pagerduty"/pull/5) ([ranjib](https://github.com/ranjib)) -- \(feat\)implement addon update/delete [\#4](https://"github.com/PagerDuty/go-pagerduty"/pull/4) ([ranjib](https://github.com/ranjib)) -- \(feat\)Show addon cli [\#3](https://"github.com/PagerDuty/go-pagerduty"/pull/3) ([ranjib](https://github.com/ranjib)) -- \(feat\) addon list api. create cli [\#2](https://"github.com/PagerDuty/go-pagerduty"/pull/2) ([ranjib](https://github.com/ranjib)) -- \(chore\) list addon [\#1](https://"github.com/PagerDuty/go-pagerduty"/pull/1) ([ranjib](https://github.com/ranjib)) +- Fix pagination for ListOnCalls [\#90](https://github.com/PagerDuty/go-pagerduty/pull/90) ([IainCole](https://github.com/IainCole)) +- Revert "Fix inconsistency with some REST Options objects passed by reference …" [\#88](https://github.com/PagerDuty/go-pagerduty/pull/88) ([mimato](https://github.com/mimato)) +- Adding travis config, fixup Makefile [\#87](https://github.com/PagerDuty/go-pagerduty/pull/87) ([mimato](https://github.com/mimato)) +- Fixed invalid JSON descriptor for FirstTriggerLogEntry [\#86](https://github.com/PagerDuty/go-pagerduty/pull/86) ([mwisniewski0](https://github.com/mwisniewski0)) +- \[incidents\] fix entries typo in a few places [\#85](https://github.com/PagerDuty/go-pagerduty/pull/85) ([joeyparsons](https://github.com/joeyparsons)) +- Fix inconsistency with some REST Options objects passed by reference … [\#79](https://github.com/PagerDuty/go-pagerduty/pull/79) ([lowesoftware](https://github.com/lowesoftware)) +- Explicit JSON reference to schedules [\#77](https://github.com/PagerDuty/go-pagerduty/pull/77) ([domudall](https://github.com/domudall)) +- Adding AlertCreation to Service struct [\#76](https://github.com/PagerDuty/go-pagerduty/pull/76) ([domudall](https://github.com/domudall)) +- Add support for escalation rules [\#71](https://github.com/PagerDuty/go-pagerduty/pull/71) ([heimweh](https://github.com/heimweh)) +- Fix maintenance window JSON [\#69](https://github.com/PagerDuty/go-pagerduty/pull/69) ([domudall](https://github.com/domudall)) +- Fixing Maintenance typo [\#68](https://github.com/PagerDuty/go-pagerduty/pull/68) ([domudall](https://github.com/domudall)) +- Update event.go - fix a memory leak [\#65](https://github.com/PagerDuty/go-pagerduty/pull/65) ([AngelRefael](https://github.com/AngelRefael)) +- Add query to vendor [\#64](https://github.com/PagerDuty/go-pagerduty/pull/64) ([heimweh](https://github.com/heimweh)) +- Fix JSON decode \(errorObject\) [\#63](https://github.com/PagerDuty/go-pagerduty/pull/63) ([heimweh](https://github.com/heimweh)) +- fix since and until by adding them to url scheme [\#60](https://github.com/PagerDuty/go-pagerduty/pull/60) ([ethansommer](https://github.com/ethansommer)) +- fix webhook struct member name [\#58](https://github.com/PagerDuty/go-pagerduty/pull/58) ([pgray](https://github.com/pgray)) +- Incident - Add status field to incident [\#56](https://github.com/PagerDuty/go-pagerduty/pull/56) ([heimweh](https://github.com/heimweh)) +- enable fetch log entries via incident api [\#55](https://github.com/PagerDuty/go-pagerduty/pull/55) ([flyinprogrammer](https://github.com/flyinprogrammer)) +- Allow service timeouts to be disabled [\#53](https://github.com/PagerDuty/go-pagerduty/pull/53) ([heimweh](https://github.com/heimweh)) +- Schedule restriction - Add support for start\_day\_of\_week [\#52](https://github.com/PagerDuty/go-pagerduty/pull/52) ([heimweh](https://github.com/heimweh)) +- Add vendor support [\#49](https://github.com/PagerDuty/go-pagerduty/pull/49) ([heimweh](https://github.com/heimweh)) +- Add schedules listing [\#46](https://github.com/PagerDuty/go-pagerduty/pull/46) ([Marc-Morata-Fite](https://github.com/Marc-Morata-Fite)) +- dont declare main twice in examples [\#45](https://github.com/PagerDuty/go-pagerduty/pull/45) ([ranjib](https://github.com/ranjib)) +- add service show [\#44](https://github.com/PagerDuty/go-pagerduty/pull/44) ([cmluciano](https://github.com/cmluciano)) +- \(feat\)implement integration creation [\#43](https://github.com/PagerDuty/go-pagerduty/pull/43) ([ranjib](https://github.com/ranjib)) +- \(chore\)add create event example [\#41](https://github.com/PagerDuty/go-pagerduty/pull/41) ([ranjib](https://github.com/ranjib)) +- \(bug\)Add test. fix version issue [\#40](https://github.com/PagerDuty/go-pagerduty/pull/40) ([ranjib](https://github.com/ranjib)) +- Remove subdomain argument from escalation\_policy example. [\#38](https://github.com/PagerDuty/go-pagerduty/pull/38) ([cmluciano](https://github.com/cmluciano)) +- Skip JSON encoding if no payload was given [\#37](https://github.com/PagerDuty/go-pagerduty/pull/37) ([heimweh](https://github.com/heimweh)) +- \(feat\)add ability API and CLI [\#36](https://github.com/PagerDuty/go-pagerduty/pull/36) ([ranjib](https://github.com/ranjib)) +- Make updates to Escalation Policies work [\#35](https://github.com/PagerDuty/go-pagerduty/pull/35) ([heimweh](https://github.com/heimweh)) +- Fix misspelling in User struct and add JSON tags [\#34](https://github.com/PagerDuty/go-pagerduty/pull/34) ([heimweh](https://github.com/heimweh)) +- \(bug\)allow passing headers in http do call. fix manage incident call [\#33](https://github.com/PagerDuty/go-pagerduty/pull/33) ([ranjib](https://github.com/ranjib)) +- \(chore\)get rid of logrus from all core structs except CLI entries. fix schedule override command [\#31](https://github.com/PagerDuty/go-pagerduty/pull/31) ([ranjib](https://github.com/ranjib)) +- \(bug\)rename override struct [\#30](https://github.com/PagerDuty/go-pagerduty/pull/30) ([ranjib](https://github.com/ranjib)) +- \(bug\)implement schedule override [\#29](https://github.com/PagerDuty/go-pagerduty/pull/29) ([ranjib](https://github.com/ranjib)) +- fix misspelling in trigger\_summary\_data's JSON key. [\#28](https://github.com/PagerDuty/go-pagerduty/pull/28) ([tomwans](https://github.com/tomwans)) +- Correctly set meta flag for incident list [\#26](https://github.com/PagerDuty/go-pagerduty/pull/26) ([afirth](https://github.com/afirth)) +- Add \*.swp to gitignore [\#25](https://github.com/PagerDuty/go-pagerduty/pull/25) ([afirth](https://github.com/afirth)) +- Support the /oncalls endpoint in the CLI [\#24](https://github.com/PagerDuty/go-pagerduty/pull/24) ([afirth](https://github.com/afirth)) +- Refactor to work correctly with V2 API [\#23](https://github.com/PagerDuty/go-pagerduty/pull/23) ([dthagard](https://github.com/dthagard)) +- \(feat\)Add webhook decoding capability [\#22](https://github.com/PagerDuty/go-pagerduty/pull/22) ([ranjib](https://github.com/ranjib)) +- \(chore\)Decode event API response. [\#21](https://github.com/PagerDuty/go-pagerduty/pull/21) ([ranjib](https://github.com/ranjib)) +- \(bug\)add incident\_key field in event api client [\#20](https://github.com/PagerDuty/go-pagerduty/pull/20) ([ranjib](https://github.com/ranjib)) +- \(chore\)nuke sub domain, v2 api does not need one [\#19](https://github.com/PagerDuty/go-pagerduty/pull/19) ([ranjib](https://github.com/ranjib)) +- Implement list users CLI [\#17](https://github.com/PagerDuty/go-pagerduty/pull/17) ([ranjib](https://github.com/ranjib)) +- Add team\_ids\[\] query string arg [\#12](https://github.com/PagerDuty/go-pagerduty/pull/12) ([marklap](https://github.com/marklap)) +- Incidents fix [\#11](https://github.com/PagerDuty/go-pagerduty/pull/11) ([jareksm](https://github.com/jareksm)) +- Added APIListObject to Option types to allow setting offset and [\#10](https://github.com/PagerDuty/go-pagerduty/pull/10) ([jareksm](https://github.com/jareksm)) +- fix typo [\#9](https://github.com/PagerDuty/go-pagerduty/pull/9) ([sjansen](https://github.com/sjansen)) +- implement incident list cli. event posting api [\#8](https://github.com/PagerDuty/go-pagerduty/pull/8) ([ranjib](https://github.com/ranjib)) +- CLI for create escalation policy, maintainenance window , schedule ov… [\#7](https://github.com/PagerDuty/go-pagerduty/pull/7) ([ranjib](https://github.com/ranjib)) +- \(feat\)implement create service cli [\#6](https://github.com/PagerDuty/go-pagerduty/pull/6) ([ranjib](https://github.com/ranjib)) +- \(feat\)list service cli [\#5](https://github.com/PagerDuty/go-pagerduty/pull/5) ([ranjib](https://github.com/ranjib)) +- \(feat\)implement addon update/delete [\#4](https://github.com/PagerDuty/go-pagerduty/pull/4) ([ranjib](https://github.com/ranjib)) +- \(feat\)Show addon cli [\#3](https://github.com/PagerDuty/go-pagerduty/pull/3) ([ranjib](https://github.com/ranjib)) +- \(feat\) addon list api. create cli [\#2](https://github.com/PagerDuty/go-pagerduty/pull/2) ([ranjib](https://github.com/ranjib)) +- \(chore\) list addon [\#1](https://github.com/PagerDuty/go-pagerduty/pull/1) ([ranjib](https://github.com/ranjib)) diff --git a/Dockerfile b/Dockerfile index 8c2b12e6..650a6921 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ FROM golang -ADD . /go/src/"github.com/PagerDuty/go-pagerduty" -WORKDIR /go/src/"github.com/PagerDuty/go-pagerduty" +ADD . /go/src/github.com/PagerDuty/go-pagerduty +WORKDIR /go/src/github.com/PagerDuty/go-pagerduty RUN go get ./... && go test -v -race -cover ./... diff --git a/README.md b/README.md index 02f98de3..eeb83444 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![GoDoc](https://godoc.org/"github.com/PagerDuty/go-pagerduty"?status.svg)](http://godoc.org/"github.com/PagerDuty/go-pagerduty") [![Go Report Card](https://goreportcard.com/badge/"github.com/PagerDuty/go-pagerduty")](https://goreportcard.com/report/"github.com/PagerDuty/go-pagerduty") [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/gojp/goreportcard/blob/master/LICENSE) +[![GoDoc](https://godoc.org/github.com/PagerDuty/go-pagerduty?status.svg)](http://godoc.org/github.com/PagerDuty/go-pagerduty) [![Go Report Card](https://goreportcard.com/badge/github.com/PagerDuty/go-pagerduty)](https://goreportcard.com/report/github.com/PagerDuty/go-pagerduty) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/gojp/goreportcard/blob/master/LICENSE) # go-pagerduty go-pagerduty is a CLI and [go](https://golang.org/) client library for the [PagerDuty v2 API](https://v2.developer.pagerduty.com/v2/page/api-reference). @@ -7,12 +7,12 @@ go-pagerduty is a CLI and [go](https://golang.org/) client library for the [Page First, download the source code ```cli -go get "github.com/PagerDuty/go-pagerduty" +go get github.com/PagerDuty/go-pagerduty ``` Next build the application. ```cli -cd $GOPATH/src/"github.com/PagerDuty/go-pagerduty" +cd $GOPATH/src/github.com/PagerDuty/go-pagerduty go build -o $GOPATH/bin/pd command/* ``` If you do not have the dependencies necessary to build the project, run this in the project root and try again @@ -55,7 +55,7 @@ package main import ( "fmt" - ""github.com/PagerDuty/go-pagerduty"" + "github.com/PagerDuty/go-pagerduty" ) var authtoken = "" // Set your auth token here @@ -82,7 +82,7 @@ simply by setting a new value in the `HTTPClient` field. ## Contributing -1. Fork it ( https://"github.com/PagerDuty/go-pagerduty"/fork ) +1. Fork it ( https://github.com/PagerDuty/go-pagerduty/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) diff --git a/command/addon_install.go b/command/addon_install.go index fc0cbe31..9cb1bc85 100644 --- a/command/addon_install.go +++ b/command/addon_install.go @@ -3,7 +3,7 @@ package main import ( "encoding/json" "fmt" - ""github.com/PagerDuty/go-pagerduty"" + "github.com/PagerDuty/go-pagerduty" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "os" diff --git a/command/addon_list.go b/command/addon_list.go index 9aa7e19d..4a706824 100644 --- a/command/addon_list.go +++ b/command/addon_list.go @@ -2,7 +2,7 @@ package main import ( "fmt" - ""github.com/PagerDuty/go-pagerduty"" + "github.com/PagerDuty/go-pagerduty" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" diff --git a/command/addon_update.go b/command/addon_update.go index a54f7164..b8ce1a8f 100644 --- a/command/addon_update.go +++ b/command/addon_update.go @@ -3,7 +3,7 @@ package main import ( "encoding/json" "fmt" - ""github.com/PagerDuty/go-pagerduty"" + "github.com/PagerDuty/go-pagerduty" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "strings" diff --git a/command/escalation_policy_create.go b/command/escalation_policy_create.go index a2a26328..38a0ed28 100644 --- a/command/escalation_policy_create.go +++ b/command/escalation_policy_create.go @@ -3,7 +3,7 @@ package main import ( "encoding/json" "fmt" - ""github.com/PagerDuty/go-pagerduty"" + "github.com/PagerDuty/go-pagerduty" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "os" diff --git a/command/escalation_policy_list.go b/command/escalation_policy_list.go index 6f6e88f1..417aa202 100644 --- a/command/escalation_policy_list.go +++ b/command/escalation_policy_list.go @@ -2,7 +2,7 @@ package main import ( "fmt" - ""github.com/PagerDuty/go-pagerduty"" + "github.com/PagerDuty/go-pagerduty" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" diff --git a/command/escalation_policy_show.go b/command/escalation_policy_show.go index 73eb25db..2d795c75 100644 --- a/command/escalation_policy_show.go +++ b/command/escalation_policy_show.go @@ -2,7 +2,7 @@ package main import ( "fmt" - ""github.com/PagerDuty/go-pagerduty"" + "github.com/PagerDuty/go-pagerduty" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" diff --git a/command/event_v2_manage.go b/command/event_v2_manage.go index d71fafaa..dd974ebb 100644 --- a/command/event_v2_manage.go +++ b/command/event_v2_manage.go @@ -6,7 +6,7 @@ import ( "os" "strings" - pagerduty ""github.com/PagerDuty/go-pagerduty"" + pagerduty "github.com/PagerDuty/go-pagerduty" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" ) diff --git a/command/incident_list.go b/command/incident_list.go index 793eaa92..7a521dae 100644 --- a/command/incident_list.go +++ b/command/incident_list.go @@ -2,7 +2,7 @@ package main import ( "fmt" - ""github.com/PagerDuty/go-pagerduty"" + "github.com/PagerDuty/go-pagerduty" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" diff --git a/command/maintenance_window_create.go b/command/maintenance_window_create.go index 663b99f0..55be4c61 100644 --- a/command/maintenance_window_create.go +++ b/command/maintenance_window_create.go @@ -3,7 +3,7 @@ package main import ( "encoding/json" "fmt" - ""github.com/PagerDuty/go-pagerduty"" + "github.com/PagerDuty/go-pagerduty" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "os" diff --git a/command/meta.go b/command/meta.go index e8df4a4c..28051443 100644 --- a/command/meta.go +++ b/command/meta.go @@ -3,7 +3,7 @@ package main import ( "flag" "fmt" - ""github.com/PagerDuty/go-pagerduty"" + "github.com/PagerDuty/go-pagerduty" log "github.com/sirupsen/logrus" "github.com/mitchellh/go-homedir" "gopkg.in/yaml.v2" diff --git a/command/oncall_list.go b/command/oncall_list.go index db7af5cc..8f152f67 100644 --- a/command/oncall_list.go +++ b/command/oncall_list.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - ""github.com/PagerDuty/go-pagerduty"" + "github.com/PagerDuty/go-pagerduty" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" diff --git a/command/schedule_create.go b/command/schedule_create.go index 710c7ad9..14831b99 100644 --- a/command/schedule_create.go +++ b/command/schedule_create.go @@ -3,7 +3,7 @@ package main import ( "encoding/json" "fmt" - ""github.com/PagerDuty/go-pagerduty"" + "github.com/PagerDuty/go-pagerduty" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "os" diff --git a/command/schedule_list.go b/command/schedule_list.go index e60501b0..b98e51ea 100644 --- a/command/schedule_list.go +++ b/command/schedule_list.go @@ -6,7 +6,7 @@ import ( yaml "gopkg.in/yaml.v2" - pagerduty ""github.com/PagerDuty/go-pagerduty"" + pagerduty "github.com/PagerDuty/go-pagerduty" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" ) diff --git a/command/schedule_override_create.go b/command/schedule_override_create.go index b9cbc85c..68bd2c58 100644 --- a/command/schedule_override_create.go +++ b/command/schedule_override_create.go @@ -3,7 +3,7 @@ package main import ( "encoding/json" "fmt" - ""github.com/PagerDuty/go-pagerduty"" + "github.com/PagerDuty/go-pagerduty" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "os" diff --git a/command/service_create.go b/command/service_create.go index 24e0c9c1..cdd74486 100644 --- a/command/service_create.go +++ b/command/service_create.go @@ -3,7 +3,7 @@ package main import ( "encoding/json" "fmt" - ""github.com/PagerDuty/go-pagerduty"" + "github.com/PagerDuty/go-pagerduty" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "os" diff --git a/command/service_integration_create.go b/command/service_integration_create.go index dd0ec2f2..d8f4e1c4 100644 --- a/command/service_integration_create.go +++ b/command/service_integration_create.go @@ -3,7 +3,7 @@ package main import ( "encoding/json" "fmt" - ""github.com/PagerDuty/go-pagerduty"" + "github.com/PagerDuty/go-pagerduty" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "os" diff --git a/command/service_list.go b/command/service_list.go index 1ff0f661..1be0240c 100644 --- a/command/service_list.go +++ b/command/service_list.go @@ -2,7 +2,7 @@ package main import ( "fmt" - ""github.com/PagerDuty/go-pagerduty"" + "github.com/PagerDuty/go-pagerduty" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" diff --git a/command/service_show.go b/command/service_show.go index 694ff464..e67945db 100644 --- a/command/service_show.go +++ b/command/service_show.go @@ -2,7 +2,7 @@ package main import ( "fmt" - ""github.com/PagerDuty/go-pagerduty"" + "github.com/PagerDuty/go-pagerduty" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" diff --git a/command/team_list.go b/command/team_list.go index 7f38eee8..f8dc276f 100644 --- a/command/team_list.go +++ b/command/team_list.go @@ -2,7 +2,7 @@ package main import ( "fmt" - ""github.com/PagerDuty/go-pagerduty"" + "github.com/PagerDuty/go-pagerduty" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" diff --git a/command/user_list.go b/command/user_list.go index a0fd768d..1fc8e562 100644 --- a/command/user_list.go +++ b/command/user_list.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - ""github.com/PagerDuty/go-pagerduty"" + "github.com/PagerDuty/go-pagerduty" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" diff --git a/command/vendor_list.go b/command/vendor_list.go index 73a0d5c3..91c2092a 100644 --- a/command/vendor_list.go +++ b/command/vendor_list.go @@ -2,7 +2,7 @@ package main import ( "fmt" - ""github.com/PagerDuty/go-pagerduty"" + "github.com/PagerDuty/go-pagerduty" log "github.com/sirupsen/logrus" "github.com/mitchellh/cli" "gopkg.in/yaml.v2" diff --git a/examples/escalation_policies.go b/examples/escalation_policies.go index 47880ade..685721d3 100644 --- a/examples/escalation_policies.go +++ b/examples/escalation_policies.go @@ -2,7 +2,7 @@ package main import ( "fmt" - ""github.com/PagerDuty/go-pagerduty"" + "github.com/PagerDuty/go-pagerduty" ) var ( diff --git a/examples/event.go b/examples/event.go index a3c69a6d..f18ff889 100644 --- a/examples/event.go +++ b/examples/event.go @@ -1,7 +1,7 @@ package main import ( - ""github.com/PagerDuty/go-pagerduty"" + "github.com/PagerDuty/go-pagerduty" "log" )