14 Commits

Author SHA1 Message Date
3ef688a00d feature/query-results (#12)
Co-authored-by: kjuulh <contact@kjuulh.io>
Reviewed-on: https://git.front.kjuulh.io/kjuulh/kraken/pulls/12
2022-09-18 16:11:22 +02:00
fa8985a0e7 with reordered roadmap 2022-09-18 15:16:35 +02:00
1ff0014ad4 feature/docker-action (#11)
Co-authored-by: kjuulh <contact@kjuulh.io>
Reviewed-on: https://git.front.kjuulh.io/kjuulh/kraken/pulls/11
2022-09-18 11:51:22 +02:00
9696270d22 feature/gitea-integration (#10)
Co-authored-by: kjuulh <contact@kjuulh.io>
Reviewed-on: https://git.front.kjuulh.io/kjuulh/kraken/pulls/10
2022-09-18 00:10:44 +02:00
0cb923a3a5 feature/add-actions (#9)
Co-authored-by: kjuulh <contact@kjuulh.io>
Reviewed-on: https://git.front.kjuulh.io/kjuulh/kraken/pulls/9
2022-09-14 23:40:58 +02:00
ce55f6523c with action creator 2022-09-13 22:54:49 +02:00
564147eb6a with action 2022-09-13 21:56:56 +02:00
fcd369d48f removed replace 2022-09-13 21:55:58 +02:00
c759f8e698 removed unused stuff 2022-09-13 21:55:08 +02:00
fd7b06e840 added example (#7)
Co-authored-by: kjuulh <contact@kjuulh.io>
Reviewed-on: https://git.front.kjuulh.io/kjuulh/kraken/pulls/7
2022-09-13 21:54:05 +02:00
c7e773be93 with public interfaces 2022-09-13 21:15:32 +02:00
559fb41571 refac/process_command (#6)
Co-authored-by: kjuulh <contact@kjuulh.io>
Reviewed-on: https://git.front.kjuulh.io/kjuulh/kraken/pulls/6
2022-09-13 20:55:41 +02:00
1b14d33a53 another roadmap item (#5)
Co-authored-by: kjuulh <contact@kjuulh.io>
Reviewed-on: https://git.front.kjuulh.io/kjuulh/kraken/pulls/5
2022-09-13 20:54:59 +02:00
d9404525f5 add roadmpa item 2022-09-13 20:23:24 +02:00
5 changed files with 6 additions and 42 deletions

View File

@@ -1,11 +0,0 @@
branches:
- "main"
- "v0.x"
plugins:
- "@semantic-release/commit-analyzer"
- "@semantic-release/release-notes-generator"
- "@semantic-release/changelog"
- "@semantic-release/git"

View File

@@ -9,19 +9,9 @@ import (
)
func CreateKrakenProcessCmd() *cobra.Command {
var (
actionsRepo string
branch string
path string
)
cmd := &cobra.Command{
Use: "process",
RunE: func(cmd *cobra.Command, args []string) error {
if err := cmd.ParseFlags(args); err != nil {
return err
}
Run: func(cmd *cobra.Command, _ []string) {
client := http.Client{}
var buf bytes.Buffer
@@ -31,9 +21,9 @@ func CreateKrakenProcessCmd() *cobra.Command {
Branch string `json:"branch"`
Path string `json:"path"`
}{
Repository: actionsRepo,
Branch: branch,
Path: path,
Repository: "git@git.front.kjuulh.io:kjuulh/kraken.git",
Branch: "feature/query-results",
Path: "_examples/queries/scrape_readme/",
})
if err != nil {
panic(err)
@@ -56,18 +46,8 @@ func CreateKrakenProcessCmd() *cobra.Command {
if resp.StatusCode >= 300 {
panic(resp.Status)
}
return nil
},
}
pf := cmd.PersistentFlags()
pf.StringVar(&actionsRepo, "actions-repo", "", "actions repo is the location of your actions, not where to apply the actions themselves, that should be self contained")
cmd.MarkPersistentFlagRequired("actions-repo")
pf.StringVar(&branch, "branch", "main", "which branch to look for actions in, will default to main")
pf.StringVar(&path, "path", "", "the location of the path inside the repository")
cmd.MarkPersistentFlagRequired("path")
return cmd
}

View File

@@ -242,7 +242,7 @@ func (g *Git) CreateBranch(ctx context.Context, gitRepo *GitRepo) error {
err = worktree.PullContext(ctx, &git.PullOptions{
RemoteName: "origin",
ReferenceName: "refs/heads/main",
SingleBranch: false,
SingleBranch: true,
Depth: 1,
Auth: auth,
RecurseSubmodules: 1,

View File

@@ -35,8 +35,6 @@
- [ ] Make configurable git provider
- [ ] Create templating function
- [ ] Add way to see progress of runners
- [ ] Implement global .kraken store for easy access
- [ ] Move builders to start instead of every time
## Version 1.x

View File

@@ -2,7 +2,4 @@
set -e
current_branch=$(git branch --show-current)
go run cmd/kraken/kraken.go process --actions-repo "git@git.front.kjuulh.io:kjuulh/kraken.git" --branch "$current_branch" --path "_examples/actions/write_a_readme"
go run cmd/kraken/kraken.go process --actions-repo "git@git.front.kjuulh.io:kjuulh/kraken.git" --branch "$current_branch" --path "_examples/queries/scrape_readme"
go run cmd/kraken/kraken.go process