Skip to content

feat: Aumentar en decimales si es agranel #4

feat: Aumentar en decimales si es agranel

feat: Aumentar en decimales si es agranel #4

name: Notify Discord on Pull Request
on:
pull_request:
types: [opened]
jobs:
notify-discord:
if: ${{ contains(github.event.pull_request.labels.*.name, 'needs-qa') }}
runs-on: ubuntu-latest
steps:
- name: Send notification to Discord
env:
DISCORD_QA_FRONT: ${{ secrets.DISCORD_QA_FRONT }}
run: |
MENTION="<@481837609199599636>"
PAYLOAD=$(jq -n --arg url "${{ github.event.pull_request.html_url }}" --arg mention "$MENTION" '{"content": "Nuevo pull request que necesita QA: \($url)\nMencionado: \($mention)"}')
curl -H "Content-Type: application/json" -d "$PAYLOAD" $DISCORD_QA_FRONT