Module: PullRequestAi

Extended by:
SingleForwardable
Defined in:
lib/pull_request_ai.rb,
lib/pull_request_ai/client.rb,
lib/pull_request_ai/engine.rb,
lib/pull_request_ai/version.rb,
lib/pull_request_ai/repo/file.rb,
lib/pull_request_ai/util/error.rb,
lib/pull_request_ai/repo/client.rb,
lib/pull_request_ai/repo/prompt.rb,
lib/pull_request_ai/repo/reader.rb,
lib/pull_request_ai/github/client.rb,
lib/pull_request_ai/openAi/client.rb,
lib/pull_request_ai/bitbucket/client.rb,
lib/pull_request_ai/openAi/interpreter.rb,
lib/pull_request_ai/util/configuration.rb,
lib/pull_request_ai/util/symbol_details.rb,
app/models/pull_request_ai/application_record.rb,
app/helpers/pull_request_ai/application_helper.rb,
app/controllers/pull_request_ai/application_controller.rb,
app/controllers/pull_request_ai/pull_request_ai_controller.rb

Defined Under Namespace

Modules: ApplicationHelper, Bitbucket, GitHub, OpenAi, Repo, Util Classes: ApplicationController, ApplicationRecord, Client, Engine, Error, PullRequestAiController

Constant Summary collapse

VERSION =
'0.1.1'
SYMBOL_DETAILS =
{
  project_not_configured: 'Your project doesn\'t have a GitHub repository configured.',
  invalid_repository_url: 'Couldn\'t read the remote URL from the repository.',
  current_branch_not_pushed: 'The current branch has not yet been pushed into the remote.',
  connection_timeout: 'Connection timeout.',
  failed_on_openai_api_endpoint: 'Failed to communicate with openAI API.',
  failed_on_github_api_endpoint: 'Failed to communicate with GitHub API.',
  failed_on_bitbucket_api_endpoint: 'Failed to communicate with Bitbucket API.',
  no_changes_btween_branches: 'No changes between branches. Please check the destination branch.'
}

Class Method Summary collapse

Class Method Details

.configurationObject

Returns an existing configuration object or instantiates a new one



48
49
50
# File 'lib/pull_request_ai.rb', line 48

def configuration
  @configuration ||= Util::Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



43
44
45
# File 'lib/pull_request_ai.rb', line 43

def configure(&block)
  yield configuration
end