-
Notifications
You must be signed in to change notification settings - Fork 124
[Integration][Gitlab v2] Add Release
and Tag
Webhook Processors for Live Events
#2304
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
base: main
Are you sure you want to change the base?
[Integration][Gitlab v2] Add Release
and Tag
Webhook Processors for Live Events
#2304
Conversation
Signed-off-by: Dennis Bilson <[email protected]>
Signed-off-by: Dennis Bilson <[email protected]>
Signed-off-by: Dennis Bilson <[email protected]>
# Conflicts: # integrations/gitlab-v2/CHANGELOG.md
…their tests and client methods
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
PR Code Suggestions ✨Explore these optional code suggestions:
|
…ses-and-Tags-kinds # Conflicts: # integrations/gitlab-v2/CHANGELOG.md # integrations/gitlab-v2/main.py # integrations/gitlab-v2/pyproject.toml
release = { | ||
**payload, | ||
"__project": { | ||
"path_with_namespace": payload["project"]["path_with_namespace"] | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't repeat yourself, create a function (enrich_resource_with_project
) for this call wherever its needed
|
||
if tag: | ||
project_path = payload["project"]["path_with_namespace"] | ||
tag = {**tag, "__project": {"path_with_namespace": project_path}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here,
User description
Added support for real-time webhook events for GitLab releases and tags, enabling immediate synchronization when releases are created or tags are pushed.
Type of change
Please leave one option from the following and delete the rest:
All tests should be run against the port production environment(using a testing org).
Core testing checklist
Integration testing checklist
examples
folder in the integration directory.Preflight checklist
Screenshots
API Documentation
Provide links to the API documentation used for this integration.
PR Type
Enhancement
Description
Added webhook processors for GitLab tag and release events
Implemented client methods to fetch individual tags and releases
Added resync handlers for tags and releases resource kinds
Extended integration configuration to support tag and release resources
Diagram Walkthrough
File Walkthrough
6 files
Add tag and release fetching methods
Add TAG and RELEASE object kinds
Implement tag webhook event processor
Implement release webhook event processor
Add tag and release resource configurations
Register tag and release webhook processors
3 files
Add tests for tag and release client methods
Add tag webhook processor unit tests
Add release webhook processor unit tests
2 files
Add releases and tags to spec resources
Bump version to 0.3.1
1 files
Document version 0.3.1 and 0.3.0 releases