Skip to content

Commit 8ad36af

Browse files
Fix EventGrid sample file URL by pinning to specific commit SHA
Add ?ref=752dade436619ed28bd03ca2e77cfa5acf6222dd query parameter to EventGrid sample files URL to ensure the extension continues to work after upstream files were removed from main branch. Fixes issue caused by Azure/azure-rest-api-specs#38235 and Azure/azure-rest-api-specs#38236 Co-authored-by: alexweininger <12476526+alexweininger@users.noreply.github.com>
1 parent 29ab16d commit 8ad36af

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/commands/executeFunction/eventGrid/EventGridTypeStep.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ import { localize } from "../../../localize";
88
import { feedUtils } from "../../../utils/feedUtils";
99
import { type EventGridExecuteFunctionContext } from "./EventGridExecuteFunctionContext";
1010

11+
// Using a specific commit SHA to fetch EventGrid sample files since they were removed from main branch
12+
// See: https://github.com/Azure/azure-rest-api-specs/issues/38235
13+
// See: https://github.com/Azure/azure-rest-api-specs/pull/38236
1114
const sampleFilesUrl =
1215
'https://api.github.com/repos/Azure/azure-rest-api-specs/contents/specification/eventgrid/data-plane/' +
1316
'{eventSource}' +
14-
'/stable/2018-01-01/examples/cloud-events-schema/';
17+
'/stable/2018-01-01/examples/cloud-events-schema?ref=752dade436619ed28bd03ca2e77cfa5acf6222dd';
1518

1619
type FileMetadata = {
1720
name: string;

0 commit comments

Comments
 (0)