-
-
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
Commit URL environment variable #11738
Comments
This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions. |
I'd still find this useful |
@sshaikh Do you mean you'd like the environment variable GITEA_COMMIT_URL to be set to say: https://gitea.com/xorm/xorm/commit/76d6b9fdf55b1cc4ed9a8bb8b1cdc0910cdff92e That doesn't make sense. The best we could provide would be to set the gitea APP_URL as an environment variable. Git's post-receive scripts receive on stdin the list of refs changed: [1]
Any number of commits may have occurred between old-SHA and new-SHA and any number of refs might be updated. You will always have to regenerate the urls yourself. |
Yes, I actually meant the URL up until the username part, so APP_URL would probably be a better name. |
Fix go-gitea#11738 Signed-off-by: Andrew Thornton <art27@cantab.net>
As well as GITEA_REPO_NAME and GITEA_REPO_USER_NAME, something like GITEA_COMMIT_URL would be great to push out by post_receive scripts. At the moment I'm constructing them (not a big deal).
The text was updated successfully, but these errors were encountered: