From 67a9c84bd71c832a115eb7b4816fe58e19a5b86e Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Fri, 26 Jan 2024 16:48:48 -0600 Subject: [PATCH] feat: Pin GitHub API version --- src/octokit-wrapper.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/octokit-wrapper.ts b/src/octokit-wrapper.ts index 0c34083..50649ad 100644 --- a/src/octokit-wrapper.ts +++ b/src/octokit-wrapper.ts @@ -4,7 +4,14 @@ import { throttling } from "@octokit/plugin-throttling" import { nextflow_release, NextflowRelease } from "./nextflow-release" -const NEXTFLOW_REPO = { owner: "nextflow-io", repo: "nextflow", per_page: 100 } +const NEXTFLOW_REPO = { + owner: "nextflow-io", + repo: "nextflow", + per_page: 100, + headers: { + "x-github-api-version": "2022-11-28" + } +} export async function setup_octokit( github_token: string,