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
@@ -189,12 +189,14 @@ For example, to test and lint the go files:
189
189
make test lint-go
190
190
```
191
191
192
-
If you add a CLI command with help, you will need to regenerate the golden files:
192
+
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:
193
193
194
194
```shell
195
195
make update-golden
196
196
```
197
197
198
+
Head over to the [./test/README.md](./test/README.md) for more information on how to update the golden files on the E2E tests.
199
+
198
200
## Configuring the Pre Push Git checks
199
201
200
202
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`,
182
+
logSnippet: `json: cannot unmarshal object into Go struct field PipelineSpec.spec.pipelineSpec.tasks of type []v1beta1.PipelineTask`,
183
183
},
184
184
{
185
185
name: "no-match pipelineruns in .tekton dir, only matched should be returned",
0 commit comments