Skip to content

Add reason field to PullRequestEvent - #3730

Merged
gmlewis merged 1 commit into
google:masterfrom
coding-CEO:add-reason-field-in-pullrequestevent
Sep 24, 2025
Merged

Add reason field to PullRequestEvent#3730
gmlewis merged 1 commit into
google:masterfrom
coding-CEO:add-reason-field-in-pullrequestevent

Conversation

@coding-CEO

@coding-CEOcoding-CEO commented Sep 24, 2025

Copy link
Copy Markdown
Contributor

WHAT

  • Add Reason *string field to PullRequestEvent struct
  • Update tests to include new field in JSON marshaling
  • Generate accessor method GetReason() with corresponding tests

WHY

- Add Reason *string field to PullRequestEvent struct
- Field is populated in 'dequeued' event deliveries
- Update tests to include new field in JSON marshaling
- Generate accessor method GetReason() with corresponding tests
This change supports the new 'dequeued' action in pull request webhook events,
allowing consumers to access the reason when a pull request is dequeued from
a merge queue.
@google-cla

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@coding-CEO
coding-CEO marked this pull request as ready for review September 24, 2025 06:24
@codecov

codecovBot commented Sep 24, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.11%. Comparing base (1b53270) to head (874e9c1).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@ Coverage Diff @@## master #3730 +/- ##
=======================================
Coverage 91.11% 91.11% =======================================
Files 187 187 Lines 16686 16686 =======================================
Hits 15204 15204 Misses 1295 1295 Partials 187 187 

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gmlewisgmlewis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you, @coding-CEO!
LGTM.
Merging.

@gmlewis
gmlewis merged commit 5cf155c into google:masterSep 24, 2025
7 checks passed
@coding-CEO
coding-CEO deleted the add-reason-field-in-pullrequestevent branch September 25, 2025 03:23
jlaportebot added a commit to jlaportebot/go-github that referenced this pull request Jun 28, 2026
Sign up for freeto 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.

reason is missing in the PullRequestEvent for dequeue action

2 participants

@coding-CEO@gmlewis