13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# File 'lib/github_commenter/cli.rb', line 13
def github_pr_options
option :from_env, enum: %w[ circleci ], description: "complete things from ENV variables of CI. override github,repo,pr,after,until"
option :github, description: "github API entry point (default: https://api.github.com/v3)"
option :repo, description: "respoitory of github e.g. okitan/github_commenter"
option :pr, type: :numeric, description: "number of PR"
option :github_access_token, required: true, default: ENV["GITHUB_ACCESS_TOKEN"]
option :after, description: "post comment when commits of inserting this line after this hash exist"
option :until, description: "post comment when commits of inserting this line exists"
end
|