Remove dead normalizeIssue function and make legal pages linkable
All checks were successful
Build & Push Container Image / build (push) Successful in 8s

- Remove unused normalizeIssue and JIRA_STORY_POINTS_FIELD env var
- Add URL routing for /terms, /privacy, /support pages

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jan Willem Mannaerts 2026-02-27 22:42:01 +01:00
parent 620547c78c
commit 047d0de485
3 changed files with 10 additions and 16 deletions

View file

@ -193,20 +193,8 @@ async function jiraFetch(jiraAccountId, path, options = {}) {
return response.json();
}
function normalizeIssue(issue) {
return {
id: issue.id,
key: issue.key,
title: issue.fields?.summary || issue.key,
description: issue.fields?.description || null,
estimate: issue.fields?.[process.env.JIRA_STORY_POINTS_FIELD || 'customfield_10016'] || 0,
status: issue.fields?.status?.name || 'Unknown',
reporter: issue.fields?.reporter?.displayName || null
};
}
export async function getSprintIssues(jiraAccountId, sprintId, boardId) {
let spField = process.env.JIRA_STORY_POINTS_FIELD || 'customfield_10016';
let spField = 'customfield_10016';
if (boardId) {
try {
const config = await jiraFetch(jiraAccountId, `/rest/agile/1.0/board/${boardId}/configuration`);