mattermost / mattermost/mattermost-plugin-github

Create GitHub Issue does not respect organization lock

Open
#285 3 comments 0 reactions 1 assignee View on GitHub

@raghavaggarwal2308 is already working on this.

Since Dec 19, 2024.

Type/Question
Dominant language
Go
Stars
179
Forks
180
Avg merge
1d 16h
Merged PRs (30d)
13

Description

When the GitHub plugin is configured to be locked to an organization, this is not reflected in the create functionality. Users are still able to create issues in repos where they are owner, collaborators etc...
When the Organization is locked in the config, create should only allow connected users to create issues in this organization regardless of their individual permissions and memberships. This is already the case with the attach functionality.

Steps
- Lock the plugin to 1 Organization
- Connect as a user with permissions to create issues in multiple organizations
- Create a Github issue from a post

**Observed** Multiple orgs can be returned in the modal and the issue created

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.