Skip to content

ci: auto-tag on version bump merge#11

Closed
nullhack wants to merge 18 commits into
mainfrom
chore/auto-tag-on-merge
Closed

ci: auto-tag on version bump merge#11
nullhack wants to merge 18 commits into
mainfrom
chore/auto-tag-on-merge

Conversation

@nullhack
Copy link
Copy Markdown
Owner

What

Adds .github/workflows/tag-release.yml — a workflow that fires on every push to main when pyproject.toml changes. It reads the version field and creates tag v{version} at the merge commit if it doesn't already exist.

Why

Previously the release agent called gh release create before the version bump PR was merged, causing the tag to land on the wrong commit (same SHA as the previous release). This made the PyPI publish build an identical wheel and reject it with 400 File already exists.

How it fits the release flow

Agent commits version bump → opens PR
  → Human merges PR to main
  → tag-release.yml fires → creates v{version} tag at merge commit
  → pypi-publish.yml fires on tag → PyPI publish
  → publish-docs CI fires on push to main → gh-pages deploy

No manual tag creation needed. The git-release skill is updated accordingly.

nullhack added 18 commits April 19, 2026 15:23
- Catch SystemExit from run_hatch() in pytest_configure and call
  pytest.exit(str(exc), returncode=1) for a clean exit instead of INTERNALERROR
- Fix plugin_test.py mock so getoption returns False, preventing hatch
  branch from triggering and silently blocking 3 tests
- Rewrite test_example_hatch_5e6f7a8b to use pytest.main() at CLI boundary,
  capturing stderr and asserting returncode==1 + conflicting path in output
- Rewrite test_example_hatch_3c4d5e6f to use pytest.main() with stdout
  capture, asserting each written .feature relative path appears in output
@nullhack nullhack closed this Apr 20, 2026
@nullhack nullhack deleted the chore/auto-tag-on-merge branch April 20, 2026 12:27
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