TPE-Layout/2016-Standings: Difference between revisions

Jump to navigation Jump to search
→‎Team Standings: 2016 summary
(→‎Shing Lyu: 2016 summary)
(→‎Team Standings: 2016 summary)
 
Line 1: Line 1:
== Query Syntax ==
== Team Summary ==
Mercurial Syntax:
  hg log --date "$DATE_RANGE" -u $BUG_MAIL --template '{node|short} | {date|isodatesec} | {desc|strip|firstline}\n'
 
Git Syntax:
  git log --author=$USER_NAME --after=$DATE --pretty=format:"%h - %an, %ar : %s"
 
Query Script:
  ./[https://gist.github.com/AstleyChen/26ee4cc59e9b77ed8b923be899141cf9 standing.sh] "2016-10-01 to 2016-12-31" aschen@mozilla.com boris.chiou@gmail.com cam@mcc.id.au cku@mozilla.com jeremychen@mozilla.com shing.lyu@gmail.com tlin@mozilla.com
<div class="NavFrame collapsed" style="text-align:left;">
  <div class="NavHead">Mercurial</div>
  <div class="NavContent">
<pre style="overflow:auto; width:auto;">
#!/bin/bash
 
# == Arguments ==
# $1 : date range, exp: "2016-07-01 to 2016-09-30"
# $2 ~ $n : bug mail list, exp: aschen@mozilla.com
#
# == Output ==
# Individual standings and sum of standings.
 
dateRange="$1"
 
shift
bugMails=($@)
 
bugsCount=0
commitsCount=0
 
for i in "${bugMails[@]}"
do
  commits=$(hg log --date "$dateRange" -u $i --template '{desc|strip|firstline}\n')
  uniqCommits=$(printf "$commits" | sort | uniq | wc -l)
  bugs=$(printf "$commits" | cut -d' ' -f 2 | sort | uniq | wc -l)
  bugsCount=$(($bugsCount + $bugs))
  commitsCount=$(($commitsCount + $uniqCommits))
  printf "$i : $bugs bugs with $uniqCommits commits\n"
  printf "Mercurial Commits History :\n"
  printf "$commits\n\n"
done
 
printf "Total : $bugsCount bugs, $commitsCount commits\n"
 
</pre> 
</div>
</div>
 
== Team Standings ==
{| class="wikitable" style="width:60%; text-align:center"
{| class="wikitable" style="width:60%; text-align:center"
|-
|-
Line 1,328: Line 1,280:
Bug 1304441 Part 1 - Remove unneeded check when constructing frame for summary. r=bz
Bug 1304441 Part 1 - Remove unneeded check when constructing frame for summary. r=bz
Bug 1307027 - Fix vertical position for caret images. r=mtseng
Bug 1307027 - Fix vertical position for caret images. r=mtseng
</pre> 
</div>
</div>
== Reference ==
=== Bugzilla ===
[https://wiki.mozilla.org/User:Astleychen/2016 TDC Layout team 2016 bugs summary] (long-loading page!)
=== Query Syntax ===
Mercurial Syntax:
  hg log --date "$DATE_RANGE" -u $BUG_MAIL --template '{node|short} | {date|isodatesec} | {desc|strip|firstline}\n'
Git Syntax:
  git log --author=$USER_NAME --after=$DATE --pretty=format:"%h - %an, %ar : %s"
Query Script:
  ./[https://gist.github.com/AstleyChen/26ee4cc59e9b77ed8b923be899141cf9 standing.sh] "2016-10-01 to 2016-12-31" aschen@mozilla.com boris.chiou@gmail.com cam@mcc.id.au cku@mozilla.com jeremychen@mozilla.com shing.lyu@gmail.com tlin@mozilla.com
<div class="NavFrame collapsed" style="text-align:left;">
  <div class="NavHead">Mercurial</div>
  <div class="NavContent">
<pre style="overflow:auto; width:auto;">
#!/bin/bash
# == Arguments ==
# $1 : date range, exp: "2016-07-01 to 2016-09-30"
# $2 ~ $n : bug mail list, exp: aschen@mozilla.com
#
# == Output ==
# Individual standings and sum of standings.
dateRange="$1"
shift
bugMails=($@)
bugsCount=0
commitsCount=0
for i in "${bugMails[@]}"
do
  commits=$(hg log --date "$dateRange" -u $i --template '{desc|strip|firstline}\n')
  uniqCommits=$(printf "$commits" | sort | uniq | wc -l)
  bugs=$(printf "$commits" | cut -d' ' -f 2 | sort | uniq | wc -l)
  bugsCount=$(($bugsCount + $bugs))
  commitsCount=$(($commitsCount + $uniqCommits))
  printf "$i : $bugs bugs with $uniqCommits commits\n"
  printf "Mercurial Commits History :\n"
  printf "$commits\n\n"
done
printf "Total : $bugsCount bugs, $commitsCount commits\n"
</pre>   
</pre>   
</div>
</div>
</div>
</div>
687

edits

Navigation menu