Personal Telegram developer console for GitHub
fix(github): consolidate repository PR navigation
davoodmehraban89 committed
Oct 4, 2026 at 17:55 UTC
5ef1d0076f52b38e78922b3a2978617f78ebf5ab
1 file changed
+3
-4
src/plugins/github/plugin.js
+3
-4
@@ -96,10 +96,7 @@ const addRepoAdvancedButtons = (view, repoId) => {
96
const insertAt = Math.max(0, rows.length - 1);
97
rows.splice(insertAt, 0,
98
[{ text: '🧪 CI / Actions', callback_data: `runs:${repoId}` }],
99
- [
100
- { text: '🌿 Branches', callback_data: `branches:${repoId}` },
101
- { text: '🔎 PRها', callback_data: `prs:${repoId}` }
102
- ],
99
+ [{ text: '🌿 Branches', callback_data: `branches:${repoId}` }],
100
[
101
{ text: '🐛 Issues', callback_data: `issues:${repoId}` },
102
{ text: '🏷 Releases', callback_data: `releases:${repoId}` }
@@ -437,6 +434,8 @@ function resolveReadCallback(data) {
434
if (branches) return { actionId: 'github.branches.list', kind: 'branches', ...branches };
435
const compare = compareRef(value);
436
if (compare) return { actionId: 'github.compare.read', kind: 'compare', ...compare };
437
+ const legacyPr = numericSingle(value, 'pr');
438
+ if (legacyPr !== null) return { actionId: 'github.pr.advanced.list', kind: 'prs', repoId: legacyPr, page: 1 };
439
const prs = pagedSingle(value, 'prs');
440
if (prs) return { actionId: 'github.pr.advanced.list', kind: 'prs', ...prs };
441
const prdetail = numericPair(value, 'prdetail');