{"id":20724065,"url":"https://github.com/jerray/work-weixin-notifier","last_synced_at":"2025-04-23T17:44:21.069Z","repository":{"id":64303035,"uuid":"209533404","full_name":"jerray/work-weixin-notifier","owner":"jerray","description":"GitHub Action: Notifications for Work Weixin","archived":false,"fork":false,"pushed_at":"2019-09-20T11:34:22.000Z","size":7,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-17T07:26:51.683Z","etag":null,"topics":["actions","notifier","weixin"],"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/jerray.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}},"created_at":"2019-09-19T11:11:52.000Z","updated_at":"2022-07-17T02:55:17.000Z","dependencies_parsed_at":"2023-01-15T09:45:18.832Z","dependency_job_id":null,"html_url":"https://github.com/jerray/work-weixin-notifier","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.16666666666666663","last_synced_commit":"5341bd2e4ee6e2a2abe410f1a63ace0fdffb4384"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":"actions/container-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerray%2Fwork-weixin-notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerray%2Fwork-weixin-notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerray%2Fwork-weixin-notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerray%2Fwork-weixin-notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jerray","download_url":"https://codeload.github.com/jerray/work-weixin-notifier/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250483664,"owners_count":21438095,"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":["actions","notifier","weixin"],"created_at":"2024-11-17T04:12:05.497Z","updated_at":"2025-04-23T17:44:21.050Z","avatar_url":"https://github.com/jerray.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Work Weixin Notifier\n\nSend notification to Work Weixin group using Group Bot.\n\n## Usage\n\n```yaml\n- uses: jerray/work-weixin-notifier@v1.0.0\n  if: always()\n  with:\n    key: ${{ secrets.weixin_key }}\n    type: text\n    content: '{{ github.Repository }} build finished'\n    status: ${{ job.status }}\n```\n\nContent is parsed and rendered with handlebars template parser. All default environments are\ngrouped under `github` object. Input values are grouped under `inputs` object. Keys are **CamelCased**.\n\nNote: `GITHUB_SHA` in the template renamed to `github.Commit`.\n\n### Build Context\n\nThe notifier provides some useful context values for rendering template. They are grouped under\n`build` object.\n\n* `build.Owner` is the repository owner, a user name or an organization name\n* `build.Name` is repository's name\n* `build.Branch` is the commit's branch name only if ref is branch ref\n* `build.Tag` is the tag name only if ref is tag ref\n* `build.Commit` is the shortcut of commit SHA\n* `build.Link` is commit URL on GitHub if ref is branch, or tag tree URL if ref is tag\n\n### Content Example\n\nHere is a markdown type message content template. Set input `type` to `markdown` to use it.\n\n```handlebars\n# {{#equal inputs.Status \"success\"}}🔵{{/equal}}{{#equal inputs.Status \"failure\"}}🔴{{/equal}} {{ github.Repository }}\n{{#if build.Tag}}[Tag {{ build.Tag }}]({{ build.Link }}){{else}}[Commit {{ build.Commit }}]({{ build.Link }}) on branch **{{ build.Branch }}**{{/if}} build {{ inputs.Status }}.\nClick [here]({{ build.Link }}/checks) to check the detailed information.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerray%2Fwork-weixin-notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjerray%2Fwork-weixin-notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerray%2Fwork-weixin-notifier/lists"}