Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
git-bug
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
MichaelMure
git-bug
Commits
6345895a
Unverified
Commit
6345895a
authored
Nov 19, 2019
by
Michael Muré
Committed by
GitHub
Nov 19, 2019
Browse files
Options
Downloads
Plain Diff
Merge pull request #258 from MichaelMure/fixes
Bridges fixes
parents
f35845d3
76b61293
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
bridge/core/token.go
+1
-1
1 addition, 1 deletion
bridge/core/token.go
bridge/github/config.go
+3
-0
3 additions, 0 deletions
bridge/github/config.go
with
4 additions
and
1 deletion
bridge/core/token.go
+
1
−
1
View file @
6345895a
...
@@ -43,7 +43,7 @@ func NewToken(value, target string) *Token {
...
@@ -43,7 +43,7 @@ func NewToken(value, target string) *Token {
}
}
func
(
t
*
Token
)
ID
()
entity
.
Id
{
func
(
t
*
Token
)
ID
()
entity
.
Id
{
sum
:=
sha256
.
Sum256
([]
byte
(
t
.
Value
))
sum
:=
sha256
.
Sum256
([]
byte
(
t
.
Target
+
t
.
Value
))
return
entity
.
Id
(
fmt
.
Sprintf
(
"%x"
,
sum
))
return
entity
.
Id
(
fmt
.
Sprintf
(
"%x"
,
sum
))
}
}
...
...
This diff is collapsed.
Click to expand it.
bridge/github/config.go
+
3
−
0
View file @
6345895a
...
@@ -11,6 +11,7 @@ import (
...
@@ -11,6 +11,7 @@ import (
"net/http"
"net/http"
"os"
"os"
"regexp"
"regexp"
"sort"
"strconv"
"strconv"
"strings"
"strings"
"syscall"
"syscall"
...
@@ -471,6 +472,8 @@ func getValidGithubRemoteURLs(remotes map[string]string) []string {
...
@@ -471,6 +472,8 @@ func getValidGithubRemoteURLs(remotes map[string]string) []string {
}
}
}
}
sort
.
Strings
(
urls
)
return
urls
return
urls
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment