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
|
# File 'lib/hubmerge/options.rb', line 5
def self.all
{
repo: {
short_switch: "-r",
long_switch: "--repo ORG/REPONAME",
type: String,
description: "Github repository to search for PRs in (example: rails/rails)",
},
query: {
short_switch: "-q",
long_switch: "--query ORG/REPONAME",
type: String,
description: "GitHub search query to run to find PRs (example: 'author:app/dependabot')",
},
merge_without_confirmation: {
short_switch: "-y",
long_switch: "--yes",
type: :flag,
description: "Merge without confirmation from user (default: false)"
},
approve_before_merge: {
short_switch: "-a",
long_switch: "--approve",
type: :flag,
description: "Approve PR before merge (default: false)"
},
show_version: {
short_switch: "-v",
long_switch: "--version",
type: :flag,
description: "Show a version and exit (default: false)"
},
}
end
|