Fix payment loading for custom payment pages #730
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: 'Label Check' | |
on: | |
pull_request: | |
types: [opened, synchronize, labeled, unlabeled] | |
jobs: | |
check-label: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check labels | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
const labels = context.payload.pull_request.labels; | |
const required_labels = ['kind/breaking-change', 'kind/product-feature', 'kind/bug', 'kind/other', 'kind/dependencies', 'ignore-for-release']; | |
const hasMatchingLabel = labels.some((label) => required_labels.includes(label.name)); | |
if (!hasMatchingLabel) { | |
core.setFailed('The PR must have one of the following labels:\n- ' + required_labels.join('\n- ')); | |
} |