mattermost / mattermost/mattermost-plugin-github
[BUG] Plugin tries connection for non-connected users
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 179
- Forks
- 180
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 13
Description
We are seeing an error in which the plugin is trying to connect users who haven't initiated the connection with slash command (/github connect) in our Grafana
{"MESSAGE":"error [2026-04-15 09:46:00.836 +02:00] failed to get GitHub user info
caller=\"app/plugin_api.go:1127\"
plugin_id=github
error=\"Must connect user account to GitHub first.\"
userid=[REDACTED]"
[....]}
Should it be trying this in the background for people who don't want to connect/haven't connected their user accounts?
Or is this error someone who tried to connect an account than either disconnected it or didn't finish the connection?
Either way, it's generating a lot of errors and API calls.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at app/plugin_api.go:1127, where the logged failure to get GitHub user info occurs, and trace the background callers that reach it for users without a completed /github connect flow. Reproduce the behavior with an unconnected user and inspect the resulting API calls and errors. Done means the unintended attempts and noisy errors are addressed, with relevant tests updated or added.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github, go
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100