MCPcopy Create free account

hub / github.com/Chaosthebot/Chaos / functions

Functions175 in github.com/Chaosthebot/Chaos

↓ 9 callersFunctioncreate_mock_pr
(number, title, pushed_at, created_at)
tests/github_api/prs_test.py:8
↓ 8 callersFunctionleave_comment
(api, urn, pr, body)
github_api/comments.py:129
↓ 4 callersFunctiondecorate
helper for monkey-patch-decorating functions in different modules
patch.py:19
↓ 4 callersFunctiondecrypt
(ciphertext)
encryption.py:35
↓ 3 callersFunctioncreate_mock_events
(events)
tests/github_api/prs_test.py:28
↓ 3 callersFunctionformatted_votes_short_summary
(votes, total, threshold, meritocracy_satisfied)
github_api/prs.py:98
↓ 3 callersFunctionget_path
return the path for the repo
github_api/repos.py:9
↓ 3 callersFunctionpost_status
apply an issue label to a pr
github_api/prs.py:371
↓ 2 callersMethodGetApi
(self)
twitter_api/__init__.py:16
↓ 2 callersFunctionclose_pr
https://developer.github.com/v3/pulls/#update-a-pull-request
github_api/prs.py:120
↓ 2 callersFunctionget_commit_statuses
Returns combined commit statuses It uses aggregated status endpoint: https://developer.github.com/v3/repos/statuses/#get-the-combined-sta
github_api/prs.py:188
↓ 2 callersFunctionget_pr_last_updated
a helper for finding the utc datetime of the last pr branch modifications
github_api/prs.py:145
↓ 2 callersFunctionhandle_broken_pr
check if the PR is stale and close it
github_api/prs.py:109
↓ 2 callersFunctionhas_build_passed
Check if a commit has **for sure** passed Travis CI build. Returns true if the commit passed travis build and false otherwise
github_api/prs.py:215
↓ 2 callersFunctionhelper
Test if page results are json, or a generator. We want to keep going while json is returned, or we are getting non empty gene
github_api/misc.py:53
↓ 2 callersFunctionparse_emojis_for_vote
searches text for matching emojis
github_api/voting.py:181
↓ 2 callersFunctionparse_reaction_for_vote
turns a comment reaction into a vote, if possible
github_api/voting.py:171
↓ 2 callersFunctionpoll_issue_close_stale
Looks through all open issues. For any open issue, if the issue is too old and has not been recently commented on, chaosbot issues a /vot
cron/poll_issue_close_stale.py:10
↓ 2 callersFunctionprepare_emojis_list
(type)
github_api/voting.py:192
↓ 2 callersFunctionshowTerminal
()
server/static/js/term.js:25
↓ 2 callersFunctionupdate_cmd
(api, cmd_obj, comment_text)
cron/poll_read_issue_comments.py:58
↓ 2 callersFunctionupdate_command_ran
(api, comment_id, text)
cron/poll_read_issue_comments.py:115
↓ 1 callersMethod_atomic_write
(self)
memoize/backends.py:44
↓ 1 callersFunctioncan_run_vote_command
(api, cmd)
cron/poll_read_issue_comments.py:108
↓ 1 callersFunctioncheck_for_prev_crash
Check if Chaosbot is attempting a recovery from a failure. If it is, then read the failure file created by chaos_wrapper.sh and make a github
chaos.py:119
↓ 1 callersFunctioncompute_api_cooldown
remaining is the number of api requests, reset is the amount of time until our api call counter gets refreshed. it returns a number of seconds
github_api/__init__.py:23
↓ 1 callersFunctioncreateItem
()
server/static/js/background.js:208
↓ 1 callersFunctioncreate_decryptor
(private_location, public_location)
encryption.py:6
↓ 1 callersFunctiondrawCircle
(x, y, radius, color, alpha)
server/static/js/background.js:88
↓ 1 callersFunctiondrawLine
(x, y, width, color, alpha)
server/static/js/background.js:99
↓ 1 callersFunctiondt_to_github_dt
(dt)
github_api/misc.py:15
↓ 1 callersFunctiondynamic_voting_window
Determine the number of hours for the voting window based on the number of day since the project start return between a lower and upper bound
github_api/misc.py:25
↓ 1 callersFunctionfade
(element)
server/static/js/chaos.js:84
↓ 1 callersFunctionformatted_votes_summary
(votes, total, threshold, meritocracy_satisfied)
github_api/prs.py:86
↓ 1 callersFunctiongetText
LOAD VOTERS LIST
server/static/js/chaos.js:150
↓ 1 callersFunctiongetWndSize
()
server/static/js/background.js:30
↓ 1 callersFunctionget_command_votes
(api, urn, comment_id)
cron/poll_read_issue_comments.py:123
↓ 1 callersFunctionget_events
a helper for getting the github events on a given repo... useful for finding out the last push on a repo.
github_api/prs.py:129
↓ 1 callersFunctionget_is_mergeable
(api, urn, pr_num)
github_api/prs.py:293
↓ 1 callersFunctionget_issue_comment_last_updated
(api, urn, comment)
github_api/issues.py:32
↓ 1 callersFunctionget_open_prs
(api, urn)
github_api/prs.py:306
↓ 1 callersFunctionget_pr
helper for fetching a pr. necessary because the "mergeable" field does not exist on prs that come back from paginated endpoints, so we must fetch
github_api/prs.py:297
↓ 1 callersFunctionget_pr_comment_votes_all
yields votes via comments and votes via reactions on comments for a given pr
github_api/voting.py:46
↓ 1 callersFunctionget_pr_reaction_votes
yields reaction votes to a pr-comment. very similar to getting reactions from comments on the pr
github_api/voting.py:81
↓ 1 callersFunctionget_pr_review_reactions
https://help.github.com/articles/about-pull-request-reviews/
github_api/voting.py:103
↓ 1 callersFunctionget_seconds_remaining
(api, comment_id)
cron/poll_read_issue_comments.py:30
↓ 1 callersFunctionget_vote_weight
for a given username, determine the weight that their -1 or +1 vote should be scaled by
github_api/voting.py:114
↓ 1 callersFunctionhandle_comment
(api, cmd)
cron/poll_read_issue_comments.py:158
↓ 1 callersFunctionhandle_vote_command
(api, command, issue_id, comment_id, votes)
cron/poll_read_issue_comments.py:138
↓ 1 callersFunctionhas_build_failed
Check if a commit has **for sure** failed Travis CI build. Returns true if the commit failed travis build or pending and false if passed
github_api/prs.py:200
↓ 1 callersFunctionhas_enough_votes
(votes)
cron/poll_read_issue_comments.py:70
↓ 1 callersFunctionhideTerminal
()
server/static/js/term.js:35
↓ 1 callersFunctioninsert_or_update
(api, cmd_obj)
cron/poll_read_issue_comments.py:38
↓ 1 callersFunctionis_command
(comment)
cron/poll_read_issue_comments.py:188
↓ 1 callersFunctionjson_backend
(d)
memoize/backends.py:7
↓ 1 callersFunctionloadJq
()
server/static/js/chaos.js:213
↓ 1 callersFunctionmain
()
chaos.py:52
↓ 1 callersFunctionparse_comment_for_vote
turns a comment into a vote, if possible
github_api/voting.py:176
↓ 1 callersFunctionparse_review_for_vote
(state)
github_api/voting.py:162
↓ 1 callersFunctionpeek
(iterable)
github_api/misc.py:7
↓ 1 callersFunctionpoll_pull_requests
(api, api_twitter)
cron/poll_pull_requests.py:19
↓ 1 callersFunctionpoll_read_issue_comments
(api)
cron/poll_read_issue_comments.py:222
↓ 1 callersFunctionpost_command_status_update
(api, cmd, has_votes)
cron/poll_read_issue_comments.py:80
↓ 1 callersFunctionremoveDotGit
Remove trailing `.git` from the git remote url
misc.py:5
↓ 1 callersFunctionsetCanvasHeight
()
server/static/js/background.js:78
↓ 1 callersFunctionunfade
(element)
server/static/js/chaos.js:98
↓ 1 callersFunctionupdate_label
update an issue label for the repository
github_api/repos.py:61
↓ 1 callersFunctionvoting_window_remaining_seconds
returns the number of seconds until voting is over. can be negative, meaning voting has been over for that long
github_api/issues.py:39
FunctionGetKeys
(twitter_keys_path)
twitter_api/misc.py:4
FunctionPostTwitter
(message, api_twitter)
twitter_api/Twitter.py:6
Method__call__
(self, method, path, **kwargs)
github_api/__init__.py:63
Method__contains__
(self, k)
memoize/backends.py:41
Method__getitem__
(self, k)
memoize/backends.py:38
Method__init__
(self, exclusive_maximum, name="")
chaos.py:41
Method__init__
(self, fpath)
memoize/backends.py:25
Method__init__
(self, path)
twitter_api/__init__.py:9
Method__init__
(self, user, pat)
github_api/__init__.py:58
Method__setitem__
(self, k, v)
memoize/backends.py:34
Function_extract_args
a memoize helper that takes values from a function's signature, the args and kwargs it was called with, and a whitelist and blacklist. using tho
memoize/helpers.py:28
Function_json_keyify
converts arguments into a deterministic key used for memoizing
memoize/helpers.py:76
Function_time_code_to_seconds
converts a time code into actual seconds
memoize/helpers.py:5
Functionanimate
()
server/static/js/background.js:117
Functionclose_issue
(api, urn, issue_id)
github_api/issues.py:7
Functioncreate_issue
(api, urn, title, body, labels)
github_api/issues.py:59
Functioncreate_label
create an issue label for the repository
github_api/repos.py:44
Methoddefault
(self, obj)
memoize/helpers.py:67
Functiondegree
()
server/static/js/background.js:23
FunctiondismissNotif
()
server/static/js/chaos.js:125
FunctiondismissTimeout
()
server/static/js/chaos.js:120
Functionedit_comment
(api, urn, comment_id, body)
github_api/comments.py:136
Methodfilter
non-zero return means we log this message
chaos.py:45
Methodfn
(a, b, c)
memoize/tests.py:45
Functionfollow_user
(api, user)
github_api/users.py:7
Functionfriendly_voting_record
returns a sorted list (a string list, not datatype list) of voters and their raw (unweighted) vote. this is used in merge commit messages
github_api/voting.py:200
Functionget_all_issue_comments
(api, urn, page=1, since=None)
github_api/comments.py:8
Functionget_approval_threshold
the weighted vote total that must be reached for a PR to be approved and merged
github_api/voting.py:154
Functionget_comment_reaction_votes
yields votes via reactions on comments on a pr. don't use this directly, it is called by get_pr_comment_votes_all
github_api/voting.py:92
Functionget_contributors
returns the list of contributors to the repo
github_api/repos.py:39
Functionget_creation_date
returns the creation date of the repo
github_api/repos.py:33
Functionget_extended_voting_window
returns the extending voting window for PRs mitigated, based on the difference between repo creation and now
github_api/voting.py:213
next →1–100 of 175, ranked by callers