forked from haghish/github
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgithublistpack.ado
More file actions
43 lines (32 loc) · 1.37 KB
/
Copy pathgithublistpack.ado
File metadata and controls
43 lines (32 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
prog githublistpack
syntax [anything] [, language(str) save(str) in(str) all created(str) ///
pushed(str) reference(str) duration(numlist max=1) perpage(numlist max=1) replace append quiet debug]
// Packages before 2012
// ======================================================================
if missing("`reference'") {
local reference "2012-01-01"
if missing("`quiet'") display "<2012-01-01"
githubsearch `anything', created("<2012-01-01") language(`language') ///
in(`in') `all' save("`save'") append quiet scoreless `quiet' `debug' ///
perpage(`perpage')
}
// Packages after the reference (default is 2012-01-01)
// ======================================================================
githubsearchsteps `anything', reference("`reference'") duration(`duration') ///
language(`language') in(`in') `all' save("`save'") append `quiet' `debug'
preserve
// Generate score
// ======================================================================
if !missing(`"`save'"') {
use "`save'", clear
qui label data "updated on `c(current_date)'"
qui save `"`save'"', replace
}
// -----------------------------------------------------------------------
// Drawing the output table
// =======================================================================
if missing("`quiet'") {
githuboutput `anything', in("`in'") `all' quiet
}
restore
end