Convert React component to functional component #234
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
issues: | |
types: [labeled] | |
issue_comment: | |
types: [created] | |
permissions: | |
contents: write | |
issues: write | |
pull-requests: write | |
jobs: | |
chatgpt-code-generation: | |
if: ${{ (github.event_name == 'issues' && | |
contains( github.event.label.name, 'Code Generation')) || | |
(github.event_name == 'issue_comment' && | |
github.event.issue.pull_request && | |
contains( github.event.comment.body, 'Generate code!')) }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: ChatGPT Code Generation | |
uses: alexanmtz/write-code-and-create-pr-from-issue-by-chatgpt@main |