Skip to content

Commit b2f15f6

Browse files
authored
Service flow v2 (#22)
1 parent 8fd17ac commit b2f15f6

File tree

370 files changed

+33888
-1785
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

370 files changed

+33888
-1785
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ services:
33
- docker
44
language: go
55
go:
6-
- 1.8
6+
- 1.9
77
- tip
88
go_import_path: github.com/bivas/rivi
99
install: true

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ Rivi enables automatic labeling with common parameters so that administrators ca
1212
With Rivi, developers can focus on the actual code base and less on administrative unambiguous actions made every day. We are looking to add more automation features to make the repository management process seamless, and our highest priority is to ensure that Rivi lives up to the community standards by providing true value and efficiency.
1313

1414
## Usage
15-
Rivi can be run as a service which listens to incoming repository webhooks. This service must be internet facing to accept incoming requests (e.g. GitHub).
15+
Rivi can be run as a bot which listens to incoming repository webhooks. This service must be internet facing to accept incoming requests (e.g. GitHub).
1616
```
17-
Usage: rivi server [options] CONFIGURATION_FILE(S)...
17+
Usage: rivi bot [options] CONFIGURATION_FILE(S)...
1818
19-
Starts rivi in server mode and listen to incoming webhooks
19+
Starts rivi in bot mode and listen to incoming webhooks
2020
2121
Options:
22-
-port=8080 Listen on port (default: 8080)
23-
-uri=/ URI path (default: "/")
22+
-port=8080 Listen on port
23+
-uri=/ URI path
2424
```
2525
### Example
2626
```
27-
$ rivi server -port 9000 repo-x.yaml repo-y.yaml
27+
$ rivi bot -port 9000 repo-x.yaml repo-y.yaml
2828
```
2929

3030
### Docker
@@ -37,9 +37,9 @@ You should visit [bivas/rivi](https://hub.docker.com/r/bivas/rivi/) Docker Hub p
3737
$ docker run --detach \
3838
--name rivi \
3939
--publish 8080:8080 \
40-
--env RIVI_CONFIG_TOKEN=<rivi oath token> \
40+
--env RIVI_CONFIG_TOKEN=<rivi oauth token> \
4141
--volume /path/to/config/files:/config \
42-
bivas/rivi rivi server /config/repo-x.yaml
42+
bivas/rivi rivi bot /config/repo-x.yaml
4343
```
4444

4545
## Requirements
@@ -177,14 +177,14 @@ The entire `condition` section is optional - you can run all rules all the time
177177
**Important**: This will not place a rule in the exact position, but can assist in re-order rules.
178178

179179
### Available Actions
180-
- [`autoassign`](bot/actions/autoassign/autoassign.md) - Automatic assignment of issue reviewers
181-
- [`automerge`](bot/actions/automerge/automerge.md) - Automatic merge for approved pull requests
182-
- [`commenter`](bot/actions/commenter/commenter.md) - Add comment to an issue
183-
- [`labeler`](bot/actions/labeler/labeler.md) - Add/Remove label to/from an issue
184-
- [`sizing`](bot/actions/sizing/sizing.md) - Size a pull request
185-
- [`trigger`](bot/actions/trigger/trigger.md) - Send HTTP triggers
186-
- [`slack`](bot/actions/slack/slack.md) - Send Slack messages
187-
- [`locker`](bot/actions/locker/locker.md) - Lock an issue
180+
- [`autoassign`](engine/actions/autoassign/autoassign.md) - Automatic assignment of issue reviewers
181+
- [`automerge`](engine/actions/automerge/automerge.md) - Automatic merge for approved pull requests
182+
- [`commenter`](engine/actions/commenter/commenter.md) - Add comment to an issue
183+
- [`labeler`](engine/actions/labeler/labeler.md) - Add/Remove label to/from an issue
184+
- [`sizing`](engine/actions/sizing/sizing.md) - Size a pull request
185+
- [`trigger`](engine/actions/trigger/trigger.md) - Send HTTP triggers
186+
- [`locker`](engine/actions/locker/locker.md) - Lock an issue
187+
- [`slack`](engine/actions/slack/slack.md) - Send Slack messages
188188

189189
# Example Configuration
190190

actions.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package main
22

33
import (
4-
_ "github.com/bivas/rivi/bot/actions/autoassign"
5-
_ "github.com/bivas/rivi/bot/actions/automerge"
6-
_ "github.com/bivas/rivi/bot/actions/commenter"
7-
_ "github.com/bivas/rivi/bot/actions/labeler"
8-
_ "github.com/bivas/rivi/bot/actions/locker"
9-
_ "github.com/bivas/rivi/bot/actions/sizing"
10-
_ "github.com/bivas/rivi/bot/actions/slack"
11-
_ "github.com/bivas/rivi/bot/actions/trigger"
4+
_ "github.com/bivas/rivi/engine/actions/autoassign"
5+
_ "github.com/bivas/rivi/engine/actions/automerge"
6+
_ "github.com/bivas/rivi/engine/actions/commenter"
7+
_ "github.com/bivas/rivi/engine/actions/labeler"
8+
_ "github.com/bivas/rivi/engine/actions/locker"
9+
_ "github.com/bivas/rivi/engine/actions/sizing"
10+
_ "github.com/bivas/rivi/engine/actions/slack"
11+
_ "github.com/bivas/rivi/engine/actions/trigger"
1212
)

bot/actions/commenter/commenter.go

Lines changed: 0 additions & 34 deletions
This file was deleted.

bot/bot.go

Lines changed: 0 additions & 161 deletions
This file was deleted.

bot/bot_test.go

Lines changed: 0 additions & 88 deletions
This file was deleted.

0 commit comments

Comments
 (0)