Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn on PRCommenter on completion of PR builds #1220

Merged
merged 1 commit into from
Sep 30, 2022

Conversation

abayer
Copy link
Contributor

@abayer abayer commented Sep 29, 2022

Changes

Closes #483

I could have added a new TriggerTemplate, but it made more sense to just turn the existing tekton-ci-github-check-end into a PipelineRun.

I did have to add a couple new parameters - the bare repo name (since I wrote up the PR commenter to have the org as a global configuration), and a boolean for pass/fail. It may make sense to tweak the PR commenter to handle org/repo instead of just repo, and "success" or "failure" instead of true or false, but I thought I'd wait to see what people think. =)

/kind feature

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

See the contribution guide
for more details.

@abayer abayer added the kind/feature Categorizes issue or PR as related to a new feature. label Sep 29, 2022
@abayer
Copy link
Contributor Author

abayer commented Sep 29, 2022

/assign @afrittoli @dibyom

@tekton-robot tekton-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Sep 29, 2022
Closes tektoncd#483

I could have added a new `TriggerTemplate`, but it made more sense to just turn the existing `tekton-ci-github-check-end` into a `PipelineRun`.

I did have to add a couple new parameters - the bare repo name (since I wrote up the PR commenter to have the org as a global configuration), and a boolean for pass/fail. It may make sense to tweak the PR commenter to handle `org/repo` instead of just `repo`, and `"success"` or `"failure"` instead of `true` or `false`, but I thought I'd wait to see what people think. =)

Signed-off-by: Andrew Bayer <[email protected]>
@abayer abayer force-pushed the start-using-pr-commenter branch from 5840e44 to cb196bc Compare September 29, 2022 18:16
@dibyom
Copy link
Member

dibyom commented Sep 29, 2022

This looks good to me!

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 29, 2022
Copy link
Member

@afrittoli afrittoli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: afrittoli

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 30, 2022
@tekton-robot tekton-robot merged commit f618b23 into tektoncd:main Sep 30, 2022
abayer added a commit to abayer/plumbing that referenced this pull request Sep 30, 2022
Specifically reverting tektoncd#1220 and tektoncd#1225

Something's wrong with how this is actually working in practice - I'm not seeing the `PipelineRun` get created, so I'm _guessing_ something's awry in the eventlistener. But I don't know enough to figure out what's wrong. So let's revert this for the moment.

Signed-off-by: Andrew Bayer <[email protected]>
tekton-robot pushed a commit that referenced this pull request Sep 30, 2022
Specifically reverting #1220 and #1225

Something's wrong with how this is actually working in practice - I'm not seeing the `PipelineRun` get created, so I'm _guessing_ something's awry in the eventlistener. But I don't know enough to figure out what's wrong. So let's revert this for the moment.

Signed-off-by: Andrew Bayer <[email protected]>
@tekton-robot
Copy link
Contributor

The following Tekton test failed:

Test name Commit Details Required Rerun command
plumbing-yamllint 5840e44 link true /test plumbing-yamllint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tekton CI should comment on how to re-run tests
4 participants