Skip to content

feat(skills): develop-first base branch detection in create-pr#19

Merged
Arthur1511 merged 3 commits into
mainfrom
chore/build-create-pr-azure-devops
May 15, 2026
Merged

feat(skills): develop-first base branch detection in create-pr#19
Arthur1511 merged 3 commits into
mainfrom
chore/build-create-pr-azure-devops

Conversation

@Arthur1511

@Arthur1511 Arthur1511 commented May 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds automatic develop-first base branch resolution to the create-pr skill
  • When develop exists on the remote, all PR creation commands target it instead of main
  • Applies to both GitHub (gh pr create --base) and Azure DevOps (az repos pr create --target-branch)

Key Changes

  • New Step 1: Detect Base Branch — runs git ls-remote --heads origin develop before any analysis
  • \ variable used in git log, gh pr create, and az repos pr create
  • Steps renumbered 1–9 to accommodate the new detection step
  • Quality checklist updated with base branch resolution check

What's Changed

Skill: workflow-create-pr

Added develop-first base branch detection as the first step of the PR creation process. The skill now checks if develop exists on the remote and stores the result in \, which is then used in every command that references a base/target branch.

Plugin artifact

plugin-copilot/skills/workflow-create-pr/SKILL.md updated to match (generated from source).

Files Changed

Category Files Description
feat(skills) 2 workflow-create-pr/SKILL.md source + plugin-copilot artifact
chore 1 .github/sdd/.detected-stack.md timestamp bump

Test Plan

  • Run /create-pr on a repo that has a develop branch — PR targets develop
  • Run /create-pr on a repo with only main — PR targets main
  • Verify git log origin/\..HEAD works in both scenarios
  • Verify Azure DevOps --target-branch \ resolves correctly

Breaking Changes

None

Related Items

None


Generated with GitHub Copilot

Arthur1511 and others added 3 commits May 15, 2026 11:14
Regenerated plugin-copilot/ to reflect feat(skills) from #17:
- workflow-create-pr/SKILL.md now includes Azure DevOps support

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add Step 1 to detect if 'develop' exists on remote before PR creation
- Store result as \ (develop or main) and use in all commands
- Apply \ to git log, gh pr create, and az repos pr create
- Renumber steps 1-9 to accommodate new detection step
- Update quality checklist with base branch resolution check

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Arthur1511
Arthur1511 merged commit 13e8b37 into main May 15, 2026
1 check passed
@Arthur1511
Arthur1511 deleted the chore/build-create-pr-azure-devops branch May 15, 2026 20:08
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.

1 participant