You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GitHub plugin has no validation if subscribing with an invalid feature #165
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:
type /github subscribe DHaussermann/hello-world create (the 's' is missing) ObservedSuccessfully subscribed to hello-world. Expected: create is not a valid feature
Activity
aayush-plivo commentedon Feb 4, 2020
@levb I'd like to take this up.
Approach: Add check so that optionList[0] is a valid feature.
mattermost-plugin-github/server/command.go
Line 142 in 23f77f0
Also, I think the same will apply for
SubscribeOrgas well. Let me know if that fix should be added with the current one.levb commentedon Feb 4, 2020
cc @jfrerich
Fix mattermost#165: Validate features before subscribing
checkaayush commentedon Feb 4, 2020
PR for review: #183
P.S.: Mistakenly used my other GH account to comment previously, hence unassigned the issue from that account.
checkaayush commentedon Feb 5, 2020
The CI is failing in
make check-style, which seems to be due to this issue: golang/go#34053. Can someone help with this?levb commentedon Feb 5, 2020
Commented in the PR, need gofmt.
Fix mattermost#165: Validate features before subscribing
Fix mattermost#165: Validate features before subscribing
Fix mattermost#165: Validate features before subscribing
Fix #165: Validate features before subscribing (#183)
Make links in todo messages consistent (#192)