Skip to content

Conversation

@jayhack
Copy link
Contributor

@jayhack jayhack commented Feb 23, 2025

Enables setting up an app that:

  • Creates a cached codebase (amenable to memory snapshotting)
  • Responds to trigger events, e.g. Github PR created

Like so:

cg = CodegenApp(...)

@cg.github.event('pull_request:created')
def run(event: PRCreatedEvent):
	codebase = cg.get_codebase('codegen-sh/codegen-sdk')
	codebase.checkout(event.pr.head.sha)
	...
	cg.github.client.add_comment_to_pr(event.pr.number, "hello, world!")

@jayhack jayhack requested review from a team and codegen-team as code owners February 23, 2025 23:58
@CLAassistant
Copy link

CLAassistant commented Feb 23, 2025

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ jayhack
❌ codegen-bot


codegen-bot seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@codecov
Copy link

codecov bot commented Feb 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files

@jayhack jayhack changed the title feat: codegen-server [WIP] Codegen Server Feb 24, 2025
@jayhack jayhack marked this pull request as draft February 24, 2025 15:11
codegen-bot added 3 commits February 24, 2025 07:40
@jayhack jayhack marked this pull request as ready for review February 24, 2025 19:42
@jayhack jayhack changed the title [WIP] Codegen Server feat: CodegenApp Feb 24, 2025
@jayhack jayhack merged commit b0df22e into develop Feb 24, 2025
24 of 26 checks passed
@jayhack jayhack deleted the jay/codegen-server branch February 24, 2025 21:00
@github-actions
Copy link
Contributor

🎉 This PR is included in version 0.33.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants