Skip to content

Commit cdb8f06

Browse files
authored
Update update-roadmap-project-dates.yml
1 parent cf473a3 commit cdb8f06

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/update-roadmap-project-dates.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ jobs:
2222
const fieldStartId = "PVTF_lADOBVR2-M4A2QVfzgrvSF4"; // Replace with Start Date field node ID
2323
const fieldPublishId = "PVTF_lADOBVR2-M4A2QVfzgrvSMA"; // Replace with Publish Date field node ID
2424
25-
const label = context.payload.label.name;
25+
const label = context.payload.label ? context.payload.label.name : null;
26+
27+
if (!label) {
28+
console.log("No label found in the payload.");
29+
return;
30+
}
2631
const prNodeId = context.payload.pull_request.node_id;
2732
2833
// Get the project item for this PR

0 commit comments

Comments
 (0)