diff --git a/.github/workflows/danger-comment.yml b/.github/workflows/danger-comment.yml index 4b3c448..0a48a20 100644 --- a/.github/workflows/danger-comment.yml +++ b/.github/workflows/danger-comment.yml @@ -1,9 +1,20 @@ name: Danger Comment + on: workflow_run: workflows: [Danger] types: [completed] + +permissions: + actions: read + issues: write + pull-requests: write + jobs: comment: - uses: numbata/danger-pr-comment/.github/workflows/danger-comment.yml@v0.1.0 - secrets: inherit + name: Post Review Comment + # danger/danger-pr-comment v0.3.0 + uses: danger/danger-pr-comment/.github/workflows/danger-comment.yml@645e89bcc7be89ee7e8362166110b05cbced8e59 + with: + base-branch: '*' + comment-empty: false diff --git a/.github/workflows/danger.yml b/.github/workflows/danger.yml index f51c15b..8fc1468 100644 --- a/.github/workflows/danger.yml +++ b/.github/workflows/danger.yml @@ -1,11 +1,21 @@ name: Danger + on: pull_request: types: [opened, reopened, edited, synchronize] + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: danger: - uses: numbata/danger-pr-comment/.github/workflows/danger-run.yml@v0.1.0 + name: Review Pull Request + # danger/danger-pr-comment v0.3.0 + uses: danger/danger-pr-comment/.github/workflows/danger-run.yml@645e89bcc7be89ee7e8362166110b05cbced8e59 with: ruby-version: '3.4' bundler-cache: true - secrets: inherit diff --git a/CHANGELOG.md b/CHANGELOG.md index 94b89b3..e491999 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ * [#54](https://github.com/mongoid/mongoid-scroll/pull/54): Lint Markdown, YAML, and spelling with rubocop-md, rubocop-prose, rubocop-spellcheck, and rubocop-yaml in a separate Lint workflow, and clean up documentation - [@dblock](https://github.com/dblock). * [#55](https://github.com/mongoid/mongoid-scroll/pull/55): Run CI pushes only on the default branch, cancel superseded pull request runs, skip duplicate lint in the test matrix, and bound job times - [@dblock](https://github.com/dblock). * [#56](https://github.com/mongoid/mongoid-scroll/pull/56): Release with ruby-gem-release from a manually dispatched GitHub Actions workflow using RubyGems Trusted Publishing, with dry runs - [@dblock](https://github.com/dblock). +* [#58](https://github.com/mongoid/mongoid-scroll/pull/58): Upgrade danger-pr-comment to 0.3.0 from the `danger` organization and skip empty Danger report comments - [@dblock](https://github.com/dblock). ### 2.0.1 (2026/10/15)