Skip to content

Commit 5174777

Browse files
GitHub Action
1 parent de3c54c commit 5174777

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd/run.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
182182
if m.desiredTasks.Value() != "" {
183183
m.currentView = LoadingGHA
184184
cmds = append(cmds, func() tea.Msg {
185-
prompt := fmt.Sprintf(`For a %v program, generate a GitHub Actions workflow that will include the following tasks: %v.
185+
prompt := fmt.Sprintf(`For a %v program, generate a GitHub Action workflow that will include the following tasks: %v.
186186
Name it "Ghost-generated pipeline". Leave placeholders for things like version and at the end of generating the
187187
GitHub Action, tell the user what their next steps should be in a comment`, m.detectedLanguages, m.desiredTasks.Value())
188188
response, err := chatGPTRequest(prompt)
@@ -254,7 +254,7 @@ func (m model) View() string {
254254
case LoadingDetectedLanguages:
255255
return m.spinner.View() + "Detecting languages..."
256256
case LoadingGHA:
257-
return m.spinner.View() + "Generating a GitHub Actions workflow...This might take a couple of minutes."
257+
return m.spinner.View() + "Generating a GitHub Action workflow...This might take a couple of minutes."
258258
case ConfirmLanguages:
259259
if len(m.detectedLanguages) == 0 {
260260
log.Error("Error: detected languages is empty")
@@ -278,7 +278,7 @@ func (m model) View() string {
278278
log.Error("Error: detected languages is empty")
279279
return ""
280280
}
281-
return textInputView(m, fmt.Sprintf("%v What tasks should Ghost include in your GitHub Actions workflow?", emoji.Ghost), m.desiredTasks)
281+
return textInputView(m, fmt.Sprintf("%v What tasks should Ghost include in your GitHub Action workflow?", emoji.Ghost), m.desiredTasks)
282282
case GenerateGHA:
283283
if len(m.GHAWorkflow) == 0 {
284284
log.Error("Error: detected languages or desired tasks is empty")
@@ -287,7 +287,7 @@ func (m model) View() string {
287287
return confirmationView(m,
288288
"",
289289
"Great! Output to .github/workflows/ghost.yml",
290-
"I want Ghost to refine to generated GitHub Actions workflow",
290+
"I want Ghost to refine to generated GitHub Action workflow",
291291
true,
292292
m.GHAWorkflow)
293293
case CorrectGHA:

0 commit comments

Comments
 (0)