Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Feature: Add ability to tell specify to use the current branch instead of making a new one#1117

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
peterHoburg wants to merge8 commits intogithub:main
base:main
Choose a base branch
Loading
frompeterHoburg:peterhoburg/#1104-current-branch

Conversation

@peterHoburg
Copy link

@peterHoburgpeterHoburg commentedNov 4, 2025
edited
Loading

Added the ability to set SPECIFY_USE_CURRENT_BRANCH=1 to have speckit use your current branch for specs instead of making a new one.

This is extremely useful for teams that already have their own way of branching, and don't want to have more branches get created for no reason.

I have gone through and tested the full flow on MacOS.

Closes#1104

Some of the code was edited by Claude Code.

josephcrawfordSRH, arctouch-paulagueiros, mrmarufpro, obiyoda, MuneAkira6, CW-EijiOsakabe, and loicngr reacted with thumbs up emoji
CopilotAI review requested due to automatic review settingsNovember 4, 2025 18:51
@peterHoburgpeterHoburg mentioned this pull requestNov 4, 2025
Copy link
Contributor

CopilotAI 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

This PR introduces a newSPECIFY_USE_CURRENT_BRANCH environment variable that allows users to work with existing git branches that don't follow the###-name convention. When set, the scripts will use the current git branch name instead of creating a new feature branch.

  • AddsSPECIFY_USE_CURRENT_BRANCH environment variable support across bash and PowerShell scripts
  • Updates branch detection logic to respect the new variable while maintaining priority chain
  • Skips branch pattern validation when using current branch mode

Reviewed Changes

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

Show a summary per file
FileDescription
scripts/powershell/create-new-feature.ps1Adds logic to use current branch instead of creating new one when env var is set
scripts/powershell/common.ps1Integrates env var into branch detection and validation functions
scripts/bash/create-new-feature.shMirrors PowerShell changes for bash environment
scripts/bash/common.shAdds env var support to bash common functions
README.mdDocuments the new environment variable in configuration table
CHANGELOG.mdRecords the new feature addition with examples
AGENTS.mdDocuments environment variables section with the new option

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

@josephcrawfordSRH
Copy link

Thanks for adding this, I have been waiting for something like this to be released into spec-kit.

loicngrlwf reacted with thumbs up emoji

CopilotAI review requested due to automatic review settingsNovember 4, 2025 21:07
Copy link
Contributor

CopilotAI 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 7 out of 7 changed files in this pull request and generated no new comments.


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

CopilotAI review requested due to automatic review settingsNovember 4, 2025 21:35
Copy link
Contributor

CopilotAI 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 7 out of 7 changed files in this pull request and generated 3 comments.


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

Copy link

@yannicklinyannicklin left a comment

Choose a reason for hiding this comment

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

I cannot find obvious issue. The comments made by CoPilots seems not useful.

@rohitsoni007
Copy link

Nice Feature. Would love to see this get merged.

arctouch-paulagueiros, Hoooxz, mrmarufpro, nagoodman, loicngrlwf, and loicngr reacted with thumbs up emoji

@nagoodman
Copy link

Think this is needed for using github speckit in claude code on web, since it has it's own method for branching. ➕ 1️⃣ to merging this in.

@matthew-a-gordon
Copy link

Would love to see this get merged; I've got automations that key off of "feature/xyz" branch naming that have necessitated my own modifications to the spec-kit scripts.

@localden
Copy link
Collaborator

How is this different fromSPECIFY_FEATURE that is available today? We probably just need to document it better :)

@localdenlocalden self-assigned thisDec 2, 2025
@localdenlocalden added needs-author-response needs-verificationPull request or bug report that requires validation and testing before it can be acted on. labelsDec 2, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

@localdenlocaldenAwaiting requested review from localdenlocalden is a code owner

+1 more reviewer

@yannicklinyannicklinyannicklin approved these changes

Reviewers whose approvals may not affect merge requirements

At least 0 approving reviews are required to merge this pull request.

Assignees

@localdenlocalden

Labels

needs-author-responseneeds-verificationPull request or bug report that requires validation and testing before it can be acted on.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Add ability to use current branch for specify feature name and dir

7 participants

@peterHoburg@josephcrawfordSRH@rohitsoni007@nagoodman@matthew-a-gordon@localden@yannicklin

[8]ページ先頭

©2009-2025 Movatter.jp