Note that the webhook will reuse the labels with the same name that already exist in the repository (including the color, so it can changed from the default value for new labels in GitHub, if needed). Also, the labels are replaced when the issue is updated, so any user-added labels will be removed.
value: '{EVENT.NSEVERITY}'
value: '{EVENT.SEVERITY}'
- name: event_update_nseverity
value: '{EVENT.UPDATE.NSEVERITY}'
- name: event_update_severity
value: '{EVENT.UPDATE.SEVERITY}'
- name: event_update_status
value: '{EVENT.UPDATE.STATUS}'
- name: github_api_version
- name: github_issue_number
value: '{EVENT.TAGS.__zbx_github_issue_number}'
value: '<PLACE GITHUB TOKEN>'
value: 'https://api.github.com'
- name: github_user_agent
- name: github_zabbix_event_priority_label_prefix
value: 'Zabbix Event Priority: '
- name: github_zabbix_event_source_label_prefix
value: 'Zabbix Event Source: '
- name: github_zabbix_event_status_label_prefix
value: 'Zabbix Event Status: '
- name: github_zabbix_generic_label
value: 'Zabbix GitHub Webhook'
const CLogger = function(serviceName) {
this.serviceName = serviceName;
this.log = function(level, msg) {
Zabbix.log(level, '[' + this.serviceName + '] ' + msg);
const CWebhook = function(value) {