Extract backend repository from nodeinfo

Also removes extractCommit, could be kept when the forge is git.pleroma.social

Partial fix of https://git.pleroma.social/pleroma/pleroma-fe/-/issues/1283
This commit is contained in:
Haelwenn (lanodan) Monnier 2023-11-09 08:27:58 +01:00
commit 84cab03a1d
7 changed files with 5 additions and 25 deletions

View file

@ -1,11 +0,0 @@
import { extractCommit } from 'src/services/version/version.service.js'
describe('extractCommit', () => {
it('return short commit hash following "-g" characters', () => {
expect(extractCommit('1.0.0-45-g5e7aeebc')).to.eql('5e7aeebc')
})
it('return short commit hash without branch name', () => {
expect(extractCommit('1.0.0-45-g5e7aeebc-branch')).to.eql('5e7aeebc')
})
})