remove pydantic warnings #31
Workflow file for this run
This file contains hidden or 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
| name: Commens based on labels | |
| on: | |
| pull_request_target: | |
| types: [labeled] | |
| jobs: | |
| add-comment: | |
| if: | | |
| github.event.label.name == 'first time contributor' && | |
| github.event.pull_request.state == 'open' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| steps: | |
| - name: Add welcome comment | |
| uses: actions/github-script@v6 | |
| with: | |
| script: | | |
| try { | |
| await github.rest.issues.createComment({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.issue.number, | |
| body: `Thanks for the contribution @${context.payload.pull_request.user.login}!! \n\nWe'll review your PR soon, in the mean time- make sure to \n1. [Join our Discord](https://discord.gg/2MMCVs76Sr) \n2. [Introduce yourself to the community](https://github.com/The-AI-Alliance/gofannon/discussions/categories/introductions) \n3. [Star Our Repository](https://github.com/The-AI-Alliance/gofannon) for updates` | |
| }); | |
| } catch (error) { | |
| console.error('Error creating comment:', error); | |
| } |