Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Stop users from overreaching their private repo limit #166

Merged
merged 3 commits into from
Sep 2, 2015

Conversation

tarebyte
Copy link
Member

@tarebyte tarebyte commented Sep 2, 2015

Closes #46

/cc @johndbritton

I also reran all of the VCR tests which is why there are a lot of changes.

I also go rid of shoulda-matchers because I ran into really weird situations with models that had API callbacks.

Feedback welcome!

It will try to create the resource and if the org has hit it’s limit of
private repos on GitHub then it will fail and raise an error.
@tarebyte
Copy link
Member Author

tarebyte commented Sep 2, 2015

Here is an example of how it looks right now.

can t create assignment


error_message = <<-ERROR
Cannot make this private assignment, your limit of #{allowed_private_repos}
#{'repository'.pluralize(allowed_private_repos)} has been reached
Copy link
Contributor

Choose a reason for hiding this comment

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

Cannot make this private assignment, your limit of #{allowed_private_repos} + #{'repository'.pluralize(allowed_private_repos)} has been reached. You can request a larger plan for free at https://education.github.com/discount.

@johndbritton
Copy link
Contributor

👍

tarebyte added a commit that referenced this pull request Sep 2, 2015
Stop users from overreaching their private repo limit
@tarebyte tarebyte merged commit dd61882 into master Sep 2, 2015
@tarebyte tarebyte deleted the ah-ah-ah-stayin-alive branch September 2, 2015 11:49
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.

None yet

2 participants