Skip to content

Commit

Permalink
Release v0.2.0 (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanzei authored May 28, 2020
1 parent 3f1cbfc commit 51ee6ed
Show file tree
Hide file tree
Showing 17 changed files with 505 additions and 143 deletions.
68 changes: 47 additions & 21 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,53 @@
version: 2.1
executors:
default:
docker:
- image: circleci/golang:1.12-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:
nightly:
triggers:
- schedule:
cron: "0 0 * * *"
filters:
branches:
only:
- master
jobs:
- plugin-ci/lint
- plugin-ci/test
- plugin-ci/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-github:
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/
context: matterbuild-github-token
requires:
- plugin-ci/lint
- plugin-ci/coverage
- plugin-ci/build
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ apply:

## Runs govet and gofmt against all packages.
.PHONY: check-style
check-style: webapp/.npminstall gofmt govet golint
check-style: webapp/.npminstall gofmt govet #golint
@echo Checking for style guide compliance

ifneq ($(HAS_WEBAPP),)
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ These can be obtained through the following procedure:
2. After creating a project click on `Go to APIs overview` card from the dashboard which will take you to the API dashboard.
3. Select `Credentials` from the left menu
4. Now click on `Create Credentials` dropdown and select `Oauth client ID` option.
5. While creating the Oauth credentials, enter the values of `Authorized Javascript Origins` as `<Mattermost server URL>` and the value of `Authorised redirect URIs` as `<Mattermost server URL>/plugins/google-calendar/oauth/complete`.
5. While creating the Oauth credentials, enter the values of `Authorized Javascript Origins` as `<Mattermost server URL>` and the value of `Authorised redirect URIs` as `<Mattermost server URL>/plugins/com.mattermost.google-calendar/oauth/complete`.
6. After creating the Oauth client, copy the Client ID and secret.
7. Upload the plugin to Mattermost and go to `Google Calendar Plugin settings`. Paste the client id and secret and select a user for the plugin to post event messages with.
7. Upload the plugin to Mattermost and go to `Google Calendar Plugin settings`. Paste the client id and secret.
8. Enable the plugin and you should be able to see event reminder notifications.

## Installing For Development
Expand All @@ -36,9 +36,9 @@ Afterwards, you can close SimpleHTTPWebServer and run your Mattermost Server)
5. Go to [API library](https://console.cloud.google.com/apis/library) and make sure Google Calendar API is enabled.
6. Go to [API and Services](https://console.cloud.google.com/apis/dashboard) and select `Credentials` tab from the left menu.
7. Now click on `Create Credentials` dropdown and select `Oauth client ID` option.
8. While creating the Oauth credentials, enter the values of `Authorized Javascript Origins` as `http://localhost:8065` and the value of `Authorised redirect URIs` as `http://localhost:8064/plugins/google-calendar/oauth/complete`.
8. While creating the Oauth credentials, enter the values of `Authorized Javascript Origins` as `http://localhost:8065` and the value of `Authorised redirect URIs` as `http://localhost:8065/plugins/com.mattermost.google-calendar/oauth/complete`.
9. After creating the Oauth client, copy the Client ID and secret.
10. Upload the plugin to Mattermost and go to `Google Calendar Plugin settings`. Paste the client id and secret and select a user for the plugin to post event messages with.
10. Upload the plugin to Mattermost and go to `Google Calendar Plugin settings`. Paste the client id and secret.
11. Enable the plugin and you should be able to see event reminder notifications.


Expand Down
Empty file removed assets/.gitkeep
Empty file.
1 change: 1 addition & 0 deletions assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion build/manifest/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"io/ioutil"
"os"

"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/v5/model"
"github.com/pkg/errors"
)

Expand Down
13 changes: 6 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
module github.com/mattermost/mattermost-plugin-starter-template
module github.com/mattermost/mattermost-plugin-google-calendar

go 1.12

require (
github.com/blang/semver v3.6.1+incompatible // indirect
github.com/google/uuid v1.1.1
github.com/mattermost/mattermost-server v1.4.1-0.20191016162522-6597fdb40134 // Mattermost Server 5.16.0
github.com/pkg/errors v0.8.1
github.com/robfig/cron/v3 v3.0.0
golang.org/x/oauth2 v0.0.0-20190319182350-c85d3e98c914
google.golang.org/api v0.2.0
github.com/mattermost/mattermost-server/v5 v5.23.0
github.com/pkg/errors v0.9.1
github.com/robfig/cron/v3 v3.0.1
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
google.golang.org/api v0.25.0
)
Loading

0 comments on commit 51ee6ed

Please sign in to comment.