Skip to content

Commit

Permalink
fix change state to be a function
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcusk19 committed Feb 29, 2024
1 parent 74fd23d commit 69c5940
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/src/hooks/UseLogDescriptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,11 @@ export function useLogDescriptions() {
return `Mirror ${metadata.changed} changed to ${metadata.to}`;
}
},
change_repo_state: 'Repository state changed to {state_changed}',
change_repo_state: function (metadata: Metadata) {
return `Repository state changed to ${metadata.state_changed
.toLowerCase()
.replace('_', ' ')}`;
},
push_repo: function (metadata: Metadata) {
if (metadata.tag) {
return `Push of ${metadata.tag} to repository ${metadata.namespace}/${metadata.repo}`;
Expand Down

0 comments on commit 69c5940

Please sign in to comment.