Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • J Jenkins jobs
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Platform
  • Infrastructure
  • CI CD
  • Jenkins jobs
  • Issues
  • #1855
Closed
Open
Issue created Jun 28, 2019 by Stefano Zacchiroli@zackMaintainer

automatically check CONTRIBUTORS file for completeness

It is fairly easy to overlook adding new contributors to the CONTRIBUTORS file that should exist in each repo. We should augment the CI and/or our pre-commit checks to avoid that, here is a simple oneliner that would do the job (assuming a list of known SWH staffers is present in a given file, ~/swh-team.txt in the example):

git log --pretty=%an | sort -u | while read author ; do if ! grep -q "$author" ~/swh-team.txt && ! grep -q "$author" CONTRIBUTORS ; then echo "unknown author: $author" ; exit 2 ; fi ; done

Migrated from T1855 (view on Phabricator)

Assignee
Assign to
Time tracking