+
Skip to content

Conversation

KJhellico
Copy link
Collaborator

Proposed change

Update release notes generator (update Github auth method).

Type of change

  • New country/market holidays support (thank you!)
  • Supported country/market holidays update (calendar discrepancy fix, localization)
  • Existing code/documentation/test/process quality improvement (best practice, cleanup, refactoring, optimization)
  • Dependency update (version deprecation/pin/upgrade)
  • Bugfix (non-breaking change which fixes an issue)
  • Breaking change (a code change causing existing functionality to break)
  • New feature (new holidays functionality in general)

Checklist

Copy link
Contributor

coderabbitai bot commented Sep 15, 2025

Summary by CodeRabbit

  • Chores
    • Updated the GitHub authentication mechanism used by the release notes automation to a more secure, officially supported method, improving reliability and future compatibility.
    • No changes to the generated release notes content, format, or user workflows; behavior remains the same.
    • This behind-the-scenes improvement reduces maintenance risk and aligns with current best practices.

Walkthrough

Updates GitHub authentication in the release notes script to use PyGithub’s Auth.Token via Github(auth=Auth.Token(...)) instead of passing the token directly. No other logic or public interfaces are changed.

Changes

Cohort / File(s) Summary
Release notes GitHub auth
scripts/generate_release_notes.py
Replace Github(self.github_token) with Github(auth=Auth.Token(self.github_token)); add Auth import.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Suggested labels

script

Suggested reviewers

  • arkid15r
  • PPsyrius

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Title Check ✅ Passed The title "Update release notes generator" is a concise, single-sentence summary that directly matches the primary change (updating the release notes script's GitHub authentication in scripts/generate_release_notes.py), so it clearly conveys the main intent to reviewers.
Description Check ✅ Passed The PR description explicitly states the change ("Update release notes generator (update Github auth method)"), includes contextual notes and checklist confirmations, and directly relates to the modified file and intent, so it is relevant and informative for reviewers.
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 Ruff (0.12.2)
scripts/generate_release_notes.py

�[1;31mruff failed�[0m
�[1mCause:�[0m Failed to load configuration /ruff.toml
�[1mCause:�[0m Failed to parse /ruff.toml
�[1mCause:�[0m TOML parse error at line 26, column 3
|
26 | "RSE100", # Use of assert detected
| ^^^^^^^^
Unknown rule selector: RSE100

Tip

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Please see the documentation for more information.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
      - name: "Undocumented Breaking Changes"
        mode: "warning"
        instructions: |
          Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).

Please share your feedback with us on this Discord post.


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 link

codecov bot commented Sep 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (02603f2) to head (149fe11).
⚠️ Report is 1 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff            @@
##               dev     #2929   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          296       296           
  Lines        17593     17593           
  Branches      2270      2270           
=========================================
  Hits         17593     17593           

☔ View full report in Codecov by Sentry.
📢 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.

@arkid15r arkid15r enabled auto-merge September 15, 2025 15:40
@arkid15r arkid15r added this pull request to the merge queue Sep 15, 2025
Copy link
Contributor

@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: 1

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 02603f2 and 149fe11.

📒 Files selected for processing (1)
  • scripts/generate_release_notes.py (2 hunks)
⏰ Context from checks skipped due to timeout of 300000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Test docs build
  • GitHub Check: Build distribution
🔇 Additional comments (1)
scripts/generate_release_notes.py (1)

23-23: Auth import: require PyGithub ≥ 1.59.0 (or add a tiny compat shim)

Auth was introduced in PyGithub v1.59.0 (June 22, 2023). I found pyproject.toml and tox.ini but no pygithub entry — confirm where PyGithub is declared and pin >=1.59.0 in your dependency file(s) or add this compat shim:

-from github import Auth, Github
+try:
+    from github import Auth, Github
+except ImportError:
+    from github import Github
+    Auth = None  # type: ignore[assignment]

Merged via the queue into vacanza:dev with commit ba0d513 Sep 15, 2025
36 checks passed
@KJhellico KJhellico deleted the upd-release-notes-generator branch September 15, 2025 16:05
@KJhellico KJhellico mentioned this pull request Sep 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载