-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Commits pushed with deploy keys not shown in owner/member dashboard #21324
Labels
issue/confirmed
Issue has been reviewed and confirmed to be present or accepted to be implemented
type/bug
Milestone
Comments
Maybe because |
@lunny All repos the user is a member of seems to be auto-watched. |
Still reproducible on 1.18.1. |
Still reproducible on 1.19.2. |
wxiaoguang
added
the
issue/confirmed
Issue has been reviewed and confirmed to be present or accepted to be implemented
label
May 2, 2023
Thank you for the detailed steps and sorry for the inconvenience. I was going to take a look at it but recently I have some high priority PRs. Hopefully some people could help to look into this problem. 🙏 |
lunny
pushed a commit
that referenced
this issue
May 10, 2023
Fix #21324 In the current logic, if the `Actor` user is not an admin user, all activities from private organizations won't be shown even if the `Actor` user is a member of the organization. As mentioned in the issue, when using deploy key to make a commit and push, the activity's `act_user_id` will be the id of the organization so the activity won't be shown to non-admin users because the visibility of the organization is private. https://github.com/go-gitea/gitea/blob/55a57177600028ba8e4a480a08f1ee4d69d219d6/models/activities/action.go#L490-L503 This PR improves this logic so the activities of private organizations can be shown.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
issue/confirmed
Issue has been reviewed and confirmed to be present or accepted to be implemented
type/bug
Description
After upgrading from 1.15.x to 1.17.2, all commits pushed by an organization using deploy keys with write access are not shown in the dashboard of owner or member users of the org/repo receiving the push. The commits are shown on the dashboard of admin users. Tried "Resynchronize pre-receive, update and post-receive hooks of all repositories." without luck.
Reproducible on 1.17.2, not reproducible on 1.15.x and 1.16.x.
Steps to reproduce:
Gitea Version
1.17.2
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
Docker container on Docker Engine 20.10.17.
Database
SQLite
The text was updated successfully, but these errors were encountered: