{"id":17136316,"url":"https://github.com/abirismyname/create-discussion","last_synced_at":"2026-06-23T09:30:18.497Z","repository":{"id":37797990,"uuid":"468492223","full_name":"abirismyname/create-discussion","owner":"abirismyname","description":"Create a new GitHub Discussion with GitHub Actions","archived":false,"fork":false,"pushed_at":"2024-06-03T10:41:25.000Z","size":30626,"stargazers_count":14,"open_issues_count":7,"forks_count":8,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T10:18:31.189Z","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":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abirismyname.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-10T19:58:34.000Z","updated_at":"2025-02-12T17:32:27.000Z","dependencies_parsed_at":"2024-04-29T11:42:58.119Z","dependency_job_id":null,"html_url":"https://github.com/abirismyname/create-discussion","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abirismyname%2Fcreate-discussion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abirismyname%2Fcreate-discussion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abirismyname%2Fcreate-discussion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abirismyname%2Fcreate-discussion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abirismyname","download_url":"https://codeload.github.com/abirismyname/create-discussion/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240271523,"owners_count":19774859,"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-10-14T20:01:30.563Z","updated_at":"2026-06-23T09:30:18.443Z","avatar_url":"https://github.com/abirismyname.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Create-Discussion\n\nCreate a new GitHub Discussion with GitHub Actions\n\n ![](https://github.com/abirismyname/create-discussion/workflows/tests/badge.svg) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n\n## About\n\nThis action allows you to create a new GitHub Discussion with GitHub Actions.\n\n## Usage\n\nIn your workflow, to create a new discussion, include a step like this:\n\n```yaml\n    - name: Create a new GitHub Discussion\n      id: create-discussion\n      uses: abirismyname/create-discussion@v1.x\n      env:\n        GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}      \n      with:\n        title: Feelings\n        body: |\n          Let's talk!\n        repository-id: ${{ secrets.REPO_ID }}\n        category-id: ${{ secrets.CAT_ID }}  \n    - name: Print discussion url and id\n      run: |\n        echo discussion-id: ${{steps.create-discussion.outputs.discussion-id}} \n        echo discussion-url: ${{steps.create-discussion.outputs.discussion-url}}             \n```\n\n## Inputs\n\nThe following inputs are _required_:\n\n- `title`: The title of the discussion\n- `body`: The body of the discussion\n- `body-filepath`: The path to a file containing the body of the new discussion (takes precedence over `body`).**\n- `repository-id`: The ID of the repository for the new discussion\n- `category-id`: The ID of the category for the new discussion. \n\n** If you are using `body-filepath` be sure to add a `actions/checkout` action before this action in the workflow to make sure the file exists in the action workspace.\n\n### Obtaining the `repository-id` and `category-id`\nYou can find `repository-id` and `category-id` using [GitHub's GraphQL Explorer](https://docs.github.com/en/graphql/overview/explorer). Replace `\u003cREPO_NAME\u003e` and `\u003cREPO_OWNER\u003e` with the repo you want to update.\n```graphql\nquery MyQuery {\n  repository(name: \"\u003cREPO_NAME\u003e\", owner: \"\u003cREPO_OWNER\u003e\") {\n    id\n    discussionCategories(first: 10) {\n      edges {\n        node {\n          id\n          name\n        }\n        cursor\n      }\n    }\n  }\n}\n```\n\n## Outputs\n\nThis action provides the following outputs:\n\n- `discussion-id`: ID of created discussion\n- `discussion-url`: URL of created discussion\n\n## Example\n\nThis repo contains an example [workflow](https://github.com/abirismyname/create-discussion/blob/main/.github/workflows/example.yml) that contains this action.\n\n## Credits\n\n- :bow: Based on [swinton/commit](https://github.com/swinton/commit).\n- :bow: [@imjohnbo](imjohnbo) for the inspiration.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabirismyname%2Fcreate-discussion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabirismyname%2Fcreate-discussion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabirismyname%2Fcreate-discussion/lists"}