v1.8.0 (2024-01-09)
- Adds resolved_at and updated_at fields to Incident by @surik in #482
- Adds support for auto_pause_notifications_parameters by @darrendao in #490
- Fixes ResponderRequest unmarshalling of IncidentResponders by @allyjweir in #493
- Adds support for license and licenses allocated based operations #480 by @gerardocorea in #494
- Refactors nil *string initialization by @typeid in #488
- [CSGI-1827] Add Standards support by @imjaroiswebdev in #499
- Updated README.md replacing deprecated calls with corresponding new ones by @oleksiypavlenko in #498
- [CSGI-1984] Add
From
field toListResponsePlays
method options by @imjaroiswebdev in #502 - Handle invalid ChangeEvent APIErrorObject response by @icholy in #479
- [CSGI-2365] Add client User Agent overwrite capability by @imjaroiswebdev in #503
- Updates go to 1.19 and a few dependencies by @ChuckCrawford in #504
- Bump golang.org/x/crypto from 0.16.0 to 0.17.0 by @dependabot in #505
- @surik made their first contribution in #482
- @darrendao made their first contribution in #490
- @allyjweir made their first contribution in #493
- @gerardocorea made their first contribution in #494
- @typeid made their first contribution in #488
- @imjaroiswebdev made their first contribution in #499
- @oleksiypavlenko made their first contribution in #498
- @icholy made their first contribution in #479
- @dependabot made their first contribution in #505
Full Changelog: https://github.com/PagerDuty/go-pagerduty/compare/v1.7.0...v1.8.0
v1.7.0 (2023-05-17)
- Upgades Go and dependencies by @ChuckCrawford in #466
- Add Incident Notification Subscribers by @caveman280 in #461
- Implement Event Orchestrations API by @EronWright in #450
Full Changelog: https://github.com/PagerDuty/go-pagerduty/compare/v1.6.0...v1.7.0
v1.6.0 (2022-09-21)
Hello there! We just wanted to drop in and address the elephant in the room. In a previous release we made a promise to maintain API compatibility for future v1 releases. This release contains a few changes that may require minor updates to the way your code interacts with API request and response objects. These changes are necessary in order to make these APIs work properly for as many of you as possible.
One of our goals with this client library is to provide a working client that properly interacts with the PagerDuty Public API. While we remain committed to not breaking API compatibility for reasons such as "making the library [better | easier to use | etc.]"; we believe it is in all of our best interest to make this client library work.
As always, we welcome your feedback on this decision via a GitHub issue.
- Returns custom error type
EventsAPIV2Error
for errors that occur with Events API (V2) calls by @theckman in #419 - List notifications API now works when using
includes
by @jaimegago in #439 - Improves support for macOS builds by @mjlshen in #434
- Fix potential panic when debug request captures are enabled by @theckman in #443
- Fixes memory leak by @attilakunelwood in #453
- Prevent leak on error responses by @ChuckCrawford in #454
- Fix unmarshaling error with AlertGroupingParameters timeout by @mjlshen in #459
- Fix parsing bug for AlertGroupingParameters by @mjlshen in #448
- Fix ResponderRequest regression by @ehlerorngard in #452
- @jaimegago made their first contribution in #439
- @mjlshen made their first contribution in #434
- @attilakunelwood made their first contribution in #453
- @ChuckCrawford made their first contribution in #454
- @ehlerorngard made their first contribution in #452
v1.5.1 (2022-04-24) - Bug Fixes
Highlights
- Fix panic that would occur when debug request capturing is enabled, and request has a nil HTTP body (GET request)
- Fix options for ListNotifications, where URL parameters weren't being set correctly.
Closed issues
None
Merged pull requests
- Backport fix for panic when debug request captures are enabled #444 (theckman)
- Backport: Fix list notifications options #445 (jaimegago, backported by theckman)
v1.5.0 (2022-01-22) - BREAKING CHANGES
NOTICE
This release is special, and intentionally includes breaking API changes without bumping the module's major version. We apologize for any inconveience this causes, but we felt this approach was better than incurring the cost of releasing v2 today. Specifically, we believed it was best to break the API, so that you became aware of features you depended on that were not working as you expected. We welcome your feedback on this decision via a GitHub issue.
These changes largely fix API issues that would have made it impossible for the this module to be used correctly. Most often this is due to incorrect or invalid struct fields, others were a lack of required inputs to specific actions.
We commit henceforth to maintaining API compatibility for future v1 releases.
Highlights
- Add support for handling signature verification of V3 Webhook requests.
- Update
APIError
type to provide more helpful error strings. - Add support for API debugging, by allowing capture of the request/response from the API.
- Added various missing fields to different structs.
- Add support for response plays, fetching audit records, and setting up email filters.
Breaking changes
- Fix the ResponderRequest input/output structures #328 (CerealBoy)
- Fix overlapping struct fields in Incident, Service, and User types #332 (theckman)
- Remove *http.Response return from different API methods. #357 #358 #359 #360 #361 (theckman)
- Add missing required From parameter to ManageIncidentAlerts #380 (theckman)
- Fix mismatches between REST API and struct definitions #396 #414 (theckman)
- Update pagination query params to conform to API spec #405 (theckman
Closed issues
- incident.ID or incident.Id #218 (mblaschke)
- Improper unmarshalling #232 (Erog38)
- Update initialisms / acronyms to be capitalized #268 (theckman)
- Add IncidentDetails.Title field and mark IncidentDetails.Description as deprecated #277 (theckman)
- Remove *http.Response returns from API methods #305 (theckman)
- Add ability to create or update integrations with email filter rules #315 (gerardocorea)
- EscalationRule struct should accept a slice of APIReference rather then APIObject for Targets #316 (gerardocorea)
- User slice fields missing omitempty #343 (theckman)
- Should all fields in Service type be omitempty #348 (callumj)
- ManageIncidentsOptions doesn't take EscalationLevel #364 (sim1s)
- Setting conference information in new incident #373 (bparlidoordash)
- Validate that all structure formats and method signatures work with PagerDuty API #389 (theckman)
- When creating an incident, consumers shouldn't need to set the Type field #390 (theckman)
- Reduce code duplication in analytics.go #393 (theckman)
- Add support for fetching Audit Records #394 (theckman)
Merged pull requests
- Add assignees to log entry #237 (tautvydass)
- Add support for better API debugging; start v1.5.0 development #325 (theckman)
- Fix the ResponderRequest input/output structures #328 (CerealBoy)
- Fix overlapping struct fields & last golint errors #332 (theckman)
- Add comment indicating IncidentDetails.Description is deprecated #333 (theckman)
- Update APIError.Error() to provide more helpful error messages #334 (theckman)
- Add comment above IncidentDetails.Alerts field explaining behaviors #335 (theckman)
- Correct formatting of deprecation notices. #340 (dsymonds)
- Fix
pd schedule override create
. #341 (dsymonds) - allow setting suppress to false #345 (cluarkhpe)
- Swap two transposed words in the README file #350 (theckman)
- Fixing link to PD API Reference #356 (stmcallister)
- Remove returned *http.Response from incident-related methods #357 (theckman)
- Remove returned *http.Response from business svc related methods #358 (theckman)
- Remove returned *http.Response from svc dependency related methods #359 (theckman)
- Remove returned *http.Response from tag-related methods #360 (theckman)
- Remove returned *http.Response from ruleset-related methods #361 (theckman)
- implement missing maintenance-window subcommands #363 (Hsn723)
- Add json field incidents_responders to Incident struct #365 (sostakas)
- Adding escalation level to ManageIncidentOptions #366 (sim1s)
- Add v3 webhook signature verification #370 (theckman)
- Fix test after merging #332 (2f47dfc62321b) #371 (theckman)
- Add title to ManageIncidentOptions #372 (d33d33)
- Add Service and User to LogEntry #377 (theckman)
- Add missing required parameeter to ManageIncidentAlerts #380 (theckman)
- Handle unexpected type changes in PagerDuty REST API error responses #382 (theckman)
- Add omitempty JSON tag to User slice fields #383 (theckman)
- Add omitempty JSON tag to specific Service fields #384(theckman)
- Add support for adding email filters for Generic Email Integrations #385 (theckman)
- Support adding conference bridge when creating or managing incidents #391 (theckman)
- Mark Type struct field deprecated, for incident creation + management #392 (theckman)
- Fix some mismatches between REST API and struct definitions #396 (theckman)
- refactor: Reduce code duplication in analytics.go #397 (t-junjie)
- Add support for escalation_policy.on_call_handoff_notifications field #401 (zonorti)
- Missing incident fields #402 (zonorti)
- Add extension enable #403 (zonorti)
- Add support for response_plays #404 (petetanton)
- Update pagination query to conform to API spec #405 (theckman)
- add createStatusUpdate #406 (kkawamura)
- feat: Add support for fetching Audit Records #408 (t-junjie)
- Fix linter issues, update ResponsePlays API before v1.5.0 release #410 (theckman)
- Second batch of fixes for API incompatibilities #414 (theckman)
- Find a way to gracefully avoid one breaking change in #405 #416 (theckman)
- Fix linter issues introduced by final PR merges #417 (theckman)
v1.4.3 (2021-11-13)
Highlights
- Mitigate PagerDuty REST API bug that would result in a JSON parsing failure when reading an error response from the API. Prior to
v1.4.0
our error parsing logic was not impacted by the bug.
Merged pull requests
- Handle unexpected type changes in PagerDuty REST API error responses #382 [backported via #386] (theckman)
Closed issues
v1.4.2 (2021-08-30)
Highlights
- Fix bug that prevented CreateService() from working when SupportHours and ScheduledActions were unset.
Merged pull requests
Closed issues
- Backward incompatability - CreateService - existing setup works in 1.3.0 but not in 1.4.x #346 (onikroo)
v1.4.1 (2021-05-13)
Highlights
- Fix bugs that impacted pagination of both tags and business services
Merged pull requests
- Fix query params on tags #329 (jfmyers9)
- Fix pagination within ListBusinessServices + Paginated #330 (theckman)
v1.4.0 (2021-04-23)
Highlights
- Add support for passing a
context.Context
to all methods in package (in non-breaking way) - Add new
APIError
type, that allows for richer inspection of errors returned from API. - Add support for the V2 Events API, Analytics, and Change Events.
- Miscellaneous bug fixes, including some that may result in incorrect API request/response handling.
Closed issues
- CreateEventWithHTTPClient nil pointer dereference #274 (blockpane)
- ManageIncidents - support set resolution #243 (hagaishapira)
- Exposing context.Context in exported API without requiring major version bump #267 (theckman)
- Fix any linter issues and add missing GoDoc comments #317 (theckman)
Merged pull requests
- Fix rulset rule not respecting position "0" #236 (zane-deg)
- Event v2 client #241 (goatherder)
- Add Support For Change Events #246 (Sjeanpierre)
- Correct namespacing of Change Event resource #248 (Sjeanpierre)
- add tag and tag_test #252 (stmcallister)
- allow creating services with no scheduled actions #234 (cluarkhpe)
- business_service: clean b.ID before calling UPDATE #253 (GiedriusS)
- service_dependency: fix (dis-)associate operations #254 (GiedriusS)
- ruleset: remove omitempty from Route #256 (GiedriusS)
- add service.alert_grouping_params field #257 (stmcallister)
- fix creating services that don't use support hours #255 (cluarkhpe)
- Provide a method for ferryign API errors back to the caller #\265 (theckman)
- Prepare internals for exposing context.Context in exported API #\266 (theckman)
- Update APIError struct to use new NullAPIErrorObject type for safety #\272 (theckman)
- Update internal HTTP methods to not take pointer to map as argument #\269 (theckman)
- Fix tags on log entry options struct #275 (evnsio)
- Add alerts to IncidentDetails struct #276 (StupidScience)
- Fix logentry.channel json marshaling/unmarshaling #264 (StupidScience)
- Fixed CreateRuleSet docs typo #281 (neufeldtech)
- Omitting EndpointURL from Extension if empty #282 (au-akash)
- add ListServicesPaginated to services api (and tests) #260 (c6h12o6)
- return nil instead of resp on error #278 (fixes #274) (blockpane)
- Analytics #261 (melchiormoulin)
- Add context.Context support to * (fixes #267) (theckman)
- Add support for Service Event Rules #304 (mrzacarias)
- teams and services analytics endpoints #312 (newbootz)
- Add Resolution string to ManageIncidentsOptions struct #313 (fixes #243) (theckman)
- Fix invalid JSON struct tag, other linter issues #319 (fixes #317) (theckman)
- Add ability to set Escalation Policy when managing incidents #323 (theckman) superseded: #273 (evnsio)
v1.3.0 (2020-09-08)
Closed issues:
ListIncidents
pagination #238
Merged pull requests:
- Fix ruleset rule not respecting position "0" #236 (zane-deg)
- Adding Get Incident Alert and Manage Incident Alert endpoints #231 (stmcallister)
- Add FirstTriggerLogEntry and CommonLogEntryField fields and json tags #230 (afarbos)
- adding business_service and service_dependency #228 (stmcallister)
- update changelog for v1.2.0 #227 (stmcallister)
v1.2.0 (2020-06-04)
Closed issues:
- Allowing custom API endpoint in NewClient config #198
- service: SupportHours creation not supported #188
- The "Channel" field doesn't expose all possible data fields #153
Merged pull requests:
- Adding Rulesets and Ruleset Rules #226 (stmcallister)
- Fix UpdateService #220 (n-apalm)
- Add support for modifying an incident status and assignees #219 (raidancampbell)
- This should be requester_id according to pagerduty docs #217 (michael-bud)
- adding since and until to incident logentry options #216 (stmcallister)
- User notification rules #215 (heimweh)
- List incident alerts #214 (kilianw)
- Bump golang to v1.14 #212 (chenrui333)
- adding NewClientWithAPIEndpoint function #210 (stmcallister)
- Webhook conforms to v2 struct #209 (nbutton23)
- Add Teams to Schedule #208 (miekg)
- adding Raw to LogEntry.Channel object #207 (stmcallister)
- Updating the Version constant to v1.1.2 #206 (stmcallister)
- updating changelog to v1.1.2 #205 (stmcallister)
- Adding OAuth token support #203 (chrisforrette)
v1.1.2 (2020-02-21)
Closed issues:
- EventV2Response doesn't match API response #186
- List escalation policy with current on call members using include
current\_oncall
#181 - Create service extension (like slack extension) over API #149
- Mock Client? #148
- Make a release? #146
- Priority field should be optional according to API spec #135
- Missing Services Extensions available over API #129
- Missing ContactMethod operations #125
- Add A CODEOWNERS file for easier review requests. #124
- missing severity in create_event.json object? #100
- Assignment struct has no json conversion #92
- Publish CLI binaries as releases #81
- Package test coverage is lacking #70
- Create releases with built binaries #50
Merged pull requests:
- fixing eventV2Response to match API #204 (stmcallister)
- Remove duplicate license link in README #202 (ahornace)
- Adding GetCurrentUser method #199 (chrisforrette)
- Adding User-Agent Headers #197 (stmcallister)
- Implement the Incident endpoint for ResponderRequest #196 (CerealBoy)
- updating changelog with 1.1.1 #195 (stmcallister)
- List team members, single page or all (with helper for auto-pagination) #192 (mwhite-ibm)
1.1.1 (2020-02-05)
Merged pull requests:
- Community Contributions -- 05 Feb 2020 #194 (stmcallister)
- Add support for extensions/extension schemas #193 (heimweh)
- Added AlertGrouping and AlertGroupingTimeout to Service #189 (toneill818)
- Adds oncall to escalation policy #183 (ewilde)
- Add ContactMethods operations #169 (timlittle)
- return http code with errors #134 (yomashExpel)
1.1.0 (2020-02-03)
Closed issues:
- listOverrides result in JSON unmarshall failure #180
- How to create incident via command pd? #171
- Poorly documented, library code broken, please step it up. #170
- failed to create an incident #165
- I need create incident function, Can we release the latest master? #163
- Update logrus imports to github.com/sirupsen/logrus #160
- build error cannot find package #144
- Missing ListIncidentAlerts #141
- ListIncidentsOptions Example #139
- Support for V2 Event Management in the CLI #136
- Custom connection settings #110
- Missing the "From" parameter in Create note on an incident function #107
- Support V2 events #83
- Support Event Transformer Code? #67
- Fix help flag behavior #18
Merged pull requests:
- Tests #190 (stmcallister)
- Modify ListOverrides and add ListOverridesResponse #185 (dstevensio)
- client: allow overriding the api endpoint #173 (heimweh)
- Change makefiles and readme #172 (dineshba)
- Use Go modules #168 (nbutton23)
- escalation_policy: support clearing teams from an existing escalation policy #167 (heimweh)
- Correct JSON payload format for CreateIncident call #166 (joepurdy)
- Use pointer to Priority so don't send an empty priority for incident #164 (atomicules)
- Update README.md #158 (jonhyman)
- Fixed typo #155 (uthark)
- Support Links in V2Event #154 (alindeman)
- Add supported fields to POST /incident request. #151 (archydragon)
- Consolidated community contributions #150 (dobs)
- Incident alerts #143 (soullivaneuh)
- Incident alerts #142 (soullivaneuh)
- Remove useless else from README #140 (soullivaneuh)
- Add V2 Event Management to the CLI #138 (philnielsen)
- Fix incident struct to behave as API expects #137 (DennyLoko)
- Add ListContactMethods and GetContactMethod #132 (amencarini)
- Adding fields for incident id and priority #131 (davidgibbons)
- Add src to cd $GOPATH instruction #130 (ryanhall07)
- CreateIncident takes CreateIncidentOptions param #127 (wdhnl)
- update CreateMaintenanceWindow #126 (wdhnl)
- Add instructions for actually being able to install the CLI #123 (whithajess)
- Create Incident, List Priorities, and headers in POST method support #122 (ldelossa)
- Allow package consumers to provide their own HTTP client #121 (theckman)
- Add MergeIncidents (using Incident) #114 (atomicules)
- Updated incident.go to reflect current api documentation #113 (averstappen)
- Try out CircleCI. #109 (felicianotech)
- Added From parameter to createNote function #108 (Nnoromuche)
- Get a list of alerts for a given incident id. #106 (pushkar-engagio)
- Add oncall details #104 (luqasn)
- Add support for v2 ManageEvent api call #103 (luqasn)
- Reformatted Apache 2.0 license #99 (joshdk)
- Add ability to list a user's contact methods #97 (facundoagriel)
- Added json fields to structs #93 (bradleyrobinson)
- Get user's contact methods #91 (wvdeutekom)
- Fixed spelling, entires->entries #78 (lowesoftware)
- Updating incident.go #75 (domudall)
- Adding new fields to Vendor #74 (domudall)
- Vendor CLI #73 (domudall)
- Fixing structs within user.go #72 (domudall)
1.0.4 (2018-05-28)
1.0.3 (2018-05-28)
1.0.2 (2018-05-28)
Merged pull requests:
- Add gorleaser to release #118 (mattstratton)
1.0.1 (2018-05-28)
1.0.0 (2018-05-28)
Fixed bugs:
- Escalation Policy's repeat_enabled Is Ignored #57
- Problems running freshly built pd utility #39
- Manage Incident gives error #32
- Added missing slash to delete integration method url #59 (reybard)
Closed issues:
- Trouble creating an integration #102
- Client does not trigger events #101
- Paging help #94
- Help with incident creation API #89
- Memory leak because of response body is not closed #66
- Since and Until don't work for log_entries #61
- service: auto_resolve_timeout & acknowledgement_timeout cannot be set to null #51
- Possible to create new service and integration together #42
- Documentation does not match code #16
- Typo in repo description #15
- Webhook decoder #14
- incident_key for create_event #13
Merged pull requests:
- Fix pagination for ListOnCalls #90 (IainCole)
- Revert "Fix inconsistency with some REST Options objects passed by reference …" #88 (mimato)
- Adding travis config, fixup Makefile #87 (mimato)
- Fixed invalid JSON descriptor for FirstTriggerLogEntry #86 (mwisniewski0)
- [incidents] fix entries typo in a few places #85 (joeyparsons)
- Fix inconsistency with some REST Options objects passed by reference … #79 (lowesoftware)
- Explicit JSON reference to schedules #77 (domudall)
- Adding AlertCreation to Service struct #76 (domudall)
- Add support for escalation rules #71 (heimweh)
- Fix maintenance window JSON #69 (domudall)
- Fixing Maintenance typo #68 (domudall)
- Update event.go - fix a memory leak #65 (AngelRefael)
- Add query to vendor #64 (heimweh)
- Fix JSON decode (errorObject) #63 (heimweh)
- fix since and until by adding them to url scheme #60 (ethansommer)
- fix webhook struct member name #58 (pgray)
- Incident - Add status field to incident #56 (heimweh)
- enable fetch log entries via incident api #55 (flyinprogrammer)
- Allow service timeouts to be disabled #53 (heimweh)
- Schedule restriction - Add support for start_day_of_week #52 (heimweh)
- Add vendor support #49 (heimweh)
- Add schedules listing #46 (Marc-Morata-Fite)
- dont declare main twice in examples #45 (ranjib)
- add service show #44 (cmluciano)
- (feat)implement integration creation #43 (ranjib)
- (chore)add create event example #41 (ranjib)
- (bug)Add test. fix version issue #40 (ranjib)
- Remove subdomain argument from escalation_policy example. #38 (cmluciano)
- Skip JSON encoding if no payload was given #37 (heimweh)
- (feat)add ability API and CLI #36 (ranjib)
- Make updates to Escalation Policies work #35 (heimweh)
- Fix misspelling in User struct and add JSON tags #34 (heimweh)
- (bug)allow passing headers in http do call. fix manage incident call #33 (ranjib)
- (chore)get rid of logrus from all core structs except CLI entries. fix schedule override command #31 (ranjib)
- (bug)rename override struct #30 (ranjib)
- (bug)implement schedule override #29 (ranjib)
- fix misspelling in trigger_summary_data's JSON key. #28 (tomwans)
- Correctly set meta flag for incident list #26 (afirth)
- Add *.swp to gitignore #25 (afirth)
- Support the /oncalls endpoint in the CLI #24 (afirth)
- Refactor to work correctly with V2 API #23 (dthagard)
- (feat)Add webhook decoding capability #22 (ranjib)
- (chore)Decode event API response. #21 (ranjib)
- (bug)add incident_key field in event api client #20 (ranjib)
- (chore)nuke sub domain, v2 api does not need one #19 (ranjib)
- Implement list users CLI #17 (ranjib)
- Add team_ids[] query string arg #12 (marklap)
- Incidents fix #11 (jareksm)
- Added APIListObject to Option types to allow setting offset and #10 (jareksm)
- fix typo #9 (sjansen)
- implement incident list cli. event posting api #8 (ranjib)
- CLI for create escalation policy, maintainenance window , schedule ov… #7 (ranjib)
- (feat)implement create service cli #6 (ranjib)
- (feat)list service cli #5 (ranjib)
- (feat)implement addon update/delete #4 (ranjib)
- (feat)Show addon cli #3 (ranjib)
- (feat) addon list api. create cli #2 (ranjib)
- (chore) list addon #1 (ranjib)
* This Changelog was automatically generated by github_changelog_generator