Skip to content

Suppress Git default-branch checkout warning in release workflow - #31

Merged
konard merged 2 commits into
mainfrom
issue-28-26f79e95eb2c
Jul 3, 2026
Merged

Suppress Git default-branch checkout warning in release workflow#31
konard merged 2 commits into
mainfrom
issue-28-26f79e95eb2c

Conversation

@konard

@konard konard commented Jul 3, 2026

Copy link
Copy Markdown
Member

Summary

  • Add workflow-level GIT_CONFIG_* runtime config to .github/workflows/release.yml so actions/checkout@v6 initializes with init.defaultBranch=main.
  • Add a workflow contract test that requires the env block to be present before the first checkout action.
  • Add a changelog fragment for the CI warning suppression.

Fixes #28

Reproduction

  1. Run the release workflow on a runner where Git emits the Git 3.0 default-branch hint during git init.
  2. Inspect the actions/checkout@v6 log before this change and observe the default initial branch warning.
  3. The new contract test reproduces the missing workflow-level config by failing when the GIT_CONFIG_* env block is absent.

Verification

  • .venv/bin/python -m pytest tests/test_workflows.py::test_release_workflow_sets_git_default_branch_before_checkout -q
  • .venv/bin/python -m pytest
  • .venv/bin/ruff check .
  • .venv/bin/ruff format --check .
  • .venv/bin/mypy src/
  • .venv/bin/python scripts/check_file_size.py

Adding .gitkeep for PR creation (default mode).
This file will be removed when the task is complete.

Issue: #28
@konard konard self-assigned this Jul 3, 2026
@konard konard changed the title [WIP] Suppress Git default-branch checkout warning in release workflow Suppress Git default-branch checkout warning in release workflow Jul 3, 2026
@konard
konard marked this pull request as ready for review July 3, 2026 16:55
@konard

konard commented Jul 3, 2026

Copy link
Copy Markdown
Member Author

Working session summary

Implemented and finalized PR #31: #31

Changed:

  • Added workflow-level GIT_CONFIG_* env in release.yml so actions/checkout@v6 sees init.defaultBranch=main before its internal git init.
  • Added a regression contract test in test_workflows.py.
  • Added a changelog fragment and removed the bootstrap .gitkeep.

Verified:

  • Focused regression test fails before the workflow fix and passes after it.
  • pytest: 44 passed
  • ruff check .: passed
  • ruff format --check .: passed
  • mypy src/: passed
  • python scripts/check_file_size.py: passed
  • GitHub Actions run 28673736164 passed on commit 9456baf.

PR #31 is updated, pushed, marked ready for review, merge state is clean, and the local working tree is clean.


This summary was automatically extracted from the AI working session output.

@konard

konard commented Jul 3, 2026

Copy link
Copy Markdown
Member Author

🤖 Solution Draft Log

This log file contains the complete execution trace of the AI solution draft process.

💰 Cost estimation:

  • Model: GPT-5.5
  • Provider: OpenAI
  • Public pricing estimate: $2.809585

📊 Context and tokens usage:

  • 101.3K / 200K (51%) input tokens, 12.5K / 128K (10%) output tokens

Total: (101.3K + 1.2M cached) input tokens, 12.5K output tokens, $2.809585 cost

🤖 Models used:

  • Tool: OpenAI Codex
  • Requested: gpt-5.5
  • Thinking level: max (~31999 tokens)
  • Model: GPT-5.5 (gpt-5.5)

📎 Log file uploaded as Gist (1254KB)


Now working session is ended, feel free to review and add any feedback on the solution draft.

@konard
konard merged commit c484a81 into main Jul 3, 2026
7 checks passed
@konard

konard commented Jul 3, 2026

Copy link
Copy Markdown
Member Author

🎉 Auto-merged

This pull request has been automatically merged by hive-mind.

  • All CI checks have passed

Auto-merged by hive-mind with --auto-merge flag

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.

Suppress Git default-branch checkout warning in release workflow

1 participant