Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@ import { localize } from "../../../localize";
import { feedUtils } from "../../../utils/feedUtils";
import { type EventGridExecuteFunctionContext } from "./EventGridExecuteFunctionContext";

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

type FileMetadata = {
name: string;
Expand Down
Loading