Skip to content

[Enhancement] [Slack]: Allow setting default repo per channel via channel description #19

Open

Description

@neubig

Feature Request

Problem

When using the Slack integration, users must select a repository for each new conversation. This is tedious when a channel is dedicated to a specific project/repo.

Proposed Solution

Allow users to set a default repository for a Slack channel by adding repo:{org}/{repo} (e.g., repo:OpenHands/OpenHands) in the channel description (purpose field).

Priority order for repository selection:

  1. If a repo is explicitly mentioned in the user's message → use that repo
  2. If no repo mentioned but channel has repo:{org}/{repo} in description → use that as default
  3. Otherwise → show the repo selection form (current behavior)

Additional Improvement

Add the selected repository to the "I'm on it!" response message to make it clear which repo is being used:

  • Current: I'm on it! @user can [track my progress here](link).
  • Proposed: I'm on it! Working on **{org}/{repo}**. @user can [track my progress here](link).

Implementation Details

1. Add new OAuth scope:
The Slack app needs channels:read scope (and optionally groups:read for private channels) to call the conversations.info API.

Files to update:

  • enterprise/integrations/slack/slack_manager.py (line 41)
  • enterprise/server/routes/integration/slack.py (line 47)

Note: Existing Slack app installations will need to re-authorize to gain the new permission.

2. Add helper to get channel description:
Use client.conversations_info(channel=channel_id) to retrieve the channel's purpose.value field.

3. Parse repo from description:
Add regex pattern to match repo:{org}/{repo} in the channel purpose/description.

4. Update repo selection logic:
In SlackManager.is_job_requested(), before showing the repo selection form, check if there's a default repo from the channel description.

5. Update response messages:
Modify get_response_msg() methods in:

  • SlackNewConversationView (line ~334)
  • SlackUpdateExistingConversationView (line ~526)

Related Files

  • enterprise/integrations/slack/slack_manager.py
  • enterprise/integrations/slack/slack_view.py
  • enterprise/server/routes/integration/slack.py

Acceptance Criteria

  • Add channels:read scope to Slack OAuth
  • Implement channel description parsing for repo:{org}/{repo} pattern
  • Use default repo when no repo is mentioned in message
  • Update "I'm on it!" message to include the selected repo
  • Add unit tests for the new functionality
  • Document the feature in relevant docs

Activity

  1. github-actions commented on Mar 25, 2026

    @github-actions
    Contributor

    This issue is stale because it has been open for 40 days with no activity. Remove the stale label or leave a comment, otherwise it will be closed in 10 days.

  2. added
    enhancement
    on Mar 25, 2026
  3. github-actions commented on May 5, 2026

    @github-actions
    Contributor

    This issue is stale because it has been open for 40 days with no activity. Remove the stale label or leave a comment, otherwise it will be closed in 10 days.

  4. VinSpee commented on May 8, 2026

    @VinSpee

    I ran into this issue today and found it quite surprising that I needed to select the repo and owner for every time I open an issue. This would be a very useful feature for our team

  5. neubig commented on May 8, 2026

    @neubig
    MemberAuthor

    Thanks @VinSpee ! Taking a note that I'm not the only one :)

  6. changed the title [-]Slack Integration: Allow setting default repo per channel via channel description[/-] [+][Enhancement] [Slack]: Allow setting default repo per channel via channel description[/+] on Jun 10, 2026
  7. github-actions commented on Jul 21, 2026

    @github-actions
    Contributor

    This issue is stale because it has been open for 40 days with no activity. Remove the stale label or leave a comment, otherwise it will be closed in 10 days.

  8. transferred this issue fromOpenHands/OpenHandson Jul 27, 2026
  9. all-hands-bot commented on Sep 4, 2026

    @all-hands-bot
    Contributor

    [Automatic Post]: This issue has had no activity for 39 days (labels: enhancement). Could someone take a look when they have a chance and help figure out next steps?

    Generated by OpenHands automation on behalf of the user.

  10. all-hands-bot commented on Oct 16, 2026

    @all-hands-bot
    Contributor

    [Automatic Post]: This issue has had no activity for 41 days (labels: enhancement). Could someone take a look when they have a chance and help figure out next steps?

    Generated by OpenHands automation on behalf of the user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions