Project Management Automation: Commit-to-master fails addMilestone task #20144
Labels
[Package] Project management automation
/packages/project-management-automation
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Related: #20058
Describe the bug
Direct commits to the
master
branch will result in a failing action for theaddMilestone
task.See: https://github.com/WordPress/gutenberg/runs/436475328
While commits to master are discouraged and should be rare occurrences, the action should be able to handle this gracefully.
Based on the error message, I suspect that the issue is that
String#match
will returnnull
when there is no match:gutenberg/packages/project-management-automation/lib/add-milestone.js
Line 44 in 38f4914
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/match#Return_value
Before deconstructing the array members, this should check that the result would be non-
null
.The text was updated successfully, but these errors were encountered: