Skip to content

Commit

Permalink
ci: add pr_agent.yml workflow (#171)
Browse files Browse the repository at this point in the history
Update all dependencies and `pr_agent.yml` workflow
  • Loading branch information
mheob authored Mar 25, 2024
1 parent 7629e6e commit 8ef59f7
Show file tree
Hide file tree
Showing 13 changed files with 902 additions and 490 deletions.
2 changes: 2 additions & 0 deletions .changeset/fifty-cougars-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
22 changes: 22 additions & 0 deletions .github/workflows/pr_agent.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
pull_request:
issue_comment:

jobs:
pr_agent_job:
name: Run pr agent on every pull request, respond to user comments

permissions:
issues: write
pull-requests: write
contents: write

runs-on: ubuntu-latest

steps:
- name: PR Agent action step
id: pragent
uses: Codium-ai/pr-agent@main
env:
OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm exec commitlint --edit "$1"
3 changes: 0 additions & 3 deletions .husky/post-merge
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/usr/bin/env sh
. "$(dirname "$0")/_/husky.sh"

[ -n "$CI" ] && exit 0

changedFiles="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
Expand Down
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

[ -n "$CI" ] && exit 0

pnpm exec lint-staged
3 changes: 0 additions & 3 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

[ -n "$CI" ] && exit 0

pnpm exec changeset status --since main
Expand Down
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"clean:root": "rm -rf .turbo && rm -rf node_modules",
"format": "prettier --write \"**/*.{cjs,js,mjs,ts,json,md,mdx,yaml,yml}\"",
"lint": "turbo run lint",
"prepare": "ts-node ./scripts/prepare.ts",
"prepare": "husky",
"release": "changeset publish",
"sort-package-json": "pnpm dlx sort-package-json && turbo run sort-package-json",
"version-packages": "changeset version && pnpm run format"
Expand All @@ -27,20 +27,21 @@
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
"@commitlint/cli": "^19.0.0",
"@commitlint/cli": "^19.2.1",
"@mheob/changeset-changelog": "^3.0.1",
"@mheob/commitlint-config": "workspace:*",
"@mheob/eslint-config": "workspace:*",
"@mheob/prettier-config": "workspace:*",
"@types/node": "^20.11.16",
"@types/node": "^20.11.30",
"commitizen": "^4.3.0",
"cz-git": "^1.8.0",
"eslint": "^8.56.0",
"husky": "^8.0.3",
"cz-git": "^1.9.0",
"eslint": "^8.57.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"ts-node": "^10.9.2",
"turbo": "^1.12.2",
"typescript": "^5.3.3"
}
"turbo": "^1.13.0",
"typescript": "^5.4.3"
},
"packageManager": "pnpm@8.15.5+sha256.4b4efa12490e5055d59b9b9fc9438b7d581a6b7af3b5675eb5c5f447cee1a589"
}
8 changes: 4 additions & 4 deletions packages/commitlint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
"sort-package-json": "pnpm dlx sort-package-json"
},
"devDependencies": {
"@commitlint/cli": "^19.0.0",
"@commitlint/cli": "^19.2.1",
"@mheob/eslint-config": "workspace:*",
"@mheob/tsconfig": "workspace:*",
"commitizen": "^4.3.0",
"cz-git": "^1.8.0",
"eslint": "^8.56.0",
"typescript": "^5.3.3"
"cz-git": "^1.9.0",
"eslint": "^8.57.0",
"typescript": "^5.4.3"
},
"peerDependencies": {
"@commitlint/cli": "^18.6.0",
Expand Down
16 changes: 8 additions & 8 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,24 +49,24 @@
"sort-package-json": "pnpm dlx sort-package-json"
},
"dependencies": {
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0",
"eslint-config-next": "^14.1.0",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"eslint-config-next": "^14.1.4",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-simple-import-sort": "^12.0.0",
"eslint-plugin-unicorn": "^51.0.0",
"eslint-plugin-unused-imports": "^3.0.0"
"eslint-plugin-unused-imports": "^3.1.0"
},
"devDependencies": {
"@mheob/tsconfig": "workspace:*",
"@types/eslint": "^8.56.2",
"eslint": "^8.56.0",
"@types/eslint": "^8.56.6",
"eslint": "^8.57.0",
"prettier": "^3.2.5",
"typescript": "^5.3.3"
"typescript": "^5.4.3"
},
"peerDependencies": {
"eslint": "^8.56.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/prettier-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
"devDependencies": {
"@mheob/eslint-config": "workspace:*",
"@mheob/tsconfig": "workspace:*",
"eslint": "^8.56.0",
"eslint": "^8.57.0",
"prettier": "^3.2.5",
"typescript": "^5.3.3"
"typescript": "^5.4.3"
},
"peerDependencies": {
"prettier": "^3.2.5"
Expand Down
Loading

0 comments on commit 8ef59f7

Please sign in to comment.