Skip to content

Conversation

coding-CEO
Copy link
Contributor

@coding-CEO coding-CEO commented Sep 24, 2025

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.
Copy link

google-cla bot commented Sep 24, 2025

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
Copy link

codecov bot commented Sep 24, 2025

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.

Copy link
Collaborator

@gmlewis gmlewis left a comment

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:master Sep 24, 2025
7 checks passed
@coding-CEO coding-CEO deleted the add-reason-field-in-pullrequestevent branch September 25, 2025 03:23
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.

reason is missing in the PullRequestEvent for dequeue action

2 participants