Get the current commit hash.
(self)
| 186 | def _round_message(self, round: int) -> str: |
| 187 | """Commit/tag message for a round. The tournament sets ``commit_label`` on the player config — |
| 188 | a prefix that carries its own separator (the ladder sets ``"Rung 2/50 (opponent, elo #49) — "``; |
| 189 | PvP sets ``""``). Pure concatenation, no per-mode branching here.""" |
| 190 | return f"{self.config['commit_label']}Round {round} Update" |
| 191 | |
| 192 | def _tag_round(self, round: int) -> None: |
| 193 | """Git tag the codebase at the given round.""" |
| 194 | tag = self._get_round_tag_name(round) |
| 195 | assert_zero_exit_code( |
| 196 | self.environment.execute(f"git tag -a {tag} -m '{self._round_message(round)}'"), |
| 197 | logger=self.logger, |
no test coverage detected