Skip to content

remove pydantic warnings #31

remove pydantic warnings

remove pydantic warnings #31

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);
}