cloud-native-toolkit / cloud-native-toolkit/planning

Maureen wants the Tekton pipeline to update the PR status in GitHub

Open
#753 2 comments 0 reactions 1 assignee Claimed by @vamsysivaarcca26 View on GitHub
cloud events feature pipeline
Dominant language
No language data
Stars
4
Forks
1
PR merge metrics
No merged PRs in 30d

Description

The GitHub API provides a `Check Run` object that can be created and updated to notify GitHub of the status of the validation process for a pull request. The check look like this in the PR.

![github-check-runs.png](https://images.zenhubusercontent.com/5e177a4bc5984b94e7af44b5/595bad53-eff7-432e-aed2-a5ce8a79b697)

We should create a process that uses CloudEvents produced by the Tekton tasks in the pipeline to trigger the creation/update of Check Runs using the GitHub API.

Tasks:
- [ ] Configure a Cloud Event sink - https://tekton.dev/docs/pipelines/events/#events-via-cloudevents
- [ ] Investigate the information available in Pipeline start/end events
- [ ] Enhance gitu to include apis for create and update checks on the git repo
- [ ] Create an event handler to create the check on pipeline start
- [ ] Create an event handler to update the check on pipeline end
- [ ] Develop automation to configure the sink and event handlers

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.