Skip to content

GitHub plugin has no validation if subscribing with an invalid feature  #165

Closed

Description

@DHaussermann

If you try and subscribe to a repo with an invalid feature, The ephemeral post tells you the subscription was successful but nothing will be delivered as the feature does not exist.

Can we validate when a feature does not exist to prevent user error

Steps:

  1. type /github subscribe DHaussermann/hello-world create (the 's' is missing)
    Observed Successfully subscribed to hello-world.
    Expected: create is not a valid feature

Activity

  1. added
    Help Wanted
    Up For Grabs
    and removed on Jan 7, 2020
  2. aayush-plivo commented on Feb 4, 2020

    @aayush-plivo

    @levb I'd like to take this up.

    Approach: Add check so that optionList[0] is a valid feature.

    } else if len(optionList) == 1 {

    Also, I think the same will apply for SubscribeOrg as well. Let me know if that fix should be added with the current one.

  3. levb commented on Feb 4, 2020

    @levb
    Contributor
  4. removed
    Up For Grabs
    on Feb 4, 2020
  5. removed their assignment
    on Feb 4, 2020
  6. added a commit that references this issue on Feb 4, 2020
    9dc1321
  7. checkaayush commented on Feb 4, 2020

    @checkaayush
    Contributor

    PR for review: #183

    P.S.: Mistakenly used my other GH account to comment previously, hence unassigned the issue from that account.

  8. checkaayush commented on Feb 5, 2020

    @checkaayush
    Contributor

    The CI is failing in make check-style, which seems to be due to this issue: golang/go#34053. Can someone help with this?

  9. levb commented on Feb 5, 2020

    @levb
    Contributor

    The CI is failing in make check-style, which seems to be due to this issue: golang/go#34053. Can someone help with this?

    Commented in the PR, need gofmt.

  10. added 3 commits that reference this issue on Feb 5, 2020
    0c26567
    371bedb
    c853656
  11. added a commit that references this issue on Feb 12, 2020
    4d1b666
  12. added a commit that references this issue on Mar 19, 2020
    6350167
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Difficulty/1:EasyHelp WantedTech/Go

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions