{"id":28558830,"url":"https://github.com/cfug/dio_issue_release_action","last_synced_at":"2025-06-10T08:35:39.612Z","repository":{"id":79469235,"uuid":"604533471","full_name":"cfug/dio_issue_release_action","owner":"cfug","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-17T03:22:30.000Z","size":2853,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-06-18T03:44:47.265Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cfug.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2023-02-21T09:04:21.000Z","updated_at":"2024-06-18T03:44:47.265Z","dependencies_parsed_at":"2023-12-15T09:44:40.297Z","dependency_job_id":"7c3e6707-5742-4af3-a832-44bdc236fced","html_url":"https://github.com/cfug/dio_issue_release_action","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":"actions/typescript-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfug%2Fdio_issue_release_action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfug%2Fdio_issue_release_action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfug%2Fdio_issue_release_action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfug%2Fdio_issue_release_action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cfug","download_url":"https://codeload.github.com/cfug/dio_issue_release_action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfug%2Fdio_issue_release_action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259039284,"owners_count":22796789,"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":"2025-06-10T08:35:31.997Z","updated_at":"2025-06-10T08:35:39.599Z","avatar_url":"https://github.com/cfug.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# For cfug/dio package action\n\n功能：根据评论自动发布版本\n\nv2 使用 **dart 重写**\n\naction 配置\n\n```yml\njobs:\n  auto_release_with_comment:\n    if: github.event.issue.number == 3 # Set it for specific issue number\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v3\n        with:\n          token: ${{ secrets.GITHUB_TOKEN }}\n      - uses: dart-lang/setup-dart@v1.3\n      - name: auto release with comment\n        uses: cfug/dio_issue_release_action@v2\n        with:\n          github-token: ${{ secrets.GITHUB_TOKEN }}\n          pub-credentials-json: ${{ secrets.PUB_CREDENTIALS_JSON }}\n```\n\n| 参数                 | 说明                                                                                 |\n| -------------------- | ------------------------------------------------------------------------------------ |\n| github-token         | 用于在项目中调取 github api 来检查权限等操作                                         |\n| pub-credentials-json | 用于执行 pub publish 的一些操作，需要在 github 项目的 secrets 中设置                 |\n| do-publish | 是否执行 publish to pub.dev                  |\n| do-release | 是否执行 git push \u0026\u0026 create github release                  |\n\n## 权限\n\n因为 action 在使用时，涉及到修改项目文件并提交，所以需要有写入的权限。\n\n## 做的事\n\n1. 检查 issue 评论者是否有写入权限\n1. 检查评论内容是否为 `dio: v1.0.0` 这样的格式\n1. 目前评论内容支持多行，也就是同时提交多个包，这里是有顺序的，所以如果有依赖关系，需要先发布依赖的包\n1. 检查包是否是 `dio` 或几个 plugin 之一\n1. 根据包的类型配置判断是安装 dart 还是 flutter 库\n1. 修改前先执行一次 publish 的 dry-run 操作\n1. 修改对应包的 `pubspec.yaml` 文件中的 `version` 字段\n1. 修改 CHANGELOG.md 文件，并把 unrelease 的内容移动到新的版本中\n1. 执行 git add, git commit, git push\n1. 在 main 分支上打 release tag\n1. 发布到 pub.dev\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfug%2Fdio_issue_release_action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcfug%2Fdio_issue_release_action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfug%2Fdio_issue_release_action/lists"}