Skip to content

Commit

Permalink
feat(client): add change-update notice type (#401)
Browse files Browse the repository at this point in the history
Just the addition of the constant.

This was missed earlier when adding the change-update notice.
  • Loading branch information
benhoyt committed Mar 28, 2024
1 parent 067be31 commit c6af96b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions client/notices.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ type Notice struct {
type NoticeType string

const (
// Recorded whenever a change is updated: when it is first spawned or its
// status was updated. The key for change-update notices is the change ID.
ChangeUpdateNotice NoticeType = "change-update"

// A custom notice reported via the Pebble client API or "pebble notify".
// The key and data fields are provided by the user. The key must be in
// the format "mydomain.io/mykey" to ensure well-namespaced notice keys.
Expand Down
2 changes: 1 addition & 1 deletion client/notices_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (

func (cs *clientSuite) TestNotice(c *C) {
cs.rsp = `{"type": "sync", "result": {
"id": "123",
"id": "123",
"user-id": 1000,
"type": "custom",
"key": "a.b/c",
Expand Down

0 comments on commit c6af96b

Please sign in to comment.