Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Show new PR status message only for repos with beta feature enabled #62

Merged

Conversation

iancanderson
Copy link
Contributor

Also - use new nested hash structure to get issue counts from the event payload.

https://trello.com/c/f17uUGRd

@iancanderson
Copy link
Contributor Author

@codeclimate/review

@payload = payload.stringify_keys
@config = create_config(config)
@event = @payload["name"].to_s
def initialize(config, payload, beta_service_features)
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm. Not sure I like the name so much. How about something more along the lines of feature_toggle ? Whether its beta or not is sort of a separate concern.

Copy link
Contributor

Choose a reason for hiding this comment

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

seems like the toggler could be an optional parameter

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree with the name change. I don't think it needs to be optional, because the app only instantiates this object in one place

@noahd1
Copy link
Contributor

noahd1 commented Apr 7, 2015

LGTM other than reference to "beta"

@sikachu
Copy link
Contributor

sikachu commented Apr 7, 2015

👍

@iancanderson iancanderson force-pushed the ia-new-pr-status-only-for-repos-with-feature-flag branch from 61b1c57 to 57d2d60 Compare April 7, 2015 19:09
iancanderson added a commit that referenced this pull request Apr 7, 2015
…os-with-feature-flag

Show new PR status message only for repos with beta feature enabled
@iancanderson iancanderson merged commit b8111a7 into master Apr 7, 2015
@iancanderson iancanderson deleted the ia-new-pr-status-only-for-repos-with-feature-flag branch April 7, 2015 19:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants