Skip to content

Commit 51ee6ed

Browse files
authored
Release v0.2.0 (#10)
1 parent 3f1cbfc commit 51ee6ed

File tree

17 files changed

+505
-143
lines changed

17 files changed

+505
-143
lines changed

.circleci/config.yml

Lines changed: 47 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,53 @@
11
version: 2.1
2-
executors:
3-
default:
4-
docker:
5-
- image: circleci/golang:1.12-node
62

7-
jobs:
8-
lint:
9-
executor:
10-
name: default
11-
steps:
12-
- checkout
13-
- run: make check-style
14-
15-
test:
16-
executor:
17-
name: default
18-
steps:
19-
- checkout
20-
- run: make test
3+
orbs:
4+
plugin-ci: mattermost/plugin-ci@volatile
215

226
workflows:
237
version: 2
24-
untagged-build:
8+
nightly:
9+
triggers:
10+
- schedule:
11+
cron: "0 0 * * *"
12+
filters:
13+
branches:
14+
only:
15+
- master
16+
jobs:
17+
- plugin-ci/lint
18+
- plugin-ci/test
19+
- plugin-ci/build
20+
ci:
2521
jobs:
26-
- lint
27-
- test
22+
- plugin-ci/lint:
23+
filters:
24+
tags:
25+
only: /^v.*/
26+
- plugin-ci/coverage:
27+
filters:
28+
tags:
29+
only: /^v.*/
30+
- plugin-ci/build:
31+
filters:
32+
tags:
33+
only: /^v.*/
34+
- plugin-ci/deploy-ci:
35+
filters:
36+
branches:
37+
only: master
38+
context: plugin-ci
39+
requires:
40+
- plugin-ci/lint
41+
- plugin-ci/coverage
42+
- plugin-ci/build
43+
- plugin-ci/deploy-release-github:
44+
filters:
45+
tags:
46+
only: /^v.*/
47+
branches:
48+
ignore: /.*/
49+
context: matterbuild-github-token
50+
requires:
51+
- plugin-ci/lint
52+
- plugin-ci/coverage
53+
- plugin-ci/build

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ apply:
3232

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

3838
ifneq ($(HAS_WEBAPP),)

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ These can be obtained through the following procedure:
2020
2. After creating a project click on `Go to APIs overview` card from the dashboard which will take you to the API dashboard.
2121
3. Select `Credentials` from the left menu
2222
4. Now click on `Create Credentials` dropdown and select `Oauth client ID` option.
23-
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`.
23+
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`.
2424
6. After creating the Oauth client, copy the Client ID and secret.
25-
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.
25+
7. Upload the plugin to Mattermost and go to `Google Calendar Plugin settings`. Paste the client id and secret.
2626
8. Enable the plugin and you should be able to see event reminder notifications.
2727

2828
## Installing For Development
@@ -36,9 +36,9 @@ Afterwards, you can close SimpleHTTPWebServer and run your Mattermost Server)
3636
5. Go to [API library](https://console.cloud.google.com/apis/library) and make sure Google Calendar API is enabled.
3737
6. Go to [API and Services](https://console.cloud.google.com/apis/dashboard) and select `Credentials` tab from the left menu.
3838
7. Now click on `Create Credentials` dropdown and select `Oauth client ID` option.
39-
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`.
39+
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`.
4040
9. After creating the Oauth client, copy the Client ID and secret.
41-
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.
41+
10. Upload the plugin to Mattermost and go to `Google Calendar Plugin settings`. Paste the client id and secret.
4242
11. Enable the plugin and you should be able to see event reminder notifications.
4343

4444

assets/.gitkeep

Whitespace-only changes.

assets/icon.svg

Lines changed: 1 addition & 0 deletions
Loading

build/manifest/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"io/ioutil"
77
"os"
88

9-
"github.com/mattermost/mattermost-server/model"
9+
"github.com/mattermost/mattermost-server/v5/model"
1010
"github.com/pkg/errors"
1111
)
1212

go.mod

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
module github.com/mattermost/mattermost-plugin-starter-template
1+
module github.com/mattermost/mattermost-plugin-google-calendar
22

33
go 1.12
44

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

0 commit comments

Comments
 (0)