{"id":17354168,"url":"https://github.com/dovyski/payload-info-action","last_synced_at":"2025-10-17T04:07:19.005Z","repository":{"id":65157622,"uuid":"234386772","full_name":"Dovyski/payload-info-action","owner":"Dovyski","description":"Github Action to extract info from the webhook payload object using jq filters.","archived":false,"fork":false,"pushed_at":"2024-11-20T13:37:24.000Z","size":2622,"stargazers_count":6,"open_issues_count":4,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T21:52:58.363Z","etag":null,"topics":["extract","extract-information","github-action","github-actions","jq","json","payload","webhook"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/Dovyski.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":"2020-01-16T18:38:55.000Z","updated_at":"2024-02-04T07:00:39.000Z","dependencies_parsed_at":"2024-06-19T11:27:21.851Z","dependency_job_id":"e169eaa3-1953-423f-a055-d5be900ebd20","html_url":"https://github.com/Dovyski/payload-info-action","commit_stats":{"total_commits":25,"total_committers":2,"mean_commits":12.5,"dds":"0.040000000000000036","last_synced_commit":"c06c88b31fc2cd874ef053017f83315696dd7928"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dovyski%2Fpayload-info-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dovyski%2Fpayload-info-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dovyski%2Fpayload-info-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dovyski%2Fpayload-info-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dovyski","download_url":"https://codeload.github.com/Dovyski/payload-info-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248968754,"owners_count":21191158,"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":["extract","extract-information","github-action","github-actions","jq","json","payload","webhook"],"created_at":"2024-10-15T17:19:15.850Z","updated_at":"2025-10-17T04:07:13.933Z","avatar_url":"https://github.com/Dovyski.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Payload Info\n\nThis action extracts info from the webhook payload object in Github Actions using filters based on the `jq` tool. It also provides the name of the branch this workflow is running on and if it is a pull request or not.\n\nCheck out the [`.github/workflows/main.yml`](https://github.com/Dovyski/payload-info-action/blob/master/.github/workflows/main.yml) file to see this action working.\n\n## Inputs\n\n### `filter_push`\n**Required** Filter to be applied to the webhook payload object in case of a push. Default `\".\"`.\n\nLearn more about filters at the [jq manual](https://stedolan.github.io/jq/manual/#Basicfilters).\n\n### `filter_pull_request`\nFilter to be applied to the webhook payload object in case of a pull request. Default `\".pull_request.\"`.\n\nLearn more about filters at the [jq manual](https://stedolan.github.io/jq/manual/#Basicfilters).\n\n### `filter_prefix`\nString to be prefixed to all filters. Default `\".[]\"`.\n\n### `dump`\nIf the webhook payload should be dumped as a JSON file or not. Default `true`.\n\n### `dump_path`\nPath to the JSON file that will house the dumped webhook payload. Default `\"gh-payload.json\"`.\n\n### `print`\nIf the webhook payload should be output. Default `true`.\n\n## Outputs\n\n### `value`\nResult of the filter applied to the webhook payload. If this the workflow is on a regular push (not pull request), `value` contains the result of the `filter_push` filter. If the workflow is on a pull request, `value` contains the result of the `filter_pull_request` filter.\n\n### `branch`\nName of the branch related to this workflow, e.g. `\"master\"`.\n\n### `pull_request`\nIf this workflow is running on a pull request or not, e.g. `\"false\"`.\n\n## Example usage\n\n```yml\n- uses: Dovyski/payload-info-action@master\n  with:\n    filter_push: '.commits[].author'\n    filter_pull_request: '.pull_request.commits'\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdovyski%2Fpayload-info-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdovyski%2Fpayload-info-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdovyski%2Fpayload-info-action/lists"}