-
Notifications
You must be signed in to change notification settings - Fork 45
Conversation
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.
Nice one 👍
Hi @scottleedavis! Just so I can understand better, what version of Go are you using? You can find out by running I've cloned the project and ran into some issues running
Running After doing that, I receive these errors from
Let's dissect these errors
The API for this has changed a bit, as you point out, it's common to use https://github.com/mattermost/mattermost-plugin-api now for things like this. In order to use this library, you'll need to import it, and instantiate a client like so: https://github.com/mattermost/mattermost-plugin-github/blob/757c9c1b18713035e3216ec96b6be1453a4c7478/server/plugin/plugin.go#L220 Then you can have access to the methods on the new client, such as bot := &model.Bot{
Username: botUserName,
DisplayName: botDisplayName,
}
p.client.Bot.EnsureBot(bot, pluginapi.ProfileImagePath("assets/icon.png")) Another error:
Instead of using these functions that no longer exist you'll need to manually unmarshal into locally declared |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #224 +/- ##
===========================================
+ Coverage 0 69.08% +69.08%
===========================================
Files 0 11 +11
Lines 0 3254 +3254
===========================================
+ Hits 0 2248 +2248
- Misses 0 736 +736
- Partials 0 270 +270
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
thank you for your help @mickmister ! |
gofmt, go vet, changes