Skip to content

fix(RepoCheck): conditional contributing instructions + typo#1281

Open
sunlight7777777 wants to merge 1 commit into
entrius:testfrom
sunlight7777777:fix/repo-check-contributing-conditional
Open

fix(RepoCheck): conditional contributing instructions + typo#1281
sunlight7777777 wants to merge 1 commit into
entrius:testfrom
sunlight7777777:fix/repo-check-contributing-conditional

Conversation

@sunlight7777777
Copy link
Copy Markdown

Summary

Fixes the contradiction on the Repo Check page where the Activity & Feasibility panel always instructed users to check CONTRIBUTING.md, even when the Community Standards panel on the same page flagged that the file did not exist.

Closes #1280

Changes

  • Added a hasContributing memo that reuses the existing Contributing Guidelines check result, so the two panels can never disagree.
  • Replaced the hardcoded instruction string with a conditional:
    • If CONTRIBUTING.md exists → original sentence, with CONTRIBUTING.md rendered as a link to the file on the repo's default branch.
    • If it doesn't → fallback sentence pointing to the README and suggesting a PR to add contributing guidelines.
  • Fixed instructions.l typo.

Testing

Verified on two repos:

  • infiniflow/ragflow (no CONTRIBUTING.md) → fallback text renders, README link works, Community Standards card stays red ❌.
  • A repo with CONTRIBUTING.md present → original text renders, link points to the correct branch, Community Standards card stays green ✓.

Screenshots

Before change:

1 (2)

After change:

Screenshot 2026-05-27 041735

The Activity & Feasibility panel always told users to check CONTRIBUTING.md,
even when the Community Standards check on the same page flagged it as
missing. Now reuses the existing check result and falls back to README
guidance when CONTRIBUTING.md is absent. Also fixes 'instructions.l' typo.

Closes entrius#1280
@xiao-xiao-mao xiao-xiao-mao Bot added the bug Something isn't working label May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Repo Check page shows contradictory info when CONTRIBUTING.md is missing

1 participant