You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MM-67473 Adding support to workflow run success/failures (#975)
* WIP: Adding support for workflow run events
* Removing unused values
* Refactoring for simplicity and removing redundant functions
* Fixing linter error
* Added missing subscription filter checks
* Added tests, improving workflow handler flow
* Fixing org repo order in text fixture
* Updated test assertions and added cancelled and timed_out cases
subscriptionsAdd:=model.NewAutocompleteData("add", "[owner/repo] [features] [flags]", "Subscribe the current channel to receive notifications about opened pull requests and issues for an organization or repository. [features] and [flags] are optional arguments")
1139
1143
subscriptionsAdd.AddTextArgument("Owner/repo to subscribe to", "[owner/repo]", "")
1140
-
subscriptionsAdd.AddNamedTextArgument("features", "Comma-delimited list of one or more of: issues, pulls, pulls_merged, pulls_created, pushes, creates, deletes, issue_creations, issue_comments, pull_reviews, releases, workflow_success, workflow_failure, discussions, discussion_comments, label:\"<labelname>\". Defaults to pulls,issues,creates,deletes", "", `/[^,-\s]+(,[^,-\s]+)*/`, false)
1144
+
subscriptionsAdd.AddNamedTextArgument("features", "Comma-delimited list of one or more of: issues, pulls, pulls_merged, pulls_created, pushes, creates, deletes, issue_creations, issue_comments, pull_reviews, releases, workflow_success, workflow_failure, workflow_run_failure, workflow_run_success, discussions, discussion_comments, label:\"<labelname>\". Defaults to pulls,issues,creates,deletes", "", `/[^,-\s]+(,[^,-\s]+)*/`, false)
1141
1145
1142
1146
ifconfig.GitHubOrg!="" {
1143
1147
subscriptionsAdd.AddNamedStaticListArgument("exclude-org-member", "Events triggered by organization members will not be delivered (the organization config should be set, otherwise this flag has not effect)", false, []model.AutocompleteListItem{
" * `pull_reviews` - includes pull request reviews\n"+
454
454
" * `workflow_failure` - includes workflow job failure\n"+
455
455
" * `workflow_success` - includes workflow job success\n"+
456
+
" * `workflow_run_failure` - includes workflow run failures (failures, cancellations, timeouts)\n"+
457
+
" * `workflow_run_success` - includes workflow run successes\n"+
456
458
" * `releases` - includes release created and deleted\n"+
457
459
" * `label:<labelname>` - limit pull request and issue events to only this label. Must include `pulls` or `issues` in feature list when using a label.\n"+
458
460
" * `discussions` - includes new discussions\n"+
@@ -489,6 +491,12 @@ It now has **{{.GetRepo.GetStargazersCount}}** stars.`))
Branch: `+"`main`"+` | Run [#42](https://github.com/mattermost/mattermost-plugin-github/actions/runs/99999) | Triggered by [panda](https://github.com/panda)
Branch: `+"`main`"+` | Run [#42](https://github.com/mattermost/mattermost-plugin-github/actions/runs/99999) | Triggered by [panda](https://github.com/panda)
[\[mattermost-plugin-github\]](https://github.com/mattermost/mattermost-plugin-github) Workflow [CI Pipeline](https://github.com/mattermost/mattermost-plugin-github/actions/runs/99999) was cancelled :no_entry_sign:
1635
+
Branch: `+"`main`"+` | Run [#42](https://github.com/mattermost/mattermost-plugin-github/actions/runs/99999) | Triggered by [panda](https://github.com/panda)
[\[mattermost-plugin-github\]](https://github.com/mattermost/mattermost-plugin-github) Workflow [CI Pipeline](https://github.com/mattermost/mattermost-plugin-github/actions/runs/99999) timed out :warning:
1660
+
Branch: `+"`main`"+` | Run [#42](https://github.com/mattermost/mattermost-plugin-github/actions/runs/99999) | Triggered by [panda](https://github.com/panda)
0 commit comments