We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33e154a commit c5fef62Copy full SHA for c5fef62
tests/e2e/repo/pull-merge-box.test.ts
@@ -1,8 +1,9 @@
1
import {env} from 'node:process';
2
import {test, expect} from '@playwright/test';
3
import {login, apiBaseUrl, apiHeaders, apiCreateRepo, apiDeleteRepo, apiCreateBranch, apiCreatePullRequest, apiSetCommitStatus, apiSetBranchProtection} from '../utils.ts';
4
+import type {APIRequestContext} from "@playwright/test";
5
-async function createPullRequestWithFile(requestContext, repoName: string): Promise<{number: number; head_sha: string}> {
6
+async function createPullRequestWithFile(requestContext: APIRequestContext, repoName: string): Promise<{number: number; head_sha: string}> {
7
await apiCreateBranch(requestContext, env.GITEA_TEST_E2E_USER, repoName, 'test-branch');
8
await requestContext.post(`${apiBaseUrl()}/api/v1/repos/${env.GITEA_TEST_E2E_USER}/${repoName}/contents/branch-file.txt`, {
9
headers: apiHeaders(),
0 commit comments