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

Make Pull Request message from PR #4716 configurable #5801

Closed
luxifr opened this issue Jan 22, 2019 · 7 comments · Fixed by #10664
Closed

Make Pull Request message from PR #4716 configurable #5801

luxifr opened this issue Jan 22, 2019 · 7 comments · Fixed by #10664
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented type/enhancement An improvement of existing functionality

Comments

@luxifr
Copy link

luxifr commented Jan 22, 2019

PR #4716 introduced a feature that will output a link to create a PR when pushing to a repo. Personally, I find it pretty annoying and I couldn't find any meaningful discussion on the PR about whether this is at all sensible, to begin with.

I'd argue that teams who already use a PR workflow don't really need this message and teams who decidedly don't use a PR workflow will be just as annoyed as I am because it clutters their output when pushing stuff - every - single - time! While I myself don't do this, I could imagine that this may even break some people's automation when it relies on Git's output on push.

As I wouldn't assume that this is meant to implement some sort of agenda to push people to adopt the PR workflow, this should be optional. Ideally, this should be configurable globally and the global default should be overridable per repository and even per branch. But for starters, a global "on/off" switch for this "feature" should be the least before shipping this.

@lafriks lafriks added the type/enhancement An improvement of existing functionality label Jan 22, 2019
@stale
Copy link

stale bot commented Mar 23, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale stale bot added the issue/stale label Mar 23, 2019
@luxifr
Copy link
Author

luxifr commented Mar 23, 2019

bump

@stale stale bot removed the issue/stale label Mar 23, 2019
@lunny lunny added the issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented label Mar 24, 2019
@flozzone
Copy link
Contributor

flozzone commented Mar 6, 2020

This message annoys some of our developers too, since we just migrated to gitea we don't use pull requests at the moment (We will do so later on). But for now we would really like to see a possibility to enable/disable the displaying of this message within the global configuration file.

@JulienTant since you implemented this feature, would it be possible for you to add a configuration flag to disable the message?

@guillep2k
Copy link
Member

We could (should?) suppress the message if PRs are disabled for the repository.

@JulienTant
Copy link
Contributor

Hi, I implemented that moons ago and currently won’t find time to make any change on that.

@zeripath
Copy link
Contributor

zeripath commented Mar 7, 2020

You can change the templates/repo/issue/view_content/pull.tmpl template as it stands now. (It's a bit hairy as that template is a bit complex - and frankly it shouldn't be there.)

Probably the best improvement would be to make these things be templatable in some way. Easiest option being just a global template with per repo templates (probably from a file in the default branch .gitea directory) being an extension.

If you can't offer a PR yourself and really want this feature - try to help spec this out further and/or consider offering a bounty on bountysource.

--

Edit: I have gotten the wrong end of the stick here...

@flozzone
Copy link
Contributor

flozzone commented Mar 9, 2020

@jolheiser This is exactly what I was looking for. Thanks!

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
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
Development

Successfully merging a pull request may close this issue.

7 participants