From e13df439ef3e93c54f2b4d5df550fe6844433a41 Mon Sep 17 00:00:00 2001 From: "Daniel (dB.) Doubrovkine" Date: Sun, 22 Nov 2026 08:57:21 -0500 Subject: [PATCH] Stop Danger from posting empty reports Update danger-pr-comment to 0.3.0, point the reusable workflows at the danger organization, and set `comment-empty: false` so the commenter no longer creates a "No issues found." comment on every PR. Existing report comments are still updated when findings clear. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_011Gr21htyJfr8XZGHBcPwkW --- .github/workflows/danger-comment.yml | 9 ++++++++- .github/workflows/danger.yml | 2 +- CHANGELOG.md | 1 + Gemfile | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/danger-comment.yml b/.github/workflows/danger-comment.yml index 8e15cb6..fb894c3 100644 --- a/.github/workflows/danger-comment.yml +++ b/.github/workflows/danger-comment.yml @@ -5,7 +5,14 @@ on: workflows: [Danger] types: [completed] +permissions: + actions: read # download artifacts + issues: write # list + create/update comments + pull-requests: write # PR comment access + jobs: comment: - uses: numbata/danger-pr-comment/.github/workflows/danger-comment.yml@v0.1.0 + uses: danger/danger-pr-comment/.github/workflows/danger-comment.yml@v0.3.0 secrets: inherit + with: + comment-empty: false diff --git a/.github/workflows/danger.yml b/.github/workflows/danger.yml index bf1c19f..17dc011 100644 --- a/.github/workflows/danger.yml +++ b/.github/workflows/danger.yml @@ -6,7 +6,7 @@ on: jobs: danger: - uses: numbata/danger-pr-comment/.github/workflows/danger-run.yml@v0.1.0 + uses: danger/danger-pr-comment/.github/workflows/danger-run.yml@v0.3.0 secrets: inherit with: ruby-version: '4.0' diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d4e2c6..fe6c1a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ * [#333](https://github.com/codegram/hyperclient/pull/333): Updated danger-pr-comment to 0.2.0 and fixed the hash conversion assertion for Minitest 6.1 - [@dblock](https://github.com/dblock). * [#334](https://github.com/codegram/hyperclient/pull/334): Added `Link#_query` to send query parameters that a link doesn't declare - [@dblock](https://github.com/dblock). * [#336](https://github.com/codegram/hyperclient/pull/336): Fixed `SystemStackError` when iterating a link whose resource links back to itself under the same name, raising `Hyperclient::SelfReferencingLinkError` instead - [@dblock](https://github.com/dblock). +* [#337](https://github.com/codegram/hyperclient/pull/337): Updated danger-pr-comment to 0.3.0 and stopped posting empty Danger reports - [@dblock](https://github.com/dblock). * Your contribution here. ### 2.1.0 (2026/10/14) diff --git a/Gemfile b/Gemfile index 3f76471..cae8826 100644 --- a/Gemfile +++ b/Gemfile @@ -36,7 +36,7 @@ if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.1') group :danger do gem 'danger', '~> 9.5' gem 'danger-changelog', '~> 0.10.0' - gem 'danger-pr-comment', '~> 0.2.0' + gem 'danger-pr-comment', '~> 0.3.0' gem 'danger-toc', '~> 0.3.0' end end