Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Actions" tab says "There are no workflows yet." #28332

Closed
eduardosm opened this issue Dec 3, 2023 · 3 comments · Fixed by #28359
Closed

"Actions" tab says "There are no workflows yet." #28332

eduardosm opened this issue Dec 3, 2023 · 3 comments · Fixed by #28359
Labels
Milestone

Comments

@eduardosm
Copy link

eduardosm commented Dec 3, 2023

Description

"Actions" tab says "There are no workflows yet.", which is not true.

The tab shows "1", which suggest that there is a workflow running. Additionally, status icons appear in commits and PRs.

Gitea Version

1.21.1

Can you reproduce the bug on the Gitea demo site?

Yes

https://try.gitea.io/endfkbyn/test2/actions

Log Gist

There are not relevant logs

Screenshots

image

Git Version

The one included in the Docker image

Operating System

Linux ARM64

How are you running Gitea?

Official Docker image (gitea/gitea:1.21)

Database

PostgreSQL

@eduardosm
Copy link
Author

Update: It looks like this bugs happens when workflows are initially added in a secondary branch. When they are directly added to the main branch, they show in the "Actions" tab.

@lng2020
Copy link
Member

lng2020 commented Dec 4, 2023

#28145 Either it introduced a bug or revealed a bug.

a1012112796 added a commit to a1012112796/gitea that referenced this issue Dec 4, 2023
quick fix go-gitea#28332, do it by a quick check in
`ActionRun` table.

TODO: looks need more jobs about workflow
lables check in future.

Signed-off-by: a1012112796 <1012112796@qq.com>
@yp05327
Copy link
Contributor

yp05327 commented Dec 4, 2023

Maybe in this page we should have a branch selector.

@lunny lunny added the skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. label Dec 5, 2023
@lunny lunny added this to the 1.21.2 milestone Dec 5, 2023
@lunny lunny removed the skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. label Dec 5, 2023
techknowlogick pushed a commit that referenced this issue Dec 6, 2023
…orkflows but other branches have (#28359) (#28365)

Backport #28359 by @lunny

The left menu will only display the default branch's workflows but the
right side will display the runs triggered by all branches' workflows.
So we cannot hide right side if default branch has no workflows.

Fix #28332 
Replace #28333

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
a1012112796 added a commit to a1012112796/gitea that referenced this issue Dec 6, 2023
quick fix go-gitea#28332, do it by a quick check in
`ActionRun` table.

TODO: looks need more jobs about workflow
lables check in future.

Signed-off-by: a1012112796 <1012112796@qq.com>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.