MergeMe logoMergeMe
Published on

Move GitLab Slack Alerts Before Archiving a Channel

Authors
  • Name
    Maruan

To move GitLab Slack alerts safely, change the channel names in the GitLab for Slack app first, prove the new channel receives a real merge request notification, confirm the old channel is gone from every scope, and only then archive it in Slack.

Order matters because archiving doesn't reroute anything. GitLab keeps a channel name in its trigger settings until you edit it, so an archived channel can sit in a project or group configuration and swallow alerts with no visible error on the GitLab side. This runbook covers the native GitLab for Slack app only. It's built for maintainers and platform leads retiring, merging or archiving a channel that receives merge request alerts, on GitLab.com or self-managed. The sample channels below (#mr-alerts-old and #mr-alerts-new) are placeholders for your own.

Short answer: change the destination first, archive second

Re-point first, archive second. Edit the trigger channels where the GitLab for Slack app is configured, send a test, check the old channel is no longer listed anywhere, then archive.

The four steps in order:

  1. Find the scope (project, subgroup or group) where the merge request trigger is actually set.

  2. Replace the old channel name with the new one and make sure the app can post there.

  3. Open and merge a disposable merge request and watch the new channel.

  4. Confirm no scope still lists the old channel, then archive it in Slack.

Slack's own guidance describes archiving as the step for a channel that is no longer needed. Treat that as the last step of your move, not the first.

Find where the alert is configured: project, subgroup or group

The alert lives wherever the GitLab for Slack app was installed and its triggers were saved. That can be a top-level group, a subgroup or a single project, since the app can be installed at any of those levels.

This is the step people skip, and it's where moves go wrong. Group-level settings apply to subgroups and projects that don't have their own configuration, but a project with its own settings keeps them. So the project you're looking at may inherit the old channel from a group, or it may override the group with a channel of its own.

Work top down:

  • Open the group's Settings > Integrations > GitLab for Slack app and note which channel each event points to.

  • Repeat for each subgroup that matters.

  • Then open the individual projects whose merge requests post to the old channel and check whether they use inherited settings or custom ones.

Write down every scope that mentions the old channel. You'll need that list again in the verification step.

Point alerts at the new channel and check the app can post there

In each scope you listed, open the app settings, find the merge request event under the trigger section, and replace the old channel name with the new one. The app lets you set a channel per event, and an event can list several channels separated by commas. If you want an overlap period, add the new channel first and remove the old one after testing.

Two checks before you save:

  • Private channels need the app added. To receive notifications in a private Slack channel, add the GitLab for Slack app to that channel first. In Slack, mention the app in the channel and add it, or use the channel's integrations settings. Skipping this is the most common reason a correctly typed channel name stays silent.

  • Spell the channel exactly. Use the channel name as Slack shows it, with no typo and no trailing space. A wrong name looks identical to a right one until the test fails.

If your team still has the older Slack notifications integration enabled, GitLab describes it as deprecated and hides it under certain conditions once the app is installed. If alerts arrive from a second source after the move, check that before you blame the new channel. For a related setup error, see GitLab Slack alias already taken.

Test with a disposable merge request before you archive

A saved setting isn't proof of delivery. Run a real merge request through the project and watch the new channel.

Create a throwaway branch in a project that posts to the new channel, change one line in a scratch file, and open a merge request titled something obvious like "DELETE ME: alert routing test". Then:

  1. Confirm a notification for the opened merge request appears in #mr-alerts-new.

  2. Approve it or add a comment, if those events are enabled for the channel, and confirm they arrive too.

  3. Merge or close it and confirm that event as well.

  4. Confirm nothing new arrives in #mr-alerts-old.

If the new channel stays quiet, check in this order: the channel name spelling, whether the app was added to a private channel, and whether a project-level setting is overriding the group value you just edited. Repeat the test in at least one project per scope you changed, since inheritance differences only show up per project.

If you hit a delivery error rather than silence on self-managed, GitLab Slack dispatch_failed covers the usual checks.

Confirm the old channel is gone from every scope, then archive

Go back to the list you made in the first step and re-open every scope. Confirm the old channel no longer appears in any event field. That includes events other than merge requests, such as pipelines or issues, which may have shared the same destination. If a project inherits group settings, check that the group value is the new one. If it has custom settings, check those separately.

Only when the list is clean should you archive. In Slack, members can archive a channel by default, though Workspace Owners and Org Owners can restrict who may do it, and the #general channel can't be archived. Archive rather than delete if there's any chance you'll want the history. Slack allows an archived channel to be unarchived later, which makes archiving the reversible choice.

After archiving, run one more disposable merge request. It costs two minutes and catches the project you forgot.

Already archived? Recover, and when rolling back needs an active channel

If the channel was archived before you re-pointed the alerts, edit the GitLab settings now and treat the gap as lost. The fix is the same as above: set the new channel in the effective scope and run the disposable test.

The fallback depends on what you want to do:

  • Keep the new channel. Re-point every scope to it, test, and leave the archived channel alone.

  • Roll back to the old channel. Unarchive it in Slack first. Slack provides an unarchive option for channels you archived. Rolling back needs an active channel. If the channel was deleted instead of archived, it can't come back, so pick a new destination.

After an unarchive, re-check that the app is still a member if the channel is private, then repeat the test. Don't assume the previous configuration still works just because the name matches.

Some teams want alerts to live in one place per merge request instead of a stream of separate messages, and use this moment to review how notifications are delivered. MergeMe shows each GitLab merge request in Slack as one card that updates in place, which is a different model from the native app's per-event messages. That's optional and separate from the move itself.

What this will not do: replay, old threads and uninterrupted delivery

Moving the destination changes where future alerts go. It doesn't do three things you might hope for.

  • No replay. Merge request events that fired while the old channel was archived or misconfigured are not re-sent to the new channel.

  • No thread moves. Existing conversations stay in the old channel. Archiving keeps them readable there, but they don't migrate.

  • No gap-free delivery. Between your edit and your first successful test, a merge request event can land on either side or on neither. If the gap matters, add the new channel alongside the old one first, test, and remove the old one afterwards.

Set expectations with your team before you start. Announce the new channel, point people to the old one for history, and archive it once the verification is clean.

Re-point, test with a throwaway MR, then archive

Archiving is safe only after the destination has changed and a real merge request has proven it. Do the scope audit, run the disposable test in each scope, and archive last. If your team wants one updating card per merge request in the new channel instead of separate event messages, try MergeMe's free Hobby plan with GitLab.com or self-hosted GitLab and point it at the channel you just set up.

FAQs

How do I move GitLab Slack alerts to a different channel?

Open the GitLab for Slack app settings at the project, subgroup or group where the trigger is configured, replace the old channel name with the new one for each event, save, and test with a disposable merge request. Add the app to the channel first if it is private. Archive the old channel only after the test passes.

What happens to GitLab Slack alerts if I archive the channel first?

Nothing reroutes automatically. GitLab keeps the old channel name in its trigger settings until you edit it, so alerts for that scope have nowhere useful to land. Edit the settings to a new channel, run a test merge request, and treat events from the gap as not replayed.

Why does my new Slack channel not receive GitLab merge request alerts?

The usual causes are a misspelled channel name, a private channel the GitLab for Slack app has not been added to, or a project-level setting overriding the group value you changed. Check each in that order, then repeat the disposable merge request test in that project.

Can I roll back to an archived Slack channel?

Yes, if it was archived rather than deleted. Slack lets you unarchive a channel, after which you can point GitLab at it again and re-test. A deleted channel cannot be restored, so choose a new destination. MergeMe users who prefer one updating card per merge request can run that alongside whichever channel you keep.