Skip to content

Commit 8c6d72a

Browse files
committed
ci(release): rename codiumai/pr-agent to pragent/pr-agent across docs and CI
Updates Docker image references from codiumai/pr-agent to pragent/pr-agent in installation docs, security docs, the help_docs page, the action.yaml base image (Dockerfile.github_action_dockerhub), and the test/coverage/e2e workflows. RELEASE_NOTES.md is intentionally left as-is (historical record of past publishes under the codiumai/pr-agent namespace). Code comments in bitbucket_provider.py and gitlab_provider.py reference git URLs (.git repos) not docker images and are also untouched.
1 parent 47d938d commit 8c6d72a

12 files changed

Lines changed: 35 additions & 35 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ jobs:
2828
file: ./docker/Dockerfile
2929
push: false
3030
load: true
31-
tags: codiumai/pr-agent:test
31+
tags: pragent/pr-agent:test
3232
cache-from: type=gha,scope=dev
3333
cache-to: type=gha,mode=max,scope=dev
3434
target: test
3535

3636
- id: test
3737
name: Test dev docker
3838
run: |
39-
docker run --rm codiumai/pr-agent:test pytest -v tests/unittest
39+
docker run --rm pragent/pr-agent:test pytest -v tests/unittest

.github/workflows/code_coverage.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ jobs:
2929
file: ./docker/Dockerfile
3030
push: false
3131
load: true
32-
tags: codiumai/pr-agent:test
32+
tags: pragent/pr-agent:test
3333
cache-from: type=gha,scope=dev
3434
cache-to: type=gha,mode=max,scope=dev
3535
target: test
3636

3737
- id: code_cov
3838
name: Test dev docker
3939
run: |
40-
docker run --name test_container codiumai/pr-agent:test pytest tests/unittest --cov=pr_agent --cov-report term --cov-report xml:coverage.xml
40+
docker run --name test_container pragent/pr-agent:test pytest tests/unittest --cov=pr_agent --cov-report term --cov-report xml:coverage.xml
4141
docker cp test_container:/app/coverage.xml coverage.xml
4242
docker rm test_container
4343

.github/workflows/e2e_tests.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,22 @@ jobs:
2424
file: ./docker/Dockerfile
2525
push: false
2626
load: true
27-
tags: codiumai/pr-agent:test
27+
tags: pragent/pr-agent:test
2828
cache-from: type=gha,scope=dev
2929
cache-to: type=gha,mode=max,scope=dev
3030
target: test
3131

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 pragent/pr-agent:test pytest -v tests/e2e_tests/test_github_app.py
3636
3737
- id: test2
3838
name: E2E gitlab webhook
3939
run: |
40-
docker run -e gitlab.PERSONAL_ACCESS_TOKEN=${{ secrets.TOKEN_GITLAB }} --rm codiumai/pr-agent:test pytest -v tests/e2e_tests/test_gitlab_webhook.py
40+
docker run -e gitlab.PERSONAL_ACCESS_TOKEN=${{ secrets.TOKEN_GITLAB }} --rm pragent/pr-agent:test pytest -v tests/e2e_tests/test_gitlab_webhook.py
4141
4242
- id: test3
4343
name: E2E bitbucket app
4444
run: |
45-
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
45+
docker run -e BITBUCKET.USERNAME=${{ secrets.BITBUCKET_USERNAME }} -e BITBUCKET.PASSWORD=${{ secrets.BITBUCKET_PASSWORD }} --rm pragent/pr-agent:test pytest -v tests/e2e_tests/test_bitbucket_app.py

Dockerfile.github_action_dockerhub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
FROM codiumai/pr-agent:github_action
1+
FROM pragent/pr-agent:github_action

SECURITY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ For example, to github action:
4141
steps:
4242
- name: PR Agent action step
4343
id: pragent
44-
uses: docker://codiumai/pr-agent:0.26-github_action
44+
uses: docker://pragent/pr-agent:0.26-github_action
4545
```
4646
4747
#### Enhanced Security with Docker Digest
@@ -52,7 +52,7 @@ For maximum security, you can specify the Docker image using its digest:
5252
steps:
5353
- name: PR Agent action step
5454
id: pragent
55-
uses: docker://codiumai/pr-agent@sha256:14165e525678ace7d9b51cda8652c2d74abb4e1d76b57c4a6ccaeba84663cc64
55+
uses: docker://pragent/pr-agent@sha256:14165e525678ace7d9b51cda8652c2d74abb4e1d76b57c4a6ccaeba84663cc64
5656
```
5757
5858
## Reporting a Vulnerability

