Commit Graph

68 Commits (master)

Author SHA1 Message Date
David 11c1b68cfe
chore: remove refs to deprecated io/ioutil (#778)
Co-authored-by: guoguangwu <guoguangwu@magic-shield.com>
2024-11-06 10:46:52 +01:00
Benjamin Moermans e44b27a563 Fix slack bot to use the new socket API.
The bot can now send interactive message for approval requests as well
as react to bot mention event.
The bot will try to update the interactive message when possible.
2024-07-31 21:22:05 +02:00
Blake Barnett e57f78d0dc Update to slack-go/slack v0.12.2
- Uses events rather than a select loop
- Removes the HTTP API usage
- Makes approvals work
- Still requires a legacy bot token
2023-06-27 16:25:32 -07:00
Neil Toledo e7a130d589 ran through gofmt; removed uneccessary comments; cleaned prometheus test 2020-06-12 16:14:11 -07:00
Dawson Mortenson 3d344c7ba5 clean up 2019-10-10 21:14:23 -07:00
Dawson Mortenson c378dd1121 enable the bot to post a message in slack with its profile image 2019-10-10 07:40:04 -07:00
Karolis 3739109082 update test utils 2019-07-07 15:27:47 +01:00
Karolis Rusenas 595e9637a9 cleanup 2019-06-02 11:13:33 +01:00
Karolis Rusenas 4f31e65628 ignoring slack chan join msg 2019-06-02 11:13:18 +01:00
Karolis Rusenas f133d30d02 using database for approvals 2019-05-09 16:56:53 +01:00
Karolis Rusenas 1c51c7067b don't reply if command is empty 2019-04-27 11:00:48 +01:00
Karolis Rusenas e4f08c525c #381 upload longer messages as files 2019-04-27 10:54:58 +01:00
Karolis Rusenas 9558a08b61 fixed tests 2019-04-27 00:33:20 +01:00
Karolis Rusenas fc81c9afb9 fixing implementation 2019-04-26 23:48:12 +01:00
Karolis Rusenas fb6eb8544f complaining when command is unknown 2019-04-26 23:48:00 +01:00
Karolis Rusenas cf6f442106 trim prefix if supplied 2019-04-16 22:51:27 +01:00
efiguti df80196e54
reduce Getenv calls 2019-03-01 00:05:22 +02:00
Karolis Rusenas f83b58f534 tests updated 2018-10-07 14:17:22 +01:00
Karolis Rusenas b6175ddb00 no need to show debug messages 2018-08-29 23:40:03 +01:00
Karolis Rusenas 2c80a7422b showing version on messages 2018-06-20 00:06:38 +01:00
Karolis Rusenas 6ac124dc93 checking private channels (groups) for approval channel 2018-06-03 12:20:52 +01:00
Karolis Rusenas cf8f332a08 test updates 2018-04-20 19:23:25 +01:00
Karolis Rusenas 35dd41787f using new lib 2018-03-03 20:06:54 +00:00
Karolis Rusenas 43f75f9fec migrating to godep, updating logrus 2018-03-03 11:32:00 +00:00
Igor Komlew b52773227b changed JID for hipchat to 'bot' 2018-01-10 10:17:03 +01:00
Igor Komlew 52aeaa48dd fixed broken hipchat tests 2018-01-10 09:33:28 +01:00
Igor Komlew 9f73fb67eb remove unsupported @mention name from Hipchat bot 2018-01-10 09:03:43 +01:00
Karolis Rusenas 27256ec728 fix for slack bot tests 2018-01-04 10:15:55 +00:00
Igor Komlew 0e4762b3e5 approval bot refactoring 2018-01-02 15:41:30 +01:00
Igor Komlew 84859f919d Move responses for hip chat bot to separate file 2017-12-22 12:40:44 +01:00
Igor Komlew cadfdf2bbc move some duplicated approvals code to the base bot package 2017-12-21 18:17:04 +01:00
Igor Komlew 798c3dcc84 list approvals, deployments, show help message for hipchat 2017-12-21 14:20:50 +01:00
Karolis Rusenas 0691b349b3 fix failing test 2017-12-21 10:31:55 +00:00
Igor Komlew abaea36c7b WIP send message to the hip chat over XMPP 2017-12-20 20:04:12 +01:00
Igor Komlew 04261f80f2 WIP: first step for hipchat integration 2017-12-20 11:54:22 +01:00
Igor Komlew 96b6ed9393 refactoring for approval bot 2017-12-20 11:54:15 +01:00
Igor Komlew 914a497570 remove debug and unused code 2017-12-15 18:37:11 +01:00
Igor Komlew 5c9558bbaf move slack related bot code to a sub module 2017-12-15 17:41:21 +01:00
Karolis Rusenas 0792c77ce8 moved channel test function the handle message, better testability 2017-12-12 10:11:58 +00:00
Karolis Rusenas affd2ba760 checking channel by ID 2017-12-12 08:36:33 +00:00
Karolis Rusenas 121249b591 configurable channel 2017-12-11 08:37:26 +00:00
Karolis Rusenas 2a361020f6 updated repo 2017-11-01 18:25:28 +00:00
Karolis Rusenas 188fae4568 message formats 2017-09-28 19:16:53 +01:00
Karolis Rusenas a729106017 bot helpers 2017-09-25 14:29:18 +01:00
Karolis Rusenas dccfe21fa8 cleanup, tests 2017-09-24 13:06:02 +01:00
Karolis Rusenas a104b8bbd9 cleanup, remove approval handler 2017-09-24 13:05:39 +01:00
Karolis Rusenas 0681512747 cleanup, adding config maps to k8s implementer 2017-09-12 19:16:39 +03:00
Karolis Rusenas da2e3da0f5 format messages 2017-08-29 07:24:39 +01:00
Karolis Rusenas 8bd9e20f2c moving to bot messages 2017-08-28 20:55:49 +01:00
Karolis Rusenas fb29f8d701 cleanup, setting created/updated time 2017-08-28 20:16:40 +01:00