Telegram hook on the release sends a link to the tag, not to the release #8943

Closed
opened 2025-11-02 08:23:46 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @dav-sea on GitHub (May 12, 2022).

Description

When creating a release in repo, the telegram bot sends the following message:

[{owner}/{repo}] Release created: {release_title} by {publisher}

A link is added to {release_title} : https://{base_url}/{owner}/{repo}/src/{tag_name}
This is a link to the tag although a link to the release was expected: https://{base_url}/{owner}/{repo}/releases/tag/{tag_name}

Gitea Version

1.16.5

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Windows 10

How are you running Gitea?

APP_NAME = <hidden>
RUN_USER = <hidden>
RUN_MODE = prod

[database]
DB_TYPE  = postgres
HOST     = <hidden>
NAME     = <hidden>
USER     = <hidden>
PASSWD   = <hidden>
SCHEMA   = 
SSL_MODE = <hidden>
CHARSET  = <hidden>
PATH     = <hidden>
LOG_SQL  = false

[repository]
ROOT = <hidden>
DEFAULT_PRIVATE = private
DEFAULT_BRANCH = master

[server]
SSH_DOMAIN       = <hidden>
DOMAIN           = <hidden>
ROOT_URL         = <hidden>
HTTP_PORT        = <hidden>
DISABLE_SSH      = false
SSH_PORT         = 22
LFS_START_SERVER = true
LFS_CONTENT_PATH = <hidden>
LFS_JWT_SECRET   = <hidden>
OFFLINE_MODE     = false
LANDING_PAGE = login
LFS_MAX_FILE_SIZE = 2147483648

[lfs]
STORAGE_TYPE = local
PATH = <hidden>

[ui]
ISSUE_PAGING_NUM = 30

[attachment]
PATH = <hidden>
MAX_SIZE = 2048
MAX_FILES = 6

[mailer]
ENABLED = false

[service]
REGISTER_EMAIL_CONFIRM            = false
ENABLE_NOTIFY_MAIL                = false
DISABLE_REGISTRATION              = true
ALLOW_ONLY_EXTERNAL_REGISTRATION  = false
ENABLE_CAPTCHA                    = false
REQUIRE_SIGNIN_VIEW               = true
DEFAULT_KEEP_EMAIL_PRIVATE        = false
DEFAULT_ALLOW_CREATE_ORGANIZATION = false
DEFAULT_ENABLE_TIMETRACKING       = true
NO_REPLY_ADDRESS                  = noreply.localhost
DEFAULT_USER_VISIBILITY = private

[picture]
DISABLE_GRAVATAR        = false
ENABLE_FEDERATED_AVATAR = true

[openid]
ENABLE_OPENID_SIGNIN = false
ENABLE_OPENID_SIGNUP = false

[session]
PROVIDER = file

[log]
MODE      = console
LEVEL = INFO
ROOT_PATH = <hidden>
ROUTER    = console
STACKTRACE_LEVEL = Error

[git.timeout]
DEFAULT = 18000
MIGRATE = 86400
MIRROR  = 7200
CLONE   = 18000
PULL    = 18000
GC      = 30

[security]
INSTALL_LOCK       = true
INTERNAL_TOKEN     = <hidden>
PASSWORD_HASH_ALGO = <hidden>

Database

PostgreSQL

Originally created by @dav-sea on GitHub (May 12, 2022). ### Description When creating a release in repo, the telegram bot sends the following message: ``` [{owner}/{repo}] Release created: {release_title} by {publisher} ``` A link is added to `{release_title}` : `https://{base_url}/{owner}/{repo}/src/{tag_name}` This is a link to the tag although a link to the release was expected: `https://{base_url}/{owner}/{repo}/releases/tag/{tag_name}` ### Gitea Version 1.16.5 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System Windows 10 ### How are you running Gitea? ``` APP_NAME = <hidden> RUN_USER = <hidden> RUN_MODE = prod [database] DB_TYPE = postgres HOST = <hidden> NAME = <hidden> USER = <hidden> PASSWD = <hidden> SCHEMA = SSL_MODE = <hidden> CHARSET = <hidden> PATH = <hidden> LOG_SQL = false [repository] ROOT = <hidden> DEFAULT_PRIVATE = private DEFAULT_BRANCH = master [server] SSH_DOMAIN = <hidden> DOMAIN = <hidden> ROOT_URL = <hidden> HTTP_PORT = <hidden> DISABLE_SSH = false SSH_PORT = 22 LFS_START_SERVER = true LFS_CONTENT_PATH = <hidden> LFS_JWT_SECRET = <hidden> OFFLINE_MODE = false LANDING_PAGE = login LFS_MAX_FILE_SIZE = 2147483648 [lfs] STORAGE_TYPE = local PATH = <hidden> [ui] ISSUE_PAGING_NUM = 30 [attachment] PATH = <hidden> MAX_SIZE = 2048 MAX_FILES = 6 [mailer] ENABLED = false [service] REGISTER_EMAIL_CONFIRM = false ENABLE_NOTIFY_MAIL = false DISABLE_REGISTRATION = true ALLOW_ONLY_EXTERNAL_REGISTRATION = false ENABLE_CAPTCHA = false REQUIRE_SIGNIN_VIEW = true DEFAULT_KEEP_EMAIL_PRIVATE = false DEFAULT_ALLOW_CREATE_ORGANIZATION = false DEFAULT_ENABLE_TIMETRACKING = true NO_REPLY_ADDRESS = noreply.localhost DEFAULT_USER_VISIBILITY = private [picture] DISABLE_GRAVATAR = false ENABLE_FEDERATED_AVATAR = true [openid] ENABLE_OPENID_SIGNIN = false ENABLE_OPENID_SIGNUP = false [session] PROVIDER = file [log] MODE = console LEVEL = INFO ROOT_PATH = <hidden> ROUTER = console STACKTRACE_LEVEL = Error [git.timeout] DEFAULT = 18000 MIGRATE = 86400 MIRROR = 7200 CLONE = 18000 PULL = 18000 GC = 30 [security] INSTALL_LOCK = true INTERNAL_TOKEN = <hidden> PASSWORD_HASH_ALGO = <hidden> ``` ### Database PostgreSQL
GiteaMirror added the good first issuetype/bug labels 2025-11-02 08:23:46 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#8943