docs/docs/installation/azure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ stages:
2828
pool:
2929
vmImage: 'ubuntu-latest'
3030
container:
31-
image: codiumai/pr-agent:latest
31+
image: pragent/pr-agent:latest
3232
options: --entrypoint ""
3333
variables:
3434
- group: pr_agent

docs/docs/installation/bitbucket.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pipelines:
1010
'**':
1111
- step:
1212
name: PR Agent Review
13-
image: codiumai/pr-agent:latest
13+
image: pragent/pr-agent:latest
1414
script:
1515
- pr-agent --pr_url=https://bitbucket.org/$BITBUCKET_WORKSPACE/$BITBUCKET_REPO_SLUG/pull-requests/$BITBUCKET_PR_ID review
1616
```
@@ -67,8 +67,8 @@ python cli.py --pr_url https://git.on-prem-instance-of-bitbucket.com/projects/PR
6767
To run PR-Agent as webhook, build the docker image:
6868

6969
```bash
70-
docker build . -t codiumai/pr-agent:bitbucket_server_webhook --target bitbucket_server_webhook -f docker/Dockerfile
71-
docker push codiumai/pr-agent:bitbucket_server_webhook # Push to your Docker repository
70+
docker build . -t pragent/pr-agent:bitbucket_server_webhook --target bitbucket_server_webhook -f docker/Dockerfile
71+
docker push pragent/pr-agent:bitbucket_server_webhook # Push to your Docker repository
7272
```
7373

7474
Navigate to `Projects` or `Repositories`, `Settings`, `Webhooks`, `Create Webhook`.

docs/docs/installation/gitea.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ git clone https://github.com/the-pr-agent/pr-agent.git
2727

2828
```bash
2929
docker build -f /docker/Dockerfile -t pr-agent:gitea_app --target gitea_app .
30-
docker push codiumai/pr-agent:gitea_webhook # Push to your Docker repository
30+
docker push pragent/pr-agent:gitea_webhook # Push to your Docker repository
3131
```
3232

3333
7. Set the environmental variables, the method depends on your docker runtime. Skip this step if you included your secrets/configuration directly in the Docker image.

docs/docs/installation/github.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -493,17 +493,17 @@ For more detailed configuration options, see:
493493
steps:
494494
- name: PR Agent action step
495495
id: pragent
496-
uses: docker://codiumai/pr-agent:0.23-github_action
496+
uses: docker://pragent/pr-agent:0.23-github_action
497497
...
498498
```
499499

