{"id":13625317,"url":"https://github.com/starryrbs/django-comment-migrate","last_synced_at":"2026-02-24T13:06:53.648Z","repository":{"id":43868821,"uuid":"313850525","full_name":"starryrbs/django-comment-migrate","owner":"starryrbs","description":"这是一个Django model注释迁移的app","archived":false,"fork":false,"pushed_at":"2023-07-04T08:44:10.000Z","size":73,"stargazers_count":67,"open_issues_count":9,"forks_count":14,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-09-19T02:22:10.792Z","etag":null,"topics":["django","python3"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/django-comment-migrate/","language":"Python","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/starryrbs.png","metadata":{"files":{"readme":"README-zh_CN.rst","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}},"created_at":"2020-11-18T07:02:57.000Z","updated_at":"2025-08-15T03:48:05.000Z","dependencies_parsed_at":"2024-01-14T07:06:34.146Z","dependency_job_id":"e69d1c79-8fb2-4080-aa3e-5d0f2b97e4a1","html_url":"https://github.com/starryrbs/django-comment-migrate","commit_stats":{"total_commits":69,"total_committers":5,"mean_commits":13.8,"dds":0.08695652173913049,"last_synced_commit":"02197609ab864b6d6c39f436e47a6d6e284e656a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/starryrbs/django-comment-migrate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starryrbs%2Fdjango-comment-migrate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starryrbs%2Fdjango-comment-migrate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starryrbs%2Fdjango-comment-migrate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starryrbs%2Fdjango-comment-migrate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/starryrbs","download_url":"https://codeload.github.com/starryrbs/django-comment-migrate/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starryrbs%2Fdjango-comment-migrate/sbom","scorecard":{"id":846492,"data":{"date":"2025-08-11","repo":{"name":"github.com/starryrbs/django-comment-migrate","commit":"8115d6039bb095e1b17aeb31200144e4d7578881"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Code-Review","score":2,"reason":"Found 3/14 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/starryrbs/django-comment-migrate/release.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/starryrbs/django-comment-migrate/release.yml/develop?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/release.yml:23","Warn: pipCommand not pinned by hash: .github/workflows/release.yml:24","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/release.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'develop'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T21:35:15.660Z","repository_id":43868821,"created_at":"2025-08-23T21:35:15.660Z","updated_at":"2025-08-23T21:35:15.660Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29783615,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T10:45:18.109Z","status":"ssl_error","status_checked_at":"2026-02-24T10:45:09.911Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["django","python3"],"created_at":"2024-08-01T21:01:53.917Z","updated_at":"2026-02-24T13:06:53.630Z","avatar_url":"https://github.com/starryrbs.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"Django Comment Migrate\n======================\n\n|Build| |https://pypi.org/project/django-comment-migrate/|\n\n这是一个Django model注释迁移的app\n\n`English \u003c./README.rst\u003e`__ \\| 简体中文\n\n特性\n----\n\n-  自动化迁移model的字段的help\\_text到注释【支持自定义】\n-  自动化迁移model的verbose_name到表注释【支持自定义】\n-  提供一个命令去迁移指定的app的注释\n\n例子\n----\n\n1. 下载python包::\n\n    pip install django-comment-migrate\n\n2. 添加 django\\_comment\\_migrate app\n\n   project/project/settings.py:\n\n   .. code:: python\n\n       INSTALLED_APPS =[\n           \"django_comment_migrate\",\n           ...\n       ]\n\n3. 添加 model\n\n   project/app/model.py\n\n   .. code:: python\n\n       from django.db import models\n\n       class CommentModel(models.Model):\n           no_comment = models.TextField()\n           aaa = models.IntegerField(default=0, help_text=\"test default\")\n           help_text = models.CharField(max_length=40,\n                                        help_text=\"this is help text\")\n\n           class Meta:\n               app_label = 'tests'\n               db_table = 'comment_model'\n               verbose_name = '这是表注释'\n\n4. 添加app\n\n    project/app/settings.py\n\n   .. code:: python\n\n       DCM_COMMENT_APP=[\"app\"]\n\n5. 执行数据库迁移::\n\n    python manage.py makemigrations\n    python manage.py migrate\n\n现在检查数据库的table，注释已经迁移了。\n\n自定义配置\n--------------------\n\n在 settings.py::\n\n    DCM_COMMENT_KEY='verbose_name' #注释字段，默认是help_text\n    DCM_TABLE_COMMENT_KEY='verbose_name' # 表注释字段\n    DCM_BACKEND={ # 如果自定义了数据的engine，可以使用该配置\n            \"my-engine\": \"django_comment_migrate.backends.mysql.CommentMigration\"\n    }\n    DCM_COMMENT_APP=[\"app\"]   # 如果不配置则默认生成所有表的注释\n\n\nCommand\n-------\n\n这里提供了一个命令，可以重新生成指定app的注释::\n\n    python manage.py migratecomment [app_label]\n\n这条命令需要在执行所有迁移文件后执行\n\n运行测试\n--------\n\n1. Install Tox::\n\n    pip install tox\n\n2. Run::\n\n    tox\n\n支持的数据库\n------------\n\n-  MySQL\n-  PostgreSQL\n-  Microsoft SQL Server\n\n.. |Build| image:: https://travis-ci.org/starryrbs/django-comment-migrate.svg?branch=master\n.. |https://pypi.org/project/django-comment-migrate/| image:: https://img.shields.io/pypi/v/django-comment-migrate\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarryrbs%2Fdjango-comment-migrate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstarryrbs%2Fdjango-comment-migrate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarryrbs%2Fdjango-comment-migrate/lists"}