Skip to content

Commit

Permalink
Squashing and Squash Merge Metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
tidy-dev committed Jun 8, 2021
1 parent f8f0937 commit b15c88b
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
30 changes: 30 additions & 0 deletions app/src/lib/stats/stats-database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,36 @@ export interface IDailyMeasures {

/** The number of times a reorder was undone */
readonly reorderUndoneCount: number

/** The number of times conflicts encountered during a squash */
readonly squashConflictsEncounteredCount: number

/** The number of times squash of multiple commits invoked */
readonly squashMultipleCommitsInvokedCount: number

/** The number of times a successful squash occurs */
readonly squashSuccessfulCount: number

/** The number of times squash ended successfully after conflicts */
readonly squashSuccessfulWithConflictsCount: number

/** The number of times a squash is initiated through the context menu */
readonly squashViaContextMenuInvokedCount: number

/** The number of times a squash is initiated through drag and drop */
readonly squashViaDragAndDropInvokedCount: number

/** The number of times a squash was undone */
readonly squashUndoneCount: number

/** The number of times the `Branch -> Squash and Merge Into Current Branch` menu item is used */
readonly squashMergeIntoCurrentBranchMenuCount: number

/** The number of times squash merge ended successfully after conflicts */
readonly squashMergeSuccessfulWithConflictsCount: number

/** The number of times a successful squash merge occurs */
readonly squashMergeSuccessfulCount: number
}

export class StatsDatabase extends Dexie {
Expand Down
10 changes: 10 additions & 0 deletions app/src/lib/stats/stats-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,16 @@ const DefaultDailyMeasures: IDailyMeasures = {
reorderSuccessfulWithConflictsCount: 0,
reorderMultipleCommitsCount: 0,
reorderUndoneCount: 0,
squashConflictsEncounteredCount: 0,
squashMultipleCommitsInvokedCount: 0,
squashSuccessfulCount: 0,
squashSuccessfulWithConflictsCount: 0,
squashViaContextMenuInvokedCount: 0,
squashViaDragAndDropInvokedCount: 0,
squashUndoneCount: 0,
squashMergeIntoCurrentBranchMenuCount: 0,
squashMergeSuccessfulWithConflictsCount: 0,
squashMergeSuccessfulCount: 0,
}

interface IOnboardingStats {
Expand Down

0 comments on commit b15c88b

Please sign in to comment.