You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit introduces the capability to report PipelineRun
validation errors as comments on pull requests. This functionality
is triggered when validation errors are detected and the event
type is a pull request. The errors are formatted into a
markdown table and posted as a comment on the pull request,
allowing users to easily identify and address issues in their
PipelineRun templates.
The commit also includes updates to the provider interfaces to
include a CreateComment function, and implementations for
GitHub, GitLab, Bitbucket Cloud, Bitbucket Server and Gitea
providers.
Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
Copy file name to clipboardExpand all lines: docs/content/docs/dev/_index.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -179,12 +179,14 @@ For example, to test and lint the go files:
179
179
make test lint-go
180
180
```
181
181
182
-
If you add a CLI command with help, you will need to regenerate the golden files:
182
+
We use [golden](https://pkg.go.dev/gotest.tools/v3/golden) files in our tests, for instance, to compare the output of CLI commands or other detailed tests. Occasionally, you may need to regenerate the golden files if you modify the output of a command. For unit tests, you can use this Makefile target:
183
183
184
184
```shell
185
185
make update-golden
186
186
```
187
187
188
+
Head over to the [./test/README.md](./test/README.md) for more information on how to update the golden files on the E2E tests.
189
+
188
190
## Configuring the Pre Push Git checks
189
191
190
192
We are using several tools to verify that pipelines-as-code is up to a good
logSnippet: `prun: bad-tekton-yaml tekton validation error: json: cannot unmarshal object into Go struct field PipelineSpec.spec.pipelineSpec.tasks of type []v1beta1.PipelineTask`,
170
+
logSnippet: `json: cannot unmarshal object into Go struct field PipelineSpec.spec.pipelineSpec.tasks of type []v1beta1.PipelineTask`,
171
171
},
172
172
{
173
173
name: "no-match pipelineruns in .tekton dir, only matched should be returned",
0 commit comments