dms/sloth-github-plugin
Composer 安装命令:
composer require dms/sloth-github-plugin
包简介
Sloth plugin to better integrate Github and Slack with more information in messages.
README 文档
README
This is a Sloth plugin that improves on the default Slack/Github intagration, by adding more options and more informational messages. Each tool needs to be properly hooked up to webhooks, so each can be enabled on demand.
Install
To activate this plugin, simple require it in a Sloth project with
composer require dms/sloth-github-plugin
Github Webhooks
Each feature has its own endpoint that needs to be hooked up to github. Please refer to each of the features below to hook them as needed.
Features
Better PR Comments
The standard Github/Slack integration gives a limited amount of information when a message is posted to Slack, this integration improves on that and provides a more complete set of information, allowing you to have all the context you need to decide if the message is relevant for you.
This is what a regular comment looks like:
And a review comment:
Install
Hook up these url to your Github repository
For Regular comments
- Endpoint:
<sloth-url>/plugin/dms/pr/comment - Events:
issue_comment
For Review (inline) comments
- Endpoint:
<sloth-url>/plugin/dms/pr/review-comment - Events:
pull_request_review_comment
Label Notifiers
This plugin will broadcast a message to Slack when ever a label that matches an internal regular expression is added to a ticket, internally we used this one to let us know when a PR was reviewed and needed changes to be made for example.
This is an example:
Install
Hook up these url to your Github repository
- Endpoint:
<sloth-url>/plugin/dms/label/notify - Events:
issues
Configuration
You can change the regular expression which decides which labels are pushed to slack.
'dms.github.label-manager' => [ 'actionable.regexp' => '<REGEXP>' ]
dms/sloth-github-plugin 适用场景与选型建议
dms/sloth-github-plugin 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 35 次下载、GitHub Stars 达 0, 最近一次更新时间为 2016 年 05 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 dms/sloth-github-plugin 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 dms/sloth-github-plugin 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 35
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-05-21


