Skip to content

Refactor: Use program_name in self-update PR detection - #2488

Merged
glensc merged 1 commit into
Taxel:mainfrom
glensc:extract-program-name
May 28, 2026
Merged

Refactor: Use program_name in self-update PR detection#2488
glensc merged 1 commit into
Taxel:mainfrom
glensc:extract-program-name

Conversation

@glensc

@glensc glensc commented May 28, 2026

Copy link
Copy Markdown
Collaborator
  • Reuse the shared executable-name helper in self_update
  • Avoid duplicating direct sys.argv[0] parsing

Extracted from #2487

- Reuse the shared executable-name helper in self_update
- Avoid duplicating direct sys.argv[0] parsing

Co-authored-by: OpenCode (gpt-5.4) <noreply@openai.com>
@glensc glensc self-assigned this May 28, 2026
@glensc
glensc requested a review from Copilot May 28, 2026 08:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors pr_number() in the self-update command to use the shared program_name() helper from plextraktsync.util.packaging instead of parsing sys.argv[0] directly, reducing duplication.

Changes:

  • Import program_name from plextraktsync.util.packaging.
  • Replace inline sys.argv[0] parsing with program_name().
  • Remove the now-unused local import sys.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@glensc
glensc merged commit 36365f4 into Taxel:main May 28, 2026
4 checks passed
@glensc
glensc deleted the extract-program-name branch May 28, 2026 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants