File tree 3 files changed +15
-2
lines changed
3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,7 @@ name: Knip
3
3
on :
4
4
pull_request :
5
5
6
- permissions :
7
- checks : write
6
+ permissions : write-all
8
7
9
8
jobs :
10
9
run-knip :
18
17
with :
19
18
node-version : " 18.14.1"
20
19
20
+ - name : tree
21
+ run : |
22
+ pwd
23
+ tree -L 3
24
+ yarn install
25
+
21
26
- name : Post the knip results
22
27
uses :
gitcoindev/[email protected]
23
28
with :
24
29
verbose : true
30
+ comment_id : ${{ github.workflow }}-reporter
31
+ command_script_name : knip-ci
Original file line number Diff line number Diff line change 19
19
"format:check" : " prettier -c src/**/*.ts" ,
20
20
"format" : " prettier --write src" ,
21
21
"knip" : " knip" ,
22
+ "knip-ci" : " knip --no-exit-code --reporter json" ,
22
23
"lint" : " eslint --ext .ts ./src" ,
23
24
"start:serverless" : " tsx src/adapters/github/github-actions.ts" ,
24
25
"start:watch" : " nodemon --exec 'yarn start'" ,
Original file line number Diff line number Diff line change @@ -331,6 +331,11 @@ export const calculateIssueAssigneeReward = async (incentivesCalculation: Incent
331
331
} ;
332
332
} ;
333
333
334
+ export const unusedAction = async ( ) => {
335
+ // catch me!
336
+ await addLabelToIssue ( "unusedAction" ) ;
337
+ } ;
338
+
334
339
export const handleIssueClosed = async (
335
340
creatorReward : RewardsResponse ,
336
341
assigneeReward : RewardsResponse ,
You can’t perform that action at this time.
0 commit comments