Skip to content

Support undisturbed ground temperature models on GroundHeatExchangerVertical #646

Support undisturbed ground temperature models on GroundHeatExchangerVertical

Support undisturbed ground temperature models on GroundHeatExchangerVertical #646

Workflow file for this run

name: Verify Pull Request Labeling
on:
pull_request:
types: [opened, labeled, unlabeled, synchronize]
jobs:
check_pr_labels:
runs-on: ubuntu-latest
steps:
- name: Verify PR Labels
shell: python
run: |
import json
labels = json.loads("""${{ toJson(github.event.pull_request.labels) }}""")
labels = [x['name'] for x in labels]
print("PR labels: {}".format(labels))
expected_min_labels = ['NewTest', 'TestFix', 'NewTestForExisting', 'Other']
if not any([x in expected_min_labels for x in labels]):
raise ValueError("Expected minimum one label in {}".format(expected_min_labels))
if 'NewTest' in labels:
if sum([x in ['PendingOSM', 'AddedOSM'] for x in labels]) != 1:
raise ValueError("When using 'NewTest', you need to add exactly one of 'PendingOSM' or 'AddedOSM' as well")