mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-04 08:09:27 +00:00
### **User description** added github workflow for pr agent ___ ### **PR Type** Enhancement ___ ### **Description** Add PR Agent GitHub workflow Trigger on PR open, reopen, review ready Configure job runs-on Ubuntu and permissions Use qodo-ai/pr-agent action with secrets ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Configuration changes</strong></td><td><table> <tr> <td> <details> <summary><strong>pr-agent.yml</strong><dd><code>Define PR Agent CI workflow</code> </dd></summary> <hr> .github/workflows/pr-agent.yml <li>Added new GitHub Actions workflow file<br> <li> Trigger on pull_request and issue_comment<br> <li> Define job conditional on non-bot sender<br> <li> Set permissions and use pr-agent action </details> </td> <td><a href="https://github.com/openobserve/openobserve/pull/7041/files#diff-69fd3473f15a98f47918e81bc4d0ca86a71131f21db13b39bebf76d27cf483b4">+23/-0</a> </td> </tr> </table></td></tr></tr></tbody></table> ___ > <details> <summary> Need help?</summary><li>Type <code>/help how to ...</code> in the comments thread for any questions about PR-Agent usage.</li><li>Check out the <a href="https://qodo-merge-docs.qodo.ai/usage-guide/">documentation</a> for more information.</li></details>
24 lines
572 B
YAML
24 lines
572 B
YAML
name: PR Agent
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, reopened, ready_for_review]
|
|
issue_comment:
|
|
|
|
jobs:
|
|
pr_agent_job:
|
|
if: ${{ github.event.sender.type != 'Bot' }}
|
|
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: qodo-ai/pr-agent@main
|
|
env:
|
|
OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|