-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Title and body strings for when manifest is "" or is github repo url
- Loading branch information
1 parent
3593faf
commit f8573e1
Showing
6 changed files
with
89 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
The following dependencies have been updated by [dependencies.io](https://www.dependencies.io/): | ||
|
||
- `dropseed/pullrequest` from "0.1.0" to "0.3.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"manifests": { | ||
"": { | ||
"current": { | ||
"dependencies": { | ||
"https://github.com/dropseed/pullrequest.git": { | ||
"source": "go", | ||
"constraint": "0.1.0" | ||
} | ||
} | ||
}, | ||
"updated": { | ||
"dependencies": { | ||
"https://github.com/dropseed/pullrequest.git": { | ||
"source": "go", | ||
"constraint": "0.3.0" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package schema | ||
|
||
import "strings" | ||
|
||
func dependencyNameForDisplay(name string) string { | ||
|
||
prefixes := []string{ | ||
"https://github.com/", | ||
"https://gitlab.com/", | ||
} | ||
|
||
for _, prefix := range prefixes { | ||
if strings.HasPrefix(name, prefix) { | ||
name = name[len(prefix):] | ||
} | ||
} | ||
|
||
suffixes := []string{ | ||
".git/", | ||
".git", | ||
} | ||
|
||
for _, suffix := range suffixes { | ||
if strings.HasSuffix(name, suffix) { | ||
name = name[:len(name)-len(suffix)] | ||
} | ||
} | ||
|
||
return name | ||
} |