-
Notifications
You must be signed in to change notification settings - Fork 103
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
labhub: Adapt to the modified newcomer process #486
Closed
+20
−56
Closed
Changes from all commits
Commits
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Welcome @{{ target }}! :tada: | ||
|
||
Please go through https://coala.io/newcomer (skip instructions about using corobo). Find your first issue and ask one of the maintainers to assign you to it and we'll invite you to the org. Most issues will be explained there and in linked pages - it will save you a lot of time, just read it. *Really.* | ||
|
||
*Do not take an issue if you don't understand it on your own.* Especially if you are new you have to be aware that getting started with an open source community is not trivial: you will have to work hard and most likely become a better coder than you are now just as we all did. | ||
|
||
Don't get us wrong: we are *very* glad to have you with us on this journey into open source! We will also be there for you at all times to help you with actual problems. :) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1 @@ | ||
Welcome @{{ target }}! :tada: | ||
|
||
We've just sent you an invite via email. Please accept it before proceeding forward. | ||
|
||
To get started, please follow our [newcomers guide] (https://coala.io/newcomer). Most issues will be explained there and in linked pages - it will save you a lot of time, just read it. *Really.* | ||
|
||
*Do not take an issue if you don't understand it on your own.* Especially if you are new you have to be aware that getting started with an open source community is not trivial: you will have to work hard and most likely become a better coder than you are now just as we all did. | ||
|
||
Don't get us wrong: we are *very* glad to have you with us on this journey into open source! We will also be there for you at all times to help you with actual problems. :) | ||
@{{ target }} We've just sent you an invite via email. Please accept it before proceeding forward. Please go through [newcomers guide](https://coala.io/newcomer) first, if you have any doubts, they are likely to be solved there. Use relevant channels for help if needed. You have already selected the issue, assign yourself to it using corobo and you can start working on it! :D |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,12 +69,11 @@ def test_hello_world_callback(self): | |
labhub = testbot.bot.plugin_manager.get_plugin_obj_by_name('LabHub') | ||
labhub.TEAMS = teams | ||
self.mock_team.is_member.return_value = False | ||
testbot.assertCommand('hello, world', 'newcomer') | ||
testbot.assertCommand('hello, world', 'newcomer', timeout=10000) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove this timeout |
||
# Since the user won't be invited again, it'll timeout waiting for a | ||
# response. | ||
with self.assertRaises(queue.Empty): | ||
testbot.assertCommand('helloworld', 'newcomer') | ||
self.mock_team.invite.assert_called_with(None) | ||
|
||
def test_create_issue_cmd(self): | ||
plugins.labhub.GitHub = create_autospec(IGitt.GitHub.GitHub.GitHub) | ||
|
@@ -312,25 +311,3 @@ def test_alive(self): | |
testbot.assertCommand('!pr stats 3hours', | ||
'10 PRs opened in last 3 hours\n' | ||
'The community is on fire') | ||
|
||
def test_invite_me(self): | ||
teams = { | ||
'coala maintainers': self.mock_team, | ||
'coala newcomers': self.mock_team, | ||
'coala developers': self.mock_team | ||
} | ||
|
||
labhub, testbot = plugin_testbot(plugins.labhub.LabHub, logging.ERROR) | ||
labhub.activate() | ||
labhub._teams = teams | ||
|
||
plugins.labhub.os.environ['GH_TOKEN'] = 'patched?' | ||
testbot.assertCommand('!invite me', | ||
'We\'ve just sent you an invite') | ||
with self.assertRaises(queue.Empty): | ||
testbot.pop_message() | ||
|
||
testbot.assertCommand('!hey there invite me', | ||
'Command \"hey\" / \"hey there\" not found.') | ||
with self.assertRaises(queue.Empty): | ||
testbot.pop_message() |
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.
We still need an invite process via corobo, so this file and related code shouldnt be deleted.