Skip to content

Commit fe8f8cc

Browse files
committed
Update test so they can run on windows, add badges
1 parent e1185dc commit fe8f8cc

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# go-git-open
22

3+
[![Build Status](https://img.shields.io/endpoint.svg?url=https://actions-badge.atrox.dev/mogensen/go-git-open/badge)](https://actions-badge.atrox.dev/mogensen/go-git-open/goto)
4+
[![Go Report Card](https://goreportcard.com/badge/github.com/mogensen/go-git-open)](https://goreportcard.com/report/github.com/mogensen/go-git-open)
5+
[![codecov](https://codecov.io/gh/mogensen/go-git-open/branch/master/graph/badge.svg)](https://codecov.io/gh/mogensen/go-git-open)
6+
37
This is an extension for the `git` cli, that allows you to open any git repository in your browser.
48

59
Just type `git open` to open the repo website.

cmd/git-goopen/main_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func Test_getURLFromGitRepo(t *testing.T) {
4040
for _, tt := range tests {
4141
t.Run(tt.name, func(t *testing.T) {
4242

43-
dir, err := ioutil.TempDir("", "clone-example-"+tt.name)
43+
dir, err := ioutil.TempDir("", "go-git-open")
4444
if err != nil {
4545
log.Fatal(err)
4646
}
@@ -93,7 +93,7 @@ func Test_getOverwriteDomain(t *testing.T) {
9393
for _, tt := range tests {
9494
t.Run(tt.name, func(t *testing.T) {
9595

96-
dir, err := ioutil.TempDir("", "clone-example-"+tt.name)
96+
dir, err := ioutil.TempDir("", "go-git-open")
9797
if err != nil {
9898
log.Fatal(err)
9999
}

0 commit comments

Comments
 (0)