Skip to content

Commit 3cc9dd1

Browse files
authored
Update automerge-example to use commit-name and commit-email (#95)
1 parent 8d2c539 commit 3cc9dd1

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

automerge-example/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Create or modify an existing ServiceAccount to use your `github-secret` (hint, y
6363
Finally start the Tekton pipeline referencing your ServiceAccount:
6464

6565
```sh
66-
tkn pipeline start automerge-pipeline -r source-repo=gitops-repo -r pr=pull-request -p github-config=promoteconfigmap -p github-secret=github-secret --showlog -s my-sa
66+
tkn pipeline start automerge-pipeline -r source-repo=gitops-repo -r pr=pull-request -p commit-name=<yourgitname> -p commit-email=<yourgitemail> -p github-secret=github-secret --showlog -s my-sa
6767
```
6868

6969
The pipeline will do a dry run to test that the yaml in the Pull Request is good, then merge the Pull Request and delete the branch associated with it.

automerge-example/standalone/resources/automerge-pipeline.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ spec:
66
params:
77
- name: github-secret
88
type: string
9-
- name: github-config
9+
- name: commit-name
1010
type: string
11+
description: the GitHub name to use on the commit
12+
- name: commit-email
13+
type: string
14+
description: the GitHub email to use on the commit
1115
resources:
1216
- name: source-repo
1317
type: git
@@ -26,5 +30,7 @@ spec:
2630
params:
2731
- name: github-secret
2832
value: $(params.github-secret)
29-
- name: github-config
30-
value: $(params.github-config)
33+
- name: commit-name
34+
value: $(params.commit-name)
35+
- name: commit-email
36+
value: $(params.commit-email)

0 commit comments

Comments
 (0)