瀏覽代碼

fix(self-check): fail to fix

Jacky 20 小時之前
父節點
當前提交
1c282a57ad
共有 3 個文件被更改,包括 4 次插入1 次删除
  1. 2 1
      .devcontainer/devcontainer.json
  2. 1 0
      internal/self_check/self_check.go
  3. 1 0
      internal/self_check/tasks.go

+ 2 - 1
.devcontainer/devcontainer.json

@@ -30,7 +30,8 @@
         "golang.go",
         "vue.volar",
         "ms-azuretools.vscode-docker",
-        "akino.i18n-gettext"
+        "akino.i18n-gettext",
+        "github.vscode-github-actions"
       ]
     }
   },

+ 1 - 0
internal/self_check/self_check.go

@@ -16,6 +16,7 @@ func Run() (reports Reports) {
 			status = ReportStatusError
 		}
 		reports = append(reports, &Report{
+			Key:         task.Key,
 			Name:        task.Name,
 			Description: task.Description,
 			Fixable:     task.FixFunc != nil,

+ 1 - 0
internal/self_check/tasks.go

@@ -24,6 +24,7 @@ const (
 )
 
 type Report struct {
+	Key         string                 `json:"key"`
 	Name        *translation.Container `json:"name"`
 	Description *translation.Container `json:"description,omitempty"`
 	Fixable     bool                   `json:"fixable"`