We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d688374 commit dc4cf49Copy full SHA for dc4cf49
1 file changed
.github/workflows/copilot_labeller.yml
@@ -121,10 +121,14 @@ jobs:
121
}
122
}' > repository_label_data.json
123
124
- echo 'LABEL_ID='$(jq '.data.repository.labels.edges[].node | .id ' repository_label_data.json) >> $GITHUB_ENV
+ LABEL_ID=$(jq -r '.data.repository.labels.edges[0]?.node?.id // empty' repository_label_data.json)
125
+ if [ -z "$LABEL_ID" ]; then
126
+ echo "No matching label found for the selected area. Skipping labeling step."
127
+ fi
128
+ echo "LABEL_ID=$LABEL_ID" >> $GITHUB_ENV
129
130
- name: Label the discussion
- if: ${{ steps.get_selected_feature_area.outputs.result != '' }}
131
+ if: ${{ steps.get_selected_feature_area.outputs.result != '' && env.LABEL_ID != '' }}
132
env:
133
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
134
run: |
0 commit comments