File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -63,18 +63,22 @@ async function run() {
63
63
} else {
64
64
pr = process . env . CIRCLE_PULL_REQUEST . split ( '/' ) . pop ( ) ;
65
65
}
66
-
66
+ console . log ( 'PR number to comment on' , pr ) ;
67
67
if ( pr != null ) {
68
- await octokit . issues . createComment ( {
69
- owner : 'adobe' ,
70
- repo : 'react-spectrum' ,
71
- issue_number : pr ,
72
- body : `Build successful! 🎉
68
+ try {
69
+ await octokit . issues . createComment ( {
70
+ owner : 'adobe' ,
71
+ repo : 'react-spectrum' ,
72
+ issue_number : pr ,
73
+ body : `Build successful! 🎉
73
74
74
75
* [View the storybook](https://reactspectrum.blob.core.windows.net/reactspectrum/${ process . env . CIRCLE_SHA1 } /storybook/index.html)
75
76
* [View the storybook-17](https://reactspectrum.blob.core.windows.net/reactspectrum/${ process . env . CIRCLE_SHA1 } /storybook-17/index.html)
76
77
* [View the storybook-16](https://reactspectrum.blob.core.windows.net/reactspectrum/${ process . env . CIRCLE_SHA1 } /storybook-16/index.html)
77
78
* [View the documentation](https://reactspectrum.blob.core.windows.net/reactspectrum/${ process . env . CIRCLE_SHA1 } /docs/index.html)`
78
- } ) ;
79
+ } ) ;
80
+ } catch ( err ) {
81
+ console . error ( err )
82
+ }
79
83
}
80
84
}
You can’t perform that action at this time.
0 commit comments