1
0
mirror of https://github.com/ChristianSch/gitea-release-drafter.git synced 2026-03-05 13:32:59 +00:00

feat: implemented first version

This commit is contained in:
Christian Schulze
2023-03-05 22:39:55 +01:00
parent 57390b874f
commit 37e0a3c892
12 changed files with 1122 additions and 0 deletions

33
main.go Normal file
View File

@@ -0,0 +1,33 @@
package main
import (
"context"
"git.andinfinity.de/gitea-release-drafter/src"
"git.andinfinity.de/gitea-release-drafter/src/config"
githubactions "github.com/sethvargo/go-githubactions"
)
func run() error {
ctx := context.Background()
ghaction := githubactions.New()
cfg, err := config.NewFromInputs(ghaction)
if err != nil {
return err
}
action, err := src.NewAction(&ctx, cfg)
if err != nil {
return err
}
return action.Run()
}
func main() {
err := run()
if err != nil {
githubactions.Fatalf("%v", err)
}
}