mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 11:19:59 -04:00
Add both Claude 4.6 and ChatGPT in two separate job pipelines
(cherry picked from commit ee5e933933)
This commit is contained in:
parent
43840637b6
commit
e26b3df358
1 changed files with 24 additions and 2 deletions
|
|
@ -2798,7 +2798,7 @@ autorebase-sub:
|
|||
rules:
|
||||
- if: '$CI_PROJECT_NAMESPACE == "isc-private" && $CI_PIPELINE_SOURCE == "pipeline" && $CI_COMMIT_REF_NAME =~ /^bind-9\.[0-9]+-sub$/ && $REBASE_ONLY == "1" && $CI_COMMIT_REF_NAME =~ $AUTOREBASED_BRANCHES'
|
||||
|
||||
pr-agent:
|
||||
pr-agent-claude:
|
||||
<<: *other_checks_job
|
||||
image:
|
||||
name: registry.gitlab.isc.org/isc-projects/images/pr-agent:latest
|
||||
|
|
@ -2815,11 +2815,33 @@ pr-agent:
|
|||
- export config__add_repo_metadata=true
|
||||
- export config__add_repo_metadata_file_list="[\"CONTRIBUTING.md\"]"
|
||||
- export config__git_provider="gitlab"
|
||||
- export openai__key="$OPENAI_KEY"
|
||||
- export anthropic__KEY="$ANTHROPIC_API_KEY"
|
||||
- export config__reasoning_effort="high"
|
||||
- python -m pr_agent.cli --pr_url="$MR_URL" review
|
||||
- python -m pr_agent.cli --pr_url="$MR_URL" improve
|
||||
rules:
|
||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_SOURCE_PROJECT_PATH == $CI_PROJECT_PATH && $GITLAB_PERSONAL_ACCESS_TOKEN && $ANTHROPIC_API_KEY'
|
||||
when: manual
|
||||
allow_failure: true
|
||||
|
||||
pr-agent-chatgpt:
|
||||
<<: *other_checks_job
|
||||
image:
|
||||
name: registry.gitlab.isc.org/isc-projects/images/pr-agent:latest
|
||||
entrypoint: [""]
|
||||
script:
|
||||
- cd /app
|
||||
- export MR_URL="$CI_MERGE_REQUEST_PROJECT_URL/-/merge_requests/$CI_MERGE_REQUEST_IID"
|
||||
- echo "MR_URL=$MR_URL"
|
||||
- export gitlab__url="$CI_SERVER_URL"
|
||||
- export gitlab__PERSONAL_ACCESS_TOKEN="$GITLAB_PERSONAL_ACCESS_TOKEN"
|
||||
- export config__add_repo_metadata=true
|
||||
- export config__add_repo_metadata_file_list="[\"CONTRIBUTING.md\"]"
|
||||
- export config__git_provider="gitlab"
|
||||
- export openai__key="$OPENAI_KEY"
|
||||
- export config__reasoning_effort="high"
|
||||
- python -m pr_agent.cli --pr_url="$MR_URL" review
|
||||
- python -m pr_agent.cli --pr_url="$MR_URL" improve
|
||||
rules:
|
||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_SOURCE_PROJECT_PATH == $CI_PROJECT_PATH && $GITLAB_PERSONAL_ACCESS_TOKEN && $OPENAI_KEY'
|
||||
when: manual
|
||||
|
|
|
|||
Loading…
Reference in a new issue