Skip to content

Commit

Permalink
Remove pipeline trigger subcommand from the autocomplete (#334)
Browse files Browse the repository at this point in the history
Trigger was a leftover command from the pipelines run implementation.

Ticket: #332
  • Loading branch information
spirosoik committed Nov 23, 2022
1 parent 4cab993 commit 5772f04
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions server/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const commandHelp = `* |/gitlab connect| - Connect your Mattermost account to yo
* pushes - includes pushes
* issue_comments - includes new issue comments
* merge_request_comments - include new merge-request comments
* pipeline - includes pipeline triggers
* pipeline - includes pipeline runs
* tag - include tag creation
* pull_reviews - includes merge request reviews
* label:"<labelname>" - must include "merges" or "issues" in feature list when using a label
Expand Down Expand Up @@ -82,8 +82,7 @@ const (
commandDelete = "delete"
commandList = "list"

commandRun = "run"
commandTrigger = "trigger"
commandRun = "run"
)

const (
Expand Down Expand Up @@ -710,10 +709,6 @@ func getAutocompleteData(config *configuration) *model.AutocompleteData {
pipelineRun.AddTextArgument("Project path: includes user or group name with optional slash project name", "", "owner[/repo] [ref]")
pipelines.AddCommand(pipelineRun)

pipelineJobTrigger := model.NewAutocompleteData(commandTrigger, "[job-name]", "Trigger a job of a running pipeline for the provided project")
pipelineJobTrigger.AddTextArgument("Job name: the name of the job to trigger in a running pipeline", "", "[job-name]")
pipelines.AddCommand(pipelineJobTrigger)

gitlab.AddCommand(pipelines)

settings := model.NewAutocompleteData("settings", "[setting]", "Update your user settings")
Expand Down

0 comments on commit 5772f04

Please sign in to comment.