-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.yaml
35 lines (35 loc) · 1.02 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
cog_bundle_version: 3
name: circle
description: "Interact with Circle CI"
version: "0.2.0"
docker:
image: "cogcmd/circle"
tag: "0.2.0"
permissions:
- circle:read
- circle:build
commands:
list:
executable: "/bundle/bin/list.rb"
description: "List recent builds and statuses for a project"
documentation: "`circle list <project>`"
rules:
- when command is circle:list must have circle:read
build:
executable: "/bundle/bin/build.rb"
description: "Rebuild a given branch of a project"
documentation: "`circle build <project> <branch>`"
rules:
- when command is circle:build must have circle:build
status:
executable: "/bundle/bin/status.rb"
description: "Show the most recent build of a branch"
documentation: "`circle status <project> <branch>`"
rules:
- when command is circle:status must have circle:read
templates:
list:
slack: "{{#.}}{{build_num}} - {{branch}} - {{status}} - {{author_name}}{{/.}}"
status:
slack: "{{status}} - {{stop_time}}"