Skip to content

Commit

Permalink
Move assets to new directory (docs/images). Update project files with…
Browse files Browse the repository at this point in the history
… new directory
  • Loading branch information
kat-kan committed Oct 26, 2023
1 parent 84a4030 commit 9d24874
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 5 deletions.
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"homepage_url": "https://github.com/mattermost/mattermost-plugin-bitbucket",
"support_url": "https://github.com/mattermost/mattermost-plugin-bitbucket/issues",
"release_notes_url": "https://github.com/mattermost/mattermost-plugin-bitbucket/releases/tag/v1.1.1",
"icon_path": "assets/icon.svg",
"icon_path": "docs/images/icon.svg",
"version": "1.1.1",
"min_server_version": "5.37.0",
"server": {
Expand Down
2 changes: 1 addition & 1 deletion server/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func validateFeatures(features []string) (bool, []string) {
}

func (p *Plugin) getCommand() (*model.Command, error) {
iconData, err := command.GetIconData(p.API, "assets/icon.svg")
iconData, err := command.GetIconData(p.API, "docs/images/icon.svg")
if err != nil {
return nil, errors.Wrap(err, "failed to get icon data")
}
Expand Down
2 changes: 1 addition & 1 deletion server/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const manifestStr = `
"homepage_url": "https://github.com/mattermost/mattermost-plugin-bitbucket",
"support_url": "https://github.com/mattermost/mattermost-plugin-bitbucket/issues",
"release_notes_url": "https://github.com/mattermost/mattermost-plugin-bitbucket/releases/tag/v1.1.1",
"icon_path": "assets/icon.svg",
"icon_path": "docs/images/icon.svg",
"version": "1.1.1",
"min_server_version": "5.37.0",
"server": {
Expand Down
2 changes: 1 addition & 1 deletion server/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func (p *Plugin) OnActivate() error {
return errors.Wrap(err, "couldn't get bundle path")
}

profileImage, err := os.ReadFile(filepath.Join(bundlePath, "assets", "profile.png"))
profileImage, err := os.ReadFile(filepath.Join(bundlePath, "docs/images", "profile.png"))
if err != nil {
return errors.Wrap(err, "couldn't read profile image")
}
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const manifest = JSON.parse(`
"homepage_url": "https://github.com/mattermost/mattermost-plugin-bitbucket",
"support_url": "https://github.com/mattermost/mattermost-plugin-bitbucket/issues",
"release_notes_url": "https://github.com/mattermost/mattermost-plugin-bitbucket/releases/tag/v1.1.1",
"icon_path": "assets/icon.svg",
"icon_path": "docs/images/icon.svg",
"version": "1.1.1",
"min_server_version": "5.37.0",
"server": {
Expand Down

0 comments on commit 9d24874

Please sign in to comment.