Skip to content
This repository has been archived by the owner on Mar 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #34 from capitalone/qa
Browse files Browse the repository at this point in the history
Prepare 0.27.0 release
  • Loading branch information
mspiegel authored Mar 17, 2018
2 parents f1b2a7f + af96831 commit 29fd3e2
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ format but the legacy format can be parsed.

# 0.26.0

* Reduce scope of 'authoraffirm' feature. Themessage will only appear
* Reduce scope of 'authoraffirm' feature. The message will only appear
when the pull request has multiple committers AND there are approvers
who are also committers. If the approvers are not committers then no
error message appears. When the error message appears, we have changed
Expand Down
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ NOVENDOR_FILES := $(shell find . -name "*.go" | grep -v /vendor/ | grep -v /mock

all: build

update-deps:
glide update -s -u -v

gen: gen-assets gen-migration

gen-assets:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ can indicate their approval by commenting on the pull request and including
with GitHub Reviews. An accepted GitHub Review is counted as an approval.
GitHub Review that requests additional changes blocks the pull request from merging.

Read the [online documentation](http://www.capitalone.io/checks-out/) to find out more about Checks-Out.
Read the [online documentation](https://capitalone.github.io/checks-out) to find out more about Checks-Out.

### Development

Expand Down
4 changes: 2 additions & 2 deletions api/repos.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (
"github.com/pkg/errors"
)

// GetAllReposCount gets the count of all repositories managed by Meow.
// GetAllReposCount gets the count of all repositories managed by Checks-Out.
func GetAllReposCount(c *gin.Context) {
repos, err := store.GetAllRepos(c)
if err != nil {
Expand All @@ -47,7 +47,7 @@ func GetAllReposCount(c *gin.Context) {
c.String(200, "%d", len(repos))
}

// GetAllRepos gets all public repositories managed by Meow.
// GetAllRepos gets all public repositories managed by Checks-Out.
func GetAllRepos(c *gin.Context) {
repos, err := store.GetAllRepos(c)
if err != nil {
Expand Down
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import (
"github.com/capitalone/checks-out/remote"
"github.com/capitalone/checks-out/router"
"github.com/capitalone/checks-out/store/datastore"
"github.com/capitalone/checks-out/usage"
"github.com/capitalone/checks-out/version"

"github.com/Sirupsen/logrus"
Expand Down Expand Up @@ -67,6 +68,7 @@ func startService() {
setLogLevel(envvars.Env.Monitor.LogLevel)

logstats.Start()
usage.Start()

r := remote.Get()
ds := datastore.Get()
Expand Down
9 changes: 9 additions & 0 deletions model/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,12 @@ type Commit struct {
SHA string
Parents []string
}

func DefaultCommit() CommitConfig {
return CommitConfig{
Range: Head,
AntiRange: Head,
TagRange: Head,
IgnoreUIMerge: true,
}
}
2 changes: 1 addition & 1 deletion model/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
"github.com/capitalone/checks-out/envvars"
"github.com/capitalone/checks-out/hjson"
"github.com/capitalone/checks-out/strings/rxserde"

"github.com/mspiegel/go-multierror"
"github.com/pelletier/go-toml"
)
Expand Down Expand Up @@ -101,6 +100,7 @@ func DefaultConfig() *Config {
c.Maintainers.Path = maintainers
c.Maintainers.Type = maintType
c.Deployment.Path = deployment
c.Commit = DefaultCommit()
c.Feedback = DefaultFeedback()
c.Merge = DefaultMerge()
c.Tag = DefaultTag()
Expand Down
7 changes: 7 additions & 0 deletions model/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,13 @@ func TestOldConfigConvert(t *testing.T) {
}
]
pattern: "LOOKGOOD"
commit:
{
range: "head"
antirange: "head"
tagrange: "head"
ignoreuimerge: true
}
maintainers:
{
path: MAINTAINERS
Expand Down
10 changes: 10 additions & 0 deletions router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ package router

import (
"net/http"
"net/http/pprof"
rpprof "runtime/pprof"
"time"

"github.com/Sirupsen/logrus"
Expand Down Expand Up @@ -100,6 +102,14 @@ func Load() http.Handler {
if sunlight {
e.GET("/api/repos", api.GetAllRepos)
e.GET("/version", web.Version)
e.GET("/debug/pprof/", gin.WrapF(pprof.Index))
e.GET("/debug/pprof/cmdline", gin.WrapF(pprof.Cmdline))
e.GET("/debug/pprof/profile", gin.WrapF(pprof.Profile))
e.GET("/debug/pprof/symbol", gin.WrapF(pprof.Symbol))
e.GET("/debug/pprof/trace", gin.WrapF(pprof.Trace))
for _, p := range rpprof.Profiles() {
e.GET("/debug/pprof/"+p.Name(), gin.WrapH(pprof.Handler(p.Name())))
}
}
e.GET("/api/count", api.GetAllReposCount)

Expand Down

0 comments on commit 29fd3e2

Please sign in to comment.