Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always retrieve pr data #14

Merged
merged 9 commits into from
May 12, 2021
Merged

Always retrieve pr data #14

merged 9 commits into from
May 12, 2021

Conversation

korthout
Copy link
Owner

@korthout korthout commented May 12, 2021

In order to allow #11, always retrieve PR data.

The payload of a github event can contain different data depending on the event type. If a pull request was merged (closed) the event's payload contains the pull request data. If someone comments on a pull request, the payload of that event does not contain the same information about the pull request. So, that data must be retrieved from the github api. Sadly, the data returned from the github api differs in schema from the pull request payload. For consistency this PR replaces the usage of the pull request payload data with an api request to retrieve the PR data in all cases.

@korthout
Copy link
Owner Author

Successfully tested in https://github.com/zeebe-io/automation-lab/pull/55

@korthout korthout force-pushed the retrieve-pr-explicitly branch 3 times, most recently from b8031bf to 9d7938b Compare May 12, 2021 10:22
@korthout korthout force-pushed the retrieve-pr-explicitly branch 2 times, most recently from dcd8689 to 4369912 Compare May 12, 2021 10:36
@korthout korthout force-pushed the retrieve-pr-explicitly branch from 4369912 to c49b1eb Compare May 12, 2021 10:57
@korthout korthout merged commit b9246e8 into master May 12, 2021
@korthout korthout mentioned this pull request May 12, 2021
@korthout korthout deleted the retrieve-pr-explicitly branch July 26, 2021 19:59
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.

1 participant