MCPcopy Create free account

hub / github.com/Chaosthebot/Chaos / functions

Functions175 in github.com/Chaosthebot/Chaos

Functionget_initial_voting_window
Returns the current voting window for new PRs in seconds.
github_api/voting.py:208
Methodget_is_mergeable_side_effect
(api, urn, pr_num)
tests/github_api/prs_test.py:136
Functionget_meritocracy
(amount: hug.types.number = 20)
webserver.py:44
Methodget_now
()
memoize/tests.py:113
Functionget_num_watchers
returns the number of watchers for a repo
github_api/repos.py:14
Functionget_oldest_open_issues
(api, urn)
github_api/issues.py:21
Functionget_patch
get the formatted or not patch file for a pr
github_api/prs.py:326
Functionget_pr_comments
yield all comments on a pr, weirdly excluding the initial pr comment itself (the one the owner makes)
github_api/prs.py:176
Functionget_pr_reviews
get all pr reviews on a pr https://help.github.com/articles/about-pull-request-reviews/
github_api/prs.py:282
Functionget_reactions_for_comment
(api, urn, comment_id)
github_api/comments.py:49
Functionget_reactions_for_pr
(api, urn, pr)
github_api/prs.py:318
Functionget_ready_prs
yield mergeable, travis-ci passed, non-WIP prs that have had no modifications for longer than the voting window. these are prs that are ready to
github_api/prs.py:228
Functionget_self_urn
determine the URN for the repo on github by looking at the remote named "origin", and parsing it, or using a sensible default. this will allow
misc.py:12
Functionget_user
(api, user)
github_api/users.py:2
Functionget_vote_sum
for a vote mapping of username => -1 or 1, compute the weighted vote total and variance(measure of controversy)
github_api/voting.py:135
Functionget_voters
(amount: hug.types.number = 20)
webserver.py:31
Functionget_votes
return a mapping of username => -1 or 1 for the votes on the current state of a pr. we consider comments and reactions, but only from users who
github_api/voting.py:13
Functionhandle_pagination_all
Handles the "all" keyword argument, looping over the method page by page until the page is empty and then returning a list of items. Expects
github_api/misc.py:46
Methodhas_build_failed_side_effect
(api, urn, ref)
tests/github_api/prs_test.py:142
Methodhas_build_passed_side_effect
(api, urn, ref)
tests/github_api/prs_test.py:139
Functionis_issue_comment_in_voting_window
(api, urn, comment, window)
github_api/issues.py:55
Functionlabel_issue
set an issues labels
github_api/issues.py:70
Functionleave_accept_comment
(api, urn, pr, sha, votes, total, threshold, meritocracy_satisfied)
github_api/comments.py:71
Functionleave_ci_failed_comment
(api, urn, pr, hours)
github_api/comments.py:90
Functionleave_deleted_comment
(api, urn, pr)
github_api/comments.py:110
Functionleave_issue_closed_comment
(api, urn, issue)
github_api/comments.py:119
Functionleave_issue_reopened_comment
(api, urn, issue)
github_api/comments.py:124
Functionleave_meritocracy_comment
(api, urn, pr, meritocracy)
github_api/comments.py:99
Functionleave_reject_comment
(api, urn, pr, votes, total, threshold, meritocracy_satisfied)
github_api/comments.py:61
Functionleave_stale_comment
(api, urn, pr, hours)
github_api/comments.py:81
FunctionloadJqTE
()
server/static/js/chaos.js:202
FunctionloadTerm
()
server/static/js/chaos.js:192
Functionloop
()
server/static/js/chaos.js:39
Functionmemoize
memoize/cache the decorated function for ttl amount of time
memoize/decorator.py:8
Functionmerge_pr
merge a pull request, if possible, and use a nice detailed merge commit message
github_api/prs.py:19
Functionopen_issue
(api, urn, issue_id)
github_api/issues.py:14
Functionpost_accepted_status
(api, urn, pr, seconds_since_updated, voting_window, votes, total, threshold, meritoc
github_api/prs.py:335
Functionpost_pending_status
(api, urn, pr, seconds_since_updated, voting_window, votes, total, threshold, meritocr
github_api/prs.py:359
Functionpost_rejected_status
(api, urn, pr, seconds_since_updated, voting_window, votes, total, threshold, meritoc
github_api/prs.py:347
Functionproduce_event
(event)
tests/github_api/prs_test.py:30
Functionrender_error
(code: hug.types.number = 500)
webserver.py:21
Functionrender_index
()
webserver.py:16
Functionschedule_jobs
(api, api_twitter)
cron/__init__.py:9
Functionseconds_since_updated
(api, pr)
github_api/prs.py:274
Functionseconds_to_human
(seconds)
github_api/misc.py:19
MethodsetUp
(self)
memoize/tests.py:38
MethodsetUp
(self)
tests/github_api/prs_test.py:46
Functionset_desc
Set description and homepage of repo
github_api/repos.py:22
Methodtest_basic
(self)
memoize/tests.py:8
Methodtest_basic
(self)
memoize/tests.py:17
Methodtest_blacklist
(self)
memoize/tests.py:30
Methodtest_blacklist
(self)
memoize/tests.py:98
Methodtest_dynamic_voting_window
test lower and upper bounds of dynamic voting window
tests/github_api/misc_test.py:27
Methodtest_get
(self)
memoize/tests.py:72
Methodtest_get_approval_threshold
(self, mock_get_num_watchers)
tests/github_api/voting_test.py:20
Methodtest_get_pr_last_updated_with_early_events
(self, mock_get_events)
tests/github_api/prs_test.py:170
Methodtest_get_pr_last_updated_with_events
(self, mock_get_events)
tests/github_api/prs_test.py:200
Methodtest_get_pr_last_updated_without_events
(self, mock_get_events)
tests/github_api/prs_test.py:185
Methodtest_get_ready_prs
(self, mock_utcnow, mock_get_is_mergeable, mock_get_open_prs, mock_get_events,
tests/github_api/prs_test.py:121
Methodtest_get_vote_sum
(self, mock_get_vote_weight)
tests/github_api/voting_test.py:34
Methodtest_longer_and_longer
fewer requests = longer wait
tests/github_api/misc_test.py:19
Methodtest_no_requests
no requests means always sleep to the reset time + padding
tests/github_api/misc_test.py:9
Methodtest_parse_emojis_for_vote
(self)
tests/github_api/voting_test.py:10
Methodtest_refresh
(self)
memoize/tests.py:110
Methodtest_set
(self)
memoize/tests.py:42
Methodtest_statuses_returns_failed_travis_build
(self)
tests/github_api/prs_test.py:73
Methodtest_statuses_returns_no_travis_build
(self)
tests/github_api/prs_test.py:94
Methodtest_statuses_returns_passed_travis_build
(self)
tests/github_api/prs_test.py:49
Methodtest_whitelist
(self)
memoize/tests.py:24
Methodtest_whitelist
(self)
memoize/tests.py:86
Functionunlabel_issue
unset an issues labels
github_api/issues.py:79
Functionwrap
(fn)
memoize/backends.py:11
Functionwrapper
(fn)
memoize/decorator.py:15
Functionwrapper
(self, *args, **kwargs)
github_api/misc.py:67
Functionwrapper2
(*args, **kwargs)
memoize/decorator.py:20
← previous101–175 of 175, ranked by callers