Merge pull request #1346 from mikepenz/fix/1345
Fix to match categories case insensitive for gitea
This commit is contained in:
+1
-1
@@ -1946,7 +1946,7 @@ class GiteaRepository extends BaseRepository_1.BaseRepository {
|
|||||||
mergeCommitSha: pr.merge_commit_sha || '',
|
mergeCommitSha: pr.merge_commit_sha || '',
|
||||||
author: ((_c = pr.user) === null || _c === void 0 ? void 0 : _c.login) || '',
|
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) || '',
|
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) || '',
|
milestone: ((_g = pr.milestone) === null || _g === void 0 ? void 0 : _g.title) || '',
|
||||||
body: pr.body || '',
|
body: pr.body || '',
|
||||||
assignees: (_h = pr.assignees) === null || _h === void 0 ? void 0 : _h.map(user => user.full_name),
|
assignees: (_h = pr.assignees) === null || _h === void 0 ? void 0 : _h.map(user => user.full_name),
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -74,7 +74,7 @@ export class GiteaRepository extends BaseRepository {
|
|||||||
mergeCommitSha: pr.merge_commit_sha || '',
|
mergeCommitSha: pr.merge_commit_sha || '',
|
||||||
author: pr.user?.login || '',
|
author: pr.user?.login || '',
|
||||||
repoName: pr.base?.repo?.full_name || '',
|
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 || '',
|
milestone: pr.milestone?.title || '',
|
||||||
body: pr.body || '',
|
body: pr.body || '',
|
||||||
assignees: pr.assignees?.map(user => user.full_name) as string[],
|
assignees: pr.assignees?.map(user => user.full_name) as string[],
|
||||||
|
|||||||
Reference in New Issue
Block a user