Add guide page to actions when there's no workflows (#28145)

Before:

![image](599d40c1-9b8d-4189-9286-c9c36fb780dd)

After:

![image](848a73d1-aaec-478f-93a7-adcc7ee18907)
This commit is contained in:
yp05327 2023-11-21 17:27:33 +09:00 committed by GitHub
parent 976a9926d7
commit a6a674e26a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 0 deletions

View file

@ -563,6 +563,7 @@ func RepoAssignment(ctx *Context) context.CancelFunc {
ctx.Data["CanWriteCode"] = ctx.Repo.CanWrite(unit_model.TypeCode)
ctx.Data["CanWriteIssues"] = ctx.Repo.CanWrite(unit_model.TypeIssues)
ctx.Data["CanWritePulls"] = ctx.Repo.CanWrite(unit_model.TypePullRequests)
ctx.Data["CanWriteActions"] = ctx.Repo.CanWrite(unit_model.TypeActions)
canSignedUserFork, err := repo_module.CanUserForkRepo(ctx, ctx.Doer, ctx.Repo.Repository)
if err != nil {