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

Add new project and group access token events to webhook event types #1916

Merged
merged 2 commits into from Apr 18, 2024

Conversation

vntw
Copy link
Contributor

@vntw vntw commented Apr 15, 2024

👋

This PR complements #1913 by also supporting the new events when parsing webhooks.

Docs/Examples: https://docs.gitlab.com/ee/user/project/integrations/webhook_events.html#project-and-group-access-token-events

Let me know if you have any questions :)

Thanks!

event_parsing.go Outdated
return nil, err
}

if _, ok := data["project"]; ok {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The payload is mostly the same for both types. Depending on the actual type, either group_id/group or project_id/project will be present. A bit of a change compared to other events… 🤷

Copy link
Member

@svanharmelen svanharmelen left a comment

Choose a reason for hiding this comment

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

Thanks @vntw 👍🏻

@svanharmelen svanharmelen merged commit a29d319 into xanzy:main Apr 18, 2024
3 checks passed
@vntw vntw deleted the access-token-webhook-event branch April 18, 2024 07:47
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.

None yet

2 participants