Skip to content

Commit

Permalink
Use different SVG for pending and running actions (#23836)
Browse files Browse the repository at this point in the history
  • Loading branch information
HesterG authored Mar 31, 2023
1 parent ca03ca9 commit 7df036f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/repo/commit_status.tmpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{if eq .State "pending"}}
{{svg "octicon-dot-fill" 18 "commit-status icon text yellow"}}
{{svg "octicon-dot-fill" 18 "commit-status icon text grey"}}
{{end}}
{{if eq .State "running"}}
{{svg "octicon-dot-fill" 18 "commit-status icon text yellow"}}
Expand Down
6 changes: 5 additions & 1 deletion tests/integration/repo_commits_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func testRepoCommitsWithStatus(t *testing.T, resp, respOne *httptest.ResponseRec
}

func TestRepoCommitsWithStatusPending(t *testing.T) {
doTestRepoCommitWithStatus(t, "pending", "octicon-dot-fill", "yellow")
doTestRepoCommitWithStatus(t, "pending", "octicon-dot-fill", "grey")
}

func TestRepoCommitsWithStatusSuccess(t *testing.T) {
Expand All @@ -129,6 +129,10 @@ func TestRepoCommitsWithStatusWarning(t *testing.T) {
doTestRepoCommitWithStatus(t, "warning", "gitea-exclamation", "yellow")
}

func TestRepoCommitsWithStatusRunning(t *testing.T) {
doTestRepoCommitWithStatus(t, "running", "octicon-dot-fill", "yellow")
}

func TestRepoCommitsStatusParallel(t *testing.T) {
defer tests.PrepareTestEnv(t)()

Expand Down

0 comments on commit 7df036f

Please sign in to comment.