https://github.com/sqeven/robot
:robot: robot for gogs and drone to do ops :alien:
https://github.com/sqeven/robot
drone gitbot gogs gogs-api opsbot robot
Last synced: 10 days ago
JSON representation
:robot: robot for gogs and drone to do ops :alien:
- Host: GitHub
- URL: https://github.com/sqeven/robot
- Owner: sqeven
- Created: 2020-02-21T02:57:41.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-24T07:45:19.000Z (almost 6 years ago)
- Last Synced: 2023-03-02T23:47:28.556Z (almost 3 years ago)
- Topics: drone, gitbot, gogs, gogs-api, opsbot, robot
- Language: Go
- Homepage: https://sqeven.io
- Size: 13.7 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# git robot to github or gogs ...
根据git的一些事件去触发处理一些事
处理issue中的一些诸如`/pay 100`的指令,可以自定义指令和注册指令的处理器。
使用场景:
> 自动回复issue
比如issue一天没回复,自动回复以让提issue的人莫着急
> 自动提醒
如kubernetes中/sig 指令会把消息推到对应的兴趣小组
> 自动化测试
`/test e2e test/test.sh`
> 触发drone promote事件
`/promote 1 test` 在issue里回复这个,就会触发CI/CD里面下面定义的一个pipeline
```
git robot drone
issue | | |
------>| event | |
|-------->| |
| | promote |
| |-------->|
| | | do what ever you want
| | |
V V V
```
> 自动merge代码
`/merge` 指令可以自动merge代码,还可以在merge之前之后做一些事,比如记录下PR的作者,发邮件,等等
> 其它
打标签,关闭超时issue等