{"id":43737392,"url":"https://github.com/bcgov/action-gherkin-issue-processor","last_synced_at":"2026-02-05T11:06:50.677Z","repository":{"id":257675251,"uuid":"858808238","full_name":"bcgov/action-gherkin-issue-processor","owner":"bcgov","description":"Github Action that turn github issues into gherkin/cucumber files","archived":false,"fork":false,"pushed_at":"2026-01-26T11:08:41.000Z","size":2056,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-27T00:57:27.219Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bcgov.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-17T15:12:06.000Z","updated_at":"2026-01-26T11:08:44.000Z","dependencies_parsed_at":"2024-09-18T03:20:45.806Z","dependency_job_id":"5626548f-0dfd-4326-adf0-cf05b7aaaa91","html_url":"https://github.com/bcgov/action-gherkin-issue-processor","commit_stats":null,"previous_names":["bcgov-nr/action-gherkin-issue-processor","bcgov/action-gherkin-issue-processor"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/bcgov/action-gherkin-issue-processor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Faction-gherkin-issue-processor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Faction-gherkin-issue-processor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Faction-gherkin-issue-processor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Faction-gherkin-issue-processor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bcgov","download_url":"https://codeload.github.com/bcgov/action-gherkin-issue-processor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Faction-gherkin-issue-processor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29120483,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T10:47:47.471Z","status":"ssl_error","status_checked_at":"2026-02-05T10:45:08.119Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-02-05T11:06:49.940Z","updated_at":"2026-02-05T11:06:50.660Z","avatar_url":"https://github.com/bcgov.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- Badges --\u003e\n\n[![Issues](https://img.shields.io/github/issues/bcgov/action-gherkin-issue-processor)](/../../issues)\n[![Pull Requests](https://img.shields.io/github/issues-pr/bcgov/action-gherkin-issue-processor)](/../../pulls)\n[![Coverage](badges/coverage.svg)](/actions)\n[![Apache 2.0 License](https://img.shields.io/github/license/bcgov/action-gherkin-issue-processor.svg)](/LICENSE)\n[![Lifecycle](https://img.shields.io/badge/Lifecycle-Experimental-339999)](https://github.com/bcgov/repomountie/blob/master/doc/lifecycle-badges.md)\n\n\u003c!-- Reference-Style link --\u003e\n\n[issues]:\n  https://docs.github.com/en/issues/tracking-your-work-with-issues/creating-an-issue\n[pull requests]:\n  https://docs.github.com/en/desktop/contributing-and-collaborating-using-github-desktop/working-with-your-remote-repository-on-github-or-github-enterprise/creating-an-issue-or-pull-request\n\n# Gherkin feature extractor from GitHub issues\n\nGitHub Action that processes Gherkin content from issues and turn them into a\ncontent that can be then saved into a file.\n\nIt reads the issues from a repository and extracts the Gherkin content from\nthem. The Gherkin content is then saved into a file. This expects the issue to\ncontains a Gherkin content in the body of the issue, like the following:\n\n```gherkin\nFeature: As a user, I want to be able to login to the system\n\n  Scenario: User can login with valid credentials\n    Given the user is on the login page\n    When the user enters valid credentials\n    Then the user is logged in\n```\n\nThe action will extract the Gherkin content from the issue and provide it as a\nparameter. You can then save as a **feature** file.\n\n# Inputs\n\nThe only reaquired input is the `issue` number. All the other inputs are\noptional and usually have default values.\n\n- `issue` **(required)**: The github issue number, usually extracted from the\n  event variable `${{ github.event.issue.number }}`\n- `owner`: Target repository owner, default to the current repository owner\n  `${{ github.repository_owner }}`\n- `repo`: Target repository name including the owner, default to the current\n  repository `${{ github.repository }}`\n- `token`: GitHub token required to access the github api, default to\n  `${{ github.token }}`\n- `default_title`: Default title of the issue that should be replaced. This is\n  to prevent duplicate naming of the issue\n- `update_title`: Used in conjunction with `default_title` to update the title\n  of the issue if it matches the `default_title`. It will replace the original\n  title with\n  `Automated test case #{issue number} opened by {user who opened the issue or 'unknown'}`\n\n# Outputs\n\n- `title`: The title of the issue. It can be the original one or the updated\n- `sanitized_title`: The title of the issue in a clean and sanitized format that\n  can be used as a file name\n- `body`: The original body of the issue\n- `feature`: The Gherkin content extracted from the issue. It is provided as an\n  output so it can be saved into a file\n\n# Usage\n\n```yaml\n- uses: bcgov/action-gherkin-issue-processor@main\n  with:\n    ### Required\n\n    # Issue number\n    issue: 1\n\n    # Target repository owner\n    owner: bcgov-nr\n\n    # Target repository name\n    repo: bcgov/action-gherkin-issue-processor\n```\n\n# Example, Current Repository\n\nRuns when an issue is created. Extracts the Gherkin content from the issue and\nsaves it to a file.\n\n```yaml\non:\n  issues:\n    types:\n      - opened\njobs:\n  feature:\n    name: Extract feature content\n    runs-on: ubuntu-24.04\n    steps:\n      - name: Extract feature content\n        id: feature\n        uses: bcgov/action-gherkin-issue-processor@main\n        with:\n          issue: ${{ github.event.issue.number }}\n      - name: Save feature content\n        run: echo \"${{ steps.feature.outputs.feature }}\" \u003e feature.feature\n```\n\n# Example, Current Repository but more verbose\n\nRuns when an issue is created. Extracts the Gherkin content from the issue and\nsaves it to a file.\n\n```yaml\non:\n  issues:\n    types:\n      - opened\njobs:\n  feature:\n    name: Extract feature content\n    runs-on: ubuntu-24.04\n    steps:\n      - name: Extract feature content\n        id: feature\n        uses: bcgov/action-gherkin-issue-processor@main\n        with:\n          issue: ${{ github.event.issue.number }}\n          owner: ${{ github.repository_owner }}\n          repo: ${{ github.repository }}\n      - name: Save feature content\n        run: echo \"${{ steps.feature.outputs.feature }}\" \u003e feature.feature\n```\n\n# Feedback\n\nPlease contribute your ideas! [Issues] and [pull requests] are appreciated.\n\n\u003c!-- # Acknowledgements\n\nThis Action is provided courtesty of the Forestry Digital Services, part of the Government of British Columbia. --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcgov%2Faction-gherkin-issue-processor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbcgov%2Faction-gherkin-issue-processor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcgov%2Faction-gherkin-issue-processor/lists"}