digitalfabrik/integreat-app

View on GitHub
e2e-tests/shared/git.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { execSync } from 'node:child_process'

export const getGitBranch = (): string => execSync('git rev-parse --abbrev-ref HEAD').toString().trim()

export const getGitHeadReference = (): string => execSync('git rev-parse --short HEAD').toString().trim()