Skip to content

fix(ci): write empty string to GITHUB_OUTPUT when base is undetected#1225

Merged
mergify[bot] merged 1 commit intomainfrom
devs/sileht/git-refs-better/write-empty-string-github-output-base-undetected--25fe7c86
Apr 20, 2026
Merged

fix(ci): write empty string to GITHUB_OUTPUT when base is undetected#1225
mergify[bot] merged 1 commit intomainfrom
devs/sileht/git-refs-better/write-empty-string-github-output-base-undetected--25fe7c86

Conversation

@sileht
Copy link
Copy Markdown
Member

@sileht sileht commented Apr 18, 2026

Previously maybe_write_to_github_outputs emitted the literal string
base=None when base was None (e.g. workflow_dispatch events), which
leaks Python's None representation into workflow output. Coalesce to
an empty string so GitHub Actions steps see base= instead — consistent
with the new --format=shell behavior.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

@sileht
Copy link
Copy Markdown
Member Author

sileht commented Apr 18, 2026

This pull request is part of a Mergify stack:

# Pull Request Link
1 fix(ci): write empty string to GITHUB_OUTPUT when base is undetected #1225 👈

@mergify mergify Bot had a problem deploying to Mergify Merge Protections April 18, 2026 22:37 Failure
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Apr 18, 2026

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🟢 🤖 Continuous Integration

Wonderful, this rule succeeded.
  • all of:
    • check-success=ci-gate

🟢 👀 Review Requirements

Wonderful, this rule succeeded.
  • any of:
    • #approved-reviews-by>=2
    • author = dependabot[bot]
    • author = mergify-ci-bot
    • author = renovate[bot]

🟢 Enforce conventional commit

Wonderful, this rule succeeded.

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\(.+\))?:

🟢 🔎 Reviews

Wonderful, this rule succeeded.
  • #changes-requested-reviews-by = 0
  • #review-requested = 0
  • #review-threads-unresolved = 0

🟢 📕 PR description

Wonderful, this rule succeeded.
  • body ~= (?ms:.{48,})

@sileht sileht marked this pull request as ready for review April 18, 2026 22:40
@mergify mergify Bot requested a review from a team April 18, 2026 22:43
jd
jd previously approved these changes Apr 20, 2026
@mergify mergify Bot requested a review from a team April 20, 2026 06:56
Base automatically changed from devs/sileht/git-refs-better/add-format-text-shell-json-ci-git-refs--10e0ba97 to main April 20, 2026 10:12
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Apr 20, 2026

@sileht this pull request is now in conflict 😩

@mergify mergify Bot added the conflict label Apr 20, 2026
Previously `maybe_write_to_github_outputs` emitted the literal string
`base=None` when base was None (e.g. `workflow_dispatch` events), which
leaks Python's `None` representation into workflow output. Coalesce to
an empty string so GitHub Actions steps see `base=` instead — consistent
with the new `--format=shell` behavior.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Change-Id: I25fe7c86a7c7d2aa823ef2e0fd5e71946892c7d2
@sileht sileht force-pushed the devs/sileht/git-refs-better/write-empty-string-github-output-base-undetected--25fe7c86 branch from 720dfc9 to 188ef73 Compare April 20, 2026 10:46
@sileht
Copy link
Copy Markdown
Member Author

sileht commented Apr 20, 2026

Revision history

# Type Changes Date
1 initial 720dfc9 2026-04-20 10:46 UTC
2 content 720dfc9 → 188ef73 2026-04-20 10:46 UTC

@mergify mergify Bot dismissed jd’s stale review April 20, 2026 10:47

Pull request has been modified.

@mergify mergify Bot deployed to Mergify Merge Protections April 20, 2026 10:47 Active
@mergify mergify Bot removed the conflict label Apr 20, 2026
@mergify mergify Bot requested a review from a team April 20, 2026 12:56
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Apr 20, 2026

Merge Queue Status

This pull request spent 5 minutes 8 seconds in the queue, including 4 minutes 40 seconds running CI.

Required conditions to merge

mergify Bot added a commit that referenced this pull request Apr 20, 2026
@mergify mergify Bot added the queued label Apr 20, 2026
@mergify mergify Bot merged commit a9fded6 into main Apr 20, 2026
11 checks passed
@mergify mergify Bot deleted the devs/sileht/git-refs-better/write-empty-string-github-output-base-undetected--25fe7c86 branch April 20, 2026 15:19
@mergify mergify Bot removed the queued label Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants