File tree Expand file tree Collapse file tree 17 files changed +169
-337
lines changed Expand file tree Collapse file tree 17 files changed +169
-337
lines changed Original file line number Diff line number Diff line change 1
- common :
2
- godel-cache :
3
- key : &godel-cache-key v1-godel-cache-{{ checksum "godelw" }}-{{ checksum "godel/config/godel.yml" }}
4
- << : &restore-godel-cache
5
- restore_cache :
6
- keys :
7
- - *godel-cache-key
8
- << : &save-godel-cache
9
- save_cache :
10
- key : *godel-cache-key
11
- paths :
12
- - ~/.godel
1
+ owner-repo : &owner-repo
2
+ owner-repo : palantir/go-githubapp
13
3
14
- vendor-cache :
15
- key : &vendor-cache-key v1-vendor-cache-{{ checksum "Gopkg.lock" }}
16
- << : &restore-vendor-cache
17
- restore_cache :
18
- keys :
19
- - *vendor-cache-key
20
- << : &save-vendor-cache
21
- save_cache :
22
- key : *vendor-cache-key
23
- paths :
24
- - vendor
4
+ excutor : &executor
5
+ executor :
6
+ name : go/darwin-linux-no-cgo
7
+ version : 1.14-java-11-t41
8
+ << : *owner-repo
25
9
26
- test-results :
27
- dir : &results-dir /tmp/test-results
28
- << : &store-results
29
- store_test_results :
30
- path : *results-dir
31
- << : &store-artifacts
32
- store_artifacts :
33
- path : *results-dir
34
- destination : test-results
10
+ version : 2.1
35
11
36
- # ## Jobs ###
12
+ orbs :
13
+
14
+
37
15
38
- version : 2
39
- jobs :
40
- verify :
41
- working_directory : /go/src/github.com/palantir/go-githubapp
42
- environment :
43
- TESTS_DIR : *results-dir
44
- docker :
45
- - image : circleci/golang:1.13.4-stretch
46
- steps :
47
- - checkout
48
- - *restore-godel-cache
49
- - run : ./godelw version
50
- - *save-godel-cache
51
- - *restore-vendor-cache
52
- - run : ./godelw run-dep -- ensure -vendor-only
53
- - *save-vendor-cache
54
- - run : mkdir -p "${TESTS_DIR}"
55
- - run : ./godelw verify --apply=false --junit-output="$TESTS_DIR/$CIRCLE_PROJECT_REPONAME-tests.xml"
56
- - *store-results
57
- - *store-artifacts
58
-
59
- # ## Workflows ###
16
+ all-tags-filter : &all-tags-filter
17
+ filters :
18
+ tags :
19
+ only : /.*/
60
20
61
21
workflows :
62
22
version : 2
63
- build :
23
+ verify-test :
64
24
jobs :
65
- - verify :
66
- filters : { tags: { only: /.*/ } }
25
+ - godel/verify :
26
+ name : verify
27
+ << : *executor
28
+ << : *all-tags-filter
29
+ - godel/test :
30
+ name : test
31
+ << : *executor
32
+ << : *all-tags-filter
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -18,10 +18,9 @@ import (
18
18
"io/ioutil"
19
19
20
20
"github.com/palantir/go-baseapp/baseapp"
21
+ "github.com/palantir/go-githubapp/githubapp"
21
22
"github.com/pkg/errors"
22
23
"gopkg.in/yaml.v2"
23
-
24
- "github.com/palantir/go-githubapp/githubapp"
25
24
)
26
25
27
26
type Config struct {
Original file line number Diff line number Diff line change @@ -20,11 +20,10 @@ import (
20
20
"fmt"
21
21
"strings"
22
22
23
- "github.com/google/go-github/github"
23
+ "github.com/google/go-github/v30/github"
24
+ "github.com/palantir/go-githubapp/githubapp"
24
25
"github.com/pkg/errors"
25
26
"github.com/rs/zerolog"
26
-
27
- "github.com/palantir/go-githubapp/githubapp"
28
27
)
29
28
30
29
type PRCommentHandler struct {
Original file line number Diff line number Diff line change @@ -19,10 +19,9 @@ import (
19
19
20
20
"github.com/gregjones/httpcache"
21
21
"github.com/palantir/go-baseapp/baseapp"
22
+ "github.com/palantir/go-githubapp/githubapp"
22
23
"github.com/rs/zerolog"
23
24
"goji.io/pat"
24
-
25
- "github.com/palantir/go-githubapp/githubapp"
26
25
)
27
26
28
27
func main () {
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ package githubapp
17
17
import (
18
18
"fmt"
19
19
20
- "github.com/google/go-github/github"
20
+ "github.com/google/go-github/v30/ github"
21
21
lru "github.com/hashicorp/golang-lru"
22
22
"github.com/pkg/errors"
23
23
"github.com/shurcooL/githubv4"
You can’t perform that action at this time.
0 commit comments