Skip to content

Subscriptions accept labels that don’t exist in the project #603

@arush-vashishtha

Description

@arush-vashishtha

When adding a GitLab subscription with a label feature, the plugin does not check if the label actually exists in the project. The subscription is still created even when the label is invalid.

Steps to Reproduce:-

Set up GitLab with Mattermost.
Run /gitlab subscriptions add owner[/repo] issues,merges,label:"label1" (where label1 does not exist in the project)
The subscription is created without error.

Expected behavior
The plugin should validate that the label exists in the project. If the label does not exist, the subscription should not be created, and an error message should be returned.

Observed behavior
The subscription is created successfully even though the label does not exist in the project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions