File tree 3 files changed +9
-4
lines changed
(dynamic-pages)/(authenticated-pages)/(application-pages)/project/[projectSlug]/runs/[runId]
3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ function RenderContent({
65
65
run . status !== ToTitleCase ( 'running_plan' ) && (
66
66
< pre className = "bg-muted p-4 rounded-md overflow-auto flex-1 max-h-[600px] text-sm whitespace-pre-wrap" >
67
67
{ tfOutput }
68
+ { run . status === ToTitleCase ( "failed" ) && run . failure_reason }
68
69
</ pre >
69
70
) }
70
71
</ div >
@@ -106,6 +107,7 @@ function RenderContent({
106
107
{ run . status === ToTitleCase ( 'succeeded' ) && (
107
108
< div className = "dark font-mono bg-muted p-4 rounded-md overflow-auto flex-1 max-h-[600px] text-sm whitespace-pre-wrap text-white" >
108
109
{ applyTerraformOutput }
110
+ { run . status === ToTitleCase ( "failed" ) && run . failure_reason }
109
111
</ div >
110
112
) }
111
113
</ div >
Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ import { toSiteURL } from '@/utils/helpers';
3
3
import { NextRequest , NextResponse } from 'next/server' ;
4
4
5
5
// Use the environment variable for the callback URL
6
- const AUTH_SERVICE_URL = process . env . GITHUB_PROXY_CALLBACK_URL ;
6
+ const GITHUB_CALLBACK_URL = process . env . GITHUB_PROXY_CALLBACK_URL ;
7
7
const DIGGER_WEBHOOK_SECRET = process . env . DIGGER_WEBHOOK_SECRET ;
8
8
9
- if ( ! AUTH_SERVICE_URL ) {
10
- throw new Error ( 'GITHUB_CALLBACK_URL environment variable is not set' ) ;
9
+ if ( ! GITHUB_CALLBACK_URL ) {
10
+ throw new Error ( 'GITHUB_PROXY_CALLBACK_URL environment variable is not set' ) ;
11
11
}
12
12
13
13
export async function GET ( request : NextRequest ) {
@@ -28,7 +28,7 @@ export async function GET(request: NextRequest) {
28
28
) ;
29
29
const organizationId = await getOrganizationId ( ) ;
30
30
const response = await fetch (
31
- `${ AUTH_SERVICE_URL } ?${ searchParams . toString ( ) } ` ,
31
+ `${ GITHUB_CALLBACK_URL } ?${ searchParams . toString ( ) } ` ,
32
32
{
33
33
method : 'GET' ,
34
34
headers : {
Original file line number Diff line number Diff line change @@ -452,6 +452,7 @@ export type Database = {
452
452
created_at : string
453
453
deleted_at : string | null
454
454
digger_config : string | null
455
+ failure_reason : string | null
455
456
github_installation_id : number | null
456
457
id : string
457
458
is_approved : boolean | null
@@ -477,6 +478,7 @@ export type Database = {
477
478
created_at ?: string
478
479
deleted_at ?: string | null
479
480
digger_config ?: string | null
481
+ failure_reason ?: string | null
480
482
github_installation_id ?: number | null
481
483
id ?: string
482
484
is_approved ?: boolean | null
@@ -502,6 +504,7 @@ export type Database = {
502
504
created_at ?: string
503
505
deleted_at ?: string | null
504
506
digger_config ?: string | null
507
+ failure_reason ?: string | null
505
508
github_installation_id ?: number | null
506
509
id ?: string
507
510
is_approved ?: boolean | null
You can’t perform that action at this time.
0 commit comments