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

Fix GitHub example bindings #694

Merged
merged 1 commit into from
Aug 10, 2020
Merged

Fix GitHub example bindings #694

merged 1 commit into from
Aug 10, 2020

Conversation

dibyom
Copy link
Member

@dibyom dibyom commented Jul 31, 2020

Changes

The old bindings were for the GitHub push event while this EventListener is
configured for pull_request event types. See:
https://developer.github.com/webhooks/event-payloads/#pull_request

(I also moved the bindings and template to the same file to be consistent with the GitLab example)

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.

Release Notes

NONE

@tekton-robot tekton-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 31, 2020
type: git
params:
- name: revision
value: $(params.gitrevision)
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice fix 👍 how its use to work earlier 🤔

small changes related to tt.params

Suggested change
value: $(params.gitrevision)
value: $(tt.params.gitrevision)

Copy link
Member Author

Choose a reason for hiding this comment

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

Done!
We were using a mock/fake body to test this example out. Turns out that body was wrong -- it was for the push event not pull_request too. So, the example worked. When tried with a real GitHub PR, it failed 😅

The old bindings were for the GitHub push event while this EventListener is
configured for pull_request event types.  See:
https://developer.github.com/webhooks/event-payloads/#pull_request
@tekton-robot tekton-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 3, 2020
@savitaashture
Copy link
Contributor

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 4, 2020
Copy link
Member

@wlynch wlynch left a comment

Choose a reason for hiding this comment

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

/lgtm

@tekton-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: wlynch

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 Aug 10, 2020
@tekton-robot tekton-robot merged commit b6d0aac into tektoncd:master Aug 10, 2020
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. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants