-
Notifications
You must be signed in to change notification settings - Fork 11
Fix 0.17-allow-new-players #242
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
Open
tnelling
wants to merge
22
commits into
master
Choose a base branch
from
no-fake-users
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
c95d88d
Don't allow fake users
tnelling fd4aae9
No real reason to make the url its own method
tnelling b2e6d7c
Better check for blocking existing players.
tnelling 9c44048
Oops
tnelling 1e17c74
Missing import
tnelling 32211a4
Validate that a new user created their own PR
tnelling 6ef4d81
Turns out there's an author already
tnelling 46ffd59
But it's a method
tnelling e5d86ec
Merge branch 'master' into no-fake-users
tnelling cb4af78
Merge branch 'master' into no-fake-users
tnelling f586275
Merge branch 'master' into no-fake-users
tnelling dc40949
Merge branch 'master' into no-fake-users
tnelling 3412590
Add some unit tests. Could use more.
tnelling 1835070
More unit tests
tnelling 91d6fc2
Quotes around incorrect file name
tnelling e33014c
Placeholder for valid test case
tnelling 6236973
255 enabled a test
tnelling 6522b3d
More test cases, thanks Dom!
tnelling b199481
More tests
tnelling 57bfdee
Merge branch 'master' into no-fake-users
tnelling 03f2c4d
Merge branch 'master' into no-fake-users
tnelling 9d4a79a
Merge branch 'master' into no-fake-users
tnelling File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I'm not clear on is how we know we're looking at a PR for a new user at this point? If an existing user tries to add a new, non-
'initial'bonus file won't this exception still throw?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. And that's fine, because this is an allow rule. If it throws, we just move to the next rule. The general pattern for the allow rules is that we assume the PR in question is trying to pass that rule, and throw exceptions with wording to match.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't a throw still look like a failure in CI?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
validate.pytraps the exceptions and prints them.