Skip to content

Commit

Permalink
feat: Tweak action
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklem committed May 21, 2024
1 parent 5457330 commit 5b13367
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Read Markdown Files
name: Generate doc patterns

on: [push, pull_request]
on: pull_request

jobs:
build:
Expand All @@ -21,4 +21,6 @@ jobs:
npm run build
- name: Run the script
run: node dist/main.js
run: npm run start
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

[Source](http://phpmd.org/rules/cleancode.html#booleanargumentflag)
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "rm -rf dist && npx tsc && node dist/main.js"
"build": "rm -rf dist && npx tsc",
"start": "node ./dist/main.js"
},
"keywords": [],
"author": "",
Expand Down

0 comments on commit 5b13367

Please sign in to comment.