Skip to content

feat: open a pr on github.#30

Merged
knightedcodemonkey merged 5 commits intomainfrom
bananas
Mar 22, 2026
Merged

feat: open a pr on github.#30
knightedcodemonkey merged 5 commits intomainfrom
bananas

Conversation

@knightedcodemonkey
Copy link
Owner

Copilot AI review requested due to automatic review settings March 22, 2026 21:47
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a GitHub “Open PR” workflow to the @knighted/develop AI/BYOT surface, enabling users to create a branch, commit current editor JSX/CSS into repo files, and open a pull request directly from the app.

Changes:

  • Introduces an “Open PR” drawer UI (toggle + form) and a toast notification for success feedback.
  • Extends GitHub BYOT state handling to expose writable repositories and support programmatic repository selection.
  • Adds GitHub REST helpers to create refs, upsert files via Contents API, and open pull requests; updates Playwright coverage for the new flow.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
src/styles/dialogs-overlays.css Adds toast styling and extends confirm-dialog copy styling to handle lists.
src/styles/ai-controls.css Styles the new GitHub PR toggle button and PR drawer layout (responsive included).
src/modules/github-pr-drawer.js New controller for PR drawer state, validation, persistence, and submit flow.
src/modules/github-byot-controls.js Emits writable repo list changes; adds getters/setters for selected repo and repos list.
src/modules/github-api.js Adds REST helpers for git refs, contents upsert, and PR creation; composes into createEditorContentPullRequest.
src/index.html Adds PR toggle + PR drawer markup; adds toast node; updates confirm dialog copy container to <ul>.
src/app.js Wires PR drawer into app lifecycle; adds toast helper; updates BYOT integration for writable repos.
playwright/app.spec.ts Adds tests for PR drawer flow + validation; adjusts BYOT/repo selection tests for new UI.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings March 22, 2026 22:21
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@knightedcodemonkey knightedcodemonkey merged commit d99740b into main Mar 22, 2026
1 check passed
@knightedcodemonkey knightedcodemonkey deleted the bananas branch March 22, 2026 22:50
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.

2 participants