Skip to content

askuznetsov:html-css-popup #1715

askuznetsov:html-css-popup

askuznetsov:html-css-popup #1715

# This action adds checklists from .github/pr-checklists/
# to PR conversations
# when a PR is targeted at a specific branch (branches)
# and a specific label (labels) are assigned.
#
# Checklist file name must match label name and end with '.md' extension.
#
# This action uses:
# - actions/checkout@v3
# - oleksiyrudenko/[email protected] (an updated fork of machine-learning-apps/pr-comment@master)
on:
pull_request_target:
types: [ labeled ]
branches:
- master
- main
jobs:
pr-basic-checks:
# define Eligible Labels; consider also using startsWith method
# (see also https://docs.github.com/en/actions/learn-github-actions/expressions#startswith)
if: contains( fromJson('["bad-pr-intro", "irrelevant-files", "irrelevant-commits"]'), github.event.label.name )
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# use https://github.com/actions/download-artifact to get templates from a resource other than the PR's targeted branch
# use https://github.com/actions/github-script to use GtiHub Action API methods immediately in the workflow
- uses: oleksiyrudenko/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SOURCES: '["_greeting.md", "${{ github.event.label.name }}.md", "_signature.md"]'
with:
path: .github/pr-checklists/
add-pr-checklist:
# define Eligible Labels; consider also using startsWith method
# (see also https://docs.github.com/en/actions/learn-github-actions/expressions#startswith)
if: contains( fromJson('["task-PopUp", "task-DOM", "task-TJSW", "task-Frogger", "task-TJSW-OOP", "task-Friends"]'), github.event.label.name )
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# use https://github.com/actions/download-artifact to get templates from a resource other than the PR's targeted branch
# use https://github.com/actions/github-script to use GtiHub Action API methods immediately in the workflow
- uses: oleksiyrudenko/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SOURCES: '["_greeting.md", "_requirements_intro.md", "${{ github.event.label.name }}.md", "_requirements_outro.md", "_signature.md"]'
with:
path: .github/pr-checklists/