{ "rules": [ { "name": "mention-notification", "event": "issue_comment", "condition": { "type": "mention", "value": "username" }, "recipients": ["{{mentioned_user}}"], "subject": "You were mentioned in {{full_repo}}#{{issue_number}}", "body": "Hi @{{mentioned_user}},\n\nYou were mentioned in issue #{{issue_number}} - {{issue_title}}\n\nRepository: {{full_repo}}\nComment by: {{sender}}\n\nComment:\n{{comment_body}}\n\n---\nThis is an automated notification from the Gogs webhook server." }, { "name": "push-to-main", "event": "push", "condition": { "type": "branch", "value": "main" }, "recipients": ["dev-team@example.com"], "subject": "Push to {{full_repo}}/{{branch}} by {{sender}}", "body": "New push to {{full_repo}} branch {{branch}}\n\nPusher: {{sender}}\nCommit: {{commit}}\nMessage: {{commit_msg}}\n\n---\nThis is an automated notification from the Gogs webhook server." }, { "name": "issue-assigned", "event": "issues", "condition": { "type": "action", "value": "assigned" }, "recipients": ["{{assignee}}"], "subject": "Issue assigned: {{full_repo}}#{{issue_number}}", "body": "Hi,\n\nYou have been assigned to issue #{{issue_number}} - {{issue_title}}\n\nRepository: {{full_repo}}\nAssigned by: {{sender}}\n\n---\nThis is an automated notification from the Gogs webhook server." }, { "name": "pr-opened", "event": "pull_request", "condition": { "type": "action", "value": "opened" }, "recipients": ["dev-team@example.com"], "subject": "New PR: {{full_repo}}#{{pr_number}}", "body": "New pull request opened in {{full_repo}}\n\nPR #{{pr_number}}: {{issue_title}}\nAuthor: {{sender}}\n\n---\nThis is an automated notification from the Gogs webhook server." } ] }