{"id":14070614,"url":"https://github.com/JasonEtco/create-an-issue","last_synced_at":"2025-07-30T08:31:09.187Z","repository":{"id":39707087,"uuid":"156906880","full_name":"JasonEtco/create-an-issue","owner":"JasonEtco","description":"A GitHub Action for creating a new issue from a template file.","archived":false,"fork":false,"pushed_at":"2024-02-15T00:16:05.000Z","size":1221,"stargazers_count":282,"open_issues_count":28,"forks_count":88,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-07-10T15:01:26.033Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/JasonEtco.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":"2018-11-09T19:11:54.000Z","updated_at":"2025-06-08T20:05:38.000Z","dependencies_parsed_at":"2024-08-13T07:27:35.372Z","dependency_job_id":null,"html_url":"https://github.com/JasonEtco/create-an-issue","commit_stats":{"total_commits":220,"total_committers":15,"mean_commits":"14.666666666666666","dds":0.35,"last_synced_commit":"ee46187b30bc83f9ee4a11207701bff2cdcbab3f"},"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"purl":"pkg:github/JasonEtco/create-an-issue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonEtco%2Fcreate-an-issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonEtco%2Fcreate-an-issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonEtco%2Fcreate-an-issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonEtco%2Fcreate-an-issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JasonEtco","download_url":"https://codeload.github.com/JasonEtco/create-an-issue/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonEtco%2Fcreate-an-issue/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267835423,"owners_count":24151764,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-08-13T07:07:56.729Z","updated_at":"2025-07-30T08:31:08.886Z","avatar_url":"https://github.com/JasonEtco.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003ch3 align=\"center\"\u003eCreate an Issue Action\u003c/h3\u003e\n\u003cp align=\"center\"\u003eA GitHub Action that creates a new issue using a template file.\u003cp\u003e\n\u003cp align=\"center\"\u003e\u003ca href=\"https://github.com/JasonEtco/create-an-issue\"\u003e\u003cimg alt=\"GitHub Actions status\" src=\"https://github.com/JasonEtco/create-an-issue/workflows/Node%20CI/badge.svg\"\u003e\u003c/a\u003e \u003ca href=\"https://codecov.io/gh/JasonEtco/create-an-issue/\"\u003e\u003cimg src=\"https://badgen.now.sh/codecov/c/github/JasonEtco/create-an-issue\" alt=\"Codecov\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n## Usage\n\nThis GitHub Action creates a new issue based on an issue template file. Here's an example workflow that creates a new issue any time you push a commit:\n\n```yaml\n# .github/workflows/issue-on-push.yml\non: [push]\nname: Create an issue on push\npermissions:\n  contents: read\n  issues: write \njobs:\n  stuff:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v3\n      - uses: JasonEtco/create-an-issue@v2\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\nThis reads from the `.github/ISSUE_TEMPLATE.md` file. This file should have front matter to help construct the new issue:\n\n```markdown\n---\ntitle: Someone just pushed\nassignees: JasonEtco, matchai\nlabels: bug, enhancement\n---\nSomeone just pushed, oh no! Here's who did it: {{ payload.sender.login }}.\n```\n\nYou'll notice that the above example has some `{{ mustache }}` variables. Your issue templates have access to several things about the event that triggered the action. Besides `issue` and `pullRequest`, you have access to all the template variables [on this list](https://github.com/JasonEtco/actions-toolkit#toolscontext). You can also use environment variables:\n\n```yaml\n- uses: JasonEtco/create-an-issue@v2\n  env:\n    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n    ADJECTIVE: great\n```\n\n```markdown\nEnvironment variables are pretty {{ env.ADJECTIVE }}, right?\n```\n\nNote that you can only assign people matching given [conditions](https://help.github.com/en/github/managing-your-work-on-github/assigning-issues-and-pull-requests-to-other-github-users).\n\n### Dates\n\nAdditionally, you can use the `date` filter and variable to show some information about when this issue was created:\n\n```markdown\n---\ntitle: Weekly Radar {{ date | date('dddd, MMMM Do') }}\n---\nWhat's everyone up to this week?\n```\n\nThis example will create a new issue with a title like **Weekly Radar Saturday, November 10th**. You can pass any valid [Moment.js formatting string](https://momentjs.com/docs/#/displaying/) to the filter.\n\n### Custom templates\n\nDon't want to use `.github/ISSUE_TEMPLATE.md`? You can pass an input pointing the action to a different template:\n\n```yaml\nsteps:\n  - uses: actions/checkout@v3\n  - uses: JasonEtco/create-an-issue@v2\n    env:\n      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n    with:\n      filename: .github/some-other-template.md\n```\n\n### Inputs\n\nWant to use Action logic to determine who to assign the issue to, to assign a milestone or to update an existing issue with the same title? You can pass an input containing the following options:\n\n```yaml\nsteps:\n  - uses: actions/checkout@v3\n  - uses: JasonEtco/create-an-issue@v2\n    env:\n      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n    with:\n      assignees: JasonEtco, octocat\n      milestone: 1\n      update_existing: true\n      search_existing: all\n```\n\n* The `assignees` and `milestone` speak for themselves.\n* The `update_existing` param can be passed and set to `true` when you want to update an open issue with the **exact same title** when it exists and `false` if you don't want to create a new issue, but skip updating an existing one.\n* The `search_existing` param lets you specify whether to search `open`, `closed`, or `all` existing issues for duplicates (default is `open`).\n\n### Outputs\n\nIf you need the number or URL of the issue that was created for another Action, you can use the `number` or `url` outputs, respectively. For example:\n\n```yaml\nsteps:\n  - uses: JasonEtco/create-an-issue@v2\n    env:\n      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n    id: create-issue\n  - run: 'echo Created issue number ${{ steps.create-issue.outputs.number }}'\n  - run: 'echo Created ${{ steps.create-issue.outputs.url }}'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJasonEtco%2Fcreate-an-issue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJasonEtco%2Fcreate-an-issue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJasonEtco%2Fcreate-an-issue/lists"}