-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Feat(alerts): webhook alert + messenger proxy support #2603
Open
FMotalleb
wants to merge
16
commits into
semaphoreui:develop
Choose a base branch
from
FMotalleb:feat/generic-webhook
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+141
−52
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
supporting slack, rocketchat, teams, telegram, dingtalk, gotify
xximwon
approved these changes
Dec 2, 2024
xximwon
approved these changes
Dec 2, 2024
FMotalleb
changed the title
Feat(alerts): webhook alert
Feat(alerts): webhook alert + messenger proxy support
Dec 2, 2024
xximwon
approved these changes
Dec 10, 2024
xximwon
approved these changes
Dec 15, 2024
Hello, Can you provide an example to use a webhook, please? Thank you. |
Hi!, @anardil SEMAPHORE_ALERT_WEBHOOK_ADDRESS="https://<your-n8n-instance>/webhook/semaphore-alerts"
SEMAPHORE_ALERT_WEBHOOK_HEADERS='{"Authorization": "Basic <your-base64-encoded-credentials>"}' In this setup:
the body looks like this {
"task": {
"id": 57,
"template_id": 3,
"project_id": 1,
"status": "success",
"debug": false,
"dry_run": false,
"diff": false,
"playbook": "",
"environment": "{}",
"limit": "",
"secret": "{}",
"arguments": null,
"git_branch": null,
"user_id": 1,
"integration_id": null,
"schedule_id": null,
"created": "2024-12-01T07:59:12.373491465Z",
"start": "2024-12-01T07:59:12.942863215Z",
"end": null,
"message": "",
"commit_hash": null,
"commit_message": "",
"build_task_id": null,
"version": null,
"inventory_id": null,
"params": {}
},
"template": {
"id": 3,
"project_id": 1,
"inventory_id": 3,
"repository_id": 1,
"environment_id": 1,
"name": "Docker Cleanup",
"playbook": "docker/prune.yaml",
"arguments": "[]",
"allow_override_args_in_task": false,
"description": null,
"vaults": [],
"type": "",
"start_version": null,
"build_template_id": null,
"view_id": null,
"last_task": {
"id": 57,
"template_id": 3,
"project_id": 1,
"status": "waiting",
"debug": false,
"dry_run": false,
"diff": false,
"playbook": "",
"environment": "{}",
"limit": "",
"secret": "",
"arguments": null,
"git_branch": null,
"user_id": 1,
"integration_id": null,
"schedule_id": null,
"created": "2024-12-01T07:59:12.373491Z",
"start": null,
"end": null,
"message": "",
"commit_hash": null,
"commit_message": "",
"build_task_id": null,
"version": null,
"inventory_id": null,
"params": {},
"tpl_playbook": "docker/prune.yaml",
"tpl_alias": "Docker Cleanup",
"tpl_type": "",
"tpl_app": "ansible",
"user_name": "Admin",
"build_task": null
},
"autorun": false,
"git_branch": null,
"survey_vars": null,
"suppress_success_alerts": false,
"app": "ansible",
"tasks": 20,
"task_params": null
},
"inventory": {
"id": 3,
"name": "all-servers",
"project_id": 1,
"inventory": "inventory.yaml",
"ssh_key_id": 2,
"become_key_id": null,
"type": "file",
"holder_id": null,
"repository_id": 1
},
"repository": {
"id": 1,
"name": "_",
"project_id": 1,
"git_url": "_",
"git_branch": "main",
"ssh_key_id": 2
},
"environments": {
"id": 1,
"name": "Empty",
"project_id": 1,
"password": null,
"json": "{}",
"env": null,
"secrets": null
}
} |
xximwon
approved these changes
Dec 23, 2024
xximwon
approved these changes
Dec 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a non-breaking change and follows #2601, including its changes.
Summary of Changes
This is not a breaking update, but it introduces 4 additional configuration items.
New Configuration Options
Please review the updates, and let me know if further adjustments are needed.