Merge pull request #1346 from mikepenz/fix/1345

Fix to match categories case insensitive for gitea
This commit is contained in:
Mike Penz
2024-07-26 09:20:08 +02:00
committed by GitHub
3 changed files with 3 additions and 3 deletions
Generated Vendored
+1 -1
View File
@@ -1946,7 +1946,7 @@ class GiteaRepository extends BaseRepository_1.BaseRepository {
mergeCommitSha: pr.merge_commit_sha || '',
author: ((_c = pr.user) === null || _c === void 0 ? void 0 : _c.login) || '',
repoName: ((_e = (_d = pr.base) === null || _d === void 0 ? void 0 : _d.repo) === null || _e === void 0 ? void 0 : _e.full_name) || '',
labels: (_f = pr.labels) === null || _f === void 0 ? void 0 : _f.map(label => label.name),
labels: (_f = pr.labels) === null || _f === void 0 ? void 0 : _f.map(label => { var _a; return (_a = label.name) === null || _a === void 0 ? void 0 : _a.toLowerCase(); }),
milestone: ((_g = pr.milestone) === null || _g === void 0 ? void 0 : _g.title) || '',
body: pr.body || '',
assignees: (_h = pr.assignees) === null || _h === void 0 ? void 0 : _h.map(user => user.full_name),
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -74,7 +74,7 @@ export class GiteaRepository extends BaseRepository {
mergeCommitSha: pr.merge_commit_sha || '',
author: pr.user?.login || '',
repoName: pr.base?.repo?.full_name || '',
labels: pr.labels?.map(label => label.name) as string[],
labels: pr.labels?.map(label => label.name?.toLowerCase()) as string[],
milestone: pr.milestone?.title || '',
body: pr.body || '',
assignees: pr.assignees?.map(user => user.full_name) as string[],