500-
For enhanced security, you can also specify the Docker image by its [digest](https://hub.docker.com/repository/docker/codiumai/pr-agent/tags):
500+
For enhanced security, you can also specify the Docker image by its [digest](https://hub.docker.com/repository/docker/pragent/pr-agent/tags):
501501
```yaml
502502
...
503503
steps:
504504
- name: PR Agent action step
505505
id: pragent
506-
uses: docker://codiumai/pr-agent@sha256:14165e525678ace7d9b51cda8652c2d74abb4e1d76b57c4a6ccaeba84663cc64
506+
uses: docker://pragent/pr-agent@sha256:14165e525678ace7d9b51cda8652c2d74abb4e1d76b57c4a6ccaeba84663cc64
507507
...
508508
```
509509

@@ -591,8 +591,8 @@ cp pr_agent/settings/.secrets_template.toml pr_agent/settings/.secrets.toml
591591
6) Build a Docker image for the app and optionally push it to a Docker repository. We'll use Dockerhub as an example:
592592

593593
```bash
594-
docker build . -t codiumai/pr-agent:github_app --target github_app -f docker/Dockerfile
595-
docker push codiumai/pr-agent:github_app # Push to your Docker repository
594+
docker build . -t pragent/pr-agent:github_app --target github_app -f docker/Dockerfile
595+
docker push pragent/pr-agent:github_app # Push to your Docker repository
596596
```
597597

598598
7. Host the app using a server, serverless function, or container environment. Alternatively, for development and
@@ -622,16 +622,16 @@ For example: `GITHUB.WEBHOOK_SECRET` --> `GITHUB__WEBHOOK_SECRET`
622622
2. Build a docker image that can be used as a lambda function
623623

624624
```shell
625-
docker buildx build --platform=linux/amd64 . -t codiumai/pr-agent:github_lambda --target github_lambda -f docker/Dockerfile.lambda
625+
docker buildx build --platform=linux/amd64 . -t pragent/pr-agent:github_lambda --target github_lambda -f docker/Dockerfile.lambda
626626
```
627627
(Note: --target github_lambda is optional as it's the default target)
628628

629629

630630
3. Push image to ECR
631631

632632
```shell
633-
docker tag codiumai/pr-agent:github_lambda <AWS_ACCOUNT>.dkr.ecr.<AWS_REGION>.amazonaws.com/codiumai/pr-agent:github_lambda
634-
docker push <AWS_ACCOUNT>.dkr.ecr.<AWS_REGION>.amazonaws.com/codiumai/pr-agent:github_lambda
633+
docker tag pragent/pr-agent:github_lambda <AWS_ACCOUNT>.dkr.ecr.<AWS_REGION>.amazonaws.com/pragent/pr-agent:github_lambda
634+
docker push <AWS_ACCOUNT>.dkr.ecr.<AWS_REGION>.amazonaws.com/pragent/pr-agent:github_lambda
635635
```
636636

637637
4. Create a lambda function that uses the uploaded image. Set the lambda timeout to be at least 3m.

docs/docs/installation/gitlab.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ stages:
1111
pr_agent_job:
1212
stage: pr_agent
1313
image:
14-
name: codiumai/pr-agent:latest
14+
name: pragent/pr-agent:latest
1515
entrypoint: [""]
1616
script:
1717
- cd /app
@@ -76,7 +76,7 @@ git clone https://github.com/the-pr-agent/pr-agent.git
7676

7777
```bash
7878
docker build . -t gitlab_pr_agent --target gitlab_webhook -f docker/Dockerfile
79-
docker push codiumai/pr-agent:gitlab_webhook # Push to your Docker repository
79+
docker push pragent/pr-agent:gitlab_webhook # Push to your Docker repository
8080
```
8181

8282
7. Set the environmental variables, the method depends on your docker runtime. Skip this step if you included your secrets/configuration directly in the Docker image.
@@ -104,14 +104,14 @@ For example: `GITLAB.PERSONAL_ACCESS_TOKEN` --> `GITLAB__PERSONAL_ACCESS_TOKEN`
104104
2. Build a docker image that can be used as a lambda function
105105

106106
```shell
107-
docker buildx build --platform=linux/amd64 . -t codiumai/pr-agent:gitlab_lambda --target gitlab_lambda -f docker/Dockerfile.lambda
107+
docker buildx build --platform=linux/amd64 . -t pragent/pr-agent:gitlab_lambda --target gitlab_lambda -f docker/Dockerfile.lambda
108108
```
109109

110110
3. Push image to ECR
111111

112112
```shell
113-
docker tag codiumai/pr-agent:gitlab_lambda <AWS_ACCOUNT>.dkr.ecr.<AWS_REGION>.amazonaws.com/codiumai/pr-agent:gitlab_lambda
114-
docker push <AWS_ACCOUNT>.dkr.ecr.<AWS_REGION>.amazonaws.com/codiumai/pr-agent:gitlab_lambda
113+
docker tag pragent/pr-agent:gitlab_lambda <AWS_ACCOUNT>.dkr.ecr.<AWS_REGION>.amazonaws.com/pragent/pr-agent:gitlab_lambda
114+
docker push <AWS_ACCOUNT>.dkr.ecr.<AWS_REGION>.amazonaws.com/pragent/pr-agent:gitlab_lambda
115115
```
116116

117117
4. Create a lambda function that uses the uploaded image. Set the lambda timeout to be at least 3m.

0 commit comments

Comments
 (0)