Skip to content

Commit de379fd

Browse files
committed
WIP: try to fix CI
1 parent 874b3d9 commit de379fd

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v3
14+
if: !(github.event_name == 'pull_request' && (github.event.pull_request.user.id == 49699333 || contains(github.event.pull_request.labels.*.name, 'dependencies')))
15+
- uses: actions/checkout@v3
16+
if: github.event_name == 'pull_request' && (github.event.pull_request.user.id == 49699333 || contains(github.event.pull_request.labels.*.name, 'dependencies'))
1417
with:
1518
fetch-depth: 0
1619
ref: ${{ github.event.pull_request.head.ref }}
20+
1721
- run: |
1822
npm install
1923
npm run all

src/run.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,15 @@ async function fetchPatch(): Promise<string> {
3333
core.info(`Not fetching patch for showing only new issues because it's not a pull request context: event name is ${ctx.eventName}`)
3434
return ``
3535
}
36+
3637
const pull = ctx.payload.pull_request
3738
if (!pull) {
3839
core.warning(`No pull request in context`)
3940
return ``
4041
}
42+
4143
const octokit = github.getOctokit(core.getInput(`github-token`, { required: true }))
44+
4245
let patch: string
4346
try {
4447
const patchResp = await octokit.rest.pulls.get({

0 commit comments

Comments
 (0)