ligo/tools/webide/packages/client/src/redux/version.ts
Maksym Bykovskyy 9de281e7ef Add build info to ide metrics and state
- Add ligo_webide_build_info metric that surface revision and branch from CI
- Add  a version sub state which contains the current revision and branch of frontend

- Added back express-prometheus-middleware
2020-04-23 16:46:23 +00:00

14 lines
227 B
TypeScript

export interface VersionState {
revision: string;
branch: string;
}
const DEFAULT_STATE: VersionState = {
revision: 'dev',
branch: 'dev'
};
export default (state = DEFAULT_STATE): VersionState => {
return state;
};