forked from Codium-ai/pr-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remote-tracking branch 'upstream/main'
- Loading branch information
Showing
181 changed files
with
18,873 additions
and
2,261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Code-coverage | ||
|
||
on: | ||
workflow_dispatch: | ||
# push: | ||
# branches: | ||
# - main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- id: checkout | ||
uses: actions/checkout@v2 | ||
|
||
- id: dockerx | ||
name: Setup Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- id: build | ||
name: Build dev docker | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: ./docker/Dockerfile | ||
push: false | ||
load: true | ||
tags: codiumai/pr-agent:test | ||
cache-from: type=gha,scope=dev | ||
cache-to: type=gha,mode=max,scope=dev | ||
target: test | ||
|
||
- id: code_cov | ||
name: Test dev docker | ||
run: | | ||
docker run --name test_container codiumai/pr-agent:test pytest tests/unittest --cov=pr_agent --cov-report term --cov-report xml:coverage.xml | ||
docker cp test_container:/app/coverage.xml coverage.xml | ||
docker rm test_container | ||
- name: Validate coverage report | ||
run: | | ||
if [ ! -f coverage.xml ]; then | ||
echo "Coverage report not found" | ||
exit 1 | ||
fi | ||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: docs-ci | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- add-docs-portal | ||
paths: | ||
- docs/** | ||
permissions: | ||
contents: write | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Configure Git Credentials | ||
run: | | ||
git config user.name github-actions[bot] | ||
git config user.email 41898282+github-actions[bot]@users.noreply.github.com | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV | ||
- uses: actions/cache@v4 | ||
with: | ||
key: mkdocs-material-${{ env.cache_id }} | ||
path: .cache | ||
restore-keys: | | ||
mkdocs-material- | ||
- run: pip install mkdocs-material | ||
- run: pip install "mkdocs-material[imaging]" | ||
- run: pip install mkdocs-glightbox | ||
- run: mkdocs gh-deploy -f docs/mkdocs.yml --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: PR-Agent E2E tests | ||
|
||
on: | ||
workflow_dispatch: | ||
# schedule: | ||
# - cron: '0 0 * * *' # This cron expression runs the workflow every night at midnight UTC | ||
|
||
jobs: | ||
pr_agent_job: | ||
runs-on: ubuntu-latest | ||
name: PR-Agent E2E GitHub App Test | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- id: build | ||
name: Build dev docker | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: ./docker/Dockerfile | ||
push: false | ||
load: true | ||
tags: codiumai/pr-agent:test | ||
cache-from: type=gha,scope=dev | ||
cache-to: type=gha,mode=max,scope=dev | ||
target: test | ||
|
||
- id: test1 | ||
name: E2E test github app | ||
run: | | ||
docker run -e GITHUB.USER_TOKEN=${{ secrets.TOKEN_GITHUB }} --rm codiumai/pr-agent:test pytest -v tests/e2e_tests/test_github_app.py | ||
- id: test2 | ||
name: E2E gitlab webhook | ||
run: | | ||
docker run -e gitlab.PERSONAL_ACCESS_TOKEN=${{ secrets.TOKEN_GITLAB }} --rm codiumai/pr-agent:test pytest -v tests/e2e_tests/test_gitlab_webhook.py | ||
- id: test3 | ||
name: E2E bitbucket app | ||
run: | | ||
docker run -e BITBUCKET.USERNAME=${{ secrets.BITBUCKET_USERNAME }} -e BITBUCKET.PASSWORD=${{ secrets.BITBUCKET_PASSWORD }} --rm codiumai/pr-agent:test pytest -v tests/e2e_tests/test_bitbucket_app.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
.idea/ | ||
.lsp/ | ||
.vscode/ | ||
venv/ | ||
pr_agent/settings/.secrets.toml | ||
__pycache__ | ||
dist/ | ||
*.egg-info/ | ||
build/ | ||
review.md | ||
.DS_Store | ||
docs/.cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[pr_reviewer] | ||
enable_review_labels_effort = true | ||
enable_auto_approval = true | ||
|
||
[config] | ||
model="claude-3-5-sonnet" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.