Skip to content

Commit 5895aeb

Browse files
committed
[FEATURE](ci): Allow skipping new overture PR bot like dependabot for linked issue check
Signed-off-by: John McCall <john@overturemaps.org>
1 parent ae5cf80 commit 5895aeb

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/actions/check-linked-issue/action.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ inputs:
2727
description: Skip the linked issue check when the PR author is dependabot[bot]
2828
required: false
2929
default: "true"
30+
ignoreOverturePullRequester:
31+
description: Skip the linked issue check when the PR author is overture-pull-requester[bot]
32+
required: false
33+
default: "true"
3034

3135
runs:
3236
using: composite
@@ -59,12 +63,18 @@ runs:
5963
const { owner, repo } = context.repo;
6064
const minimumLinkedIssues = parseInt(core.getInput('minimumLinkedIssues')) || 1;
6165
const ignoreDependabot = core.getInput('ignoreDependabot') !== 'false';
66+
const ignoreOverturePullRequester = core.getInput('ignoreOverturePullRequester') !== 'false';
6267
6368
if (ignoreDependabot && context.payload.pull_request.user.login === 'dependabot[bot]') {
6469
core.info('⏭️ Skipping linked issue check for dependabot PR.');
6570
return;
6671
}
6772
73+
if (ignoreOverturePullRequester && context.payload.pull_request.user.login === 'overture-pull-requester[bot]') {
74+
core.info('⏭️ Skipping linked issue check for overture-pull-requester PR.');
75+
return;
76+
}
77+
6878
const query = `
6979
query($owner: String!, $repo: String!, $number: Int!) {
7080
repository(owner: $owner, name: $repo) {

.github/workflows/omf_pr_checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ jobs:
4040
statuses: write # to update commit status checks
4141
steps:
4242
- name: Check for linked issue
43-
uses: OvertureMaps/workflows/.github/actions/check-linked-issue@check-linked-issue-v1 # zizmor: ignore[unpinned-uses]
43+
uses: OvertureMaps/workflows/.github/actions/check-linked-issue@check-linked-issue-v2 # zizmor: ignore[unpinned-uses]
4444
with:
4545
privateKey: ${{ secrets.CHECK_LINKED_ISSUE_APP_PEM }}

0 commit comments

Comments
 (0)