mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-03-03 06:18:53 -06:00
chore: fix lint errors
This commit is contained in:
@@ -196,6 +196,7 @@ export function StepConfigurationSection({ stepRun }: { stepRun: StepRun }) {
|
||||
);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
function TriggeringEventSection({ event }: { event: Event }) {
|
||||
return (
|
||||
<>
|
||||
@@ -230,6 +231,7 @@ function EventDataSection({ event }: { event: Event }) {
|
||||
);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
function TriggeringCronSection({ cron }: { cron: string }) {
|
||||
const prettyInterval = `Runs ${CronPrettifier.toString(
|
||||
cron,
|
||||
|
||||
@@ -270,12 +270,12 @@ func BindAllEnv(v *viper.Viper) {
|
||||
_ = v.BindEnv("otel.collectorURL", "SERVER_OTEL_COLLECTOR_URL")
|
||||
|
||||
// vcs options
|
||||
v.BindEnv("vcs.kind", "SERVER_VCS_KIND")
|
||||
v.BindEnv("vcs.github.enabled", "SERVER_VCS_GITHUB_ENABLED")
|
||||
v.BindEnv("vcs.github.appClientID", "SERVER_VCS_GITHUB_APP_CLIENT_ID")
|
||||
v.BindEnv("vcs.github.appClientSecret", "SERVER_VCS_GITHUB_APP_CLIENT_SECRET")
|
||||
v.BindEnv("vcs.github.appName", "SERVER_VCS_GITHUB_APP_NAME")
|
||||
v.BindEnv("vcs.github.appWebhookSecret", "SERVER_VCS_GITHUB_APP_WEBHOOK_SECRET")
|
||||
v.BindEnv("vcs.github.appID", "SERVER_VCS_GITHUB_APP_ID")
|
||||
v.BindEnv("vcs.github.appSecretPath", "SERVER_VCS_GITHUB_APP_SECRET_PATH")
|
||||
_ = v.BindEnv("vcs.kind", "SERVER_VCS_KIND")
|
||||
_ = v.BindEnv("vcs.github.enabled", "SERVER_VCS_GITHUB_ENABLED")
|
||||
_ = v.BindEnv("vcs.github.appClientID", "SERVER_VCS_GITHUB_APP_CLIENT_ID")
|
||||
_ = v.BindEnv("vcs.github.appClientSecret", "SERVER_VCS_GITHUB_APP_CLIENT_SECRET")
|
||||
_ = v.BindEnv("vcs.github.appName", "SERVER_VCS_GITHUB_APP_NAME")
|
||||
_ = v.BindEnv("vcs.github.appWebhookSecret", "SERVER_VCS_GITHUB_APP_WEBHOOK_SECRET")
|
||||
_ = v.BindEnv("vcs.github.appID", "SERVER_VCS_GITHUB_APP_ID")
|
||||
_ = v.BindEnv("vcs.github.appSecretPath", "SERVER_VCS_GITHUB_APP_SECRET_PATH")
|
||||
}
|
||||
|
||||
@@ -2,8 +2,8 @@ package github
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"os"
|
||||
"strconv"
|
||||
|
||||
"github.com/bradleyfalzon/ghinstallation/v2"
|
||||
@@ -35,7 +35,7 @@ func NewGithubAppConf(cfg *oauth.Config, appName, appSecretPath, appWebhookSecre
|
||||
return nil, err
|
||||
}
|
||||
|
||||
appSecret, err := ioutil.ReadFile(appSecretPath)
|
||||
appSecret, err := os.ReadFile(appSecretPath)
|
||||
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("could not read github app secret: %s", err)
|
||||
|
||||
@@ -100,8 +100,8 @@ func toExportedName(key string) string {
|
||||
return nameRegex.ReplaceAllStringFunc(key, func(t string) string {
|
||||
if len(t) == 1 {
|
||||
return strings.ToUpper(t)
|
||||
} else {
|
||||
return strings.ToUpper(string(t[1]))
|
||||
}
|
||||
|
||||
return strings.ToUpper(string(t[1]))
|
||||
})
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@ type StepRunRetryTaskPayload struct {
|
||||
JobRunId string `json:"job_run_id" validate:"required,uuid"`
|
||||
|
||||
// optional - if not provided, the step run will be retried with the same input
|
||||
InputData string `json:"omitempty,input_data"`
|
||||
InputData string `json:"input_data,omitempty"`
|
||||
}
|
||||
|
||||
type StepRunRetryTaskMetadata struct {
|
||||
|
||||
Reference in New Issue
Block a user