|
1 | 1 | #!/usr/bin/env python |
2 | 2 | """Simple tools to query github.com and gather stats about issues. |
3 | 3 |
|
4 | | -To generate a report for IPython 2.0, run: |
| 4 | +The tool is copied from IPython rev 59f77d02558ed9b42303d04a22c49a230f5c7159 |
5 | 5 |
|
6 | | - python github_stats.py --milestone 2.0 --since-tag rel-1.0.0 |
| 6 | +To generate a report for Matplotlib 1.4.0, run: |
| 7 | +
|
| 8 | + python github_stats.py --since-tag v1.3.0 |
7 | 9 | """ |
8 | 10 | #----------------------------------------------------------------------------- |
9 | 11 | # Imports |
@@ -128,7 +130,7 @@ def report(issues, show_urls=False): |
128 | 130 | parser.add_argument('--days', type=int, |
129 | 131 | help="The number of days of data to summarize (use this or --since-tag)." |
130 | 132 | ) |
131 | | - parser.add_argument('--project', type=str, default="ipython/ipython", |
| 133 | + parser.add_argument('--project', type=str, default="matplotlib/matplotlib", |
132 | 134 | help="The project to summarize." |
133 | 135 | ) |
134 | 136 |
|
@@ -183,6 +185,11 @@ def report(issues, show_urls=False): |
183 | 185 | print() |
184 | 186 | since_day = since.strftime("%Y/%m/%d") |
185 | 187 | today = datetime.today().strftime("%Y/%m/%d") |
| 188 | + print(".. _github-stats:") |
| 189 | + print() |
| 190 | + print('Github stats') |
| 191 | + print('============') |
| 192 | + print() |
186 | 193 | print("GitHub stats for %s - %s (tag: %s)" % (since_day, today, tag)) |
187 | 194 | print() |
188 | 195 | print("These lists are automatically generated, and may be incomplete or contain duplicates.") |
|
0 commit comments