Skip to content

Commit

Permalink
code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan953 committed Mar 3, 2025
1 parent 846c4a0 commit cad13a3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions static/app/views/releases/components/useFinalizeRelease.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ export default function useFinalizeRelease() {

return useMutation<TData, TError, TVariables, TContext>({
mutationFn: ([release]) => {
// It's likely that there will either be a) CI setup or b) people manually
// clicking. If people are manually clicking then we try `firstEvent` and
// fall back to `dateCreated` to preserve relative sort order between
// releases. This strategy allows users to manually bucket releases by
// finalized/un-finalized, if they want more precision then CI automation
// is a better approach.
const payload: TPayload = {
dateReleased: release.firstEvent ?? release.dateCreated,
};
Expand Down

0 comments on commit cad13a3

Please sign in to comment.