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

Github team_member? method #113

Merged
merged 8 commits into from
Aug 1, 2017
Merged

Github team_member? method #113

merged 8 commits into from
Aug 1, 2017

Conversation

ghost
Copy link

@ghost ghost commented Jul 18, 2017

What

Adding a team_membership? method to the Github module in order to apply restrictions on certain AutoMobile commands

Why

To restrict the use of new AutoMobile commands to certain users

Rollback Plan

  • To roll back this change, revert the merge with: git revert -m 1 MERGE_SHA and perform another deploy.

URLs

QA Plan

I have tested this change in conjunction with AutoMobile's #154 using the auto_mobile_test repo with success, but I am not sure how to test this method while stand-alone.

  • Can my tests ever even fail?

@ghost ghost changed the title Github team membership detection Github team_member? method Jul 18, 2017
@ghost ghost added the low-risk label Jul 18, 2017
Copy link
Contributor

@amenon amenon left a comment

Choose a reason for hiding this comment

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

@LanceHolsten, the code in here looks good. Please add a test similar to one of the other ones in:
https://github.com/sportngin/octopolo/blob/master/spec/octopolo/github_spec.rb

@ghost
Copy link
Author

ghost commented Aug 1, 2017

I realize my two tests test the exact same flow, but I wrote two (one for each possible outcome) in case it's important to illustrate all possibilities. Note: Also I wouldn't be surprised if this isn't how these are meant to be tested...

@production-status-check
Copy link

:octocat: Has QA approval

@newzac newzac merged commit 1810e4c into master Aug 1, 2017
newzac added a commit that referenced this pull request Aug 1, 2017
@emmahsax emmahsax deleted the team_member branch July 14, 2020 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants