Repository navigation
Expand file tree
/
Copy pathconfig.yaml
More file actions
126 lines (123 loc) · 2.92 KB
/
Copy pathconfig.yaml
File metadata and controls
126 lines (123 loc) · 2.92 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
---
cog_bundle_version: 4
name: github
version: 0.1.0
description: Interact with github
docker:
image: cogcmd/github
tag: 0.1.0
permissions:
- github:read
- github:write
commands:
merge:
executable: "/home/bundle/cog-command"
description: Merge a source branch into a destination branch
rules:
- must have github:write
options:
repo:
description: Repository to use for merge
type: string
required: true
src:
description: Source branch
type: string
required: true
dest:
description: Destionation branch
type: string
required: true
message:
description: Commit message for merge commit
type: string
required: true
commit:
executable: "/home/bundle/cog-command"
description: List commits for a repo
documentation: 'github:commit [list] [branch] [--before=<before>] [--after=<after>]
[--today] [-yesterday] [--this-week] [--last-week] [--this-month] --repo=<repo>
'
rules:
- must have github:read
options:
repo:
type: string
required: true
before:
type: string
required: false
after:
type: string
required: false
today:
type: bool
required: false
yesterday:
type: bool
required: false
this-week:
type: bool
required: false
last-week:
type: bool
required: false
this-month:
type: bool
required: false
pr:
executable: "/home/bundle/cog-command"
description: List stargazers for a repo
documentation: 'github:pr [list] [--open] [--closed] [--all] --repo=<repo> - List
pull requests for a repo
'
rules:
- must have github:read
options:
repo:
type: string
required: true
open:
type: bool
required: false
closed:
type: bool
required: false
all:
type: bool
required: false
repo:
executable: "/home/bundle/cog-command"
description: List or display information about repos
documentation: |
github:repo [list] [--user=<user>] [--org=<org>]
github:repo info --repo=<repo>
rules:
- must have github:read
options:
user:
type: string
required: false
org:
type: string
required: false
stargazer:
executable: "/home/bundle/cog-command"
description: List stargazers for a repo
documentation: 'github:stargazer --repo=<repo> - List stargazers for a repo
'
rules:
- must have github:read
options:
repo:
type: string
required: true
templates:
merge:
body: |
~if cond=$results[0].message not_empty?~
~$results[0].message~
~end~
~if cond=$results[0].sha bound?~
Merged branch **~$results[0].src~** into **~$results[0].dest~** in repository **~$results[0].repo~**.
~end~