Skip to content

Remove and ignore .coverage file #29

Remove and ignore .coverage file

Remove and ignore .coverage file #29

name: link-to-checklist
on:
workflow_dispatch:
pull_request_target:
types: [opened]
jobs:
add-review-checklist:
if : ${{ github.event_name == 'pull_request_target' && github.event.action == 'opened' && startsWith(github.event.pull_request.title, 'ingestion') == true}}
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Print event details
run: |
echo "Event Name: ${{ github.event_name }}"
echo "Action: ${{ github.event.action }}"
echo "PR Title: ${{ github.event.pull_request.title }}"
echo "Starts with ingestion: ${{ startsWith(github.event.pull_request.title, 'ingestion') }}"
- name: Add review checklist
uses: actions/github-script@v6
with:
script: |
const fs = require('fs');
const review_checklist = fs.readFileSync('.github/ingestion-review-checklist.md', 'utf8');
github.rest.pulls.update({
pull_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: context.payload.pull_request.body + review_checklist,
});