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

Fix Issue #2 #4

Merged
merged 1 commit into from
Aug 25, 2024
Merged

Fix Issue #2 #4

merged 1 commit into from
Aug 25, 2024

Conversation

cropalato
Copy link
Owner

feat(README.md): add support for project-specific webhook_token in configuration to allow defining webhook tokens at project level
feat(README.md): update README with information about the webhook_token field in project configuration
feat(conf.go): add WebHookToken field to ApprovRule struct to support defining webhook tokens at project level
feat(conf.go): add WebHookToken field to Config struct to support defining a global webhook token
feat(conf_test.go): update test data to include webhook_token field in project configuration
feat(webservices.go): add logic to handle and validate X-Gitlab-Token header in PostApproval endpoint
feat(webservices.go): add support for using project-specific webhook token in PostApproval endpoint logic
feat(webservices.go): add support for using global webhook token if project-specific token is not defined in PostApproval endpoint logic

…nfiguration to allow defining webhook tokens at project level

feat(README.md): update README with information about the webhook_token field in project configuration
feat(conf.go): add WebHookToken field to ApprovRule struct to support defining webhook tokens at project level
feat(conf.go): add WebHookToken field to Config struct to support defining a global webhook token
feat(conf_test.go): update test data to include webhook_token field in project configuration
feat(webservices.go): add logic to handle and validate X-Gitlab-Token header in PostApproval endpoint
feat(webservices.go): add support for using project-specific webhook token in PostApproval endpoint logic
feat(webservices.go): add support for using global webhook token if project-specific token is not defined in PostApproval endpoint logic
@cropalato cropalato self-assigned this Aug 25, 2024
@cropalato cropalato linked an issue Aug 25, 2024 that may be closed by this pull request
@cropalato cropalato merged commit dc6676e into main Aug 25, 2024
3 checks passed
@cropalato cropalato deleted the issue_2 branch August 25, 2024 23:50
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.

Validate webhook call
1 participant