forked from superset-sh/superset
-
Notifications
You must be signed in to change notification settings - Fork 1
upstream merge 2026-04-27 PR-D5: PR action header (#3777, scope-limited) #452
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
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,89 @@ | ||
| --- | ||
| description: Create a pull request for the current branch (agent-driven, one-click) | ||
| argumentHint: "[--draft]" | ||
| --- | ||
|
|
||
| # Goal | ||
|
|
||
| Create a pull request for the current branch in one pass. The user | ||
| clicked the Create PR button in the diff-editor sidebar — they expect | ||
| the PR to be created without further prompting. | ||
|
|
||
| An attachment named `pr-context.md` is included with this turn. It | ||
| contains: | ||
|
|
||
| - Current branch and base branch | ||
| - Whether the branch is published (has upstream) | ||
| - Commits ahead/behind upstream | ||
| - Whether there are uncommitted changes | ||
| - Required preconditions the user's branch must satisfy before | ||
| `gh pr create` will succeed | ||
|
|
||
| Read `pr-context.md` first. Use it as ground truth instead of re-deriving | ||
| the state yourself. | ||
|
|
||
| # Arguments | ||
|
|
||
| - `--draft` — create the PR as a draft. Pass `--draft` through to the | ||
| `gh pr create` call. | ||
|
|
||
| Parse the arguments from the user's prompt (everything after the skill | ||
| name). Do not ask the user to confirm the draft flag — it came from | ||
| their button click. | ||
|
|
||
| # Workflow | ||
|
|
||
| ## 1. Satisfy preconditions | ||
|
|
||
| In the order listed in `pr-context.md` under "Required preconditions": | ||
|
|
||
| - **Uncommitted changes**: generate a commit message from the staged | ||
| diff (use `git diff --cached` and `git status`). If nothing is | ||
| staged, `git add -A`. Then `git commit -m "<message>"`. Keep the | ||
| message short and specific — do not write a PR-body-style | ||
| description here. | ||
| - **Unpublished branch**: `git push -u origin -- "<branch>"` — quote `<branch>` | ||
| to avoid shell injection on names with metacharacters. | ||
| - **Unpushed commits on a published branch**: `git push`. | ||
| - **Behind upstream**: stop. Report to the user that they should sync | ||
| first. Do not force-push. Do not rebase without asking. | ||
|
|
||
| If any push fails non-fast-forward, stop and report — never | ||
| force-push. | ||
|
|
||
| ## 2. Draft the PR body | ||
|
|
||
| Use `git log "<base>..HEAD"` to read the commits, `git diff "<base>...HEAD"` | ||
| for the scope of changes. Produce: | ||
|
|
||
| - **Title**: short, imperative, derived from the most recent commit | ||
| message or the scope of the diff. | ||
| - **Body**: concise. Summary + a short Test Plan checklist. Skip | ||
| sections that have nothing meaningful to say — do not pad. | ||
|
|
||
| ## 3. Create the PR | ||
|
|
||
| ``` | ||
| gh pr create \ | ||
| --base <defaultBranch> \ | ||
| --title "<title>" \ | ||
| --body "<body>" | ||
| ``` | ||
|
|
||
| If `--draft` was passed, add `--draft`. | ||
|
|
||
| ## 4. Report back | ||
|
|
||
| Print the PR URL as a plain link on its own line. One short sentence | ||
| above it summarizing what you did (e.g. "Published `feature-x` and | ||
| opened draft PR."). Do not paste the full body back. | ||
|
|
||
| # Guardrails | ||
|
|
||
| - Never force-push. | ||
| - Never skip pre-commit hooks (`--no-verify`) or signing. | ||
| - If a hook fails, report the failure; do not retry with `--no-verify`. | ||
| - Do not open a browser — the caller handles that. | ||
| - Do not run a full `AGENTS.md` standards review in this skill. The | ||
| button is a fast path; use `/create-pr` (the general-purpose skill) | ||
| for the gated review flow. |
521 changes: 521 additions & 0 deletions
521
apps/desktop/plans/20260420-1045-agent-driven-pr-flow.md
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new
workspace-right-sidebar-slotis rendered as a sibling of the mainflex-1content inside aflex-colcontainer, and it hash-full shrink-0. In this layout, that makes the slot consume full parent height on the vertical axis, which can force the actual workspace row to collapse or overflow; the portal target should live inside the horizontal workspace row (or not useh-fullhere) so it doesn’t steal main-axis space.Useful? React with 👍 / 👎.