Skip to content

Fix relative paths in issue_to_md.py#147

Merged
doganulus merged 4 commits intomainfrom
bug/fix-issue-to-md-output
Sep 26, 2025
Merged

Fix relative paths in issue_to_md.py#147
doganulus merged 4 commits intomainfrom
bug/fix-issue-to-md-output

Conversation

@gokceuludogan
Copy link
Contributor

While testing the issue-to-md feature and preparing the tutorial, I noticed that the output content was being written to the wrong folder. This happened because the source files were moved under the .github/issue-to-md namespace and set as the working directory, while the script relied on relative paths.

This pull request fixes that bug by introducing a PROJECT_ROOT environment variable and resolving content and asset paths relative to the repository root. This makes the script robust against changes in directory layout.

@cloudflare-workers-and-pages
Copy link

Deploying bouncmpe with  Cloudflare Pages  Cloudflare Pages

Latest commit: b25e034
Status: ✅  Deploy successful!
Preview URL: https://b9c7f80b.bouncmpe.pages.dev
Branch Preview URL: https://bug-fix-issue-to-md-output.bouncmpe.pages.dev

View logs

@doganulus doganulus merged commit 476d100 into main Sep 26, 2025
1 check passed
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