mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 19:08:50 +00:00
fix flaky bun-create.test.ts with git templates (#10662)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user