{"id":18888013,"url":"https://github.com/codex-team/hawk.releases","last_synced_at":"2026-02-24T11:30:19.184Z","repository":{"id":47313358,"uuid":"400251812","full_name":"codex-team/hawk.releases","owner":"codex-team","description":"Useful scripts and guides for sending releases to Hawk","archived":false,"fork":false,"pushed_at":"2022-05-04T16:28:27.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-12-31T05:28:10.180Z","etag":null,"topics":["error-tracking","monitoring"],"latest_commit_sha":null,"homepage":"https://hawk.so","language":"Shell","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/codex-team.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":"2021-08-26T17:26:21.000Z","updated_at":"2022-05-04T16:26:22.000Z","dependencies_parsed_at":"2023-01-04T12:29:10.128Z","dependency_job_id":null,"html_url":"https://github.com/codex-team/hawk.releases","commit_stats":{"total_commits":10,"total_committers":3,"mean_commits":"3.3333333333333335","dds":0.5,"last_synced_commit":"e6c3a68758b32307a5dce8ecefe63dc7bd9b04e4"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codex-team%2Fhawk.releases","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codex-team%2Fhawk.releases/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codex-team%2Fhawk.releases/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codex-team%2Fhawk.releases/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codex-team","download_url":"https://codeload.github.com/codex-team/hawk.releases/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239859562,"owners_count":19708863,"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":["error-tracking","monitoring"],"created_at":"2024-11-08T07:41:20.149Z","updated_at":"2026-02-24T11:30:19.123Z","avatar_url":"https://github.com/codex-team.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hawk releases\n\nHawk releases sender will help you collect commits data and send as releases.\n\nYou can use this [action](#action) in workflow or pull the bash [script](#script) and run it yourself.\n\n## Action\n\nUse `codex-team/hawk.releases@v1` in build workflow to send commits as release data to Hawk.\n\n### Inputs\n\n#### `release` (required)\n\nRelease identifier. For example package version or any other defined value which will be available in project's code.\n\n#### `token` (required)\n\nProject token from Hawk.\n\n#### `collectorEndpoint`\n\nOptional custom collector endpoint.\n\n### Example of usage\n\n```\n- name: Get package info\n  id: package\n  uses: codex-team/action-nodejs-package-info@v1\n\n- name: Send release data\n  uses: codex-team/hawk.releases@v1\n  with:\n    release: ${{ steps.package.outputs.name }}-${{ steps.package.outputs.version }}\n    token: ${{ secrets.HAWK_TOKEN }}\n```\n\n## Script\n\nTo make it easier to send commits, you can use a shell script [hawk-releases.sh](bin/hawk-releases.sh)\nthat will take the last few commits and send them to the collector.\n\n### [hawk-releases.sh](bin/hawk-releases.sh) arguments\n\n| Argument name | Required | Description |\n| -- | -- | -- |\n| `-t` \\| `--token` | Yes | Hawk integration token for your project. |\n| `-r` \\| `--release` | Yes | Release name. Any string that will be associated with project events. |\n| `-ce` \\| `--collectorEndpoint` | No | Endpoint to send release data. |\n\nGet the script\n\n```bash\ncurl https://raw.githubusercontent.com/codex-team/hawk.release/master/bin/hawk-releases.sh -O\n```\n\nExample of a script call:\n\n```bash\n./hawk-releases.sh -r=\"Version 2.0.1\" -t=eyJpbnRlZ3JhdGlvbklkIjoiNTczM2ViODgtMDEzZi00MzE3LTkyMWQtNWViYWY3OTljNmYyIiwic2VjcmV0IjoiZmE3OGI2NjMtMTg5OS00NzUzLTgwOTktODlhYTdmMjA4MjJjIn0= \n```\n\nExpected output:\n\n```\nSending 2 commits for the 'Version 2.0.1' release to https://5733eb88-013f-4317-921d-5ebaf799c6f2.k1.hawk.so/release\n{\"code\":200,\"error\":false,\"message\":\"OK\"}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodex-team%2Fhawk.releases","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodex-team%2Fhawk.releases","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodex-team%2Fhawk.releases/lists"}