Skip to content

fix(taskctl): detect default branch dynamically instead of hardcoding dev (#353)#354

Merged
randomm merged 6 commits intodevfrom
fix/issue-353-dynamic-base-branch
Feb 27, 2026
Merged

fix(taskctl): detect default branch dynamically instead of hardcoding dev (#353)#354
randomm merged 6 commits intodevfrom
fix/issue-353-dynamic-base-branch

Conversation

@randomm
Copy link
Owner

@randomm randomm commented Feb 27, 2026

Adds defaultBranch(cwd) utility to pulse-utils.ts that detects the repo's mainline branch via git symbolic-ref refs/remotes/origin/HEAD --short with fallbacks. taskctl start now branches from the detected default branch instead of hardcoded dev. pulse-scheduler.ts git rev-parse and git merge-base calls also use the detected branch. Fixes taskctl start in repos where mainline is main, master, trunk, etc. Fixes #353

@randomm randomm merged commit 9d3ff4f into dev Feb 27, 2026
1 check passed
@randomm randomm deleted the fix/issue-353-dynamic-base-branch branch February 27, 2026 13:15
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.

fix(taskctl): detect default branch dynamically instead of hardcoding 'dev'

1 participant