0
0
Fork 0
mirror of https://github.com/healthchecks/healthchecks.git synced 2025-04-04 21:05:26 +00:00

Replace "Slack integration" with "{site_name} integration for Slack"

This commit is contained in:
Pēteris Caune 2023-11-03 09:07:58 +02:00
parent 97ec5c6ee0
commit d7a2e24ccf
No known key found for this signature in database
GPG key ID: E28D7679E9A9EDE2
6 changed files with 22 additions and 21 deletions

View file

@ -31,7 +31,7 @@ class AddSlackCompleteTestCase(BaseTestCase):
self.client.login(username="alice@example.org", password="password")
r = self.client.get(url, follow=True)
self.assertRedirects(r, self.channels_url)
self.assertContains(r, "The Slack integration has been added!")
self.assertContains(r, "Success, integration added!")
ch = Channel.objects.get()
self.assertEqual(ch.slack_team, "foo")

View file

@ -1595,7 +1595,8 @@ def add_slack_complete(request: AuthenticatedHttpRequest) -> HttpResponse:
channel.value = result.text
channel.save()
channel.assign_all_checks()
messages.success(request, "The Slack integration has been added!")
messages.success(request, "Success, integration added!")
return redirect("hc-channels", project.code)

View file

@ -522,8 +522,8 @@ its web UI and documentation.</p>
it needs to construct absolute URLs.</p>
<h2 id="SLACK_CLIENT_ID"><code>SLACK_CLIENT_ID</code></h2>
<p>Default: <code>None</code></p>
<p>The Slack Client ID, used by the Slack integration.</p>
<p>The Slack integration can work with or without the Slack Client ID. If
<p>The Slack Client ID, used by the Healthchecks integration for Slack.</p>
<p>The integration can work with or without the Slack Client ID. If
the Slack Client ID is not set, in the "Integrations - Add Slack" page,
Healthchecks will ask the user to provide a webhook URL for posting notifications.</p>
<p>If the Slack Client <em>is</em> set, Healthchecks will use the OAuth2 flow
@ -543,7 +543,7 @@ and create a <em>Slack app</em>. When setting up the Slack app, make sure to:</p
Look it up at <a href="https://api.slack.com/apps/">https://api.slack.com/apps/</a>.</p>
<h2 id="SLACK_ENABLED"><code>SLACK_ENABLED</code></h2>
<p>Default: <code>True</code></p>
<p>A boolean that turns on/off the Slack integration. Enabled by default.</p>
<p>A boolean that turns on/off the Healthchecks integration for Slack. Enabled by default.</p>
<h2 id="SPIKE_ENABLED"><code>SPIKE_ENABLED</code></h2>
<p>Default: <code>True</code></p>
<p>A boolean that turns on/off the Spike.sh integration. Enabled by default.</p>

View file

@ -760,9 +760,9 @@ it needs to construct absolute URLs.
Default: `None`
The Slack Client ID, used by the Slack integration.
The Slack Client ID, used by the Healthchecks integration for Slack.
The Slack integration can work with or without the Slack Client ID. If
The integration can work with or without the Slack Client ID. If
the Slack Client ID is not set, in the "Integrations - Add Slack" page,
Healthchecks will ask the user to provide a webhook URL for posting notifications.
@ -788,7 +788,7 @@ Look it up at [https://api.slack.com/apps/](https://api.slack.com/apps/).
Default: `True`
A boolean that turns on/off the Slack integration. Enabled by default.
A boolean that turns on/off the Healthchecks integration for Slack. Enabled by default.
## `SPIKE_ENABLED` {: #SPIKE_ENABLED }

View file

@ -1,7 +1,7 @@
{% extends "base_project.html" %}
{% load humanize static hc_extras %}
{% block title %}Slack Integration for {{ site_name }}{% endblock %}
{% block title %}{{ site_name }} Integration for Slack{% endblock %}
{% block content %}
<div class="row">

View file

@ -1,10 +1,10 @@
{% extends "base_project.html" %}
{% load humanize static hc_extras %}
{% block title %}Slack Integration for {{ site_name }}{% endblock %}
{% block title %}{% site_name %} Integration for Slack{% endblock %}
{% block description %}
<meta name="description" content="Use {{ site_name }} with Slack: configure {{ site_name }} to post status updates directly to a Slack channel.">
<meta name="description" content="Use {% site_name %} with Slack: configure {% site_name %} to post status updates directly to a Slack channel.">
{% endblock %}
{% block content %}
@ -14,7 +14,7 @@
<div class="jumbotron">
{% if request.user.is_authenticated %}
<p>If your team uses <a href="https://slack.com/">Slack</a>, you can set
up {{ site_name }} to post status updates directly to an appropriate
up {% site_name %} to post status updates directly to an appropriate
Slack channel.</p>
{% if authorize_url %}
@ -30,11 +30,11 @@
{% else %}
<p>
{{ site_name }} is a <strong>free</strong> and
{% site_name %} is a <strong>free</strong> and
<a href="https://github.com/healthchecks/healthchecks">open source</a>
service for monitoring your cron jobs, background processes and
scheduled tasks. Before adding Slack integration, please log into
{{ site_name }}:</p>
scheduled tasks. To set up a {% site_name %} integration for Slack, please
log into {% site_name %}:</p>
<div class="text-center">
<a href="{% url 'hc-login' %}"
@ -58,7 +58,7 @@
to the <strong>Integrations</strong> page,
and click on <strong>Add Integration</strong> next to the
Slack integration.
Slack icon.
</p>
</div>
<div class="col-sm-6">
@ -75,9 +75,9 @@
<span class="step-no"></span>
<p>
Click on the "Add to Slack" button, and you should
be on a page that says "{{ site_name }} would like access to
be on a page that says "{% site_name %} would like access to
your Slack team". Select the team you want to add the
{{ site_name }} integration app to.
{% site_name %} integration app to.
</p>
</div>
<div class="col-sm-6">
@ -92,9 +92,9 @@
<div class="col-sm-6">
<span class="step-no"></span>
<p>
You should now be on a page that says "{{ site_name }} would
You should now be on a page that says "{% site_name %} would
like access to <i>TEAM NAME</i>". Select the channel you want to
post {{ site_name }} notifications to.
post {% site_name %} notifications to.
</p>
</div>
<div class="col-sm-6">
@ -110,7 +110,7 @@
<span class="step-no"></span>
<p>
That is all! You will now be redirected back to
"Integrations" page on {{ site_name }} and see
"Integrations" page on {% site_name %} and see
the new integration!
</p>
</div>