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

Add a plugin for /pony #10422

Merged
merged 1 commit into from
Dec 14, 2018
Merged

Conversation

Katharine
Copy link
Member

@Katharine Katharine commented Dec 13, 2018

This critical PR adds a /pony command, and thereby closes #10415.

It is based very heavily on the code and tests for the dog and cat plugins (which, in turn, appear to be very heavily based on each other).

Usage is either of the following:

  • /pony for a completely random pony, or
  • /pony Pony Name, for a pony by that name.

There is also some non-name tag support, such as gif to get only animated ponies. They can be combined with commas:

  • /pony gif for a random animated pony.
  • /pony gif, Pony Name for an animated pony by that name.

Random ponies are collected from https://theponyapi.com.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. area/prow Issues or PRs related to prow labels Dec 13, 2018
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 13, 2018
@Katharine
Copy link
Member Author

Grr, hit the wrong keys and submitted a half-typed PR.

/cc @fejta

}

const (
ponyURL = realHerd("https://theponyapi.com/pony.json")
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this the API with which we will need to be careful? Does it expose user-provided content? Do we run the risk of posting inappropriate images here?

Copy link
Member Author

@Katharine Katharine Dec 13, 2018

Choose a reason for hiding this comment

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

All the images returned by this API (which is not the same one discussed previously, though that is its root data source) have been manually reviewed for appropriateness. It should be at least as safe as /meow

Copy link
Contributor

Choose a reason for hiding this comment

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

@ixdy didn't we just have an oopsie with the cat plugin?

Copy link
Member

Choose a reason for hiding this comment

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

@stevekuznetsov yes, there was apparently a bug in which images which were rejected were still available via a direct request. it's supposedly fixed now; all cat images are supposed to be reviewed first as well.

@liztio
Copy link
Contributor

liztio commented Dec 14, 2018

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 14, 2018
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 966c18de16dc267109de4be0c6bcd7143b560891

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Katharine, liztio

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

@k8s-ci-robot k8s-ci-robot merged commit ee1f7ea into kubernetes:master Dec 14, 2018
@fejta
Copy link
Contributor

fejta commented Dec 14, 2018

YES!

@fejta
Copy link
Contributor

fejta commented Dec 14, 2018

We need to deploy a new version of prow before we can enable this

@ixdy
Copy link
Member

ixdy commented Dec 14, 2018

@fejta conveniently #10392

@fejta
Copy link
Contributor

fejta commented Dec 14, 2018

Yeah except it fails tests somehow!

@BenTheElder
Copy link
Member

I enthusiastically approve this PR :D

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. area/prow Issues or PRs related to prow cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Pony API
7 participants