We have a repository (hosted on a GitLab instance) which a handful of projects still reference, but has been deprecated in favor of another solution.
Is there any way to mark a repository as "deprecated"?
Ideally, every fetch from this repository (as part of a git submodule update
) would cause a giant message to be printed during the fetch. I was expecting to add a simple Git hook that would print this deprecated message. However, there doesn't seem to be a "run this on every fetch" hook.
Also, I see nothing in GitLab that would enable this.
Edit the title of the README.Remove the current title, and instead write # DEPRECATED . Add a reason to the README, at the top, stating that: “This is no longer supported, please consider using XXX instead.” If there is a reason for deprecating the repository, add it here.
Git hooks are scripts that run automatically every time a particular event occurs in a Git repository. They let you customize Git's internal behavior and trigger customizable actions at key points in the development life cycle.
Gitlab has feature called "Broadcast messages" since 6.3. On the screenshot they shows message with the same color as header and many users could simply not notice it.
However, it is possible to choose color for these messages since 6.5. For example, administrators at my work once made blue message and it was very hard not to notice the message.
So you may
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With