Skip to content

Commit 002c71f

Browse files
authored
Merge branch 'qodo-ai:main' into feature/simplified-bitbucket-pipeline
2 parents 2fa4438 + e41050d commit 002c71f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+686
-421
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.venv/
12
venv/
23
pr_agent/settings/.secrets.toml
34
pics/

.github/workflows/build-and-test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ jobs:
1414

1515
steps:
1616
- id: checkout
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v4
1818

1919
- id: dockerx
2020
name: Setup Docker Buildx
21-
uses: docker/setup-buildx-action@v2
21+
uses: docker/setup-buildx-action@v3
2222

2323
- id: build
2424
name: Build dev docker
25-
uses: docker/build-push-action@v2
25+
uses: docker/build-push-action@v6
2626
with:
2727
context: .
2828
file: ./docker/Dockerfile

.github/workflows/code_coverage.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ jobs:
1515

1616
steps:
1717
- id: checkout
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@v4
1919

2020
- id: dockerx
2121
name: Setup Docker Buildx
22-
uses: docker/setup-buildx-action@v2
22+
uses: docker/setup-buildx-action@v3
2323

2424
- id: build
2525
name: Build dev docker
26-
uses: docker/build-push-action@v2
26+
uses: docker/build-push-action@v6
2727
with:
2828
context: .
2929
file: ./docker/Dockerfile
@@ -41,14 +41,13 @@ jobs:
4141
docker cp test_container:/app/coverage.xml coverage.xml
4242
docker rm test_container
4343
44-
4544
- name: Validate coverage report
4645
run: |
4746
if [ ! -f coverage.xml ]; then
4847
echo "Coverage report not found"
4948
exit 1
5049
fi
5150
- name: Upload coverage to Codecov
52-
uses: codecov/codecov-action@v4.0.1
51+
uses: codecov/codecov-action@v5
5352
with:
5453
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/e2e_tests.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ jobs:
1111
name: PR-Agent E2E GitHub App Test
1212
steps:
1313
- name: Checkout repository
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
1515

1616
- name: Setup Docker Buildx
17-
uses: docker/setup-buildx-action@v2
17+
uses: docker/setup-buildx-action@v3
1818

1919
- id: build
2020
name: Build dev docker
21-
uses: docker/build-push-action@v2
21+
uses: docker/build-push-action@v6
2222
with:
2323
context: .
2424
file: ./docker/Dockerfile
@@ -32,14 +32,13 @@ jobs:
3232
- id: test1
3333
name: E2E test github app
3434
run: |
35-
docker run -e GITHUB.USER_TOKEN=${{ secrets.TOKEN_GITHUB }} --rm codiumai/pr-agent:test pytest -v tests/e2e_tests/test_github_app.py
35+
docker run -e GITHUB.USER_TOKEN=${{ secrets.TOKEN_GITHUB }} --rm codiumai/pr-agent:test pytest -v tests/e2e_tests/test_github_app.py
3636
3737
- id: test2
3838
name: E2E gitlab webhook
3939
run: |
4040
docker run -e gitlab.PERSONAL_ACCESS_TOKEN=${{ secrets.TOKEN_GITLAB }} --rm codiumai/pr-agent:test pytest -v tests/e2e_tests/test_gitlab_webhook.py
4141
42-
4342
- id: test3
4443
name: E2E bitbucket app
4544
run: |

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
pre-commit:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
- uses: actions/setup-python@v5
1616
# SEE https://github.com/pre-commit/action
1717
- uses: pre-commit/[email protected]

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
.lsp/
33
.vscode/
44
.env
5+
.venv/
56
venv/
67
pr_agent/settings/.secrets.toml
78
__pycache__

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,50 @@
11
## 2023-08-03
22

33
### Optimized
4+
45
- Optimized PR diff processing by introducing caching for diff files, reducing the number of API calls.
56
- Refactored `load_large_diff` function to generate a patch only when necessary.
67
- Fixed a bug in the GitLab provider where the new file was not retrieved correctly.
78

89
## 2023-08-02
910

1011
### Enhanced
12+
1113
- Updated several tools in the `pr_agent` package to use commit messages in their functionality.
1214
- Commit messages are now retrieved and stored in the `vars` dictionary for each tool.
1315
- Added a section to display the commit messages in the prompts of various tools.
1416

1517
## 2023-08-01
1618

1719
### Enhanced
20+
1821
- Introduced the ability to retrieve commit messages from pull requests across different git providers.
1922
- Implemented commit messages retrieval for GitHub and GitLab providers.
2023
- Updated the PR description template to include a section for commit messages if they exist.
2124
- Added support for repository-specific configuration files (.pr_agent.yaml) for the PR Agent.
2225
- Implemented this feature for both GitHub and GitLab providers.
2326
- Added a new configuration option 'use_repo_settings_file' to enable or disable the use of a repo-specific settings file.
2427

25-
2628
## 2023-07-30
2729

2830
### Enhanced
31+
2932
- Added the ability to modify any configuration parameter from 'configuration.toml' on-the-fly.
3033
- Updated the command line interface and bot commands to accept configuration changes as arguments.
3134
- Improved the PR agent to handle additional arguments for each action.
3235

3336
## 2023-07-28
3437

3538
### Improved
39+
3640
- Enhanced error handling and logging in the GitLab provider.
3741
- Improved handling of inline comments and code suggestions in GitLab.
3842
- Fixed a bug where an additional unneeded line was added to code suggestions in GitLab.
3943

4044
## 2023-07-26
4145

4246
### Added
47+
4348
- New feature for updating the CHANGELOG.md based on the contents of a PR.
4449
- Added support for this feature for the Github provider.
4550
- New configuration settings and prompts for the changelog update feature.

CODE_OF_CONDUCT.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,3 @@ with regard to the reporter of an incident.
4242
This Code of Conduct is adapted from the
4343
[Contributor Covenant](https://contributor-covenant.org), version 1.3.0, available at
4444
[contributor-covenant.org/version/1/3/0/](https://contributor-covenant.org/version/1/3/0/)
45-

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributing to PR-Agent
22

3-
Thank you for your interest in contributing to the PR-Agent project!
3+
Thank you for your interest in contributing to the PR-Agent project!
44

55
## Getting Started
66

0 commit comments

Comments
 (0)