feat(cmd/joj3): option to remove submitter in issue title
This commit is contained in:
parent
f98ef97893
commit
0009128de9
|
@ -54,6 +54,7 @@ type Conf struct {
|
|||
SkipIssue bool `default:"false"`
|
||||
SkipScoreboard bool `default:"false"`
|
||||
SkipFailedTable bool `default:"false"`
|
||||
SubmitterInIssueTitle bool `default:"true"`
|
||||
}
|
||||
// TODO: remove the following backward compatibility fields
|
||||
SandboxExecServer string `default:"localhost:5051"`
|
||||
|
|
|
@ -70,12 +70,16 @@ func Run(conf *conf.Conf) error {
|
|||
if conf.Teapot.SkipFailedTable {
|
||||
skipFailedTableArg = "--skip-failed-table"
|
||||
}
|
||||
submitterInIssueTitleArg := "--no-submitter-in-issue-title"
|
||||
if conf.Teapot.SubmitterInIssueTitle {
|
||||
submitterInIssueTitleArg = "--submitter-in-issue-title"
|
||||
}
|
||||
if err := execCommand("joint-teapot", []string{
|
||||
"joj3-all", conf.Teapot.EnvFilePath, conf.Stage.OutputPath, actor,
|
||||
conf.Teapot.GradingRepoName, repoName, runNumber,
|
||||
conf.Teapot.ScoreboardPath, conf.Teapot.FailedTablePath,
|
||||
conf.Name, sha, skipIssueArg, skipScoreboardArg,
|
||||
skipFailedTableArg,
|
||||
skipFailedTableArg, submitterInIssueTitleArg,
|
||||
}); err != nil {
|
||||
slog.Error("teapot exit", "error", err)
|
||||
return fmt.Errorf("teapot exit")
|
||||
|
|
Loading…
Reference in New Issue
Block a user