[PR #477] [MERGED] Subdirectory agent links #554

Closed
opened 2026-02-26 22:31:30 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/477
Author: @cursor[bot]
Created: 2/10/2026
Status: Merged
Merged: 2/10/2026
Merged by: @rudrankriyam

Base: asc-init-docsHead: cursor/subdirectory-agent-links-c2da


📝 Commits (2)

  • 7bf8425 Fix agent file links when --path targets a subdirectory
  • d615ba9 Fix docs init legacy ASC link rewrites for subdirectory paths

📊 Changes

3 files changed (+342 additions, -16 deletions)

View changed files

📝 internal/cli/cmdtest/docs_init_test.go (+196 -0)
📝 internal/cli/docs/docs_init.go (+89 -16)
📝 internal/cli/docs/docs_init_test.go (+57 -0)

📄 Description

Fix broken agent file links by using a relative path when ASC.md is generated in a subdirectory.

Previously, agent files at the repository root would link to a bare ASC.md, which would not resolve correctly if ASC.md was created in a subdirectory. This change computes the correct relative path from the agent file's location to ASC.md's location.



🔄 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/rudrankriyam/App-Store-Connect-CLI/pull/477 **Author:** [@cursor[bot]](https://github.com/apps/cursor) **Created:** 2/10/2026 **Status:** ✅ Merged **Merged:** 2/10/2026 **Merged by:** [@rudrankriyam](https://github.com/rudrankriyam) **Base:** `asc-init-docs` ← **Head:** `cursor/subdirectory-agent-links-c2da` --- ### 📝 Commits (2) - [`7bf8425`](https://github.com/rudrankriyam/App-Store-Connect-CLI/commit/7bf8425f3c87eba745f6fe60a0578e37e8332529) Fix agent file links when --path targets a subdirectory - [`d615ba9`](https://github.com/rudrankriyam/App-Store-Connect-CLI/commit/d615ba95457965133b3a3388f05a1f3547959565) Fix docs init legacy ASC link rewrites for subdirectory paths ### 📊 Changes **3 files changed** (+342 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `internal/cli/cmdtest/docs_init_test.go` (+196 -0) 📝 `internal/cli/docs/docs_init.go` (+89 -16) 📝 `internal/cli/docs/docs_init_test.go` (+57 -0) </details> ### 📄 Description Fix broken agent file links by using a relative path when `ASC.md` is generated in a subdirectory. Previously, agent files at the repository root would link to a bare `ASC.md`, which would not resolve correctly if `ASC.md` was created in a subdirectory. This change computes the correct relative path from the agent file's location to `ASC.md`'s location. --- --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 22:31:30 +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/App-Store-Connect-CLI#554
No description provided.