mirror of
https://github.com/mjl-/mox.git
synced 2025-07-19 03:26:37 +03:00
move func PartStructure from webhook to queue, so it isn't tracked anymore for apidiff changes
the types in webhook should be subjected to apidiff'ing, this was a shared function. it is better off in package queue. also change the apidiff script so it leaves apidiff/next.txt empty when there aren't any changes. makes it easier to rotate the files after releases where nothing changed (a common occurrence).
This commit is contained in:
@ -82,7 +82,7 @@ func TestHookIncoming(t *testing.T) {
|
||||
tcheck(t, err, "decode incoming webhook")
|
||||
in.Meta.Received = in.Meta.Received.Local() // For TZ UTC.
|
||||
|
||||
structure, err := webhook.PartStructure(pkglog, &part)
|
||||
structure, err := PartStructure(pkglog, &part)
|
||||
tcheck(t, err, "part structure")
|
||||
|
||||
expIncoming := webhook.Incoming{
|
||||
|
Reference in New Issue
Block a user