mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-21 09:06:46 +09:00
chore(deps): update dependencies, add new lint rules, fix lint (#39601)
Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
1 parent
b0d5a63e7a
commit
27d876e311
14 files changed
+686
-844
No files matched your search
+2
-2
@@ -103,14 +103,14 @@ async function setPrLabels(): Promise<void> {
|
||||
|
||||
const labelsUrl = `https://api.github.com/repos/${env.GITHUB_REPOSITORY}/issues/${env.PR_NUMBER}/labels`;
|
||||
|
||||
async function request(url: string, method = 'GET', body?: unknown, ignoreStatus?: number): Promise<Response> {
|
||||
async function request(url: string, method = 'GET', body?: Record<string, unknown>, ignoreStatus?: number): Promise<Response> {
|
||||
const response = await fetch(url, {
|
||||
method,
|
||||
headers: {
|
||||
Accept: 'application/vnd.github+json',
|
||||
Authorization: `Bearer ${env.GITHUB_TOKEN}`,
|
||||
'X-GitHub-Api-Version': '2022-11-28',
|
||||
...(Boolean(body) && {'Content-Type': 'application/json'}),
|
||||
...(body && {'Content-Type': 'application/json'}),
|
||||
},
|
||||
body: body ? JSON.stringify(body) : undefined,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user