fixup
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
0844b2e32e
commit
8d41ea035c
@ -12,8 +12,10 @@ import (
|
|||||||
"os/exec"
|
"os/exec"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
"time"
|
||||||
|
|
||||||
"git.unistack.org/unistack-org/pkgdash/internal/modules"
|
"git.unistack.org/unistack-org/pkgdash/internal/modules"
|
||||||
|
"github.com/go-git/go-git/plumbing/object"
|
||||||
"github.com/go-git/go-git/v5"
|
"github.com/go-git/go-git/v5"
|
||||||
"github.com/go-git/go-git/v5/plumbing"
|
"github.com/go-git/go-git/v5/plumbing"
|
||||||
httpauth "github.com/go-git/go-git/v5/plumbing/transport/http"
|
httpauth "github.com/go-git/go-git/v5/plumbing/transport/http"
|
||||||
@ -256,6 +258,17 @@ func giteaPullRequest(ctx context.Context, cfg *Config, mods map[string]modules.
|
|||||||
logger.Fatalf(ctx, "failed to add file: %v", err)
|
logger.Fatalf(ctx, "failed to add file: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_, err = wtree.Commit(wTitle.String(), &git.CommitOptions{
|
||||||
|
Author: &object.Signature{
|
||||||
|
Name: "pkgdash",
|
||||||
|
Email: "info@unistack.org",
|
||||||
|
When: time.Now(),
|
||||||
|
},
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
logger.Fatalf(ctx, "failed to commit: %v", err)
|
||||||
|
}
|
||||||
|
|
||||||
if err = repo.Push(&git.PushOptions{Auth: &httpauth.BasicAuth{Username: envTOKEN, Password: envTOKEN}}); err != nil {
|
if err = repo.Push(&git.PushOptions{Auth: &httpauth.BasicAuth{Username: envTOKEN, Password: envTOKEN}}); err != nil {
|
||||||
logger.Fatalf(ctx, "failed to push repo branch: %v", err)
|
logger.Fatalf(ctx, "failed to push repo branch: %v", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user