@@ -46,7 +46,7 @@ async function listDeployments( client: Octokit, { owner, repo, environment, ref
4646 const itemsTotal = deploymentRefs . length
4747
4848 if ( ! limit || limit === 100 )
49- {
49+ {
5050 info ( ` › ⚙️ Using default limit of \x1b[38;5;1m${ limit } \x1b[0m` )
5151 if ( itemsTotal === 100 )
5252 return deploymentRefs . concat ( await listDeployments ( client , { owner, repo, environment, ref, limit } , page + 1 ) )
@@ -56,8 +56,8 @@ async function listDeployments( client: Octokit, { owner, repo, environment, ref
5656 */
5757
5858 }
59- else if ( limit >= 100 )
60- {
59+ else if ( limit >= 100 )
60+ {
6161 const pagesNeeded = Math . ceil ( limit / 100 )
6262
6363 /*
@@ -66,11 +66,15 @@ async function listDeployments( client: Octokit, { owner, repo, environment, ref
6666 */
6767
6868 if ( itemsTotal < limit && page < pagesNeeded )
69- {
69+ {
7070 info ( ` › ⚙️ Using custom limit of \x1b[38;5;1m${ limit } \x1b[0m › reading page \x1b[38;5;32mpage ${ page } /${ pagesNeeded } \x1b[0m` )
7171 return deploymentRefs . concat ( await listDeployments ( client , { owner, repo, environment, ref, limit } , page + 1 ) )
7272 }
7373 }
74+ else if ( limit !== 100 )
75+ {
76+ info ( ` › ⚙️ Using custom limit of \x1b[38;5;1m${ limit } \x1b[0m › not using pagination` )
77+ }
7478
7579 /*
7680 Done getting items, return deployment list
@@ -87,7 +91,7 @@ async function listDeployments( client: Octokit, { owner, repo, environment, ref
8791
8892async function setDeploymentInactive ( client : Octokit , { owner, repo, deploymentId } : Deployment ) : Promise < void >
8993{
90- info ( ` › ✔️ ID \x1b[38;5;8m ${ deploymentId } \x1b[0m inactive` )
94+ info ( ` › ✔️ ID \x1b[38;5;244m ${ deploymentId } \x1b[0m inactive` )
9195 await client . request ( 'POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses' ,
9296 {
9397 owner,
@@ -103,7 +107,7 @@ async function setDeploymentInactive( client: Octokit, { owner, repo, deployment
103107
104108async function deleteDeploymentById ( client : Octokit , { owner, repo, deploymentId } : Deployment ) : Promise < void >
105109{
106- info ( ` › ✔️ ID \x1b[38;5;8m ${ deploymentId } \x1b[0m deleted` )
110+ info ( ` › ✔️ ID \x1b[38;5;244m ${ deploymentId } \x1b[0m deleted` )
107111 await client . request ( 'DELETE /repos/{owner}/{repo}/deployments/{deployment_id}' ,
108112 {
109113 owner,
0 commit comments