Skip to content

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

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

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

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 29ab556 to f6b51f2 Compare November 24, 2026 04:09
@coveralls

coveralls commented Nov 24, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 94.253%. remained the same — dblock:dblock/danger-pr-comment into mongoid:master

@github-actions

Copy link
Copy Markdown

Danger Report

No issues found.

View run

@dblock
dblock merged commit 24494fc into mongoid:master Nov 24, 2026
10 checks passed
@dblock
dblock deleted the dblock/danger-pr-comment branch November 24, 2026 19:17
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.

2 participants