Skip to content

Fixes linter issue?#7

Open
Madib036 wants to merge 4 commits intomainfrom
clarify-contribution-guidelines-workflow
Open

Fixes linter issue?#7
Madib036 wants to merge 4 commits intomainfrom
clarify-contribution-guidelines-workflow

Conversation

@Madib036
Copy link
Copy Markdown
Collaborator

@Madib036 Madib036 commented Jan 23, 2026

Why:

Closes:

What's being changed (if available, include any code snippets, screenshots, or gifs):

Check off the following:

  • I have reviewed my changes in staging, available via the View deployment link in this PR's timeline (this link will be available after opening the PR).

    • For content changes, you will also see an automatically generated comment with links directly to pages you've modified. The comment won't appear if your PR only edits files in the data directory.
  • For content changes, I have completed the self-review checklist.

Summary by CodeRabbit

Release Notes

  • Documentation

    • Reorganized contribution guidelines to improve workflow clarity and section flow.
  • New Features

    • Enhanced contribution call-to-action section with new options and additional links to guide users toward opening issues and accessing contribution guidelines.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Jan 23, 2026

📝 Walkthrough

Walkthrough

The changes restructure the CONTRIBUTING.md documentation, update the UI configuration to separate issue creation and pull request guidance, and modify the contribution template to display multiple navigation options including a new issue creation path.

Changes

Cohort / File(s) Summary
Documentation & UI Configuration
CONTRIBUTING.md, data/ui.yml, includes/contribution.html
Reorganized contribution workflow documentation with reordered sections and relocated guidance. Enhanced contribution_cta in UI config with new to_new_issue and button keys; modified body text and guidelines messaging. Updated HTML template to render separate links for guidelines and issues, plus a dedicated paragraph for new issue creation.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 A carrot-patch of changes grows,
Where contribution paths now flow,
New issues bloom, pull requests bloom,
Guidelines guide through every room,
Documentation hops anew! 🌱✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'Fixes linter issue?' is vague and generic, using the non-descriptive term 'linter issue' without clarifying what linting problem was resolved or what the actual changes accomplish. Replace with a specific title that describes the actual change, such as 'Reorganize contribution guidelines and update UI text' or 'Restructure CONTRIBUTING.md and contribution UI components'.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Fix all issues with AI agents
In `@CONTRIBUTING.md`:
- Line 21: The <img> tag for contribution_cta.png in the CONTRIBUTING.md lacks
an alt attribute; update the <img> element to include a concise, descriptive alt
text (e.g., "Call to contribute illustration" or similar) so screen readers and
markdownlint (MD045) are satisfied—locate the <img
src="./assets/images/contribution_cta.png" width="400"> and add an appropriate
alt="..." attribute.

In `@data/ui.yml`:
- Around line 61-67: The contribution_cta block is missing the to_issues key
referenced by the template (ui.contribution_cta.to_issues), which causes
rendering errors; update the contribution_cta mapping in data/ui.yml by adding a
to_issues entry (similar to to_new_issue) with the appropriate label/URL text so
includes/contribution.html can read ui.contribution_cta.to_issues; ensure the
new key name is exactly to_issues and placed alongside title, body,
to_new_issue, to_guidelines, or, and button.

In `@includes/contribution.html`:
- Around line 14-15: Remove the duplicate CTA paragraph and fix the concatenated
anchors: keep a single paragraph using the template tokens {% data
ui.contribution_cta.or %}, {% data ui.contribution_cta.to_guidelines %} and {%
data ui.contribution_cta.to_new_issue %} (not {% data
ui.contribution_cta.to_issues %} twice), and insert a visible separator (e.g., a
space and the word "or" via {% data ui.contribution_cta.or %} or a middot)
between the two <a> tags so the guidelines link ({% data
ui.contribution_cta.to_guidelines %}) and the new-issue link ({% data
ui.contribution_cta.to_new_issue %}) are not concatenated; remove the extra
paragraph that duplicates the CTA.

### Use the 'make a contribution' button

