Skip to content

New Codebase Init Flow #139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 28, 2025
Merged

Conversation

Edward-Codegen
Copy link
Contributor

Motivation

Content

Testing

Please check the following before marking your PR as ready for review

  • I have added tests for my changes
  • I have updated the documentation or added new documentation as needed
  • I have read and agree to the Contributor License Agreement

Copy link

linear bot commented Jan 28, 2025

CG-10371 New `Codebase` Init Flow

  • Specify language
  • Simplify language for API config

Right now we have either:

codebase = Codebase("./")

or

codebase = Codebase(
  [
    ProjectConfig(
      repo_operator=LocalRepoOperator(
        repo_config=BaseRepoConfig(), 
        repo_path=repo_path,
        default_branch=default_branch,
      ),
      programming_language=determine_project_language(repo_path),
      base_path=base_path,
    ),
  ]
)

and nothing in between (the example above is the simplest case if you don't want to pass anything more than a single filepath)

The idea for this ticket is to provide a middle-ground "advanced" init flow to specify more flags without needing to have a PhD in graphsitterology

@Edward-Codegen Edward-Codegen merged commit 82945fe into develop Jan 28, 2025
8 of 13 checks passed
@Edward-Codegen Edward-Codegen deleted the eli-cg-10371-new-gs-init-flow branch January 28, 2025 02:00
tkfoss pushed a commit that referenced this pull request Jan 28, 2025
# Motivation
<!-- Why is this change necessary? -->

# Content
<!-- Please include a summary of the change -->
# Testing
<!-- How was the change tested? -->
# Please check the following before marking your PR as ready for review

- [ ] I have added tests for my changes
- [ ] I have updated the documentation or added new documentation as
needed
- [ ] I have read and agree to the [Contributor License
Agreement](../CLA.md)

---------

Co-authored-by: codegen-bot <[email protected]>
jayhack pushed a commit that referenced this pull request Feb 9, 2025
# Motivation
<!-- Why is this change necessary? -->

# Content
<!-- Please include a summary of the change -->
# Testing
<!-- How was the change tested? -->
# Please check the following before marking your PR as ready for review

- [ ] I have added tests for my changes
- [ ] I have updated the documentation or added new documentation as
needed
- [ ] I have read and agree to the [Contributor License
Agreement](../CLA.md)

---------

Co-authored-by: codegen-bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants