Skip to content

Fix ghost user in feeds when pushing in an actions, it should be gitea-actions #34703

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

Merged
merged 4 commits into from
Jun 17, 2025

Conversation

lunny
Copy link
Member

@lunny lunny commented Jun 12, 2025

Fix #34688

This PR will store the publisher_id of release(tag) table as pusher's id. It could be a real userID or a system user id. If the user is deleted, ghost will be replaced.

This PR will also correct the wrong user Ghost in the feeds and wrong committer on tag list page if pushing a tag from an actions. Now the behavior is the same as Github. Some codes are deleted because it tries to get commit author as pusher which is not right.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jun 12, 2025
@github-actions github-actions bot added the modifies/go Pull requests that update Go code label Jun 12, 2025
@github-actions github-actions bot added the modifies/templates This PR modifies the template files label Jun 12, 2025
@lunny lunny added type/bug backport/v1.24 This PR should be backported to Gitea 1.24 labels Jun 12, 2025
@lunny lunny marked this pull request as ready for review June 12, 2025 18:51
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jun 17, 2025
if author != nil {
emailToUser[sig.Email] = author
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why deleted? Pusher doesn't mean committer.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original logic used author as pusher which is not right.

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jun 17, 2025
@techknowlogick techknowlogick enabled auto-merge (squash) June 17, 2025 23:38
@techknowlogick techknowlogick merged commit a14db5c into go-gitea:main Jun 17, 2025
26 checks passed
@GiteaBot GiteaBot added this to the 1.25.0 milestone Jun 17, 2025
@lunny lunny deleted the lunny/fix_pusher_gitea_action branch June 18, 2025 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/v1.24 This PR should be backported to Gitea 1.24 lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/go Pull requests that update Go code modifies/templates This PR modifies the template files type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New tags always pushed as Ghost user
5 participants