Skip to content

docs: say why the usage example needs pull-requests: write - #348

Merged
shenxianpeng merged 1 commit into
mainfrom
docs/readme-permissions-comment
Nov 23, 2026
Merged

shenxianpeng merged 1 commit into
mainfrom
docs/readme-permissions-comment

Conversation

@shenxianpeng

@shenxianpeng shenxianpeng commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

The usage example in the README carries the comment # use permissions because use of pr-comments. The sentence does not parse, and it is copied as is into the workflows of the projects that start from this example.

The comment now sits on the line it explains.

Before and after

# before
    permissions:  # use permissions because use of pr-comments
      contents: read
      pull-requests: write

# after
    permissions:
      contents: read
      pull-requests: write  # needed for pr-comments

README only. No other file uses this comment.

Summary by CodeRabbit

  • Documentation
    • Clarified the permissions in the usage example.

@shenxianpeng
shenxianpeng requested a review from a team as a code owner November 23, 2026 18:15
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The README usage example moves the explanatory comment from the permissions key to pull-requests: write. The listed permissions remain unchanged.

Changes: README example

Layer / File(s) Summary
Update permission comment
README.md
The example moves the comment to pull-requests: write. The permissions shown remain contents: read and pull-requests: write.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Other

Suggested labels: documentation

Merge Risk: Minimal · up to ea87a

This is a documentation-only change that moves an explanatory comment to the permission it describes. No runtime behavior changes. The PR description should be edited to remove the AI attribution line so the Commit Check passes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names a docs change that explains why the usage example needs pull-requests: write. The raw summary confirms the README change moves the inline comment to the pull-requests: write line, so t…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title names a docs change that explains why the usage example needs pull-requests: write. The raw summary confirms the README change moves the inline comment to the pull-requests: write line, so the title matches the change. The title is specific and concise, and it follows the conventional docs: prefix. The change is small, but the title reflects it accurately.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: aae2e2a5-6707-4768-a8ca-28d768e0e35a
Commits

Reviewing files that changed from the base of the PR and between adc0ec2 and ea87a1d.

Files selected for processing: 1

  • README.md

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

✔ Commit Check passed

✔ Pull request: 2 passed
✔ Commits: passed
✔ Author: 2 passed
✔ Branch: passed

All 6 checks
Pull request
  ✔ title        docs: say why the usage example needs pull-requests: write
  ✔ description
Commits
  ✔ ea87a1d      docs: say why the usage example needs pull-requests: write
Author
  ✔ name         Xianpeng Shen
  ✔ email        [email protected]
Branch
  ✔ branch       docs/readme-permissions-comment

Checked by Commit Check 2.23.0 · Rules · Check before you push

@github-actions github-actions Bot added the ai-assisted Written with the help of an AI tool label Nov 23, 2026
@shenxianpeng shenxianpeng self-assigned this Nov 23, 2026
@codecov

codecov Bot commented Nov 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (adc0ec2) to head (ea87a1d).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #348   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines         1120      1120           
=========================================
  Hits          1120      1120           
Flag Coverage Δ
unittests 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@shenxianpeng
shenxianpeng merged commit bd0c2eb into main Nov 23, 2026
21 of 25 checks passed
@shenxianpeng
shenxianpeng deleted the docs/readme-permissions-comment branch November 23, 2026 18:42
@shenxianpeng shenxianpeng added the documentation Improvements or additions to documentation label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-assisted Written with the help of an AI tool documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant