Removes all existing labels starting with LABEL_PREFIX
(self)
| 167 | return PullRequestState(states[0]) |
| 168 | |
| 169 | def clear_current_state(self): |
| 170 | """ |
| 171 | Removes all existing labels starting with LABEL_PREFIX |
| 172 | """ |
| 173 | for label in self.pull.get_labels(): |
| 174 | if label.name.startswith(LABEL_PREFIX): |
| 175 | self.pull.remove_from_labels(label) |
| 176 | |
| 177 | def compute_next_state(self, current_state): |
| 178 | """ |