Skip to content

Upgrade Danger workflows to danger-pr-comment v0.3.0 - #24

Merged
dblock merged 1 commit into
dblock/upgrade-checkout-7from
dblock/upgrade-danger-pr-comment-0.3
Dec 5, 2026
Merged

dblock merged 1 commit into
dblock/upgrade-checkout-7from
dblock/upgrade-danger-pr-comment-0.3

Conversation

@dblock

@dblock dblock commented Dec 5, 2026

Copy link
Copy Markdown
Owner

This PR was written by an AI (Claude) acting on behalf of @dblock. It builds on #23.

Upgrade

Reusable Danger workflows: numbata/danger-pr-comment at a7d6bb4 (v0.1.1) → danger/danger-pr-comment at 645e89b (v0.3.0), still pinned by SHA with a version comment. The repository was transferred to the danger organization, so the references now point there. The danger-pr-comment gem is unpinned in the Gemfile and already resolves to 0.3.0, so this brings the workflows in line with the gem.

Changelog: https://github.com/danger/danger-pr-comment/blob/main/CHANGELOG.md

Behavior changes that matter here:

  • The comment workflow now resolves the report's target from the single open PR matching the run's source branch and head SHA, updates only the Actions bot's own sticky comment, paginates comments, and serializes writers.
  • The comment workflow gains a base-branch input that defaults to the repository default branch. With the default, reports for PRs that target another branch (such as stacked PRs like this one) fail the comment job instead of posting. This PR keeps the default; set base-branch: '*' to allow comments on stacked PRs.
  • New optional inputs comment-empty (comment workflow) and gemfile (run workflow) keep their defaults.

Validation

  • The workflow files parse as YAML locally, and the SHA was verified against the v0.3.0 tag through the GitHub API.
  • The Danger run workflow is exercised by this PR's own CI. The comment workflow is triggered by workflow_run and runs from the default branch, so its new version only takes effect after merge and is not exercised by this PR.
  • The Ruby code and gems are unchanged from Update dependencies #22, where bundle exec rake spec passed locally on Ruby 3.4.9.

🤖 Generated with Claude Code

Reference the reusable workflows from the danger organization, where
the repository now lives, pinned to the v0.3.0 release commit.

Co-Authored-By: Claude <noreply@anthropic.com>
@dblock
dblock added this pull request to stack #25 December 5, 2026 08:15
@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown

Danger Report

No issues found.

View run

@dblock dblock mentioned this pull request Dec 5, 2026
@dblock
dblock merged commit 159e39d into master Dec 5, 2026
7 checks passed
@dblock
dblock deleted the dblock/upgrade-danger-pr-comment-0.3 branch December 5, 2026 14:28
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