Skip to content

Commit

Permalink
New tool
Browse files Browse the repository at this point in the history
Signed-off-by: Łukasz Gryglicki <[email protected]>
  • Loading branch information
lukaszgryglicki committed Mar 18, 2022
1 parent 6e189fb commit 1999f5f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion SYNC.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,4 @@ Alternative way using diff (for simple PRs that only add new users):
- Download `login_contributions.csv` from that node.
- Check for forbiden users: `./check_shas login_contributions.csv`.
- Run `./update_login_contributions.rb` to update `github_users.json` file.

- Run `FULL=1 ./post_manual_checks.sh && ./post_manual_updates.sh`.
4 changes: 2 additions & 2 deletions src/github_users.json
Git LFS file not shown
4 changes: 2 additions & 2 deletions src/update_login_contributions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ def update_json(json_file, csv_file)
ncnt = cnts[login]
next if ncnt <= cnt
puts "update #{i} #{login} #{cnt} -> #{ncnt}" if dbg
row['commits'] = ncnt
updates += 1
end
if updates > 0
data = data.sort_by { |u| [-u['commits'], u['login'], u['email']] }
pretty = JSON.pretty_generate data
File.write json_file, pretty
puts "updated #{updates} entries"
binding.pry
# File.write json_file, pretty
else
puts "everything up to date"
end
Expand Down

0 comments on commit 1999f5f

Please sign in to comment.