mirror of
https://git.ferricyanide.solutions/A_D/irc-webhooks.git
synced 2024-12-22 12:57:04 +00:00
switched issue IDs to ints
This commit is contained in:
parent
ac7f124bdf
commit
d8d8afd94a
@ -110,7 +110,7 @@ func handleIssueAction(data []byte, msgChan chan string) {
|
|||||||
case "closed":
|
case "closed":
|
||||||
outMsg.WriteString(fmt.Sprintf("%s closed issue %q", action.Sender.Login, action.Issue.Title))
|
outMsg.WriteString(fmt.Sprintf("%s closed issue %q", action.Sender.Login, action.Issue.Title))
|
||||||
default:
|
default:
|
||||||
outMsg.WriteString(fmt.Sprintf("%s performed an unknown action (%s) on issue %f", action.Sender.Login, action.Action, action.Issue.Id))
|
outMsg.WriteString(fmt.Sprintf("%s performed an unknown action (%s) on issue %d", action.Sender.Login, action.Action, int(action.Issue.Id)))
|
||||||
fmt.Println(string(data))
|
fmt.Println(string(data))
|
||||||
}
|
}
|
||||||
msgChan <- outMsg.String()
|
msgChan <- outMsg.String()
|
||||||
@ -119,7 +119,7 @@ func handleIssueAction(data []byte, msgChan chan string) {
|
|||||||
func handleIssueComment(data []byte, msgChan chan string) {
|
func handleIssueComment(data []byte, msgChan chan string) {
|
||||||
action := IssueAction{}
|
action := IssueAction{}
|
||||||
json.Unmarshal(data, &action)
|
json.Unmarshal(data, &action)
|
||||||
msgChan <- fmt.Sprintf("[%s] %s commented on issue %f (%s)", action.Repository.FullName, action.Sender.Login, action.Issue.Id, action.Issue.Title)
|
msgChan <- fmt.Sprintf("[%s] %s commented on issue %d (%s)", action.Repository.FullName, action.Sender.Login, int(action.Issue.Id), action.Issue.Title)
|
||||||
}
|
}
|
||||||
|
|
||||||
func handleCreate(data []byte, msgChan chan string) {
|
func handleCreate(data []byte, msgChan chan string) {
|
||||||
|
Loading…
Reference in New Issue
Block a user