Personal Telegram developer console for GitHub
fix: make repository PR entry canonical and actionable
davoodmehraban89 committed
Oct 4, 2026 at 17:53 UTC
7d202add8475f08088a92188cf084c588137d236
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}` }
@@ -421,6 +418,8 @@ function resolveReadCallback(data) {
418
if (commits !== null) return { actionId: 'github.commits.list', kind: 'commits', repoId: commits };
419
const commitdetail = commitDetailRef(value);
420
if (commitdetail) return { actionId: 'github.commit.detail', kind: 'commitdetail', ...commitdetail };
421
+ const legacyPr = numericSingle(value, 'pr');
422
+ if (legacyPr !== null) return { actionId: 'github.pr.advanced.list', kind: 'prs', repoId: legacyPr, page: 1 };
423
const runs = workflowRunsPage(value);
424
if (runs) return { actionId: 'github.workflow.runs.list', kind: 'runs', ...runs };
425
const run = numericPair(value, 'run');