Giter Club home page Giter Club logo

Comments (4)

finestructure avatar finestructure commented on May 24, 2024 1

Also, because we just use git to pull the info, you can use git mailmap to update existing entries in the git log: https://git-scm.com/docs/gitmailmap. I believe by setting up proper aliases this should even allow you to collapse all the entries into a single one.

This has the advantage that it won't interfere with future changes to the author list by overriding the stat computation.

Hope that helps!

from swiftpackageindex-server.

daveverwer avatar daveverwer commented on May 24, 2024

Hi @tayloraswift, and I'm sorry if it's not showing what you want it to. We do refresh this list every day from git history. To get the data, we run git shortlog -sn and populate this field from there.

For this repository, I get this result:

$ git shortlog -sn

    79  kelvin13
    36  kelvin
    16  taylorswift
     1  Tobias
     1  taylorswift (dianna)

We then take the most significant names from that list and if there are more, it gets "and X other contributors" appended.

Obviously, it's not trivial to fix up the names in the git history so we also allow this field to be overridden with any text that you'd like it to have. We read an authors property from the .spi.yml file in your repository.

As an example, the Vapor team have done this:

Screenshot 2024-03-15 at 23 50 55@2x

You can see this specified in their .spi.yml file here: https://github.com/vapor/vapor/blob/3a7da193a2937472b252b8db210897e7abf37b47/.spi.yml#L3

from swiftpackageindex-server.

finestructure avatar finestructure commented on May 24, 2024

See also https://ntietz.com/blog/git-mailmap-for-name-changes/

from swiftpackageindex-server.

daveverwer avatar daveverwer commented on May 24, 2024

I'll close this as I think it might be resolved, but please feel free to re-open it if there is anything still outstanding @tayloraswift!

from swiftpackageindex-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.