Skip to content

Commit

Permalink
Merge branch 'main' into migration
Browse files Browse the repository at this point in the history
  • Loading branch information
tianzhou committed Mar 13, 2024
2 parents 683a910 + cf90e7e commit 0c5ddbd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/actions/search-issue/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ inputs:
token:
description: "The API token obtained from bytebase/login action"
required: true
headers:
description: 'JSON string of extra headers to include in the request. e.g Cloudflare Zero Trust headers {"CF-Access-Client-Id": "xxx", CF-Access-Client-Secret: "xxx"}'
project-id:
description: "The project ID. Example: example"
required: true
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/upsert-issue/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function run() {
const description = core.getInput("description", { required: true });
const assignee = core.getInput("assignee");
const extraHeaders = core.getInput('headers');
let headers = extraHeaders ? JSON.parse(extraHeaders) : {};
headers = extraHeaders ? JSON.parse(extraHeaders) : {};
headers = Object.assign({ "Content-Type": "application/json", 'Authorization': `Bearer ${token}` }, headers);
projectUrl = `${url}/v1/projects/${projectId}`;
const githubContext = github.context;
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/upsert-issue/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async function run(): Promise<void> {
const assignee = core.getInput("assignee")
const extraHeaders: string = core.getInput('headers');

let headers: HeadersInit = extraHeaders ? JSON.parse(extraHeaders) : {};
headers = extraHeaders ? JSON.parse(extraHeaders) : {};
headers = {
"Content-Type": "application/json",
'Authorization': `Bearer ${token}`,
Expand Down

0 comments on commit 0c5ddbd

Please sign in to comment.