{"id":19880484,"url":"https://github.com/wesleyscholl/discussion-auto-responder","last_synced_at":"2025-08-01T07:15:26.348Z","repository":{"id":195556431,"uuid":"693158777","full_name":"wesleyscholl/discussion-auto-responder","owner":"wesleyscholl","description":"A GitHub Action that Auto Responds to New Discussions with a Preset Comment or Welcome Message  💬⏳📝","archived":false,"fork":false,"pushed_at":"2023-11-15T21:06:50.000Z","size":4985,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-19T17:54:29.584Z","etag":null,"topics":["actions","automated","automation","autoresponder","comment","comment-system","comments","discuss","discussion","discussion-board","discussion-forum","github","github-actions","github-workflows","workflow"],"latest_commit_sha":null,"homepage":"https://github.com/wesleyscholl/discussion-auto-responder","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/wesleyscholl.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}},"created_at":"2023-09-18T13:18:58.000Z","updated_at":"2024-05-24T01:38:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"7b99c98a-f3e9-47b2-a188-2a06ddc26a71","html_url":"https://github.com/wesleyscholl/discussion-auto-responder","commit_stats":null,"previous_names":["wesleyscholl/discussion-auto-responder"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesleyscholl%2Fdiscussion-auto-responder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesleyscholl%2Fdiscussion-auto-responder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesleyscholl%2Fdiscussion-auto-responder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesleyscholl%2Fdiscussion-auto-responder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wesleyscholl","download_url":"https://codeload.github.com/wesleyscholl/discussion-auto-responder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233517520,"owners_count":18688091,"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":["actions","automated","automation","autoresponder","comment","comment-system","comments","discuss","discussion","discussion-board","discussion-forum","github","github-actions","github-workflows","workflow"],"created_at":"2024-11-12T17:11:31.480Z","updated_at":"2025-01-11T18:09:42.049Z","avatar_url":"https://github.com/wesleyscholl.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discussion Autoresponder 💬⏳📝\n\nAutorespond to New Discussions with a Preset Comment or Welcome Message\n\n[![Tests](https://img.shields.io/badge/tests-passing-gree.svg?logo=typescript\u0026colorA=24292e\u0026logoColor=white)](https://github.com/wesleyscholl/discussion-auto-responder/blob/main/src/__tests__/index.test.ts)  ![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/wesleyscholl/discussion-auto-responder/.github%2Fworkflows%2Fnode.js.yml?colorA=24292e\u0026logo=github) ![GitHub Release Date - Published_At](https://img.shields.io/github/release-date/wesleyscholl/discussion-auto-responder?colorA=24292e\u0026logo=github) [![coverage badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/wesleyscholl/10f0b77400703c4a65f38434106adf2d/raw/7d6163b890d0e81fa5e7054592b7db200ac1f54c/discussion-auto-responder__heads_main.json?\u0026colorA=24292e\u0026label=test%20coverage)](https://gist.github.com/wesleyscholl/10f0b77400703c4a65f38434106adf2d)  [![GitHub Marketplace](https://img.shields.io/badge/marketplace-Discussion%20Auto%20Responder-blue.svg?colorA=24292e\u0026colorB=7F00FF\u0026style=flat\u0026longCache=true\u0026logo=githubactions\u0026logoColor=white)](https://github.com/marketplace/actions/discussion-auto-responder) ![GitHub package.json dynamic](https://img.shields.io/github/package-json/name/wesleyscholl/discussion-auto-responder?colorA=24292e\u0026colorB=7F00FF\u0026logo=github) ![Dynamic YAML Badge](https://img.shields.io/badge/dynamic/yaml?url=https%3A%2F%2Fraw.githubusercontent.com%2Fwesleyscholl%2Fdiscussion-auto-responder%2Fmain%2F.github%2Fworkflows%2Frespond.yml\u0026query=%24.jobs.autorespond.name\u0026colorA=24292e\u0026colorB=7F00FF\u0026logo=yaml\u0026label=description) [![Code Style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?logo=prettier\u0026colorA=24292e\u0026logoColor=white\u0026colorB=7F00FF)](https://github.com/prettier/prettier) [![Code Linter: ESLint](https://img.shields.io/badge/code_linter-eslint-ff69b4.svg?logo=eslint\u0026colorA=24292e\u0026logoColor=white\u0026colorB=7F00FF)](https://github.com/prettier/prettier) ![GitHub top language](https://img.shields.io/github/languages/top/wesleyscholl/discussion-auto-responder?colorA=24292e\u0026colorB=7F00FF\u0026logo=typescript\u0026logoColor=white) ![GitHub contributors](https://img.shields.io/github/contributors/wesleyscholl/discussion-auto-responder?colorA=24292e\u0026colorB=7F00FF\u0026logo=github\u0026logoColor=white)  ![GitHub Discussions](https://img.shields.io/github/discussions/wesleyscholl/discussion-auto-responder?colorA=24292e\u0026colorB=7F00FF\u0026logo=github\u0026logoColor=white) ![GitHub Release (with filter)](https://img.shields.io/github/v/release/wesleyscholl/discussion-auto-responder?colorA=24292e\u0026colorB=7F00FF\u0026logo=github)  ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/wesleyscholl/discussion-auto-responder?colorA=24292e\u0026colorB=7F00FF\u0026logo=github) ![GitHub repo size](https://img.shields.io/github/repo-size/wesleyscholl/discussion-auto-responder?colorA=24292e\u0026colorB=7F00FF\u0026logo=github) ![GitHub package.json dynamic](https://img.shields.io/github/package-json/author/wesleyscholl/discussion-auto-responder?colorA=24292e\u0026colorB=7F00FF\u0026logo=github) [![MIT](https://img.shields.io/badge/license-MIT-blue?colorA=24292e\u0026colorB=7F00FF\u0026logo=github)](https://raw.githubusercontent.com/wesleyscholl/discussion-auto-responder/main/LICENSE)\n\n\n\n\n## About\n\nDiscussion Autoresponder allows you to automatically create comments on new GitHub Discussions with a GitHub Action. This could be used to post a welcome comment, a message for responding back to new discussion topics, and other use cases. \n\n\n## Usage\n\nIn your workflow, to create a new discussion autoresponder for new discussion topics, include a step like this:\n\n\n```yaml\n- name: Run discussion-auto-responder\n  uses: wesleyscholl/discussion-auto-responder@v1.0.8\n  id: autoresponder-comment\n  with:\n   GITHUB_TOKEN: \"${{ secrets.GITHUB_TOKEN }}\" # Optional, if you wish you can use: \"${{ secrets.\u003cYOUR_PAT_TOKEN\u003e }}\"  \n   comment_body: \"This comment was generated by the Discussion Autoresponder GitHub Action.\" # Also optional, this is the default message.\n   delay_milliseconds: 5000 # Optional to delay a comment after newly posted discussion. Written in milliseconds (ms), default 5000 ms = 5 seconds.        \n       \n```\n\n**To function as intended, ensure you have the following in your workflow:**\n\n```yaml\non: \n  discussion: \n    types: [created] \n```\n\n## Requirements\n\nTo run this action, the Action Workflow permissions require read and write permissions in the repository for all scopes. \n\nTo configure this, go to:\n\n- Repository Settings\n- Actions\n- Generally\n- Workflow Permissions\n\n- Then select: \"Read and write permissions - Workflows have read and write permissions in the repository for all scopes.\"\n- Finally click the save button.\n\n\n## Config Screenshot\n\u003cbr\u003e\n\u003cimg width=\"1118\" alt=\"Screenshot 2023-09-19 at 4 37 29 PM\" src=\"https://github.com/wesleyscholl/discussion-auto-responder/assets/128409641/5fd335d8-e57c-4482-952c-210009a5508a\"\u003e\n\n\n## Action Inputs\n\n| Name | Description | Requried? | Default |\n| --- | --- | --- | --- |\n| `GITHUB_TOKEN` | A GitHub PAT is required, but the default is sufficient for public repos. For private repos, ensure you create a PAT that has `discussion: write` and `repo: write`, then store it as an action secret for usage within the workflow. See more details about tokens here. [PAT](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token). | **No** | `${{ secrets.GITHUB_TOKEN }}` | \n| `comment_body` | The contents of the autoresponder comment in string format. | **No** | `\"This comment was generated by the Discussion Autoresponder GitHub Action.\"` |\n| `delay_milliseconds` | Amount of delay time before the autoresponder comment is posted. Written in milliseconds (ms). | **No** | `5000` |\n\n\n\n## Action Outputs\n\n| Name | Description | How To Access |\n| --- | --- | --- |\n| `discussionId` | The node id of the discussion where the autoresponder comment was posted. | `${{ steps.\u003cyour-step\u003e.outputs.discussionId }}` |\n| `commentId` | The comment id posted in the discussion. | `${{ steps.\u003cyour-step\u003e.outputs.commentId }}` |\n| `commentBody` | The body of the comment posted. | `${{ steps.\u003cyour-step\u003e.outputs.commentBody }}` |\n| `clientMutationId` | The unique GraphQL client id. | `${{ steps.\u003cyour-step\u003e.outputs.clientMutationId }}` |\n\n\n\n#### Example Usage To Access Outputs \n```yml\n- name: Show Output\n  run: |\n    echo \"discussionId = ${{ steps.autorespond.outputs.discussionId }}\"\n    echo \"commentId = ${{ steps.autorespond.outputs.commentId }}\"\n    echo \"commentBody = ${{ steps.autorespond.outputs.commentBody }}\"\n    echo \"clientMutationId = ${{ steps.autorespond.outputs.clientMutationId }}\"\n```\n\n\n\n\n## Example\n\nExample [workflow](https://github.com/wesleyscholl/discussion-auto-responder/blob/main/.github/workflows/respond.yml) can be found here.\n\n\n\n## Credits\n\n- [Create and Publish a GitHub Action in Typescript - Leonardo Montini](https://leonardomontini.dev/typescript-github-action)\n- [Coverage Badge with GitHub Actions - FINALLY!](https://dev.to/thejaredwilcurt/coverage-badge-with-github-actions-finally-59fa)\n\n### Inspired by:\n- [peter-evans/create-or-update-comment](https://github.com/peter-evans/create-or-update-comment)\n- [abirismyname/create-discussion](https://github.com/abirismyname/create-discussion)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesleyscholl%2Fdiscussion-auto-responder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwesleyscholl%2Fdiscussion-auto-responder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesleyscholl%2Fdiscussion-auto-responder/lists"}