Code Study: GitHub Desktop / main-process / menu / menu-event.ts

It defines all possible menu event names.

export type MenuEvent =
  | 'push'
  | 'pull'
  | 'show-changes'
  | 'show-history'
  | 'add-local-repository'
  | 'create-branch'
  | 'show-branches'
  | 'remove-repository'
  | 'create-repository'
  | 'rename-branch'
  | 'delete-branch'
  | 'show-preferences'
  | 'choose-repository'
  | 'open-working-directory'
  | 'update-branch'
  | 'compare-to-branch'
  | 'merge-branch'
  | 'show-repository-settings'
  | 'open-in-shell'
  | 'compare-on-github'
  | 'view-repository-on-github'
  | 'clone-repository'
  | 'show-about'
  | 'boomtown'
  | 'open-pull-request'
  | 'install-cli'
  | 'open-external-editor'
  | 'select-all'

See How Menu Event Works in Github Desktop

tags: GitHub Desktop - Electron