automatic-copyright-year: keep README copyright current

Đang mở
#189 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@anshulchikhale30-p đang làm issue này rồi.

Từ ngày 15/11/2026.

  • #190 của @anshulchikhale30-p — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, python
Lĩnh vực
ci-cd, documentation

Hướng nghiên cứu

Start by reading pull request #190, which is already open against this issue, and the footer line in README.md. Then look at the existing workflows under .github/workflows/ to match conventions, and write a scheduled plus workflow_dispatch job with contents: write that rewrites only the copyright line and checks git diff before committing. Done means a manual run on 2026 produces © 2025-2026 The Stable Order., a second run makes no commit, and the chosen push-vs-PR path is settled against branch protection.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

documentation enhancement

Summary

The README footer hardcodes the copyright year:

© 2025 The Stable Order.

It should automatically show the current year range. For 2026:

© 2025-2026 The Stable Order.

and on January 1, 2027 it should become:

© 2025-2027 The Stable Order.

without a manual edit.

Proposed behavior

  • Start year stays 2025.
  • End year is the current UTC year.
  • If the current year is 2025, render © 2025 The Stable Order.
  • If the current year is later, render © 2025-<current-year> The Stable Order.
  • The update must be idempotent: if the line already matches, make no commit.

Suggested implementation

Add a small scheduled GitHub Actions workflow, for example:

  • on.schedule with a January 1 cron, plus workflow_dispatch for testing.
  • permissions: contents: write.
  • A short Python or shell step that updates only the copyright line in README.md.
  • Commit only when the value changed.

If main is protected, the workflow can open a PR instead of pushing directly. That can be decided during implementation.

Scope

  • Only the README copyright line.
  • No license text changes.
  • No unrelated README edits.
  • No PR yet; this issue is for discussion and approval first.

Acceptance criteria

  • README shows © 2025-2026 The Stable Order. for 2026.
  • On January 1, 2027 it updates to © 2025-2027 The Stable Order. automatically.
  • Re-running the workflow in the same year makes no change and no empty commit.
  • The workflow can be run manually for testing.
  • Only the copyright line is modified.
  • The chosen approach works with the repository's branch protection rules.

Open question

Should the workflow commit directly to main, or open a PR for review each year?

Ngôn ngữ chính
Python
Star
12
Fork
27
Merge trung bình
2 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của StabilityNexus/MiniChain

Tất cả issue của StabilityNexus/MiniChain

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.