Skip to content
代码片段 群组 项目
提交 fea2aa28 编辑于 作者: Ashraf Khamis's avatar Ashraf Khamis
浏览文件

Merge branch '391526-docs' into 'master'

Add docs for Slack app at group/instance level

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/142267



Merged-by: default avatarAshraf Khamis <akhamis@gitlab.com>
Approved-by: default avatarAshraf Khamis <akhamis@gitlab.com>
Reviewed-by: default avatarBojan Marjanovic <bmarjanovic@gitlab.com>
Co-authored-by: default avatarbmarjanovic <bmarjanovic@gitlab.com>
Co-authored-by: default avatarLuke Duncalfe <lduncalfe@eml.cc>
No related branches found
No related tags found
无相关合并请求
......@@ -70,6 +70,23 @@ You should see a list of available Slash commands.
To use Slash commands for a project, configure the [GitLab for Slack app](../../user/project/integrations/gitlab_slack_application.md) for the project.
## Install the GitLab for Slack app
> - Installation at the instance level [introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/391526) in GitLab 16.10.
Prerequisites:
- You must have the [appropriate permissions to add apps to your Slack workspace](https://slack.com/help/articles/202035138-Add-apps-to-your-Slack-workspace).
- You must [create a GitLab for Slack app](#create-a-gitlab-for-slack-app) and [configure the app settings](#configure-the-settings).
To install the GitLab for Slack app from the instance settings:
1. on the left sidebar, at the bottom, select **Admin Area**.
1. Select **Settings > Integrations**.
1. Select **GitLab for Slack app**.
1. Select **Install GitLab for Slack app**.
1. On the Slack confirmation page, select **Allow**.
## Update the GitLab for Slack app
Prerequisites:
......
......@@ -33,7 +33,7 @@ To resolve this issue, ensure:
- The project full path is correct.
- If using a [project alias](gitlab_slack_application.md#create-a-project-alias), the alias is correct.
- The GitLab for Slack app is [enabled for the project](gitlab_slack_application.md#from-project-integration-settings).
- The GitLab for Slack app is [enabled for the project](gitlab_slack_application.md#from-the-project-or-group-settings).
## Slash commands return `dispatch_failed` in Slack
......
......@@ -30,11 +30,13 @@ In GitLab 15.0 and later, the GitLab for Slack app uses
[granular permissions](https://medium.com/slack-developer-blog/more-precision-less-restrictions-a3550006f9c3).
Although functionality has not changed, you should [reinstall the app](#reinstall-the-gitlab-for-slack-app).
### From project integration settings
### From the project or group settings
To install the GitLab for Slack app from project integration settings:
> - Installation at the group level [introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/391526) in GitLab 16.10.
1. On the left sidebar, select **Search or go to** and find your project.
To install the GitLab for Slack app from the project or group settings:
1. On the left sidebar, select **Search or go to** and find your project or group.
1. Select **Settings > Integrations**.
1. Select **GitLab for Slack app**.
1. Select **Install GitLab for Slack app**.
......@@ -167,18 +169,29 @@ To receive notifications to a private Slack channel, you must add the GitLab for
The following GitLab events can trigger notifications in Slack:
| Event | Description |
|----------------------------------------------------------------------|---------------------------------------------------------------|
| Push | A push is made to the repository. |
| Issue | An issue is created, closed, or reopened. |
| Confidential issue | A confidential issue is created, closed, or reopened. |
| Merge request | A merge request is created, merged, closed, or reopened. |
| Note | A comment is added. |
| Confidential note | An internal note or comment on a confidential issue is added. |
| Tag push | A tag is pushed to the repository or removed. |
| Pipeline | A pipeline status changes. |
| Wiki page | A wiki page is created or updated. |
| Deployment | A deployment is started or finished. |
| [Incident](../../../operations/incident_management/slack.md) | An incident is created, closed, or reopened. |
| [Vulnerability](../../application_security/vulnerabilities/index.md) | A new, unique vulnerability is recorded. |
| Alert | A new, unique alert is recorded. |
| Event | Description |
|-----------------------------------------------------------------------|---------------------------------------------------------------|
| Push | A push is made to the repository. |
| Issue | An issue is created, closed, or reopened. |
| Confidential issue | A confidential issue is created, closed, or reopened. |
| Merge request | A merge request is created, merged, closed, or reopened. |
| Note | A comment is added. |
| Confidential note | An internal note or comment on a confidential issue is added. |
| Tag push | A tag is pushed to the repository or removed. |
| Pipeline | A pipeline status changes. |
| Wiki page | A wiki page is created or updated. |
| Deployment | A deployment is started or finished. |
| [Group mention](#trigger-notifications-for-group-mentions) in public | A group is mentioned in a public channel. |
| [Group mention](#trigger-notifications-for-group-mentions) in private | A group is mentioned in a private channel. |
| [Incident](../../../operations/incident_management/slack.md) | An incident is created, closed, or reopened. |
| [Vulnerability](../../application_security/vulnerabilities/index.md) | A new, unique vulnerability is recorded. |
| Alert | A new, unique alert is recorded. |
### Trigger notifications for group mentions
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/391526) in GitLab 16.10.
To trigger a [notification event](#notification-events) for a group mention, use `@<group_name>` in:
- Issue and merge request descriptions
- Comments on issues, merge requests, and commits
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册