Markdown link check fails in a local repository without a Git remote
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 81/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- github-actions, javascript
- Domain
- documentation, testing
Research direction
Read the markdown-links job in .github/workflows/ci.yml and the local commands in docs/development.md; reproduce the failure in a staged Git repository with no remote. Check how the link checker accepts repository: false and whether relative links and heading anchors still work in that mode. Done when local checks pass without an origin and same-repository URL checks remain enabled when one is configured.
Written by the indexing model from the issue text.
Description
Kind
A job fails, but the change is correct
Job
.github/workflows/ci.yml, job markdown-links.
The failure affects the local command in docs/development.md.
Problem
The documented Markdown link check stops before it checks any links when the local Git repository has no remote. It should check relative file links and heading anchors without a remote.
To reproduce:
- Copy the template files, without
.git, into a new directory. - Run
git initand stage the files. Do not add a remote. - Run both link check commands in the CI section of
docs/development.md.
Run
Reported from a local run. No GitHub Actions run is linked.
Log
remark-validate-links 13.1.0 throws this error when its remote lookup finds no origin:
Cannot find remote `origin` of local Git repo; pass `repository: false` if you are not using Git
Proposal
Use repository: false for the local check when origin is absent. Keep checks for relative file links and heading anchors in that mode. Preserve checks for full URLs that point to the same repository when origin is configured.
- Dominant language
- Shell
- Stars
- 1
- Forks
- 0
- Avg merge
- 6h 59m
- Merged PRs (30d)
- 26
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from c-w-z/commit-decision-record
-
type/documentation
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
c-w-z/commit-decision-record#90 · 1 comment ·
Maintainers usually reply within 1 day
-
type/documentation
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
c-w-z/commit-decision-record#85 ·
Maintainers usually reply within 1 day
-
type/documentation
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
c-w-z/commit-decision-record#84 ·
Maintainers usually reply within 1 day
-
type/feature
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
c-w-z/commit-decision-record#35 · 1 comment ·
Maintainers usually reply within 1 day
-
good first issue type/documentation
Difficulty 1/5 1-3 hours Newbie friendliness 95/100
c-w-z/commit-decision-record#33 ·
Maintainers usually reply within 1 day
All issues in c-w-z/commit-decision-record
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
getsotto/sotto-authenticator#139 ·
Maintainers usually reply within 1 day
-
Battery "top up once" ends immediately when UPower reports fully-charged below 100%Possibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
omacom/omarchy#21286 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
libretro/libretro-super#2238 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
ChurchCRM/docs.churchcrm.io#328 ·
Maintainers usually reply within 1 day