Skip to content
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

suggest allow custom default merge message template #11089

Closed
7 tasks
a1012112796 opened this issue Apr 16, 2020 · 3 comments · Fixed by #18177
Closed
7 tasks

suggest allow custom default merge message template #11089

a1012112796 opened this issue Apr 16, 2020 · 3 comments · Fixed by #18177
Labels
good first issue Likely to be an easy fix hacktoberfest issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented type/enhancement An improvement of existing functionality

Comments

@a1012112796
Copy link
Member

a1012112796 commented Apr 16, 2020

  • Gitea version (or commit ref):
  • Git version:
  • Operating system:
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

Hello, I think it's usefull , if user can define merge message template, maybe we can allow user to do it by define .gitea/MERGE_MESSAGE_{merge_style}_TEMPLATE.md file in base branch. which is Similar to issue and pr template. thanks.

Screenshots

@lafriks lafriks added the type/enhancement An improvement of existing functionality label Apr 16, 2020
@stale
Copy link

stale bot commented Jun 15, 2020

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.

@stale stale bot added the issue/stale label Jun 15, 2020
@zeripath zeripath added issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented and removed issue/stale labels Jun 15, 2020
@zeripath zeripath reopened this Jun 15, 2020
@zeripath
Copy link
Contributor

I think this is still valid

@zeripath zeripath added the good first issue Likely to be an easy fix label Sep 30, 2020
@zeripath
Copy link
Contributor

A relatively simple first solution would be to just provide per-instance templates - these could actually use gotemplates and have the models.Issue etc. passed in.

Per-repository templates would need to go into the .gitea/ folder on the $master branch using code from the issue templates and template repositories code. If we use gotemplates for this we cannot just pass in the models.Issue etc as it would not be too difficult to use methods on the Issue to then change the User etc. Therefore some kind of defined variable replacement would be needed - Again similar to that used in issue/repository templates.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Likely to be an easy fix hacktoberfest issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented type/enhancement An improvement of existing functionality
Projects
None yet
4 participants