{"id":20139246,"url":"https://github.com/lpreterite/drone-plugin-cq-message","last_synced_at":"2025-06-25T08:32:53.874Z","repository":{"id":81485776,"uuid":"163161744","full_name":"lpreterite/drone-plugin-cq-message","owner":"lpreterite","description":"push message by cqhttp in drone plugin","archived":false,"fork":false,"pushed_at":"2019-01-04T03:39:22.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-13T10:11:31.699Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/lpreterite.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":"2018-12-26T09:26:11.000Z","updated_at":"2020-03-24T12:52:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"11790b8f-7ecd-44a8-b285-c249ac80bdf2","html_url":"https://github.com/lpreterite/drone-plugin-cq-message","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpreterite%2Fdrone-plugin-cq-message","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpreterite%2Fdrone-plugin-cq-message/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpreterite%2Fdrone-plugin-cq-message/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpreterite%2Fdrone-plugin-cq-message/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lpreterite","download_url":"https://codeload.github.com/lpreterite/drone-plugin-cq-message/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241582557,"owners_count":19985846,"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-11-13T21:44:32.471Z","updated_at":"2025-03-02T23:16:55.442Z","avatar_url":"https://github.com/lpreterite.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# drone-plugin-cq-message\n\npush message by cqhttp in drone plugin\n\n## Build\n\n```sh\ngo build\n```\n\n## Docker\n\n```sh\nGOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -a -o release/linux/amd64/drone-plugin-cq-message\ndocker build --rm -t lpreterite/drone-plugin-cq-message .\n```\n\n## Usage\n\n作为docker容器使用：\n\n```sh\ndocker run --rm \\\n  -e PLUGIN_CQ_HOST=http://cqhttp \\\n  -e PLUGIN_CQ_ACTION=send_msg \\\n  -e PLUGIN_CQ_TOKEN=kSLuTF2GC2Q4q4ugm3 \\\n  -e PLUGIN_CQ_QUERY='{\"group_id\": \"734751943\", \"message\": \"[CQ:at,qq=53421639] hello!!\"}' \\\n  -v $(pwd):$(pwd) \\\n  -w $(pwd) \\\n  lpreterite/drone-plugin-cq-message\n```\n\n作为drone插件使用：\n\n```yml\nkind: pipeline\nname: default\n\nsetps:\n- name: cq-message\n  image: lpreterite/drone-plugin-cq-message\n  pull: always\n  settings:\n    cq_host: http://cqhttp\n    cq_action: send_msg\n    cq_token:\n        from_secret: cqtoken\n    cq_query:\n        group_id: \"734751943\"\n        message: \"[CQ:at,qq=53421639] 项目已更新!\"\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpreterite%2Fdrone-plugin-cq-message","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flpreterite%2Fdrone-plugin-cq-message","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpreterite%2Fdrone-plugin-cq-message/lists"}