Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
f173f60a
Commit
f173f60a
authored
Feb 08, 2026
by
Claude
Committed by
Tobias Koppers
Mar 02, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix prettier formatting in pr-status.js
https://claude.ai/code/session_01HMJMvZoLTzC54SdjVK6WD9
parent
38324ad1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
pr-status.js
scripts/pr-status.js
+6
-6
No files found.
scripts/pr-status.js
View file @
f173f60a
...
@@ -117,11 +117,7 @@ function connectTunnel(proxy, targetHost, targetPort) {
...
@@ -117,11 +117,7 @@ function connectTunnel(proxy, targetHost, targetPort) {
function
handleResponse
(
res
,
parsedUrl
,
options
,
resolve
)
{
function
handleResponse
(
res
,
parsedUrl
,
options
,
resolve
)
{
// Handle redirects
// Handle redirects
if
(
if
(
res
.
statusCode
>=
300
&&
res
.
statusCode
<
400
&&
res
.
headers
.
location
)
{
res
.
statusCode
>=
300
&&
res
.
statusCode
<
400
&&
res
.
headers
.
location
)
{
const
redirectUrl
=
new
URL
(
res
.
headers
.
location
)
const
redirectUrl
=
new
URL
(
res
.
headers
.
location
)
const
newOptions
=
{
...
options
}
const
newOptions
=
{
...
options
}
// Strip auth header when redirecting to a different host
// Strip auth header when redirecting to a different host
...
@@ -216,7 +212,11 @@ async function githubRequest(apiPath, { accept, method, body } = {}) {
...
@@ -216,7 +212,11 @@ async function githubRequest(apiPath, { accept, method, body } = {}) {
if
(
accept
)
headers
[
'Accept'
]
=
accept
if
(
accept
)
headers
[
'Accept'
]
=
accept
if
(
body
)
headers
[
'Content-Type'
]
=
'application/json'
if
(
body
)
headers
[
'Content-Type'
]
=
'application/json'
const
resp
=
await
httpRequest
(
url
,
{
method
:
method
||
'GET'
,
headers
,
body
})
const
resp
=
await
httpRequest
(
url
,
{
method
:
method
||
'GET'
,
headers
,
body
,
})
if
(
resp
.
statusCode
<
200
||
resp
.
statusCode
>=
300
)
{
if
(
resp
.
statusCode
<
200
||
resp
.
statusCode
>=
300
)
{
throw
new
Error
(
throw
new
Error
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment