Information about what changed in Webhook event when team are removed or edited in repository. #122803
Replies: 1 comment
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
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