Skip to content

Create armstrong.py #46

Create armstrong.py

Create armstrong.py #46

Workflow file for this run

name: Greetings
on:
issues:
types: [opened]
pull_request_target:
types: [opened]
jobs:
greeting:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- name: Greet on issues
if: github.event_name == 'issues'
run: |
curl -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments \
-d '{"body":"Hi there! Thanks for opening this issue. We appreciate your contribution to this open-source project. We aim to respond or assign your issue as soon as possible."}'
- name: Greet on pull requests
if: github.event_name == 'pull_request_target'
run: |
curl -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments \
-d '{"body":"Hi there! Thanks for submitting this pull request. We appreciate your contribution to this open-source project. We aim to review your pull request as soon as possible."}'