go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
45.09k stars 5.49k forks source link

Show mirror/import activity #7285

Open Aviortheking opened 5 years ago

Aviortheking commented 5 years ago

Description

imported or mirrored repos don't show activity in the activity page

Screenshots

Example from Gitlab (my old repos location) image My gitea instance (I moved/mirrored every repos) image

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

Mikaela commented 5 years ago

I also wish to see this feature

sapk commented 5 years ago

Looking at : https://github.com/go-gitea/gitea/blob/6311e4ce6aba67d15a199d94adbdb81f9acbe9ce/models/action.go#L832 Currently syncing is a action by itself attributed to the owner and we don't trigger code update action on it : https://github.com/go-gitea/gitea/blob/6311e4ce6aba67d15a199d94adbdb81f9acbe9ce/models/repo_watch.go#L115

lafriks commented 5 years ago

Importing previous activity is close to impossible as that would require scanning all git history and importing it all into Gitea database

Aviortheking commented 5 years ago

OK i understand but is it possible for mirror to add to history after ?