{"id":20696816,"url":"https://github.com/actionsdesk/parse-issue","last_synced_at":"2025-05-10T18:31:34.975Z","repository":{"id":40766564,"uuid":"267644160","full_name":"ActionsDesk/parse-issue","owner":"ActionsDesk","description":null,"archived":true,"fork":false,"pushed_at":"2025-01-10T17:01:55.000Z","size":1654,"stargazers_count":3,"open_issues_count":13,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-19T09:56:48.156Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/ActionsDesk.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":"2020-05-28T16:47:49.000Z","updated_at":"2025-01-10T17:02:04.000Z","dependencies_parsed_at":"2023-02-05T15:01:21.850Z","dependency_job_id":null,"html_url":"https://github.com/ActionsDesk/parse-issue","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/ActionsDesk%2Fparse-issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActionsDesk%2Fparse-issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActionsDesk%2Fparse-issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActionsDesk%2Fparse-issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ActionsDesk","download_url":"https://codeload.github.com/ActionsDesk/parse-issue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253463660,"owners_count":21912867,"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-17T00:15:29.178Z","updated_at":"2025-05-10T18:31:34.943Z","avatar_url":"https://github.com/ActionsDesk.png","language":"TypeScript","readme":"**Note:** This repository is no longer maintained. See [`issue-ops/parser`](https://github.com/issue-ops/parser) for a suitable alternative.\n\n# Actions Issue Parser\n\nExtract useful information from new issues for use in your GitHub Actions.\n\n## Getting Started\n\nSimply add this action to any workflow that runs on GitHub Issue `created` events and it will extract `key: value` pairs as `outputs` to be used in subsequent actions.\n\nThis parser will replace whitespace and special characters with `_`, then squash repeating `_` down to one, dropping any leading or trailing `_`\n\n`Email of  User` would become `email_of_user`\n\n#### Example Workflow\n```Yaml\n- id: parser\n  uses: actionsdesk/parse-issue@v1\n- uses: actions/some-action@v1\n  with:\n    foo: ${{steps.parser.outputs.foo}}\n    bar: ${{steps.parser.outputs.bar}}\n```\n\n#### Example Issue\n\n```Yaml\n# Welcome\n\nfoo: fizz\nbar: buzz\n```\n\nGiven the workflow and issue above, this action will parse `foo` and `bar` with their values and make them available at `steps.parser.outputs`. In this example, the following would be defined:\n\n- `steps.parser.outputs.foo` (with a value of `fizz`)\n- `steps.parser.outputs.bar` (with a value of `buzz`)\n\nThe `id` used is arbitrary, only used to reference the output in another step.\n\n### Default Extractor\n\nBy default, this Action will extract all `key: value` pairs that it finds.  Duplicate keys will be overridden by the last value found.\n\n### Custom Extractors\n\nYou can define custom extractors with regular expressions by defining inputs to this action in a specific prefix.  All inputs that start with `extract_` will be enumerated and made available on `outputs` based on the value passed in.  If you use a capture group, we will assign the first match and ignore the rest\n\n\n#### Examples\n\n\u003ctable\u003e\n  \u003cthead\u003e\n    \u003ctr\u003e\n      \u003cth\u003eWorkflow\u003c/th\u003e\n      \u003cth\u003eIssue\u003c/th\u003e\n      \u003cth\u003eResult\u003c/th\u003e\n    \u003c/tr\u003e\n  \u003c/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003cpre\u003euses: actionsdesk/parse-issue@v1\ninputs:\n  extract_username: '\u0026lt;p id=\"username\"\u003e(?\u0026lt;username\u003e[^\u0026lt;]+)\u0026lt;/p\u003e'\n  extract_email: '\u0026lt;p id=\"email\"\u003ejohnsmith@example.com\u0026lt;/p\u003e'\u003c/pre\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003cpre\u003e# Example Issue\n\u0026lt;p id=\"username\"\u003ejohnsmith\u0026lt;/p\u003e\n\u0026lt;p id=\"username\"\u003e(?\u0026lt;email\u003e[^\u003c]+)\u0026lt;/p\u003e\u003c/pre\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003cpre\u003eusername: johnsmith\nemail: johnsmith@example.com\u003c/pre\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003cpre\u003euses: actionsdesk/parse-issue@v1\ninputs:\n  extract_awesome: '^(.+) is awesome!$'\u003c/pre\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003cpre\u003e# Example Issue\nEverything is awesome!\u003c/pre\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003cpre\u003eawesome: Everything\u003c/pre\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factionsdesk%2Fparse-issue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factionsdesk%2Fparse-issue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factionsdesk%2Fparse-issue/lists"}