Skip to content

[RFE] future-proof stricter py3.14+ event_loop use #217

[RFE] future-proof stricter py3.14+ event_loop use

[RFE] future-proof stricter py3.14+ event_loop use #217

Workflow file for this run

name: issue-announce
on:
issues:
types: [opened]
permissions: {}
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Git Issue Details
env:
ISSUE_TITLE: ${{ github.event.issue.title }}
ISSUE_CREATOR: ${{ github.event.issue.user.login }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
ISSUE_URL: ${{ github.event.issue.html_url }}
run: |
echo "Issue creator: $ISSUE_CREATOR"
echo "Issue title: $ISSUE_TITLE"
echo "Issue number: $ISSUE_NUMBER"
echo "Issue url: $ISSUE_URL"
- name: Google Chat Notification
env:
WEBHOOK_URL: ${{ secrets.WEBHOOK }}
ISSUE_TITLE: ${{ github.event.issue.title }}
ISSUE_CREATOR: ${{ github.event.issue.user.login }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
ISSUE_URL: ${{ github.event.issue.html_url }}
run: |
MESSAGE="[$ISSUE_NUMBER] $ISSUE_URL $ISSUE_TITLE ($ISSUE_CREATOR)"
JSON_PAYLOAD=$(jq -n --arg txt "$MESSAGE" '{text: $txt}')
curl --fail --location --request POST "$WEBHOOK_URL" \
--header 'Content-Type: application/json; charset=UTF-8' \
--data "$JSON_PAYLOAD"