Skip to content

chore(commands): add /open-pr and /create-branch PR-workflow commands#670

Merged
robsongajunior merged 10 commits into
devfrom
chore/pr-workflow-commands
Jun 25, 2026
Merged

chore(commands): add /open-pr and /create-branch PR-workflow commands#670
robsongajunior merged 10 commits into
devfrom
chore/pr-workflow-commands

Conversation

@HerbertJulio

Copy link
Copy Markdown
Contributor

Summary

Adds two slash commands that encode our PR workflow so anyone gets the same flow:

  • /create-branch — creates a branch off dev (never main) and prompts for the related issue (ENG-…), naming the branch <type>/<ISSUE>-<slug>.
  • /open-pr — end to end: ensures a dev-based branch (runs the create-branch flow if on dev/main), commits the working changes by context, pushes, and opens the PR against dev.

Conventions baked in

  • Base branch is always dev; branch from dev, not main.
  • Related issue is required for the branch name.
  • Shared docs/rules are flagged to go in a separate PR from code.
  • Conventional Commits; no Co-Authored-By / attribution footers.

Notes

/open-pr references .claude/rules/imports.md (flat exports), which lands in #665.

Two slash commands encoding our PR flow: /create-branch (branch off dev, prompts
for the related issue) and /open-pr (ensure dev-based branch, commit by context,
push, open PR to dev). Encodes our conventions: base dev, issue in branch name,
split shared docs into their own PR, no attribution footers.
@HerbertJulio HerbertJulio requested a review from a team as a code owner June 24, 2026 21:51
HerbertJulio and others added 4 commits June 24, 2026 21:41
…l issue, versioning)

Both commands now analyze the diff to pick the Conventional Commit type/scope
(driving the semantic-release bump), prompt for the related issue as optional
([NO-ISSUE] fallback), keep one commit per scope, detect breaking changes, and
never bypass commitlint. Sourced from CONTRIBUTING.md + commitlint.config.js.
…nd /create-branch

Auto-loaded rule so PR/branch requests in natural language route to the /open-pr and /create-branch flows instead of ad-hoc git steps.
isaquebock
isaquebock previously approved these changes Jun 25, 2026

@robsongajunior robsongajunior left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should match to release and commit lint.
https://github.com/aziontech/webkit/blob/dev/packages/webkit/.releaserc#L18

If you want add

Comment thread .claude/commands/open-pr.md
@robsongajunior robsongajunior merged commit c246462 into dev Jun 25, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants