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

Automate updating AUTHORS.txt before release #308

Closed
mgol opened this issue Jan 3, 2015 · 23 comments
Closed

Automate updating AUTHORS.txt before release #308

mgol opened this issue Jan 3, 2015 · 23 comments

Comments

@mgol
Copy link
Member

mgol commented Jan 3, 2015

Our AUTHORS.txt file is terribly outdated, even @markelog isn't on the list. We should automate populating it, at least before releases.

@markelog
Copy link
Member

markelog commented Jan 4, 2015

I wonder if need this file, isn't https://github.com/jquery/sizzle/graphs/contributors enough?

@arthurvr
Copy link
Member

arthurvr commented Jan 4, 2015

Personally I don't think this is needed too, but if it is included it must be up-to-date.

@mgol
Copy link
Member Author

mgol commented Jan 4, 2015

I wonder if need this file, isn't https://github.com/jquery/sizzle/graphs/contributors enough?

This concerns other repos as well, so summoning @jquery/core @scottgonzalez @arschmitz.

@scottgonzalez
Copy link
Member

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).

@arthurvr
Copy link
Member

arthurvr commented Jan 4, 2015

Feel free to assign this to me. PR welcome?

@markelog
Copy link
Member

markelog commented Jan 4, 2015

@arthurvr there is no rush, let's decide how we can handle this.

@scottgonzalez

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?

@arschmitz
Copy link
Member

@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.

@arschmitz
Copy link
Member

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.

@markelog
Copy link
Member

markelog commented Jan 4, 2015

@arthurvr good to know, thanks for the info.

@mgol
Copy link
Member Author

mgol commented Jan 4, 2015

@arschmitz

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

This seems like one of those things that should be handled via Git .mailmap. Doesn't that work?

@arschmitz
Copy link
Member

@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.

@mgol
Copy link
Member Author

mgol commented Jan 4, 2015

@arschmitz

@mzgol thats a bit easier said then done you would first have to know they were missing in the first place

Sure; I was just surprised about this specific case of the original Mobile author.

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.

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.

@scottgonzalez
Copy link
Member

The key factor is that GitHub graphs only show GitHub users, and that's never guaranteed to be a complete list.

@mgol
Copy link
Member Author

mgol commented Jan 4, 2015

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.

@arthurvr
Copy link
Member

arthurvr commented Jan 4, 2015

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.

@arschmitz
Copy link
Member

@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

@mgol
Copy link
Member Author

mgol commented Jan 4, 2015

@arthurvr

As seen in jQuery UI is probably the easiest way. Just to run that before releases.

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?

@arthurvr
Copy link
Member

arthurvr commented Jan 4, 2015

@arschmitz Of course.


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?

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.

@dmethvin
Copy link
Member

dmethvin commented Jan 4, 2015

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 .mailmap entries to clean them up. There's a step in the jquery-release script to do a really basic check that the last new name in the log is correct, but usually it requires a manual scan to be sure everything is okay. Perhaps the CLA scan will help us find these before they land?

@scottgonzalez
Copy link
Member

Perhaps the CLA scan will help us find these before they land?

The CLA check should catch all the common mistakes.

@gibson042
Copy link
Member

I've usually released with manual tagging & publishing, but this is the perfect opportunity to automate. PR welcome, @arthurvr.

@arthurvr
Copy link
Member

arthurvr commented Jan 4, 2015

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.

gibson042 added a commit to gibson042/sizzle that referenced this issue Oct 26, 2018
mgol pushed a commit that referenced this issue Jan 14, 2019
@mgol
Copy link
Member Author

mgol commented Sep 7, 2023

We're using jquery-release now so this is no longer an issue.

@mgol mgol closed this as not planned Won't fix, can't repro, duplicate, stale Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

7 participants