Module: AiPrReviewer
- Defined in:
- lib/ai_pr_reviewer.rb,
lib/ai_pr_reviewer/version.rb
Defined Under Namespace
Classes: Error
Constant Summary collapse
- VERSION =
"0.1.4"
Class Method Summary collapse
Class Method Details
.install_github_actions ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/ai_pr_reviewer.rb', line 8 def install_github_actions source = File.join(File.dirname(__FILE__), '..', 'templates', 'github', 'workflows', 'ai_pr_review.yml') target_dir = File.join(Dir.pwd, '.github', 'workflows') target = File.join(target_dir, 'ai_pr_review.yml') FileUtils.mkdir_p(target_dir) if File.exist?(target) puts "GitHub Actions workflow already exists at #{target}" false else FileUtils.cp(source, target) puts "Successfully installed GitHub Actions workflow at #{target}" true end rescue StandardError => e puts "Error installing GitHub Actions workflow: #{e.}" false end |