mirror of
1
Fork 0

Hide the "Details" link of commit status when the user cannot access actions (testifylint)

This commit is contained in:
Earl Warren 2024-08-04 08:54:32 +02:00
parent 0dbc623028
commit c8e5e39865
No known key found for this signature in database
GPG Key ID: 0579CB2928A78A00
1 changed files with 2 additions and 2 deletions

View File

@ -244,11 +244,11 @@ func TestFindRepoRecentCommitStatusContexts(t *testing.T) {
} }
func TestCommitStatusesHideActionsURL(t *testing.T) { func TestCommitStatusesHideActionsURL(t *testing.T) {
assert.NoError(t, unittest.PrepareTestDatabase()) require.NoError(t, unittest.PrepareTestDatabase())
repo := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 4}) repo := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 4})
run := unittest.AssertExistsAndLoadBean(t, &actions_model.ActionRun{ID: 791, RepoID: repo.ID}) run := unittest.AssertExistsAndLoadBean(t, &actions_model.ActionRun{ID: 791, RepoID: repo.ID})
assert.NoError(t, run.LoadAttributes(db.DefaultContext)) require.NoError(t, run.LoadAttributes(db.DefaultContext))
statuses := []*git_model.CommitStatus{ statuses := []*git_model.CommitStatus{
{ {