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

x/review/git-codereview: add commit hook that transforms issue reference #XXX into golang/go#XXX in subrepos #9273

Closed
minux opened this issue Dec 11, 2014 · 11 comments

Comments

@minux
Copy link
Member

minux commented Dec 11, 2014

Migrated from #9254.

@paranoiacblack paranoiacblack changed the title review: make "git change" transform "fixes #XXX" to "fixes golang/go#XXX" when sending subrepo changes? review: add commit hook that transforms issue reference #XXX int golang/go#XXX in subrepos Dec 12, 2014
@paranoiacblack paranoiacblack changed the title review: add commit hook that transforms issue reference #XXX int golang/go#XXX in subrepos review: add commit hook that transforms issue reference #XXX into golang/go#XXX in subrepos Dec 12, 2014
@josharian
Copy link
Contributor

@rsc I'd like to fix this; I've been doing manual cleanup because of it. However, it means making git-codereview Go-specific and/or introducing some config, both of which you're not keen on. Input?

cc @bradfitz

@bradfitz
Copy link
Contributor

I have no opinion on this.

@adg
Copy link
Contributor

adg commented Dec 28, 2014

I'd be happy to have a list of repos that should close issues on the golang/go tracker.

@minux
Copy link
Member Author

minux commented Dec 28, 2014

so we definitely don't want per-repository (optional) configuration file for the
review tool?

@adg
Copy link
Contributor

adg commented Dec 28, 2014

Repo-level config files have the unfortunate property that the config
changes depending on the state of the repo. That makes me lean away from
them.

@bradfitz
Copy link
Contributor

Binary-level config has the unfortunate property that the config changes depend on when people updated their codereview binary.

@adg
Copy link
Contributor

adg commented Dec 29, 2014

Yeah but at least the config won't change when you switch branches, etc.

On 29 December 2014 at 11:17, Brad Fitzpatrick notifications@github.com
wrote:

Binary-level config has the unfortunate property that the config changes
depend on when people updated their codereview binary.


Reply to this email directly or view it on GitHub
#9273 (comment).

@minux
Copy link
Member Author

minux commented Dec 29, 2014

On Sun, Dec 28, 2014 at 6:48 PM, Andrew Gerrand notifications@github.com
wrote:

Repo-level config files have the unfortunate property that the config
changes depending on the state of the repo. That makes me lean away from
them.

We can make the codereview tool always use the configuration file from the
master
branch (or even the origin/master branch), so it's independent of which
branch the
user is in.

(It seems this is how .gitattributes works, so there are precedent on
always using
the configuration from the master branch)

@bradfitz
Copy link
Contributor

Yeah but at least the config won't change when you switch branches, etc.

In addition to what @minux said, do you expect this configuration to update more than approximately once per year at most?

@adg
Copy link
Contributor

adg commented Jan 5, 2015

I don't have a strong opinion.

On 29 December 2014 at 11:29, Brad Fitzpatrick notifications@github.com
wrote:

Yeah but at least the config won't change when you switch branches, etc.

In addition to what @minux https://github.com/minux said, do you expect
this configuration to update more than approximately once per year at most?


Reply to this email directly or view it on GitHub
#9273 (comment).

@minux
Copy link
Member Author

minux commented Jan 6, 2015

I really miss this feature.

Even though I'm perfect aware that I should use golang/go#XXXX
when sending changes for sub-repos, I still recognize the problem
only after I've pushed the CL. It's just to easy to write Fixes #XXXX
always.

And I also propose that we put it into the commit-msg hook so that
people using git directly will also benefit.

@mikioh mikioh changed the title review: add commit hook that transforms issue reference #XXX into golang/go#XXX in subrepos x/review/git-codereview: add commit hook that transforms issue reference #XXX into golang/go#XXX in subrepos Aug 17, 2015
@golang golang locked and limited conversation to collaborators Aug 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants