generated from mattermost/mattermost-plugin-starter-template
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MM-23044: Bootstrap channel export plugin and add a dummy exporter (#1)
* Bootstrap channel export plugin - Delete the webapp directory, as for now, we only need the server part - Adapt plugin.json and regenerates server/manifest.go - Add mattermost-plugin-api dependency - Adapt README from the starter template * Set up the plugin structure and a dummy exporter - Ensure a bot when activating the plugin. - Add a command, /export, to export a channel. For the moment, it just outputs an empty JSON. * Use plugin-ci orb * Fix bot description Co-Authored-By: Jesse Hallam <[email protected]> * Reword autocomplete description Co-Authored-By: Jesse Hallam <[email protected]> * Remove unused code * Address PR minor comments - Make err handling more idiomatic - Rename exportCommandTrigger variable * Decouple communication to user and export process Co-authored-by: Jesse Hallam <[email protected]>
- Loading branch information
1 parent
8ff070d
commit e09ae7c
Showing
23 changed files
with
394 additions
and
16,654 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,53 @@ | ||
version: 2.1 | ||
executors: | ||
default: | ||
docker: | ||
- image: circleci/golang:1.14-node | ||
|
||
jobs: | ||
lint: | ||
executor: | ||
name: default | ||
steps: | ||
- checkout | ||
- run: make check-style | ||
|
||
test: | ||
executor: | ||
name: default | ||
steps: | ||
- checkout | ||
- run: make test | ||
orbs: | ||
plugin-ci: mattermost/plugin-ci@volatile | ||
|
||
workflows: | ||
version: 2 | ||
untagged-build: | ||
ci: | ||
jobs: | ||
- lint | ||
- test | ||
- plugin-ci/lint: | ||
filters: | ||
tags: | ||
only: /^v.*/ | ||
- plugin-ci/coverage: | ||
filters: | ||
tags: | ||
only: /^v.*/ | ||
- plugin-ci/build: | ||
filters: | ||
tags: | ||
only: /^v.*/ | ||
- plugin-ci/deploy-ci: | ||
filters: | ||
branches: | ||
only: master | ||
context: plugin-ci | ||
requires: | ||
- plugin-ci/lint | ||
- plugin-ci/coverage | ||
- plugin-ci/build | ||
- plugin-ci/deploy-release: | ||
filters: | ||
tags: | ||
only: /^v.*/ | ||
branches: | ||
ignore: /.*/ | ||
context: plugin-ci | ||
requires: | ||
- plugin-ci/lint | ||
- plugin-ci/coverage | ||
- plugin-ci/build | ||
- plugin-ci/deploy-release-github: | ||
filters: | ||
tags: | ||
only: /^v.*/ | ||
branches: | ||
ignore: /.*/ | ||
context: matterbuild-github-token | ||
requires: | ||
- plugin-ci/lint | ||
- plugin-ci/coverage | ||
- plugin-ci/build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.