fix flaky bun-create.test.ts with git templates (#10662)

This commit is contained in:
Dylan Conway
2024-04-29 16:59:07 -07:00
committed by GitHub
parent 72b3045758
commit cacf97ca0a
4 changed files with 10 additions and 10 deletions

View File

@@ -1851,7 +1851,7 @@ pub const Example = struct {
var header_entries: Headers.Entries = .{};
var headers_buf: string = "";
if (env_loader.map.get("GITHUB_ACCESS_TOKEN")) |access_token| {
if (env_loader.map.get("GITHUB_TOKEN") orelse env_loader.map.get("GITHUB_ACCESS_TOKEN")) |access_token| {
if (access_token.len > 0) {
headers_buf = try std.fmt.allocPrint(ctx.allocator, "AuthorizationBearer {s}", .{access_token});
try header_entries.append(