13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# File 'lib/rubocop_automata.rb', line 13
def boot(github_email:, github_username:)
if ENV['GITHUB_ACCESS_TOKEN'].nil?
raise 'Please input ENV of GITHUB_ACCESS_TOKEN'
end
if RubocopAutomata::Skill.rubocop_autocorrect
RubocopAutomata::Skill.create_branch(
@@backend_ci.repository_url,
github_email,
github_username,
@@backend_ci.topic_branch
)
RubocopAutomata::Skill.create_pullrequest(
@@backend_ci.repository_name,
@@backend_ci.pullrequest_title,
@@backend_ci.pullrequest_description,
@@backend_ci.base_branch,
@@backend_ci.topic_branch
)
end
true
end
|