drop TODO
parent
85d589a570
commit
4111ce9153
|
|
@ -143,8 +143,8 @@ func ParseSlack(b []byte, assetPattern string) (Message, error) {
|
||||||
Source: fmt.Sprintf(`https://renderinc.slack.com/archives/%s/p%s`, s.Event.Channel, strings.ReplaceAll(s.Event.ParentID, ".", "")),
|
Source: fmt.Sprintf(`https://renderinc.slack.com/archives/%s/p%s`, s.Event.Channel, strings.ReplaceAll(s.Event.ParentID, ".", "")),
|
||||||
Channel: s.Event.Channel,
|
Channel: s.Event.Channel,
|
||||||
Thread: s.Event.ParentID,
|
Thread: s.Event.ParentID,
|
||||||
EventName: "TODO",
|
EventName: "",
|
||||||
Event: "TODO",
|
Event: "",
|
||||||
Plaintext: s.Event.Text,
|
Plaintext: s.Event.Text,
|
||||||
Asset: asset.FindString(s.Event.Text),
|
Asset: asset.FindString(s.Event.Text),
|
||||||
}, nil
|
}, nil
|
||||||
|
|
|
||||||
|
|
@ -43,8 +43,8 @@ func TestParseSlackTestdata(t *testing.T) {
|
||||||
Source: "https://renderinc.slack.com/archives/C06U1DDBBU4/p1712927439728409",
|
Source: "https://renderinc.slack.com/archives/C06U1DDBBU4/p1712927439728409",
|
||||||
Channel: "C06U1DDBBU4",
|
Channel: "C06U1DDBBU4",
|
||||||
Thread: "1712927439.728409",
|
Thread: "1712927439.728409",
|
||||||
EventName: "TODO",
|
EventName: "",
|
||||||
Event: "TODO",
|
Event: "",
|
||||||
Plaintext: "I gotta do this",
|
Plaintext: "I gotta do this",
|
||||||
Asset: "",
|
Asset: "",
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue