{"id":15889090,"url":"https://github.com/baxtergu/auto-green","last_synced_at":"2026-01-16T00:53:53.048Z","repository":{"id":43461831,"uuid":"333624613","full_name":"baxtergu/auto-green","owner":"baxtergu","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-30T00:00:58.000Z","size":107,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-30T02:43:49.305Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/baxtergu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-28T02:39:00.000Z","updated_at":"2024-10-30T00:01:02.000Z","dependencies_parsed_at":"2023-02-18T01:45:52.598Z","dependency_job_id":"9ef0fbc8-1f7d-4e30-aa92-53d753722d40","html_url":"https://github.com/baxtergu/auto-green","commit_stats":{"total_commits":1380,"total_committers":2,"mean_commits":690.0,"dds":0.0007246376811593791,"last_synced_commit":"93beb1dc648571c0ec1b07fad47c616bbc74cc49"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baxtergu%2Fauto-green","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baxtergu%2Fauto-green/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baxtergu%2Fauto-green/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baxtergu%2Fauto-green/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baxtergu","download_url":"https://codeload.github.com/baxtergu/auto-green/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246854831,"owners_count":20844828,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-06T06:41:13.211Z","updated_at":"2026-01-16T00:53:53.007Z","avatar_url":"https://github.com/baxtergu.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# auto-green\n\n[![Build Status](https://github.com/justjavac/auto-green/workflows/ci/badge.svg?branch=master)](https://github.com/justjavac/auto-green/actions)\n\n自动保持 GitHub 提交状态常绿。\n\n\u003e a commit a day keeps your girlfriend away.\n\n## 原理\n\n使用 GitHub Actions 的定时任务功能，每隔一段时间自动执行 `git commit`，提交信息为 \"a commit a day keeps your girlfriend away\"，灵感来自知乎问题[在 GitHub 上保持 365 天全绿是怎样一种体验？](https://www.zhihu.com/question/34043434/answer/57826281)下某匿名用户的回答：\n\n\u003e 曾经保持了 200 多天全绿，但是冷落了女朋友，一直绿到现在。\n\n## 使用\n\n- 点右上角 **Use this template** 按钮复制本 GitHub 仓库，**:warning: 千万不要 Fork，因为 fork 项目的动态并不会让你变绿 :warning:**\n- 在自己的项目中，点上方 **Actions** 选项卡进入项目 GitHub Actions 页面, 点击绿色按钮 “**I understand my workflows, go ahead and enable them**” 开启自动提交功能\n- 修改 [ci.yml 文件的第 19、20 行](https://github.com/justjavac/auto-green/blob/master/.github/workflows/ci.yml#L19) 为自己的 GitHub 账号和昵称\n- (可选) 你可以通过修改 [ci.yml 文件的第 8 行](https://github.com/justjavac/auto-green/blob/master/.github/workflows/ci.yml#L8)来调整频率\n\n计划任务语法有 5 个字段，中间用空格分隔，每个字段代表一个时间单位。\n\n```plain\n┌───────────── 分钟 (0 - 59)\n│ ┌───────────── 小时 (0 - 23)\n│ │ ┌───────────── 日 (1 - 31)\n│ │ │ ┌───────────── 月 (1 - 12 或 JAN-DEC)\n│ │ │ │ ┌───────────── 星期 (0 - 6 或 SUN-SAT)\n│ │ │ │ │\n│ │ │ │ │\n│ │ │ │ │\n* * * * *\n```\n\n每个时间字段的含义：\n\n|符号   | 描述        | 举例                                        |\n| ----- | -----------| -------------------------------------------|\n| `*`   | 任意值      | `* * * * *` 每天每小时每分钟                  |\n| `,`   | 值分隔符    | `1,3,4,7 * * * *` 每小时的 1 3 4 7 分钟       |\n| `-`   | 范围       | `1-6 * * * *` 每小时的 1-6 分钟               |\n| `/`   | 每         | `*/15 * * * *` 每隔 15 分钟                  |\n\n**注**：由于 GitHub Actions 的限制，如果设置为 `* * * * *` 实际的执行频率为每 5 分执行一次。\n\n## License\n\n[auto-green](https://github.com/justjavac/auto-green) is released under the MIT License. See the bundled [LICENSE](./LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaxtergu%2Fauto-green","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaxtergu%2Fauto-green","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaxtergu%2Fauto-green/lists"}