Skip to content

Add Danger CI checks for pull requests#400

Merged
numbata merged 6 commits intomasterfrom
add-danger-pr-comment
Apr 15, 2026
Merged

Add Danger CI checks for pull requests#400
numbata merged 6 commits intomasterfrom
add-danger-pr-comment

Conversation

@numbata
Copy link
Copy Markdown
Collaborator

@numbata numbata commented Apr 15, 2026

Summary

Automate pull request quality checks by adding Danger to the CI pipeline. This ensures every PR follows project conventions — such as including a CHANGELOG entry — before it can be merged, reducing manual review burden and keeping the project consistent.

  • Switch from ruby-grape-danger to danger-pr-comment, aligning with how grape handles PR checks
  • Danger results are posted as PR comments so contributors get clear, actionable feedback
  • Fix several historical CHANGELOG formatting issues caught by the new checks

numbata added 6 commits April 15, 2026 16:05
Replace ruby-grape-danger with danger-pr-comment to align with
the grape repo's two-workflow approach: one workflow runs Danger,
another posts the results as PR comments.
Sort danger gems alphabetically within the test group.
Inline breaking change marker, remove extra period in description,
and add missing @ prefix to author link.
Both PRs were included in the 1.0.2 release but their CHANGELOG
entries were missing.
- Fix mismatched PR numbers in links for #369 and #363
- Remove bold markdown in breaking change markers that
  danger-changelog cannot parse
@numbata numbata requested a review from Copilot April 15, 2026 15:44
@numbata numbata changed the title Switch to danger-pr-comment for PR checks Add Danger CI checks for pull requests Apr 15, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the project’s PR-check automation by switching the Danger setup from ruby-grape-danger to danger-pr-comment, matching the configuration used in the main grape repository, and adds a CHANGELOG enforcement check.

Changes:

  • Replace ruby-grape-danger with danger-pr-comment and add danger-changelog + changelog.check!.
  • Add GitHub Actions workflows to run Danger checks and then post results as PR comments.
  • Update CHANGELOG.md entries to reflect the new PR-check approach and correct/normalize some historical entries.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
Gemfile Adds Danger-related gems and removes ruby-grape-danger.
Dangerfile Imports danger-pr-comment checks and enforces CHANGELOG updates via changelog.check!.
CHANGELOG.md Records the change and fixes/normalizes several entries.
.github/workflows/danger.yml Adds a reusable-workflow-based Danger run on PR events.
.github/workflows/danger-comment.yml Adds a workflow_run-based job to post Danger results as PR comments.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/danger-comment.yml
@numbata numbata merged commit e78b76b into master Apr 15, 2026
18 checks passed
@numbata numbata self-assigned this Apr 15, 2026
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