Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

[WIP] Feature/poc GitHub actions #69

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open

Conversation

botchk
Copy link
Collaborator

@botchk botchk commented Aug 19, 2021

No description provided.

"strings"
)

func PrepareArgs(with map[string]string, inputs map[string]model.Input, args []string) ([]string, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[golint] reported by reviewdog 🐶
exported function PrepareArgs should have comment or be unexported

"net/http"
)

func GetActionYaml(githubRepoName string) (error, *model.Action) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[golint] reported by reviewdog 🐶
error should be the last type when returning multiple items

"net/http"
)

func GetActionYaml(githubRepoName string) (error, *model.Action) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[golint] reported by reviewdog 🐶
exported function GetActionYaml should have comment or be unexported

return nil, action
}

func readActionYamlFromGithub(githubRepoName string) (error, []byte) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[golint] reported by reviewdog 🐶
error should be the last type when returning multiple items

RawMatrix yaml.Node `yaml:"matrix"`
}

// Default settings that will apply to all steps in the job or workflow
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[golint] reported by reviewdog 🐶
comment on exported type Defaults should be of the form "Defaults ..." (with optional leading article)

Run RunDefaults `yaml:"run"`
}

// Defaults for all run steps in the job or workflow
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[golint] reported by reviewdog 🐶
comment on exported type RunDefaults should be of the form "RunDefaults ..." (with optional leading article)

@@ -0,0 +1,39 @@
package github
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[gofmt] reported by reviewdog 🐶
file pkg/github/github.go is not gofmted

@@ -0,0 +1,43 @@
package github
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[gofmt] reported by reviewdog 🐶
file pkg/github/github_test.go is not gofmted

@@ -0,0 +1,63 @@
package model
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[gofmt] reported by reviewdog 🐶
file pkg/github/model/action.go is not gofmted

@@ -0,0 +1,78 @@
package model
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[gofmt] reported by reviewdog 🐶
file pkg/github/model/workflow.go is not gofmted

@@ -0,0 +1,16 @@
package k8sutils
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[gofmt] reported by reviewdog 🐶
file pkg/k8sutils/builder_test.go is not gofmted


_, err := eh.Keptn.SendTaskStartedEvent(eh.EventData, eh.ServiceName)
if err != nil {
return fmt.Errorf("Error while sending started event: %s\n", err.Error())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[golint] reported by reviewdog 🐶
error strings should not be capitalized or end with punctuation or a newline


err = k8s.ConnectToCluster()
if err != nil {
return fmt.Errorf("Error while connecting to cluster: %s\n", err.Error())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[golint] reported by reviewdog 🐶
error strings should not be capitalized or end with punctuation or a newline

@@ -0,0 +1,100 @@
package k8sutils
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[gofmt] reported by reviewdog 🐶
file pkg/k8sutils/builder.go is not gofmted

@github-actions
Copy link
Contributor

The following Docker Images have been built:

  • Pushed keptnsandbox/job-executor-service:0.1.4-dev-PR-69.202108201050 and keptnsandbox/job-executor-service:0.1.4-dev-PR-69 (Source: ./)
  • Pushed keptnsandbox/job-executor-service-initcontainer:0.1.4-dev-PR-69.202108201050 and keptnsandbox/job-executor-service-initcontainer:0.1.4-dev-PR-69 (Source: ./)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants