Skip to content

Commit 22b93d8

Browse files
committed
up
1 parent a5ac9fd commit 22b93d8

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

.github/workflows/update-prettier.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ jobs:
88
update_prettier:
99
runs-on: ubuntu-latest
1010
steps:
11+
- uses: actions/create-github-app-token@v2
12+
id: app-token
13+
with:
14+
app-id: ${{ vars.OCTOKIT_APP_ID }}
15+
private-key: ${{ secrets.OCTOKIT_APP_PRIVATE_KEY }}
1116
- uses: actions/checkout@v5
1217
- uses: actions/setup-node@v6
1318
with:
@@ -17,7 +22,7 @@ jobs:
1722
- run: npm run lint:fix
1823
- uses: gr2m/[email protected]
1924
env:
20-
GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }}
25+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
2126
with:
2227
title: Prettier updated
2328
body: An update to prettier required updates to your code.

package-lock.json

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

src/exchange-device-code.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,15 @@ export async function exchangeDeviceCode(
147147
if ("refresh_token" in response.data) {
148148
const apiTimeInMs = new Date(response.headers.date as string).getTime();
149149

150-
(authentication.refreshToken = response.data.refresh_token),
150+
((authentication.refreshToken = response.data.refresh_token),
151151
(authentication.expiresAt = toTimestamp(
152152
apiTimeInMs,
153153
response.data.expires_in,
154154
)),
155155
(authentication.refreshTokenExpiresAt = toTimestamp(
156156
apiTimeInMs,
157157
response.data.refresh_token_expires_in,
158-
));
158+
)));
159159
}
160160

161161
delete authentication.scopes;

src/exchange-web-flow-code.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ export async function exchangeWebFlowCode(
8989
if ("refresh_token" in response.data) {
9090
const apiTimeInMs = new Date(response.headers.date as string).getTime();
9191

92-
(authentication.refreshToken = response.data.refresh_token),
92+
((authentication.refreshToken = response.data.refresh_token),
9393
(authentication.expiresAt = toTimestamp(
9494
apiTimeInMs,
9595
response.data.expires_in,
9696
)),
9797
(authentication.refreshTokenExpiresAt = toTimestamp(
9898
apiTimeInMs,
9999
response.data.refresh_token_expires_in,
100-
));
100+
)));
101101
}
102102

103103
delete authentication.scopes;

0 commit comments

Comments
 (0)