[PR #424] [MERGED] Docs path resolution #516

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

📋 Pull Request Information

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

Base: asc-init-docsHead: cursor/docs-path-resolution-320b


📝 Commits (1)

  • c8baddb Fix docs init path validation

📊 Changes

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

View changed files

📝 internal/cli/docs/docs_init.go (+12 -3)

📄 Description

Handle existing non-markdown files correctly in resolveOutputPath to prevent misidentification as directories.

This fixes a bug where providing an existing non-markdown file via --path would cause the CLI to incorrectly treat it as a directory, leading to a confusing "not a directory" error when attempting to find the Git repository root.



🔄 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/424 **Author:** [@cursor[bot]](https://github.com/apps/cursor) **Created:** 2/5/2026 **Status:** ✅ Merged **Merged:** 2/5/2026 **Merged by:** [@rudrankriyam](https://github.com/rudrankriyam) **Base:** `asc-init-docs` ← **Head:** `cursor/docs-path-resolution-320b` --- ### 📝 Commits (1) - [`c8baddb`](https://github.com/rudrankriyam/App-Store-Connect-CLI/commit/c8baddbf4d61d5c1543326d5bed5b12e57ed3b19) Fix docs init path validation ### 📊 Changes **1 file changed** (+12 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `internal/cli/docs/docs_init.go` (+12 -3) </details> ### 📄 Description Handle existing non-markdown files correctly in `resolveOutputPath` to prevent misidentification as directories. This fixes a bug where providing an existing non-markdown file via `--path` would cause the CLI to incorrectly treat it as a directory, leading to a confusing "not a directory" error when attempting to find the Git repository root. --- --- <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: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/App-Store-Connect-CLI#516
No description provided.