If you spot something new, open an issue using a [template](https://github.com/github/docs/issues/new/choose). We'll use the issue to have a conversation about the problem you want to fix.
<img src="./assets/images/contribution_cta.png" width="400">
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Add alt text to the image for accessibility.

The image is missing alternate text, which is required for accessibility (screen readers) and is flagged by markdownlint (MD045).

🔧 Proposed fix
-<img src="./assets/images/contribution_cta.png" width="400">
+<img src="./assets/images/contribution_cta.png" width="400" alt="Screenshot of the 'Make a contribution' button on a GitHub Docs article">
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<img src="./assets/images/contribution_cta.png" width="400">
<img src="./assets/images/contribution_cta.png" width="400" alt="Screenshot of the 'Make a contribution' button on a GitHub Docs article">
🧰 Tools
🪛 markdownlint-cli2 (0.18.1)

21-21: Images should have alternate text (alt text)

(MD045, no-alt-text)

🤖 Prompt for AI Agents
In `@CONTRIBUTING.md` at line 21, The <img> tag for contribution_cta.png in the
CONTRIBUTING.md lacks an alt attribute; update the <img> element to include a
concise, descriptive alt text (e.g., "Call to contribute illustration" or
similar) so screen readers and markdownlint (MD045) are satisfied—locate the
<img src="./assets/images/contribution_cta.png" width="400"> and add an
appropriate alt="..." attribute.

Comment on lines 61 to +67
contribution_cta:
title: Help us make these docs great!
body: All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.
button: Make a contribution
body: All GitHub docs are open source. See something that's wrong or unclear?
to_new_issue: Open an issue
or: Or,
to_guidelines: learn how to contribute.
to_guidelines: learn how to contribute and submit a pull request.
button: Make a contribution
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

Missing to_issues key definition.

The contribution_cta section is missing the to_issues key that is referenced in includes/contribution.html on line 14:

{% data ui.contribution_cta.to_issues %}

This will cause a rendering error or empty output since to_issues is not defined in this YAML file. You have to_new_issue defined (line 64), but that's a separate key used on line 15 of the HTML template.

🔧 Proposed fix: Add the missing `to_issues` key
 contribution_cta:
   title: Help us make these docs great!
   body: All GitHub docs are open source. See something that's wrong or unclear?
   to_new_issue: Open an issue
+  to_issues: or open an issue.
   or: Or,
   to_guidelines: learn how to contribute and submit a pull request.
   button: Make a contribution
🤖 Prompt for AI Agents
In `@data/ui.yml` around lines 61 - 67, The contribution_cta block is missing the
to_issues key referenced by the template (ui.contribution_cta.to_issues), which
causes rendering errors; update the contribution_cta mapping in data/ui.yml by
adding a to_issues entry (similar to to_new_issue) with the appropriate
label/URL text so includes/contribution.html can read
ui.contribution_cta.to_issues; ensure the new key name is exactly to_issues and
placed alongside title, body, to_new_issue, to_guidelines, or, and button.

Comment on lines +14 to +15
<p class="color-text-secondary f6 mt-2">{% data ui.contribution_cta.or %} <a href="https://github.com/github/docs/blob/main/CONTRIBUTING.md" target="_blank">{% data ui.contribution_cta.to_guidelines %}</a><a href="https://github.com/github/docs/issues/new/choose" target="_blank">{% data ui.contribution_cta.to_issues %}</a></p>
<p class="color-text-secondary f6 mt-2">{% data ui.contribution_cta.or %} <a href="https://github.com/github/docs/issues/new/choose" target="_blank">{% data ui.contribution_cta.to_new_issue %}</a></p>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Missing separator between links and duplicate CTAs.

Several issues on these lines:

  1. Line 14: The two anchor tags are concatenated without any separator text between them. This will render the links directly adjacent (e.g., "learn how to contribute and submit a pull request.or open an issue.").

  2. Lines 14-15: Both paragraphs start with {% data ui.contribution_cta.or %} ("Or,") and both link to the same URL (https://github.com/github/docs/issues/new/choose), creating redundant CTAs.

🔧 Proposed fix: Remove duplicate and fix link structure

If the intent is to have one line with guidelines link and another for opening issues:

-  <p class="color-text-secondary f6 mt-2">{% data ui.contribution_cta.or %} <a href="https://github.com/github/docs/blob/main/CONTRIBUTING.md" target="_blank">{% data ui.contribution_cta.to_guidelines %}</a><a href="https://github.com/github/docs/issues/new/choose" target="_blank">{% data ui.contribution_cta.to_issues %}</a></p>
-  <p class="color-text-secondary f6 mt-2">{% data ui.contribution_cta.or %} <a href="https://github.com/github/docs/issues/new/choose" target="_blank">{% data ui.contribution_cta.to_new_issue %}</a></p>
+  <p class="color-text-secondary f6 mt-2">{% data ui.contribution_cta.or %} <a href="https://github.com/github/docs/blob/main/CONTRIBUTING.md" target="_blank">{% data ui.contribution_cta.to_guidelines %}</a></p>
+  <p class="color-text-secondary f6 mt-2"><a href="https://github.com/github/docs/issues/new/choose" target="_blank">{% data ui.contribution_cta.to_new_issue %}</a></p>
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<p class="color-text-secondary f6 mt-2">{% data ui.contribution_cta.or %} <a href="https://github.com/github/docs/blob/main/CONTRIBUTING.md" target="_blank">{% data ui.contribution_cta.to_guidelines %}</a><a href="https://github.com/github/docs/issues/new/choose" target="_blank">{% data ui.contribution_cta.to_issues %}</a></p>
<p class="color-text-secondary f6 mt-2">{% data ui.contribution_cta.or %} <a href="https://github.com/github/docs/issues/new/choose" target="_blank">{% data ui.contribution_cta.to_new_issue %}</a></p>
<p class="color-text-secondary f6 mt-2">{% data ui.contribution_cta.or %} <a href="https://github.com/github/docs/blob/main/CONTRIBUTING.md" target="_blank">{% data ui.contribution_cta.to_guidelines %}</a></p>
<p class="color-text-secondary f6 mt-2"><a href="https://github.com/github/docs/issues/new/choose" target="_blank">{% data ui.contribution_cta.to_new_issue %}</a></p>
🤖 Prompt for AI Agents
In `@includes/contribution.html` around lines 14 - 15, Remove the duplicate CTA
paragraph and fix the concatenated anchors: keep a single paragraph using the
template tokens {% data ui.contribution_cta.or %}, {% data
ui.contribution_cta.to_guidelines %} and {% data
ui.contribution_cta.to_new_issue %} (not {% data ui.contribution_cta.to_issues
%} twice), and insert a visible separator (e.g., a space and the word "or" via
{% data ui.contribution_cta.or %} or a middot) between the two <a> tags so the
guidelines link ({% data ui.contribution_cta.to_guidelines %}) and the new-issue
link ({% data ui.contribution_cta.to_new_issue %}) are not concatenated; remove
the extra paragraph that duplicates the CTA.

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