-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[Note] Refactor Pull MergeBox logic #11077
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. |
ping |
@6543 still valid? |
Yes, this is still an issue. It is very related to a problem I am having, which is the following: I want to use a default merge message (by using The reason for this is that the logic constructing the default-default merge message (i.e., if What would be desired is a way to inject these lines into the custom merge template, most likely via some variables. |
…ssages (#31211) This PR introduces the `ReviewedOn` and `ReviewedBy` variables for the default merge message templates (e.g., `.gitea/default_merge_message/MERGE_TEMPLATE.md`). This allows customizing the default merge messages while retaining these trailers. This also moves the associated logic out of `pull.tmpl` into the relevant Go function. This is a first contribution towards #11077. --- For illustration, this allows to recreate the "default default" merge message with the following template: ``` .gitea/default_merge_message/MERGE_TEMPLATE.md Merge pull request '${PullRequestTitle}' (${PullRequestReference}) from ${HeadBranch} into ${BaseBranch} ${ReviewedOn} ${ReviewedBy} ```
currently a lot of the logic went into
templates/repo/issue/view_content/pull.tmpl
witch is general a bad idear.move status check logick back into a go function ...
(red vs yelow vs green ... icon)
(if if can merged or force-merged or blocked)
come up with: #11074
The text was updated successfully, but these errors were encountered: