File tree Expand file tree Collapse file tree 2 files changed +22
-8
lines changed Expand file tree Collapse file tree 2 files changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -13,3 +13,20 @@ function voidcommits(response) {
13
13
}
14
14
document . write ( html ) ;
15
15
}
16
+
17
+ function voidpulls ( response ) {
18
+ var html = "" , commit , i ;
19
+ function esc ( str ) {
20
+ return str . replace ( / " / g, '"' ) .
21
+ replace ( / < / g, '<' ) .
22
+ replace ( / > / g, '>' ) ;
23
+ }
24
+ for ( i = 0 ; i < response . data . length ; i ++ ) {
25
+ pull = response . data [ i ] ;
26
+ html += '<li><a href="' + esc ( pull . html_url ) + '" title="' +
27
+ esc ( pull . title ) + '">' +
28
+ '#' + pull . number + ': ' +
29
+ esc ( pull . title . split ( '\n' ) [ 0 ] ) + "</a></li>" ;
30
+ }
31
+ document . write ( html ) ;
32
+ }
Original file line number Diff line number Diff line change @@ -68,19 +68,16 @@ <h3>xbps-src</h3>
68
68
</ div >
69
69
< hr >
70
70
< div class ="row ">
71
- < div class ="col-md-4 ">
72
- < script async src ="https://platform.twitter.com/widgets.js " charset ="utf-8 "> </ script >
73
- < script >
74
- theme = "light"
75
- if ( window . matchMedia ( '(prefers-color-scheme: dark)' ) . matches ) theme = "dark"
76
- document . write ( '<a class="twitter-timeline" data-theme="' + theme + '" data-chrome="noborders noscrollbar transparent" width="520" height="300" href="https://twitter.com/VoidLinux">Tweets by VoidLinux</a>' )
77
- </ script >
78
- </ div >
79
71
< div class ="col-md-4 ">
80
72
< h3 > void-packages changes < span class ="rssdev "> < a href ="https://github.com/void-linux/void-packages/commits/master.atom " title ="Subscribe to void-packages "> < i class ="fa fa-rss fa-lg "> </ i > </ a > </ span > </ h3 >
81
73
< script src ="/assets/js/voidcommits.js "> </ script >
82
74
< script src ="https://api.github.com/repos/void-linux/void-packages/commits?page=1&per_page=10&callback=voidcommits&sha=master "> </ script >
83
75
</ div >
76
+ < div class ="col-md-4 ">
77
+ < h3 > void-packages pull requests</ h3 >
78
+ < script src ="/assets/js/voidcommits.js "> </ script >
79
+ < script src ="https://api.github.com/repos/void-linux/void-packages/pulls?page=1&per_page=10&callback=voidpulls&sha=master "> </ script >
80
+ </ div >
84
81
< div class ="col-md-4 ">
85
82
< h3 > xbps changes < span class ="rssdev "> < a href ="https://github.com/void-linux/xbps/commits/master.atom " title ="Subscribe to xbps "> < i class ="fa fa-rss fa-lg "> </ i > </ a > </ span > </ h3 >
86
83
< script src ="/assets/js/voidcommits.js "> </ script >
You can’t perform that action at this time.
0 commit comments