summaryrefslogtreecommitdiffstatshomepage
path: root/bridge
diff options
context:
space:
mode:
Diffstat (limited to 'bridge')
-rw-r--r--bridge/github/export_test.go12
-rw-r--r--bridge/github/import_test.go4
-rw-r--r--bridge/jira/config.go2
3 files changed, 11 insertions, 7 deletions
diff --git a/bridge/github/export_test.go b/bridge/github/export_test.go
index 9b10020dc..9d8297e4b 100644
--- a/bridge/github/export_test.go
+++ b/bridge/github/export_test.go
@@ -5,6 +5,7 @@ import (
"context"
"encoding/json"
"fmt"
+ "log/slog"
"math/rand"
"net/http"
"os"
@@ -130,12 +131,15 @@ func testCases(t *testing.T, repo *cache.RepoCache) []*testCase {
func TestGithubPushPull(t *testing.T) {
// repo owner
- envUser := os.Getenv("GITHUB_TEST_USER")
+ envUser := os.Getenv("GITHUB_USER")
+ if envUser == "" {
+ t.Skip("missing required environment variable: GITHUB_USER")
+ }
// token must have 'repo' and 'delete_repo' scopes
- envToken := os.Getenv("GITHUB_TOKEN_ADMIN")
+ envToken := os.Getenv("GITHUB_TOKEN")
if envToken == "" {
- t.Skip("Env var GITHUB_TOKEN_ADMIN missing")
+ t.Skip("missing required environment variable: GITHUB_TOKEN")
}
// create repo backend
@@ -179,7 +183,7 @@ func TestGithubPushPull(t *testing.T) {
err = createRepository(projectName, envToken)
require.NoError(t, err)
- fmt.Println("created repository", projectName)
+ slog.Info("created github repository", "name", projectName)
// Let Github handle the repo creation and update all their internal caches.
// Avoid HTTP error 404 retrieving repository node id
diff --git a/bridge/github/import_test.go b/bridge/github/import_test.go
index 380c09a7c..f81df28c2 100644
--- a/bridge/github/import_test.go
+++ b/bridge/github/import_test.go
@@ -22,9 +22,9 @@ import (
)
func TestGithubImporter(t *testing.T) {
- envToken := os.Getenv("GITHUB_TOKEN_PRIVATE")
+ envToken := os.Getenv("GITHUB_TOKEN")
if envToken == "" {
- t.Skip("Env var GITHUB_TOKEN_PRIVATE missing")
+ t.Skip("missing required environment variable: GITHUB_TOKEN")
}
repo := repository.CreateGoGitTestRepo(t, false)
diff --git a/bridge/jira/config.go b/bridge/jira/config.go
index 22ce1dcad..ea9035255 100644
--- a/bridge/jira/config.go
+++ b/bridge/jira/config.go
@@ -15,7 +15,7 @@ const moreConfigText = `
NOTE: There are a few optional configuration values that you can additionally
set in your git configuration to influence the behavior of the bridge. Please
see the notes at:
-https://github.com/git-bug/git-bug/blob/master/doc/jira_bridge.md
+https://github.com/git-bug/git-bug/blob/trunk/doc/jira_bridge.md
`
const credTypeText = `