From 8e61c4d7ef5519470f8792c980bab5f59c6969e8 Mon Sep 17 00:00:00 2001 From: Petter Kvalvaag Date: Tue, 14 Feb 2023 11:18:04 +0100 Subject: [PATCH] Add Azure Devops as valid CI system Fixes #2661 Signed-off-by: Petter Kvalvaag --- checks/evaluation/ci_tests.go | 2 +- checks/evaluation/ci_tests_test.go | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/checks/evaluation/ci_tests.go b/checks/evaluation/ci_tests.go index b5d13b304e4..6954995d1e6 100644 --- a/checks/evaluation/ci_tests.go +++ b/checks/evaluation/ci_tests.go @@ -128,7 +128,7 @@ func isTest(s string) bool { for _, pattern := range []string{ "appveyor", "buildkite", "circleci", "e2e", "github-actions", "jenkins", "mergeable", "packit-as-a-service", "semaphoreci", "test", "travis-ci", - "flutter-dashboard", "Cirrus CI", + "flutter-dashboard", "Cirrus CI", "azure-pipelines", } { if strings.Contains(l, pattern) { return true diff --git a/checks/evaluation/ci_tests_test.go b/checks/evaluation/ci_tests_test.go index edf949f8baa..c7f630b24d3 100644 --- a/checks/evaluation/ci_tests_test.go +++ b/checks/evaluation/ci_tests_test.go @@ -101,6 +101,13 @@ func Test_isTest(t *testing.T) { }, want: true, }, + { + name: "azure-pipelines", + args: args{ + s: "azure-pipelines", + }, + want: true, + }, { name: "non-existing", args: args{