@meirblachman/pr-review-needed 0.1.26 → 0.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.min.js +5 -0
- package/package.json +1 -1
package/dist/index.min.js
CHANGED
|
@@ -154,6 +154,9 @@ ${t}`,{cause:e})}}async function jt(e,t){let n=await fetch(t,{headers:{Authoriza
|
|
|
154
154
|
<option value="approved">Approved</option>
|
|
155
155
|
</select>
|
|
156
156
|
<select id="repo-filter" onchange="filterTable()"></select>
|
|
157
|
+
<label style="display:flex;align-items:center;gap:0.35rem;font-size:0.9rem;color:var(--text-dim);cursor:pointer;white-space:nowrap;">
|
|
158
|
+
<input type="checkbox" id="hide-conflicts" onchange="filterTable()"> Hide conflicts
|
|
159
|
+
</label>
|
|
157
160
|
</div>
|
|
158
161
|
|
|
159
162
|
<div class="tabs" id="repo-tabs"></div>
|
|
@@ -267,11 +270,13 @@ function filterTable() {
|
|
|
267
270
|
const q = document.getElementById('search').value.toLowerCase();
|
|
268
271
|
const sf = document.getElementById('status-filter').value;
|
|
269
272
|
const rf = document.getElementById('repo-filter').value;
|
|
273
|
+
const hc = document.getElementById('hide-conflicts').checked;
|
|
270
274
|
|
|
271
275
|
let filtered = allPrs.filter(pr => {
|
|
272
276
|
if (q && !\`\${pr.id} \${pr.title} \${pr.author}\`.toLowerCase().includes(q)) return false;
|
|
273
277
|
if (sf !== 'all' && pr.status !== sf) return false;
|
|
274
278
|
if (rf !== 'all' && pr.repo !== rf) return false;
|
|
279
|
+
if (hc && pr.hasMergeConflict) return false;
|
|
275
280
|
return true;
|
|
276
281
|
});
|
|
277
282
|
|