Information about what changed in Webhook event when team are removed or edited in repository. #122803
Unanswered
mauricioromagnollo
asked this question in
API and Webhooks
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
I need one help about the Webhook events (team -> removed_from_repository) and (team -> edited).
I will contextualize the problem. We have a Github App that monitors changes on Github using Webhooks.
One of the actions we are monitoring is when a team is removed or edited in a repository.
But the payload that the webhook sends does not inform what role (role_name) the team had before being removed or edited. Just the new role that was assigned to him (team), in case of edit.
We need to know the previous state of the team, to be able to rollback the action.
For example: The team that was removed had a custom role "Repository owner", we need to add the team again to the same repository with exactly that role (rollback this action).
Another example is a team's role changed from "read" to "admin". We need to know this previous information. But the webhook payload only provides the new role_name information.
The webhook payload has the role_name property as null or brings information about the current role (in case of editing), but we do not have information about the previous state.
How can we get this information?
Beta Was this translation helpful? Give feedback.
All reactions