-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Provide mechanism for configuring submodule aliases #15180
Provide mechanism for configuring submodule aliases #15180
Conversation
Sometimes Gitea users would like submodules when displayed on the website to have a different alias than what is normally inferred by gitea. This PR provides a mechanism to configure this. Fix go-gitea#15178 Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
Or we could have a configuration on repository setting UI. |
Yes, were would need a common repository settings table: type Setting struct {
ID int64
UserID int64
RepoID int64
Key string
Value string
} Which could be used to store per user/per repo settings, with Key, RepoID and UserID forming an unique index. Then we can remove some crap from repo and user, and allow other common settings |
…ases-for-submodules
conflicts resolved @6543 |
Codecov Report
@@ Coverage Diff @@
## main #15180 +/- ##
==========================================
+ Coverage 45.44% 45.47% +0.03%
==========================================
Files 710 710
Lines 83880 83917 +37
==========================================
+ Hits 38122 38165 +43
+ Misses 39618 39612 -6
Partials 6140 6140
Continue to review full report at Codecov.
|
Co-authored-by: a1012112796 <1012112796@qq.com>
…ases-for-submodules
conflicts fixed again |
This pull request 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 months. Thank you for your contributions. |
Let's wait for that PR #22500 merged first. |
Sometimes Gitea users would like submodules when displayed on the website to have
a different alias than what is normally inferred by gitea.
This PR provides a mechanism to configure this.
Fix #15178
Signed-off-by: Andrew Thornton art27@cantab.net