Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

webhooks: Update payload testdata and type for Bitbucket Server push events#63161

Merged
eseliger merged 1 commit into
mainfrom
es/06-07-webhooksupdatepayloadtestdataandtypeforbitbucketserverpushevents
Jun 12, 2024
Merged

webhooks: Update payload testdata and type for Bitbucket Server push events#63161
eseliger merged 1 commit into
mainfrom
es/06-07-webhooksupdatepayloadtestdataandtypeforbitbucketserverpushevents

Conversation

@eseliger

@eseliger eseliger commented Jun 7, 2024

Copy link
Copy Markdown
Member

The plugin did not actually support push events yet, so this was newly added.
Not sure where the existing testdata came from, maybe the bitbucket native webhooks that don't support global scope, but this event was never handled right.
To make sure we actually support the payload returned from the plugin, this PR adjusts the payload.

This payload was gathered by running the bitbucket server plugin, configuring a webhook to point at a local ngrok, and then pushing to a repo.
The payload then appears in the ngrok UI.

Works on SRC-387

Test plan:

CI passes with the new testdata, and with the updated event type.

@cla-bot cla-bot Bot added the cla-signed label Jun 7, 2024

eseliger commented Jun 7, 2024

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @eseliger and the rest of your teammates on Graphite Graphite

@github-actions github-actions Bot added team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all labels Jun 7, 2024
…events

The plugin did not actually support push events yet, so this was newly added.
Not sure where the existing testdata came from, maybe the bitbucket native webhooks that don't support global scope, but this event was never handled right.
To make sure we actually support the payload returned from the plugin, this PR adjusts the payload.

Test plan:

CI passes with the new testdata, and with the updated event type.
@eseliger eseliger force-pushed the es/06-07-webhooksupdatepayloadtestdataandtypeforbitbucketserverpushevents branch from bd96bff to e3daed9 Compare June 11, 2024 11:45
@eseliger eseliger changed the base branch from es/06-07-repoupdateraddmetricsaroundfetchsuccessrate to main June 11, 2024 11:45
@eseliger eseliger marked this pull request as ready for review June 11, 2024 11:45
@eseliger eseliger requested a review from a team June 11, 2024 11:45

@ggilmore ggilmore left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't know how the payload itself was updated, but I assume it's correct. It would be nice to have it in documented / in the PR description though.

@eseliger

Copy link
Copy Markdown
Member Author

Done!

@eseliger eseliger merged commit bce9eee into main Jun 12, 2024
@eseliger eseliger deleted the es/06-07-webhooksupdatepayloadtestdataandtypeforbitbucketserverpushevents branch June 12, 2024 12:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants