mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-04 06:23:40 +01:00
Fix(AzureDevOps): PR approved count and Pipeline running status (#1788)
* fix pr-votes for approved with suggestions counts * remove top1 result top1 result prevent from running pipeline to show in request * Update src/widgets/azuredevops/component.jsx Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com> --------- Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
parent
5611baa0b8
commit
12736cc003
@ -56,7 +56,7 @@ export default function Component({ service }) {
|
||||
value={t("common.number", {
|
||||
value: prData.value
|
||||
?.filter((item) => item.createdBy.uniqueName.toLowerCase() === userEmail.toLowerCase())
|
||||
.filter((item) => item.reviewers.some((reviewer) => reviewer.vote === 10)).length,
|
||||
.filter((item) => item.reviewers.some((reviewer) => [5,10].includes(reviewer.vote))).length
|
||||
})}
|
||||
/>}
|
||||
|
||||
|
@ -10,7 +10,7 @@ const widget = {
|
||||
},
|
||||
|
||||
pipeline: {
|
||||
endpoint: "build/Builds?branchName={branchName}&definitions={definitionId}&$top=1"
|
||||
endpoint: "build/Builds?branchName={branchName}&definitions={definitionId}"
|
||||
},
|
||||
},
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user