Skip to content

Commit 4b78f02

Browse files
authored
Merge pull request #16 from gitcoindev/knip-qa
feat: knip qa
2 parents 69b699d + cd65487 commit 4b78f02

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.github/workflows/knip.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ name: Knip
33
on:
44
pull_request:
55

6-
permissions:
7-
checks: write
6+
permissions: write-all
87

98
jobs:
109
run-knip:
@@ -18,7 +17,15 @@ jobs:
1817
with:
1918
node-version: "18.14.1"
2019

20+
- name: tree
21+
run: |
22+
pwd
23+
tree -L 3
24+
yarn install
25+
2126
- name: Post the knip results
2227
uses: gitcoindev/[email protected]
2328
with:
2429
verbose: true
30+
comment_id: ${{ github.workflow }}-reporter
31+
command_script_name: knip-ci

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"format:check": "prettier -c src/**/*.ts",
2020
"format": "prettier --write src",
2121
"knip": "knip",
22+
"knip-ci": "knip --no-exit-code --reporter json",
2223
"lint": "eslint --ext .ts ./src",
2324
"start:serverless": "tsx src/adapters/github/github-actions.ts",
2425
"start:watch": "nodemon --exec 'yarn start'",

src/handlers/payout/action.ts

+5
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,11 @@ export const calculateIssueAssigneeReward = async (incentivesCalculation: Incent
331331
};
332332
};
333333

334+
export const unusedAction = async () => {
335+
// catch me!
336+
await addLabelToIssue("unusedAction");
337+
};
338+
334339
export const handleIssueClosed = async (
335340
creatorReward: RewardsResponse,
336341
assigneeReward: RewardsResponse,

0 commit comments

Comments
 (0)