Skip to content

Upgrade danger-pr-comment and skip empty Danger comments - #58

Merged
dblock merged 1 commit into
mongoid:masterfrom
dblock:dblock/danger-pr-comment
Nov 24, 2026
Merged

dblock merged 1 commit into
mongoid:masterfrom
dblock:dblock/danger-pr-comment

Conversation

@dblock

@dblock dblock commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

The lint, CI, and release stack (#54 → #55 → #56) has merged, so this PR is rebased on master and contains only the Danger change. The Etc/GMT+5 time zone and json < 3 fixes that make CI pass came from #54.

Clean pull requests get a "Danger Report: No issues found." comment from the Danger comment workflow.

  • Move the Danger workflows from numbata/danger-pr-comment@v0.1.0 to danger/danger-pr-comment, where the project now lives, at v0.3.0, pinned by commit (645e89b).
  • Set comment-empty: false. Empty reports then create no new comment, while existing report comments are still updated.
  • Set base-branch: '*' so reports are posted on stacked PRs that target another PR's branch.
  • Declare the comment workflow's required permissions (actions: read, issues: write, pull-requests: write). Give the Danger run contents: read, a concurrency group that cancels superseded runs, and job names.

The comment workflow runs from workflow_run, which uses the default branch's copy. So skipping empty comments takes effect after merge, and this PR's own report may still post the old way.

Validation: actionlint passes. CI on this PR exercises the new Danger run workflow.

This PR was written by an AI (Claude) on behalf of @dblock.

🤖 Generated with Claude Code

https://claude.ai/code/session_011Gr21iR4JxWxGGyXdJ3uc9

@dblock
dblock force-pushed the dblock/danger-pr-comment branch from a066d0d to 9ac709e Compare November 24, 2026 04:09
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Danger Report

No issues found.

View run

@dblock
dblock force-pushed the dblock/danger-pr-comment branch 3 times, most recently from 12e2a22 to 6573ee2 Compare November 24, 2026 12:42
@dblock
dblock changed the base branch from master to dblock/ruby-gem-release November 24, 2026 12:42
@dblock
dblock deleted the branch mongoid:dblock/ruby-gem-release November 24, 2026 12:43
@dblock dblock closed this Nov 24, 2026
@dblock dblock reopened this Nov 24, 2026
@dblock
dblock changed the base branch from dblock/ruby-gem-release to master November 24, 2026 12:44
Use the danger/danger-pr-comment 0.3.0 reusable workflows, pinned by
commit, with comment-empty disabled so clean pull requests no longer get
a "No issues found" comment while existing reports are still updated.
Allow stacked pull request targets, declare the comment workflow's
permissions, and cancel superseded Danger runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011Gr21iR4JxWxGGyXdJ3uc9
@dblock
dblock force-pushed the dblock/danger-pr-comment branch from 6573ee2 to 3ed1768 Compare November 24, 2026 12:44
@dblock
dblock merged commit 3338635 into mongoid:master Nov 24, 2026
16 of 17 checks passed
@dblock
dblock deleted the dblock/danger-pr-comment branch November 24, 2026 19:39
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