FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
angular/scripts/github/utils/github_closes.js at master · lightGo/angular · GitHub
lightGo
angular
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
angular
/
scripts
/
github
/
utils
/
github_closes.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
28 lines (22 loc) · 561 Bytes
Breadcrumbs
angular
/
scripts
/
github
/
utils
/
github_closes.js
Copy path
File metadata and controls
executable file
·
28 lines (22 loc) · 561 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#!/usr/bin/env node
var
msg
=
''
;
if
(
require
.
main
===
module
)
{
process
.
stdin
.
setEncoding
(
'utf8'
)
;
process
.
stdin
.
on
(
'readable'
,
(
)
=>
{
const
chunk
=
process
.
stdin
.
read
(
)
;
if
(
chunk
!==
null
)
{
msg
+=
chunk
;
}
}
)
;
process
.
stdin
.
on
(
'end'
,
(
)
=>
{
var
argv
=
process
.
argv
.
slice
(
2
)
;
console
.
log
(
rewriteMsg
(
msg
,
argv
[
0
]
)
)
;
}
)
;
}
function
rewriteMsg
(
msg
,
prNo
)
{
var
lines
=
msg
.
split
(
/
\n
/
)
;
lines
[
0
]
+=
' (#'
+
prNo
+
')'
;
lines
.
push
(
'PR Close #'
+
prNo
)
;
return
lines
.
join
(
'\n'
)
;
}
exports
.
rewriteMsg
=
rewriteMsg
;
Back
|
FazBrowse Home
|
New Git URL