Skip to content

Commit c4b880a

Browse files
authored
feat: do not run if triggered by dependabot (#24)
1 parent c0008db commit c4b880a

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @piotrmsc @tricky42 @Demonsthere @nipsufn @adamwalach

action.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ module.exports = async (
157157

158158
// leave drafts alone
159159
if (isDraftPr){
160+
coreGlob.info("detected PR draft, skipping project assignment");
160161
return
161162
}
162163

@@ -226,6 +227,7 @@ module.exports = async (
226227
} catch (error) {
227228
bail(error.message);
228229
};
230+
coreGlob.info("set project fields including effort");
229231
};
230232

231233
// set milestones if an Issue or if a PR and not includeEffort
@@ -246,6 +248,7 @@ module.exports = async (
246248
} catch (error) {
247249
bail(error.message);
248250
};
251+
coreGlob.info("set project fields omitting effort");
249252
}
250253
}
251254

action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ runs:
6161
ignore-if-labeled: true
6262
- name: Fetch project data
6363
uses: actions/github-script@v7
64+
if: ${{ github.actor != 'dependabot[bot]' }}
6465
id: runscript
6566
with:
6667
github-token: ${{ inputs.token }}

0 commit comments

Comments
 (0)