[PR #537] [CLOSED] ci(pkg-pr-new): use commit SHA in comments to prevent duplicate deps #605

Closed
opened 2026-03-02 23:47:19 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/537
Author: @remorses
Created: 1/16/2026
Status: Closed

Base: mainHead: ci/pkg-pr-new-sha-comments


📝 Commits (1)

  • 426773c ci(pkg-pr-new): use commit SHA in comments to prevent duplicate deps

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 .github/workflows/pkg-pr-new.yml (+1 -1)

📄 Description

Adds --commentWithSha to pkg-pr-new publish command.

This is required to prevent duplicate dependencies when installing preview packages. Without this, @opentui/react uses a URL with a PR number in its dependencies (e.g. @opentui/core@0.0.0-pr.123), but if another commit is pushed, the resolved package changes while the URL stays the same.

With --commentWithSha, the URLs use commit hashes instead, so @opentui/react's dependency on @opentui/core will resolve to the exact same package, preventing duplicate @opentui/core entries in node_modules.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opentui/pull/537 **Author:** [@remorses](https://github.com/remorses) **Created:** 1/16/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `ci/pkg-pr-new-sha-comments` --- ### 📝 Commits (1) - [`426773c`](https://github.com/anomalyco/opentui/commit/426773c61acd6dff05d347624ef1c3ecf809e20c) ci(pkg-pr-new): use commit SHA in comments to prevent duplicate deps ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/pkg-pr-new.yml` (+1 -1) </details> ### 📄 Description Adds `--commentWithSha` to pkg-pr-new publish command. This is required to prevent duplicate dependencies when installing preview packages. Without this, @opentui/react uses a URL with a PR number in its dependencies (e.g. `@opentui/core@0.0.0-pr.123`), but if another commit is pushed, the resolved package changes while the URL stays the same. With `--commentWithSha`, the URLs use commit hashes instead, so @opentui/react's dependency on @opentui/core will resolve to the exact same package, preventing duplicate @opentui/core entries in node_modules. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 23:47:19 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#605
No description provided.