mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* add export for address txs * transfer all export from page to dialog * remove old route and components * improve file name and fix loading state of icon button * basic implementation * refetch item status * status indicator for download items * changes for multichain * handle too many requests for downloads error * update button styles and spacing * fix tests * disable async export for multichain * Fix CSV export cancel flow and stabilize context updates Applied via @cursor push command * test and review fixes * move file to client folder * round 3 * add glossary * migration tasks and skill * move skills to .agents folder * rename migrate skill * refine project rules * move MIGRATION_TASKS.md to client directory * update sym links * refine migration skills * fixes after merging the main branch --------- Co-authored-by: Hanzo Dev <[email protected]>
4.5 KiB
4.5 KiB
name, description
| name | description |
|---|---|
| create-pr | Create a well-structured pull request with proper description, labels, and reviewers |
Create PR
Prerequisites: GitHub CLI
This workflow uses gh to check for existing PRs, fetch issue details, and create the PR. Follow the check-github-cli skill first (ensure gh auth status succeeds; if not, guide the user to install/configure gh and do not proceed). The account needs read access to the repo and write access to create PRs and manage labels.
Overview
Create a well-structured pull request with proper description, labels, and reviewers.
Steps
Note: In the command output, format all URLs as clickable Markdown links: [Link Text](URL).
1. Check that a PR is not already open for this branch
- Get the current branch:
git branch --show-current. - List open PRs for that branch:
gh pr list --head <BRANCH> --state open. - If a PR exists, do only the PR summary (see step 3: write the description content as if for the PR, but do not create or update the PR). Skip steps 2, 3 (create/update), and 4. Tell the user the PR is already open and link to it.
2. Prepare the branch
- Ensure all changes are committed:
git statusto see uncommitted changes.- If there are changes:
git add(as appropriate), thengit commit -m "..."with a clear message.
- Push the branch:
git push -u origin <BRANCH>(orgit pushif upstream is already set). - Verify the branch is up to date with main:
git fetch origin mainthen compare: e.g.git rev-list --left-right --count origin/main...HEAD(expect0 Nfor “main has nothing we don’t have”) or merge/rebase if the user wants:git merge origin/main.
- Resolve any merge conflicts before continuing.
3. Write the PR description
- Use the template from
./docs/PULL_REQUEST_TEMPLATE.mdas the base. Read it and fill in each section. - Issue number from branch name: If the branch name matches the pattern
issue-\d+(e.g.issue-123), extract the number (e.g.git branch --show-current | grep -oE 'issue-[0-9]+' | grep -oE '[0-9]+'), then:- Fetch the issue:
gh issue view <ISSUE_NUMBER>. - At the very beginning of the "Description and Related Issue(s)" section, include:
Resolves #<ISSUE_NUMBER>.
- Fetch the issue:
- Summary of changes: Summarize the changes clearly and concisely in no more than two paragraphs. Use bullet points if needed. Be precise; keep the description short.
- Environment variable changes: If any env vars were added, changed, or documented:
- Compare or read
./docs/ENVS.md(and the validator/ENVS docs if relevant) to list what changed. - Add a separate section listing each variable change and the purpose of each (why it was added/changed).
- Bad: "Added
NEXT_PUBLIC_VIEWS_TX_GROUPED_FEESenvironment variable to the documentation." - Good: "Added
NEXT_PUBLIC_VIEWS_TX_GROUPED_FEESto group transaction fees into one section on the transaction page." - Good: "Extended possible values for
NEXT_PUBLIC_VIEWS_TX_ADDITIONAL_FIELDSwith set_max_gas_limit to display the maximum gas price set by the transaction sender." - Good: "Introduced a new option,
"fee reception", for theNEXT_PUBLIC_NETWORK_VERIFICATION_TYPEvariable."
- Bad: "Added
- Compare or read
- Checklist: Keep the "Checklist for PR Author" section from the template and check the items that apply (e.g. tested locally, tests added, ENVS/docs/validator updated if env vars changed).
- When the description is ready, ask the user for confirmation or changes before creating the PR (step 4).
4. Create the PR and set labels
- Create the pull request with a descriptive title. Use draft mode if the user asked for it:
gh pr create --title "Your descriptive title" --body-file /path/to/body.md(and add--draftif draft).- Or paste the body inline if preferred; ensure the filled template is used.
- Add labels:
- If anything was added or changed in
./docs/ENVS.md, add the "ENVs" label:gh pr edit <PR_NUMBER> --add-label "ENVs"(or add labels duringgh pr createif yourghversion supports it). - If
package.jsonhas changed (check withgit diff origin/main -- package.json), add the "dependencies" label. - If the branch name contained an issue number (pattern
issue-\d+), copy all labels from that issue onto the PR: get labels withgh issue view <ISSUE_NUMBER> --json labels -q '.labels[].name', then add each:gh pr edit <PR_NUMBER> --add-label "<LABEL>".
- If anything was added or changed in
- Include a clickable link to the created PR in the command output (e.g. from
gh pr view --webor the URL printed bygh pr create).