Skip to content

Commit e0078cf

Browse files
committed
Add support for Gitea Actions
1 parent 198795b commit e0078cf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

supportscolor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ func supportsColor(config *configuration) ColorLevel {
210210
}
211211

212212
if _, ci := env.LookupEnv("CI"); ci {
213-
var ciEnvNames = []string{"TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE", "DRONE"}
213+
var ciEnvNames = []string{"TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "GITEA_ACTIONS", "BUILDKITE", "DRONE"}
214214
for _, ciEnvName := range ciEnvNames {
215215
_, exists := env.LookupEnv(ciEnvName)
216216
if exists {

supportscolor_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ func TestReturnBasicIfTravis(t *testing.T) {
292292
}
293293

294294
func TestReturnBasicIfCI(t *testing.T) {
295-
for _, ci := range []string{"CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"} {
295+
for _, ci := range []string{"CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "GITEA_ACTIONS", "BUILDKITE", "DRONE"} {
296296
result := SupportsColor(0, setEnvironment(&testEnvironment{
297297
env: map[string]string{"CI": "true", ci: "true"},
298298
}))

0 commit comments

Comments
 (0)