Update bb how to integrate
@@ -122,6 +122,77 @@ pipelines:
|
|||||||
- step: *ai-review-step
|
- step: *ai-review-step
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**DocumentSolutions Team**
|
||||||
|
```yaml
|
||||||
|
definitions:
|
||||||
|
steps:
|
||||||
|
- step: &ai-review-step
|
||||||
|
clone:
|
||||||
|
depth: full
|
||||||
|
name: AI Code Review
|
||||||
|
max-time: 40
|
||||||
|
image: code.wynenterprise.io/docker/bitbucket-ai-review:docsol
|
||||||
|
runs-on: [kodo]
|
||||||
|
script:
|
||||||
|
- |
|
||||||
|
COMMIT_MSG=$(git log --format=%B -n 1 "$BITBUCKET_COMMIT")
|
||||||
|
|
||||||
|
if [[ "$COMMIT_MSG" == *"[no ai]"* ]]; then
|
||||||
|
echo "Skip pipeline: [no ai] found in commit message."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
export VCS_ACCESS_TOKEN=$CC_KODOTOKEN
|
||||||
|
export ATLASSIAN_USER_EMAIL=$CC_KODOMAIL
|
||||||
|
export TEAM_NAME=$CC_TEAM
|
||||||
|
|
||||||
|
/pipe.sh
|
||||||
|
|
||||||
|
pipelines:
|
||||||
|
pull-requests:
|
||||||
|
'**':
|
||||||
|
- step: *ai-review-step
|
||||||
|
|
||||||
|
custom:
|
||||||
|
ai-review:
|
||||||
|
- step: *ai-review-step
|
||||||
|
```
|
||||||
|
**Spread.NET Team**
|
||||||
|
```yaml
|
||||||
|
definitions:
|
||||||
|
steps:
|
||||||
|
- step: &ai-review-step
|
||||||
|
clone:
|
||||||
|
depth: full
|
||||||
|
name: AI Code Review
|
||||||
|
max-time: 40
|
||||||
|
image: code.wynenterprise.io/docker/bitbucket-ai-review:spreadnet
|
||||||
|
runs-on: [kodo]
|
||||||
|
script:
|
||||||
|
- |
|
||||||
|
COMMIT_MSG=$(git log --format=%B -n 1 "$BITBUCKET_COMMIT")
|
||||||
|
|
||||||
|
if [[ "$COMMIT_MSG" == *"[no ai]"* ]]; then
|
||||||
|
echo "Skip pipeline: [no ai] found in commit message."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
export VCS_ACCESS_TOKEN=$CC_KODOTOKEN
|
||||||
|
export ATLASSIAN_USER_EMAIL=$CC_KODOMAIL
|
||||||
|
export TEAM_NAME=$CC_TEAM
|
||||||
|
|
||||||
|
/pipe.sh
|
||||||
|
|
||||||
|
pipelines:
|
||||||
|
pull-requests:
|
||||||
|
'**':
|
||||||
|
- step: *ai-review-step
|
||||||
|
|
||||||
|
custom:
|
||||||
|
ai-review:
|
||||||
|
- step: *ai-review-step
|
||||||
|
```
|
||||||
|
|
||||||
This script will run automatically when a Pull Request is created or updated. If necessary, you can start it manually via the Bitbucket interface and add additional conditions required for start.
|
This script will run automatically when a Pull Request is created or updated. If necessary, you can start it manually via the Bitbucket interface and add additional conditions required for start.
|
||||||
|
|
||||||
> ⚠️ **Important!** All pre-built scripts include a custom `ai-review` step. Do not change this name.
|
> ⚠️ **Important!** All pre-built scripts include a custom `ai-review` step. Do not change this name.
|
||||||
|
|||||||
Reference in New Issue
Block a user