use context to declutter the popup modal logic in dynamic form #81
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR Description Check | |
on: | |
pull_request: | |
types: | |
[ | |
opened, | |
edited, | |
reopened, | |
labeled, | |
unlabeled, | |
ready_for_review, | |
synchronize, | |
] | |
jobs: | |
check-pr-description: | |
runs-on: ubuntu-latest | |
env: | |
PR_DESCRIPTION: "${{ github.event.pull_request.body }}" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Check PR Description | |
run: | | |
if [[ ! $PR_DESCRIPTION =~ 'OVERRIDE=PR_DESCRIPTION_CHECK_OVERRIDE' ]]; then | |
bash scripts/check_pr_description.sh "$PR_DESCRIPTION" | |
else | |
echo "This check was overridden by PR_DESCRIPTION_CHECK_OVERRIDE in the PR description" | |
fi |