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
Automate updating AUTHORS.txt before release #308
Comments
I wonder if need this file, isn't https://github.com/jquery/sizzle/graphs/contributors enough? |
Personally I don't think this is needed too, but if it is included it must be up-to-date. |
This concerns other repos as well, so summoning @jquery/core @scottgonzalez @arschmitz. |
Here's what we do for jQuery UI: https://github.com/jquery/jquery-ui/blob/c89cb74893c4f99d6163e29110c36d9e02dc7df1/Gruntfile.js#L338 You don't need the author mapping to hide email addresses in Sizzle, so the implementation is a bit simpler. You probably also don't have any prior authors (I assume the git history is complete). |
Feel free to assign this to me. PR welcome? |
@arthurvr there is no rush, let's decide how we can handle this. https://github.com/jquery/jquery-ui/blob/c89cb74893c4f99d6163e29110c36d9e02dc7df1/Gruntfile.js#L351 :-) Sounds like this task could be used in couple of projects, how about we moved it to the separate repo and publish it? btw, so you think we need this file? Could clarify? |
@markelog it is its own repo and published https://github.com/scottgonzalez/grunt-git-authors. It's already used in many other repos including Core, UI, Mobile, and Chassis. |
Also the contributor graph is not enough it does not list all contributors. For example because he removed the email he used to make the commits from his github account Scott Jehl does not show on the mobile graph even though he's the first contributor and one of the top all time contributors. |
@arthurvr good to know, thanks for the info. |
This seems like one of those things that should be handled via Git .mailmap. Doesn't that work? |
@mzgol thats a bit easier said then done you would first have to know they were missing in the first place, then find out what the current email on their account is ( which in theory is not always even possible they may no longer even have a github account which is another case not covered by the graphs that I don't believe there is a way to work around ). This case was obvious him being a former team member others with only a single commit would be nearly impossible to find. Also i do not know if github takes into account the .mailmap for their graphs or not i would think they did but never tried. |
Sure; I was just surprised about this specific case of the original Mobile author.
It does work and I'd be very surprised if it didn't. It's not something GitHub can decide not to take into account; Git itself supports .mailmap pretty deeply so any commands regarding commit authors take that into account automatically. EDIT: OK, not any commands; e.g. SourceTree shows old commits with original names but for example GitHub respects the .mailmap even there. |
The key factor is that GitHub graphs only show GitHub users, and that's never guaranteed to be a complete list. |
Right; I think that settles it. We can go back to the original topic then, i.e. how to automate updating the file in Sizzle. |
As seen in jQuery UI is probably the easiest way. Just to run that before releases. |
@arthurvr Just for reference a little simpler version with out the prior authors since thats not needed here https://github.com/jquery/css-chassis/blob/master/Gruntfile.js#L19 |
This is a big "just". I'd like to have it automated so that we don't forget about it. What's the current release process for Sizzle, @timmywil @gibson042? Just tag & publish manually or do we have anything automatic? |
@arschmitz Of course.
Agreed on that, if we have an automated system for releases, it must be integrated in there. Only thing is that we will have the same nearly the same piece of code written in 3 repos (or more) then. Nearly exactly the same task exists in Chassis and UI. |
I'm not sure it can be blindly automated though. It seems that every jQuery Core release there are commits that make it through with a changed or bad name/email, and may require |
The CLA check should catch all the common mistakes. |
I've usually released with manual tagging & publishing, but this is the perfect opportunity to automate. PR welcome, @arthurvr. |
I don't really know what you guys mean with "the CLA check", and don't know how to integrate it. Somebody else may take it. |
We're using jquery-release now so this is no longer an issue. |
Our AUTHORS.txt file is terribly outdated, even @markelog isn't on the list. We should automate populating it, at least before releases.
The text was updated successfully, but these errors were encountered: