Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update(apps/prod/tekton/configs): update the ci helper for pr #1334

Merged
merged 1 commit into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions apps/prod/tekton/configs/tasks/ci/ci-helper-for-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ spec:
&& apt update \
&& apt install gh -y

gh auth login --with-token < $(workspaces.github.path)/token

# truct the pull request
echo "pull request url: https://github.com/$(params.owner)/$(params.repo)/pull/$(params.number)"
gh auth login --with-token < $(workspaces.github.path)/token
gh pr edit --add-label ok-to-test --remove-label needs-ok-to-test https://github.com/$(params.owner)/$(params.repo)/pull/$(params.number)
gh pr edit --add-label ok-to-test --remove-label needs-ok-to-test https://github.com/$(params.owner)/$(params.repo)/pull/$(params.number)
gh pr comment --body 'Now you can start all CI jobs with `/test all` in comment or query the triggers with `/test ?`' https://github.com/$(params.owner)/$(params.repo)/pull/$(params.number)
workspaces:
- name: github
description: Must includes a key `token`
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ spec:
&&
body.label.name in ['needs-ok-to-test']
&&
body.repository.owner.login in ["PingCAP-QE", "pingcap", "tikv"]
body.repository.full_name in ['pingcap/tidb', 'tikv/tikv', 'tikv/pd']
&&
body.pull_request.user.login in ["wuhuizuo", "purelind", "VelocityLight", "alex-quan-001"]
body.pull_request.user.login in ['mittalrishabh', 'Tema', 'HaoW30']
bindings:
- ref: github-pr
template:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ resources:
- tikv/pd/git-push.yaml
- tikv/tikv/git-create-branch.yaml
- tikv/tikv/git-create-tag.yaml
- tikv/tikv/git-push.yaml
- tikv/tikv/git-push.yaml