diff --git a/apps/prod/tekton/configs/tasks/ci/ci-helper-for-pr.yaml b/apps/prod/tekton/configs/tasks/ci/ci-helper-for-pr.yaml index 0646ffb14..92e867d28 100644 --- a/apps/prod/tekton/configs/tasks/ci/ci-helper-for-pr.yaml +++ b/apps/prod/tekton/configs/tasks/ci/ci-helper-for-pr.yaml @@ -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` \ No newline at end of file diff --git a/apps/prod/tekton/configs/triggers/triggers/_/github-pr-labeled.yaml b/apps/prod/tekton/configs/triggers/triggers/_/github-pr-labeled.yaml index c7988271d..26acf0a8f 100644 --- a/apps/prod/tekton/configs/triggers/triggers/_/github-pr-labeled.yaml +++ b/apps/prod/tekton/configs/triggers/triggers/_/github-pr-labeled.yaml @@ -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: diff --git a/apps/prod/tekton/configs/triggers/triggers/kustomization.yaml b/apps/prod/tekton/configs/triggers/triggers/kustomization.yaml index 93e08df33..5df42b4bc 100644 --- a/apps/prod/tekton/configs/triggers/triggers/kustomization.yaml +++ b/apps/prod/tekton/configs/triggers/triggers/kustomization.yaml @@ -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 \ No newline at end of file + - tikv/tikv/git-push.yaml