Skip to content

Commit

Permalink
feat(ci): add pr-agent GH Action (#2)
Browse files Browse the repository at this point in the history
* see if PR agent will work

* and on push?
  • Loading branch information
skyl authored Oct 27, 2024
1 parent 0d04ecd commit cde92f2
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 5 deletions.
6 changes: 1 addition & 5 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@
},
"extensions": [
"ms-python.python",
"ms-azuretools.vscode-docker",
"github.vscode-github-actions",
// not sure about these below
"mtxr.sqltools",
"mtxr.sqltools-driver-pg"
"ms-azuretools.vscode-docker"
]
}
},
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/pr-agent.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on:
pull_request:
types: [opened, reopened, ready_for_review]
issue_comment:
# TODO: in the future we probably want to only run on demand
# on:
# issue_comment:
# types: [created]

jobs:
pr_agent_job:
if: ${{ github.event.sender.type != 'Bot' }}
# TODO: on demand at some point?
# if: >
# github.event.issue.pull_request &&
# (github.event.comment.body == '/review' || github.event.comment.body == '/describe')
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
contents: write
name: Run pr agent on every pull request, respond to user comments
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 }}
1 change: 1 addition & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# TODO

- add pr-agent?
- .devcontainer/README.md

# Next

Expand Down

0 comments on commit cde92f2

Please sign in to comment.