11const Octokit = require ( '@octokit/rest' ) ;
2- const fs = require ( 'fs' ) ;
32
43const octokit = new Octokit ( {
54 auth : `token ${ process . env . GITHUB_TOKEN } `
@@ -36,13 +35,14 @@ async function run() {
3635 repo : 'react-spectrum' ,
3736 pull_number
3837 } ) ;
38+ // eslint-disable-next-line max-depth
3939 if ( data && data . head . repo . full_name !== 'adobe/react-spectrum' && data . head . sha === forkHeadCommit ) {
4040 pr = pull_number ;
4141 break ;
4242 }
4343 }
4444 } else if ( process . env . CIRCLE_BRANCH === 'main' ) {
45- //If it isn't a PR commit, then we are on main. Create a comment for the test app and docs build
45+ // If it isn't a PR commit, then we are on main. Create a comment for the test app and docs build
4646 await octokit . repos . createCommitComment ( {
4747 owner : 'adobe' ,
4848 repo : 'react-spectrum' ,
@@ -54,6 +54,7 @@ async function run() {
5454 [RAC Spectrum + Tailwind Example](https://reactspectrum.blob.core.windows.net/reactspectrum/${ process . env . CIRCLE_SHA1 } /verdaccio/rac-spectrum-tailwind/index.html)
5555 [S2 Parcel Example](https://reactspectrum.blob.core.windows.net/reactspectrum/${ process . env . CIRCLE_SHA1 } /verdaccio/s2-parcel-example/index.html)
5656 [S2 Webpack Example](https://reactspectrum.blob.core.windows.net/reactspectrum/${ process . env . CIRCLE_SHA1 } /verdaccio/s2-webpack-5-example/index.html)
57+ [S2 Next.js Example](https://reactspectrum.blob.core.windows.net/reactspectrum/${ process . env . CIRCLE_SHA1 } /verdaccio/s2-next-macros/index.html)
5758 [CRA Test App Size](https://reactspectrum.blob.core.windows.net/reactspectrum/${ process . env . CIRCLE_SHA1 } /verdaccio/publish-stats/build-stats.txt)
5859 [NextJS App Size](https://reactspectrum.blob.core.windows.net/reactspectrum/${ process . env . CIRCLE_SHA1 } /verdaccio/publish-stats/next-build-stats.txt)
5960 [Publish stats](https://reactspectrum.blob.core.windows.net/reactspectrum/${ process . env . CIRCLE_SHA1 } /verdaccio/publish-stats/publish.json)
@@ -86,7 +87,7 @@ async function run() {
8687 * [View the documentation](https://reactspectrum.blob.core.windows.net/reactspectrum/${ process . env . CIRCLE_SHA1 } /docs/index.html)`
8788 } ) ;
8889 } catch ( err ) {
89- console . error ( err )
90+ console . error ( err ) ;
9091 }
9192 }
9293}
0 commit comments