{"id":27373846,"url":"https://github.com/johnnyhuy/actions-discord-git-webhook","last_synced_at":"2025-07-26T12:42:22.630Z","repository":{"id":45940791,"uuid":"383621069","full_name":"johnnyhuy/actions-discord-git-webhook","owner":"johnnyhuy","description":"GitHub actions webhook for Discord rich embedded info","archived":false,"fork":false,"pushed_at":"2025-03-17T13:21:07.000Z","size":1928,"stargazers_count":13,"open_issues_count":1,"forks_count":11,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-10T09:19:14.073Z","etag":null,"topics":["discord","github","github-actions"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnnyhuy.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":"2021-07-06T23:26:15.000Z","updated_at":"2025-04-01T18:36:28.000Z","dependencies_parsed_at":"2024-06-19T01:35:14.809Z","dependency_job_id":"3a28876f-91e9-4171-b64b-3ffc463d387b","html_url":"https://github.com/johnnyhuy/actions-discord-git-webhook","commit_stats":{"total_commits":109,"total_committers":6,"mean_commits":"18.166666666666668","dds":"0.21100917431192656","last_synced_commit":"a9a1be1bbd7d785d99cca4a07cb6da31d04cf56e"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnnyhuy%2Factions-discord-git-webhook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnnyhuy%2Factions-discord-git-webhook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnnyhuy%2Factions-discord-git-webhook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnnyhuy%2Factions-discord-git-webhook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnnyhuy","download_url":"https://codeload.github.com/johnnyhuy/actions-discord-git-webhook/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248705222,"owners_count":21148504,"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":["discord","github","github-actions"],"created_at":"2025-04-13T11:28:59.438Z","updated_at":"2025-04-13T11:28:59.920Z","avatar_url":"https://github.com/johnnyhuy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discord Webhook\n\n\u003e All credits go to the initial release by [baked-libs/discord-webhook](https://github.com/baked-libs/discord-webhook).\n\nThis is a hard fork of the original Discord Webhook GitHub Action, which was specifically catered towards Java development. This is one a slightly more generic one where we just want to post commits via webhooks.\n\n![preview](./docs/preview.png)\n\n## :mailbox_with_no_mail: Inputs\n\n### `webhook_url`\n\n**Required** The GitHub webhook URL comprised of both `id` and `token` fields.\n\n### `id`\n\n\u003e This is ignored if `webhook_url` is set\n\n**Required** This is the id of your Discord webhook, if you copy the webhook url, this will be the first part of it.\n\n### `token`\n\n\u003e This is ignored if `webhook_url` is set\n\n**Required** Now your Discord webhook token, it's the second part of the url.\n\n### `censor_username`\n\nCensor username with by only showing the first and last character. For example, `j...y` as `johnnyhuy`.\n\n### `repo_name`\n\nSpecify a custom repository name to overwrite the `username/repo` format.\n\n### `hide_links`\n\nHide links on embedded view.\n\n### `color`\n\nColor of the Discord embed.\n\n### `thread_id`\n\nThe ID of the thread in forum channel to send the embed to.\n\n## :scroll: Usage\n\nTo set up this Action, create a new workflow file under `.github/workflows/workflow_name.yml`.\n\n```yaml\nname: Discord Webhook\n\non: [push]\n\njobs:\n  git:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n\n      - name: Run Discord Webhook\n        uses: johnnyhuy/actions-discord-git-webhook@main\n        with:\n          webhook_url: ${{ secrets.YOUR_DISCORD_WEBHOOK_URL }}\n```\n\n### Alternatives\n\n```yaml\n# Disable URL links to the repository\n- name: Run Discord Webhook\n  uses: johnnyhuy/actions-discord-git-webhook@main\n  with:\n    webhook_url: ${{ secrets.YOUR_DISCORD_WEBHOOK_URL }}\n    hide_links: true\n\n# Censor username\n- name: Run Discord Webhook\n  uses: johnnyhuy/actions-discord-git-webhook@main\n  with:\n    webhook_url: ${{ secrets.YOUR_DISCORD_WEBHOOK_URL }}\n    censor_username: false\n\n# Using an ID and token\n- name: Run Discord Webhook\n  uses: johnnyhuy/actions-discord-git-webhook@main\n  with:\n    id: ${{ secrets.YOUR_DISCORD_WEBHOOK_ID }}\n    token: ${{ secrets.YOUR_DISCORD_WEBHOOK_TOKEN }}\n\n# Using a custom repo name\n- name: Run Discord Webhook\n  uses: johnnyhuy/actions-discord-git-webhook@main\n  with:\n    id: ${{ secrets.YOUR_DISCORD_WEBHOOK_ID }}\n    token: ${{ secrets.YOUR_DISCORD_WEBHOOK_TOKEN }}\n    repo_name: My Special Repo\n\n# Send embed in forum thread\n- name: Run Discord Webhook\n  uses: johnnyhuy/actions-discord-git-webhook@main\n  with:\n    id: ${{ secrets.YOUR_DISCORD_WEBHOOK_ID }}\n    token: ${{ secrets.YOUR_DISCORD_WEBHOOK_TOKEN }}\n    thread_id: ${{ secrets.YOUR_DISCORD_THREAD_ID }}\n```\n\n## Development\n\nThis project uses a Makefile to simplify Docker commands for development, testing, and releasing.\n\n### Prerequisites\n\n- Docker and Docker Compose\n- Make\n\n### Getting Started\n\n```bash\n# Start development workspace (using Docker)\nmake workspace\nnpm ci\n\n# Or locally\nnpm ci\n```\n\n### Testing\n\n```bash\n# Run tests\nmake test\n```\n\n### Building and Releasing\n\n```bash\n# Build the release container\nmake build\n\n# Create a new version\nmake version\n\n# Push and release to GitHub\nmake release\n```\n\n### Cleanup\n\n```bash\n# Clean up Docker resources\nmake clean\n```\n\n### Versioning\n\nChanges are versioned via GitHub Actions that use [`standard-version`](https://github.com/conventional-changelog/standard-version) to create Git tags and [`conventional-github-releaser`](https://github.com/conventional-changelog/releaser-tools/tree/master/packages/conventional-github-releaser) to submit GitHub releases.\n\nWe follow the [`Conventional Commits`](https://www.conventionalcommits.org/en/v1.0.0/#summary) standard where commit messages get _automatically_ analysed to produce a generated semantic version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnnyhuy%2Factions-discord-git-webhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnnyhuy%2Factions-discord-git-webhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnnyhuy%2Factions-discord-git-webhook/lists"}