(commit_hash, return_dict=False)
| 121 | |
| 122 | |
| 123 | def get_features(commit_hash, return_dict=False): |
| 124 | title, body, files_changed = ( |
| 125 | commit_title(commit_hash), |
| 126 | commit_body(commit_hash), |
| 127 | commit_files_changed(commit_hash), |
| 128 | ) |
| 129 | pr_number = parse_pr_number(body, commit_hash, title) |
| 130 | labels = [] |
| 131 | if pr_number is not None: |
| 132 | labels = gh_labels(pr_number) |
| 133 | result = Features(title, body, pr_number, files_changed, labels) |
| 134 | if return_dict: |
| 135 | return features_to_dict(result) |
| 136 | return result |
| 137 | |
| 138 | |
| 139 | class CommitDataCache: |
no test coverage detected
searching dependent graphs…