Skip to content

Commit

Permalink
use example.org over .com
Browse files Browse the repository at this point in the history
  • Loading branch information
HarHarLinks committed Nov 26, 2021
1 parent 5a33b55 commit 147ab2a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/ansible-tower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"token": "your-appservice-webhooks-token",
"url": "https://matrix.example.com/appservice-webhooks/api/v1/matrix/hook/",
"url": "https://matrix.example.org/appservice-webhooks/api/v1/matrix/hook/",
"displayName": "AWX",
"avatar": "https://avatars.githubusercontent.com/u/1507452?s=200&v=4",
"template": "<strong>{{ name }}</strong> (<a href=\"{{ url }}\">Job #{{ id }}</a>) of project <strong>{{ project }}</strong><br>on inventory <strong>{{ inventory }}</strong> with credential {{ credential }}<br>started {{ started }}{% if finished is not None %} - finished {{ finished }}{% endif %} status <strong>{{ status }}</strong><br>{% if hosts is defined %}<ul>{% for name,properties in hosts.items() %}<li>{{ name }}: {% for p,v in properties %}{{ p }}: {{ v }},{% endfor %}</li>{% endfor %}</ul>{% endif %}",
Expand Down
2 changes: 1 addition & 1 deletion examples/github.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"token": "your-appservice-webhooks-token",
"url": "https://matrix.example.com/appservice-webhooks/api/v1/matrix/hook/",
"url": "https://matrix.example.org/appservice-webhooks/api/v1/matrix/hook/",
"displayName": "GitHub",
"avatar": "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png",
"template": "{% if pusher is defined or release is defined or discussion is defined or issue is defined or hook is defined or pull_request is defined %}<strong><a href=\"{{ repository.html_url }}\">{{ repository.full_name }}</a></strong><br>{% if pusher is defined %}{% if sender.login == pusher.name %}<a href=\"{{ sender.html_url }}\">{{ sender.login }}</a>{% else %}{{ pusher.name }}{% endif %}{% if forced %} force{% endif %} <strong>pushed to {{ ref }}</strong>:<br><ul>{% for c in commits %}<li>{{ c.author.name }}: <a href=\"{{ c.url }}\">{{ c.message }}</a></li>{% endfor %}</ul>{% elif release is defined %}{% if sender.id == release.author.id %}<a href=\"{{ sender.html_url }}\">{{ sender.login }}</a>{% else %}{{ release.author.name }}{% endif %} <strong>{{ action }} <a href=\"{{ release.html_url }}\">{{ release.tag_name }}</a></strong>{% if prerelease %} (prerelease){% endif %} based on {{ release.target_commitish }}<br>{% elif discussion is defined %}<a href=\"{{ discussion.user.html_url }}\">{{ discussion.user.login }}</a> {{ action }} <strong>discussion </strong><a href=\"{{ discussion.html_url }}\"><strong>#{{ discussion.number }}</strong> {{ discussion.title }}</a> [{{ state }}]{% if discussion.answer_html_url %} (<a href=\"{{ discussion.answer_html_url }}\">go to answer</a>){% endif %}<br>{% elif issue is defined %}{% if comment is defined %}<a href=\"{{ comment.user.html_url }}\">{{ comment.user.login }}</a>{% else %}<a href=\"{{ issue.user.html_url }}\">{{ issue.user.login }}</a>{% endif %} {{action}}{% if action in ['assigned', 'unassigned'] %} <a href=\"{{ issue.assignee.html_url }}\">{{ issue.assignee.login }}</a> to{% elif comment is defined %} a <a href=\"{{ comment.html_url }}\">comment</a> on {% endif %} <strong>issue </strong><a href=\"{{ issue.html_url }}\"><strong>#{{ issue.number }}</strong> {{ issue.title }} [{{ issue.state }}]</a>{% if action in ['labeled', 'unlabeled'] %} <font color=\"#{{ issue.label.color }}\">{{ issue.label.name }}</font>{% endif %}<br>{% elif hook is defined %}{% if action == 'deleted' %}<a href=\"{{ sender.html_url }}\">{{ sender.login }}</a> {{ action }} webhook \"{{ hook.name }}\"<br>{% elif zen is defined %}<a href=\"{{ sender.html_url }}\">{{ sender.login }}</a> created webhook \"{{ hook.name }}\"<br>{{ zen }}<br>{% elif pull_request is defined %}{% if review is defined %}<a href=\"{{ review.user.html_url }}\">{{ review.user.login }}</a> {{ action }} a <href=\"{{ review.html_url }}\">review</a> of{% elif comment is defined %}<a href=\"{{ comment.user.html_url }}\">{{ comment.user.login }}</a> {{ action }} a <href=\"{{ comment.html_url }}\">comment to a review</a> of{% else %}<a href=\"{{ pull_request.user.html_url }}\">{{ pull_request.user.login }}</a> {{ action }} {% if merged is sameas true %}(merged) {% endif %}{% endif %}<strong><a href=\"{{ pull_request.html_url }}\">PR #{{ pull_request.number }}</a> {{ pull_request.title }} [{{ pull_request.state }}]<br>{% endif %}{% endif %}{% endif %}",
Expand Down
2 changes: 1 addition & 1 deletion examples/gitlab.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"token": "your-appservice-webhooks-token",
"url": "https://matrix.example.com/appservice-webhooks/api/v1/matrix/hook/",
"url": "https://matrix.example.org/appservice-webhooks/api/v1/matrix/hook/",
"displayName": "GitLab",
"avatar": "https://i.gyazo.com/thumb/1000/566debcae9702858a0ae487543e58123-png.png",
"template": "<strong><a href=\"{{ repository.homepage }}\">{{ repository.name }}</a></strong><br>received a {{ event_name }} event from {{ user_name }}<br>{% if event_name == \"push\" %}updates on {{ ref }}:<br><ul>{% for c in commits %}<li>{{ c.author.name }}: {{ c.title }}</li>{% endfor %}</ul>{% endif %}",
Expand Down
2 changes: 1 addition & 1 deletion examples/grafana.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"token": "your-appservice-webhooks-token",
"url": "https://matrix.example.com/appservice-webhooks/api/v1/matrix/hook/",
"url": "https://matrix.example.org/appservice-webhooks/api/v1/matrix/hook/",
"displayName": "Grafana",
"avatar": "https://grafana.com/static/img/about/grafana_logo_swirl_fullcolor.jpg",
"template": "<strong>{{ title }}</strong><br>{{ message }}<br><a href=\"{{ ruleUrl }}\">{{ ruleName }}</a>: {{ state }}<br><ul>{% for e in evalMatches %}<li>{{ e.metric }}: {{ e.value }} ({{ e.tags }})</li>{% endfor %}</ul>",
Expand Down

0 comments on commit 147ab2a

Please sign in to comment.