-
Notifications
You must be signed in to change notification settings - Fork 166
Fixed default repo functionality and improve mute user functionality #938
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@wiggin77 Gentle reminder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes default repository functionality in the GitHub plugin and improves user muting validation. The changes enhance the repository selector component to properly handle default repositories and fix username validation during the mute user process.
- Fixed default repository selection logic in the GitHub repository selector component
- Enhanced user mute functionality with proper username validation and error handling
- Updated API endpoints to support channel-specific default repository retrieval
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| webapp/src/components/github_repo_selector/index.js | Added currentChannelId to component props for channel-specific operations |
| webapp/src/components/github_repo_selector/github_repo_selector.jsx | Refactored repository selection logic to handle default repositories and improved component state management |
| webapp/src/client/client.ts | Updated API method signature to include channelId parameter for repository queries |
| webapp/src/actions/index.ts | Modified action to pass channelId parameter to repository API calls |
| server/plugin/command.go | Enhanced username validation with proper error handling for GitHub API responses |
| server/plugin/api.go | Extended repository API endpoint to support default repository retrieval and channel-specific queries |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
@wiggin77 I have replied to the review comments by copilot |
|
@wiggin77 Thanks for helping with the changes |
|
@Yash-Chakerverti Please test this PR |
Yash-Chakerverti
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is tested for the following scenarios and working fine:-
- Only the Valid users are being muted
- Only the users present in mute list can be deleted from mute list
- Upon selecting the default repo and running the slash command for creating an issue the repository field is being preselected.
LGTM, Approved.
Summary
Ticket Link
Fixes #933