Skip to content

Commit 956b815

Browse files
renovate[bot]Create or Update Pull Request Actionkfcampbell
authored
chore(deps): update dependency prettier to v3 (#401)
* chore(deps): update dependency prettier to v3 * style: prettier * Empty commit to trigger test run --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Create or Update Pull Request Action <[email protected]> Co-authored-by: Keegan Campbell <[email protected]>
1 parent 343a2d3 commit 956b815

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"fetch-mock": "^9.0.0",
4040
"glob": "^10.2.6",
4141
"jest": "^29.0.0",
42-
"prettier": "2.8.8",
42+
"prettier": "3.0.0",
4343
"semantic-release": "^21.0.0",
4444
"semantic-release-plugin-update-version-in-files": "^1.0.0",
4545
"ts-jest": "^29.0.0",

scripts/build.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ async function main() {
8181
sideEffects: false,
8282
},
8383
null,
84-
2
85-
)
84+
2,
85+
),
8686
);
8787
}
8888
main();

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ export function enterpriseCompatibility(octokit: Octokit) {
2626

2727
const deprecatedUrl = options.url.replace(
2828
/\/orgs\/[^/]+\/teams\/[^/]+/,
29-
"/teams/{team_id}"
29+
"/teams/{team_id}",
3030
);
3131

3232
throw new RequestError(
3333
`"${options.method} ${options.url}" is not supported in your GitHub Enterprise Server version. Please replace with octokit.request("${options.method} ${deprecatedUrl}", { team_id })`,
3434
404,
3535
{
3636
request: options,
37-
}
37+
},
3838
);
3939
}
4040
}

test/octokit-core.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe("GET /repos/{owner}/{repo}/issues/{issue_number}/labels", () => {
2727
owner: "octokit",
2828
repo: "rest.js",
2929
issue_number: 1,
30-
}
30+
},
3131
);
3232
expect(data[0].id).toEqual(1);
3333
});
@@ -81,7 +81,7 @@ describe("GET /orgs/{org}/teams/{team_slug}*", () => {
8181
{
8282
org: "my-org",
8383
team_slug: "my-team",
84-
}
84+
},
8585
);
8686

8787
expect(data.id).toStrictEqual(123);
@@ -139,7 +139,7 @@ describe("GET /orgs/{org}/teams/{team_slug}*", () => {
139139
} catch (error: any) {
140140
expect(error.status).toEqual(404);
141141
expect(error.message).toEqual(
142-
`"GET /orgs/{org}/teams/{team_slug}" is not supported in your GitHub Enterprise Server version. Please replace with octokit.request("GET /teams/{team_id}", { team_id })`
142+
`"GET /orgs/{org}/teams/{team_slug}" is not supported in your GitHub Enterprise Server version. Please replace with octokit.request("GET /teams/{team_id}", { team_id })`,
143143
);
144144
}
145145
});
@@ -180,7 +180,7 @@ describe("GET /orgs/{org}/teams/{team_slug}*", () => {
180180
headers: {
181181
"X-GitHub-Enterprise-Version": "2.20.0",
182182
},
183-
}
183+
},
184184
);
185185

186186
const octokitPatched = new OctokitWithPlugin({
@@ -197,13 +197,13 @@ describe("GET /orgs/{org}/teams/{team_slug}*", () => {
197197
org: "my-org",
198198
team_slug: "my-team",
199199
discussion_number: 123,
200-
}
200+
},
201201
);
202202
throw new Error("Should not resolve");
203203
} catch (error: any) {
204204
expect(error.status).toEqual(404);
205205
expect(error.message).toEqual(
206-
`"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments" is not supported in your GitHub Enterprise Server version. Please replace with octokit.request("GET /teams/{team_id}/discussions/{discussion_number}/comments", { team_id })`
206+
`"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments" is not supported in your GitHub Enterprise Server version. Please replace with octokit.request("GET /teams/{team_id}/discussions/{discussion_number}/comments", { team_id })`,
207207
);
208208
}
209209
});

0 commit comments

Comments
 (0)