-
Notifications
You must be signed in to change notification settings - Fork 960
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 TriggerTestProjectHook function to ProjectsService #1966
Conversation
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.
Looks good, but needs a small update...
projects.go
Outdated
// In GitLab 17.0 and later, this endpoint has a special rate limit. | ||
// In GitLab 17.0 the rate was three requests per minute for each project hook. | ||
// In GitLab 17.1 this was changed to five requests per minute for each project and authenticated user. | ||
// To disable this limit on self-managed GitLab and GitLab Dedicated, | ||
// an administrator can disable the feature flag named web_hook_test_api_endpoint_rate_limit. |
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.
// In GitLab 17.0 and later, this endpoint has a special rate limit. | |
// In GitLab 17.0 the rate was three requests per minute for each project hook. | |
// In GitLab 17.1 this was changed to five requests per minute for each project and authenticated user. | |
// To disable this limit on self-managed GitLab and GitLab Dedicated, | |
// an administrator can disable the feature flag named web_hook_test_api_endpoint_rate_limit. | |
// In GitLab 17.0 and later, this endpoint has a special rate limit. | |
// In GitLab 17.0 the rate was three requests per minute for each project hook. | |
// In GitLab 17.1 this was changed to five requests per minute for each project | |
// and authenticated user. | |
// | |
// To disable this limit on self-managed GitLab and GitLab Dedicated, an | |
// administrator can disable the feature flag named web_hook_test_api_endpoint_rate_limit. |
projects.go
Outdated
ProjectHookEventReleases ProjectHookEvent = "releases_events" | ||
ProjectHookEventEmoji ProjectHookEvent = "emoji_events" | ||
ProjectHookEventResourceAccessToken ProjectHookEvent = "resource_access_token_events" | ||
) |
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.
Can you move this to (the correct ordered location) in types.go
? Thanks!
Hi, thanks for your comment, I changed as your suggestion. |
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.
Thanks @bearx3f 👍🏻
Do you have any updates on its release schedule? |
Released |
Thank you very much. I truly appreciate it. |
From GitLab 17.0+ they add "Trigger a test project hook" to test project's hook