-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from spark1security/bp-timeout
Added timeout and limit to Jira and Confluence
- Loading branch information
Showing
11 changed files
with
302 additions
and
121 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 +1 @@ | ||
__version__ = "1.0.17" | ||
__version__ = "1.0.18" |
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
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,31 @@ | ||
import logging | ||
|
||
|
||
class HollowController: | ||
def __init__(self): | ||
self.client = None | ||
self.log_message_callback = None | ||
|
||
def set_config(self, config): | ||
return self.is_connected() | ||
|
||
def set_log_message_callback(self, log_message_callback): | ||
self.log_message_callback = log_message_callback | ||
|
||
def get_name(self): | ||
return "Hollow" | ||
|
||
def is_connected(self): | ||
return False | ||
|
||
def get_data(self, include_coments=False, limit=None): | ||
return None, None, None, None, None | ||
|
||
def post_comment(self, issue, comment): | ||
return self.is_connected() | ||
|
||
def log_message(self, message, level=logging.INFO): | ||
if self.log_message_callback: | ||
self.log_message_callback(message, level) | ||
else: | ||
print(message) |
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
Oops, something went wrong.