slack-bot

Ready to use Slack bot for lazy developers: start Jenkins jobs, watch Jira tickets, watch pull requests with AI support...

MIT License

Stars
179
Committers
11

Bot releases are visible (Hide)

slack-bot - v2.1.3 - Gitlab approvals + improved docs

Published by github-actions[bot] over 3 years ago

What’s Changed

  • Gitlab: Support new merge request approval #158 (#174) @brainexe
  • docs: added steps for "install from manifest" which is easier than before (#167) @brainexe
  • security: Create codeql-analysis.yml (#170) @brainexe
  • internal: added more tests for Bitbucket PRs (#175) @brainexe
  • fix: jira search by full link wasn't working, as the link is unwrapped already (#169) @brainexe

Deps

  • build(deps): bump docker/setup-buildx-action from 1.3.0 to 1.5.0 (#165) @dependabot
  • build(deps): bump github.com/hackebrot/turtle from 0.1.0 to 0.2.0 (#172) @dependabot
  • build(deps): bump github.com/xanzy/go-gitlab from 0.50.0 to 0.50.1 (#171) @dependabot
  • build(deps): bump github.com/alicebob/miniredis/v2 from 2.14.5 to 2.15.1 (#168) @dependabot
  • build(deps): bump docker/login-action from 1.9.0 to 1.10.0 (#160) @dependabot
  • build(deps): bump docker/build-push-action from 2.5.0 to 2.6.1 (#166) @dependabot
slack-bot - v2.1.2 - Mainly dependency updates

Published by github-actions[bot] over 3 years ago

What’s Changed

  • improve "bot stats" (#154) @brainexe
  • internal: made interaction test more stable (#128) @brainexe

Minor dependency updates

  • dependency: upgraded github.com/slack-go/slack to 0.9.0 (#139) @brainexe
  • dependency: upgraded github.com/bndr/gojenkins (#159) @brainexe
  • build(deps): bump docker/build-push-action from 2 to 2.5.0 (#146/150) @dependabot
  • build(deps): bump docker/login-action from 1 to 1.9.0 (#144) @dependabot
  • build(deps): bump docker/setup-buildx-action from 1 to 1.3.0 (#145) @dependabot
  • build(deps): bump github.com/alicebob/miniredis/v2 from 2.14.3 to 2.14.5 (#148/#151) @dependabot
  • build(deps): bump github.com/gookit/color from 1.3.8 to 1.4.2 (#134/#136) @dependabot
  • build(deps): bump github.com/slack-go/slack from 0.8.1 to 0.9.1 (#127/143) @dependabot
  • build(deps): bump github.com/xanzy/go-gitlab from 0.47.0 to 0.50.0 (#129/#147) @dependabot
  • build(deps): bump golang from 1.15-alpine to 1.16.5-alpine (#123/152) @dependabot
  • build(deps): bump golangci/golangci-lint-action from v2.5.1 to v2.5.2 (#132) @dependabot
  • build(deps): bump wangyoucao577/go-release-action from 1.17 to v1.17 (#149/#137) @dependabot
slack-bot - v2.1.1 - Gitlab pipeline status and much more...

Published by github-actions[bot] over 3 years ago

What’s Changed

  • enhancement: Jira: support posting a link to the ticket (#120) @brainexe

  • enhancement: show days in util.FormatDuration() (#113) @brainexe

  • enhancement: gitlab merge requests: show pipeline status as reaction (#111) @brainexe

  • enhancement: added stat counter for pressed buttons/interactions (#110) @brainexe

  • internal: rework interactions to not use the "storage" anymore (#102) @brainexe

  • internal: added more tests (#98) @brainexe

  • internal: cleanup matcher.Result (#118) @brainexe

  • internal: reworked default http client (#115) @brainexe

  • internal: make bot.Runner not public (#117) @brainexe

  • build(deps): bump github.com/xanzy/go-gitlab from 0.46.0 to 0.47.0 (#122) @dependabot

  • build(deps): bump github.com/sirupsen/logrus from 1.8.0 to 1.8.1 (#119) @dependabot

  • build(deps): bump github.com/xanzy/go-gitlab from 0.44.0 to 0.45.0 (#114) @dependabot

  • build(deps): bump github.com/gookit/color from 1.3.7 to 1.3.8 (#112) @dependabot

  • build(deps): bump golangci/golangci-lint-action from v2.4.0 to v2.5.1 (#109) @dependabot

  • build(deps): bump golang from 1.15-alpine to 1.16.0-alpine (#103) @dependabot

  • build(deps): bump golangci/golangci-lint-action from v2 to v2.4.0 (#101) @dependabot

slack-bot - v2.1.0 - improved Queue!

Published by github-actions[bot] over 3 years ago

What’s Changed

With the new Socket Mode we get more and more flexibility and possibilities. This release I added a "Refresh" button to the "queue".
Use case: Dump a list of current (unmerged) pull requests via cron (every morning). And have a refresh button to update the list (remove merged ones, add 👀 for PRs in review or ✅ for approved ones).

The queue can also be used to show running Jenkins jobs.

Example of the "Refresh" button:
Screenshot 2021-02-12 at 11 53 18

Full changelog

  • feat: make pullrequest reactions customizable #48 (#91) @brainexe
  • enhancement: add "Refresh" button to "list queue". (#95) @brainexe
  • fix: don't react on edited messages (#96) @brainexe
  • docs: added more examples to config.example.yaml (#97) @brainexe
  • internal: cleanup "queue" command and removed delays (#94) @brainexe
  • internal: add custom "Reaction" type (#93) @brainexe
  • internal: cleanups + docs (#90) @brainexe
  • build(deps): bump github.com/alicebob/miniredis/v2 from 2.14.1 to 2.14.2 (#89) @dependabot
  • build(deps): bump github.com/xanzy/go-gitlab from 0.42.0 to 0.43.0 (#88) @dependabot
slack-bot - v2.0 - Socket Mode!

Published by github-actions[bot] over 3 years ago

What’s Changed

The main change is the support for the "Socket Mode" (#84) as a replacement for the RTM and Event API which is both not optimal...

With the Socket Mode the bot is now able to listen for interaction, like clicked buttons which gives much more flexibility. And this without the need to expose a port to the internet! internally it's just a websocket connection which connects to the Slack servers.

What you have to do:

  • See the Step 1. from the readme
  • you might have to migrate the "Classic" app to the new system but the mentioned permissions are enough. I tested it with a new and a old migrated app...and it worked pretty fine.
  • the new "Socket Mode" will be used, when the "socket_token:" is added in the config.

Example

slack:
  token: xoxb-13245324243-43534534534-y3123c4cGPOtdsfsfjPW
  socket_token: xapp-1-dsdddad4tfdsf-344324232354235-423423423423435324

So you need 2 tokens, as described in the readme!

Example screenshots which shows more options now:
quiz

Full changelog

  • Use new "Socket Mode" (#84) @brainexe
  • fix: ENV vars for overwriting config wasn't working as expected (#85) @brainexe
  • internal: speedup+simplified integration tests (#86) @brainexe
  • build(deps): bump github.com/slack-go/slack from 0.7.4 to 0.8.0 (#83) @dependabot
slack-bot - v1.7.0 - "queue" and pullrequest polishing

Published by github-actions[bot] almost 4 years ago

What’s Changed

Especially the Pullrequest and "list queue" component got some small polishing!

🚀 Enhancements

  • queue: unlink usernames in "list queue" command (#82) @Emerion
  • queue: add message link to "list queue" to jump directly to queued messages (#81) @brainexe
  • enhancement: allow admins to repost any slack message (#78) @brainexe
  • pullrequest: improve error handling (#79) @brainexe
  • pullrequest: cleanup PR states (#72 #69) @brainexe

🐛 Bug fixes

  • fixed: 'function "customVariable" not defined' in user defined commands (#76) @brainexe

📦 Internal

  • internal: added some more linters (#74) @brainexe
  • Bump github.com/stretchr/testify from 1.6.1 to 1.7.0 (#80) @dependabot
  • Bump github.com/xanzy/go-gitlab from 0.40.2 to 0.42.0 (#75, #77) @dependabot
  • Bump github.com/gookit/color from 1.3.5 to 1.3.6 (#73) @dependabot
slack-bot - v1.6.4 - Jenkins/Jira polishing

Published by github-actions[bot] almost 4 years ago

What’s Changed

  • jenkins: polish "jenkins nodes" command (#71) @brainexe
  • jira: made ticket list more beautiful and added "assignee" (#68) @brainexe
  • feature: add a way to post any link to an own message to interpret it as a message (#65) @brainexe

Internal

  • internal: introduce new BaseCommand for all commands (#62) @brainexe
  • internal: removed deprecated API to join channels (#67) @brainexe

Dependencies

  • Bump github.com/xanzy/go-gitlab from 0.40.1 to 0.40.2 (#70) @dependabot
  • Bump github.com/slack-go/slack from 0.7.3 to 0.7.4 (#64) @dependabot
  • Bump github.com/gookit/color from 1.3.3 to 1.3.5 (#63) @dependabot
  • Bump slack-go from v0.7.2 to v0.7.3 (#60) @brainexe
slack-bot - v1.6.3 - cleanups + small improvements

Published by github-actions[bot] almost 4 years ago

What’s Changed

  • feature: New command to wait until Jenkins is idle #53 (#57) @brainexe
  • enhancement: added more help categories (#50) @brainexe
  • enhancement: improve help command (e.g. added categories) (#49) @brainexe

Internals

  • internal: increase code coverage and fixed some glitches (#58) @brainexe
  • refactoring: Part 3: unified loggers (#54) @brainexe
  • refactoring: Part 2: replace slack.MessageEvent by a slim interface (#51) @brainexe
  • refactoring: Part 1 to replace slack.MessageEvent in command context (#44) @brainexe
  • Bump github.com/xanzy/go-gitlab from 0.40.0 to 0.40.1 (#56) @dependabot
  • Bump github.com/gookit/color from 1.3.2 to 1.3.3 (#55) @dependabot
slack-bot - v1.6.2 - added Github Docker registry

Published by brainexe almost 4 years ago

added docker images to Github registry + improved workflows

slack-bot - v1.6.1 - added automated build artifacts

Published by brainexe almost 4 years ago

no real update, only added build artifacts automagically to the realese

slack-bot - Major cleanups...

Published by brainexe almost 4 years ago

  • major code cleanups + adding bunch of automated linters + github workflow
  • memory optimizations
  • improve http polling inside long running commands
slack-bot - Added go 1.15 support

Published by brainexe about 4 years ago

slack-bot - v1.4.0 - handle "urls" in message

Published by brainexe over 4 years ago

Main change: Slack added fancy URLs inside message text some time ago
-> this Bot version is handling this kind of links better and mostly ignored the link behind the text when processing messages

slack-bot - v1.3.0 Slack interactions

Published by brainexe over 4 years ago

slack-bot - v1.2.0

Published by brainexe almost 5 years ago

2 new features included:

slack-bot - v1.1.0 - stable version with new commands

Published by brainexe almost 5 years ago

slack-bot - Inital release

Published by brainexe over 5 years ago

Package Rankings
Top 5.15% on Proxy.golang.org
Badges
Extracted from project README
Actions Status PkgGoDev Go Report Card Release codecov License: MIT Docker Mentioned in Awesome Go
Related Projects