Skip to content

release: adjust release script#37

Merged
kou merged 1 commit into
enactic:masterfrom
kou:release
Jun 3, 2026
Merged

release: adjust release script#37
kou merged 1 commit into
enactic:masterfrom
kou:release

Conversation

@kou

@kou kou commented Jun 3, 2026

Copy link
Copy Markdown
Contributor
  • Accept ".git" in repository URL
  • This repository uses "master" not "main" as the default branch

Copilot AI review requested due to automatic review settings June 3, 2026 05:07

Copilot AI 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.

Pull request overview

This PR updates the release helper script to better align with this repository’s configuration by (a) handling repository URLs that may end with .git and (b) attempting to respect the repository’s actual default branch (e.g., master) when pulling the latest changes before a release.

Changes:

  • Strip an optional .git suffix from the repository name derived from pyproject.toml.
  • Add logic to detect the default branch via refs/remotes/origin/HEAD before pulling latest commits.

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

Comment thread dev/release.sh
Comment on lines +52 to 56
# refs/remotes/origin/master -> master
default_branch=$(git symbolic-ref refs/remotes/origin/HEAD |
sed -e 's,^.*/,,g')
git checkout main
git pull --ff-only
* Accept ".git" in repository URL
* This repository uses "master" not "main" as the default branch
@kou
kou merged commit d7af1ff into enactic:master Jun 3, 2026
6 checks passed
@kou
kou deleted the release branch June 3, 2026 05:20
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.

2 participants