You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thrown when a configured field configured in the `Project` constructorcannot be found in the project.
1016
+
Thrown when a project cannot be found based on the `owner` and `number` passed to the `Project` constructor. The error is also thrown if the project exists but cannot be found based on authentication.
Thrown when a project cannot be found based on the `owner` and `number` passed to the `Project` constructor. The error is also thrown if the project exists but cannot be found based on authentication.
1076
+
> Project cannot be found
1077
+
1078
+
</td>
1079
+
<tr>
1080
+
<th>
1081
+
<code>details</code>
1082
+
</th>
1083
+
<td>
1084
+
<code>object</code>
1085
+
</td>
1086
+
<td>
1087
+
1088
+
Object with error details
1089
+
1090
+
</td>
1091
+
</tr>
1092
+
<tr>
1093
+
<th>
1094
+
<code>details.owner</code>
1095
+
</th>
1096
+
<td>
1097
+
<code>string</code>
1098
+
</td>
1099
+
<td>
1100
+
1101
+
Login of owner of the project
1102
+
1103
+
</td>
1104
+
</tr>
1105
+
<tr>
1106
+
<th>
1107
+
<code>details.number</code>
1108
+
</th>
1109
+
<td>
1110
+
<code>number</code>
1111
+
</td>
1112
+
<td>
1113
+
1114
+
Number of the project
1115
+
1116
+
</td>
1117
+
</tr>
1118
+
</tbody>
1119
+
</table>
1120
+
1121
+
Example for `error.toHumanMessage()`:
1122
+
1123
+
> Project #1 could not be found for @gr2m
1124
+
1125
+
#### `GitHubProjectUnknownFieldError`
1126
+
1127
+
Thrown when a configured field configured in the `Project` constructor cannot be found in the project.
Names of all project fields as shown in the project
1131
1213
1132
1214
</td>
1133
1215
</tr>
@@ -1136,24 +1218,24 @@ Names of the fields in the project.
1136
1218
<code>details.userFieldName</code>
1137
1219
</th>
1138
1220
<td>
1139
-
<code>string</code>
1221
+
<code>object</code>
1140
1222
</td>
1141
1223
<td>
1142
1224
1143
-
The stringified value set in the API call.
1225
+
Name of the field provided by the user
1144
1226
1145
1227
</td>
1146
1228
</tr>
1147
1229
<tr>
1148
1230
<th>
1149
-
<code>details.userInternalFieldName</code>
1231
+
<code>details.userFieldNameAlias</code>
1150
1232
</th>
1151
1233
<td>
1152
-
<code>string</code>
1234
+
<code>object</code>
1153
1235
</td>
1154
1236
<td>
1155
1237
1156
-
The user-provided alias for the field.
1238
+
Alias of the field name provided by the user
1157
1239
1158
1240
</td>
1159
1241
</tr>
@@ -1162,7 +1244,7 @@ The user-provided alias for the field.
1162
1244
1163
1245
Example for `error.toHumanMessage()`:
1164
1246
1165
-
> "NOPE" could not be matched with any of the existing field names: "Title", "Assignees", "Status", "Labels", "Linked pull requests", "Reviewers", "Repository", "Milestone", "Text", "Number", "Date", "Single select", "Iteration". If the field should be considered optional, then set it to "nope: { name: "NOPE", optional: true}
1247
+
> "NOPE" could not be matched with any of the existing field names: "My text", "My number", "My Date". If the field should be considered optional, then set it to "nope: { name: "NOPE", optional: true}
return`"${this.details.userFieldName}" could not be matched with any of the existing field names: ${projectFieldNames}. If the field should be considered optional, then set it to "${this.details.userInternalFieldName}: { name: "${this.details.userFieldName}", optional: true}`;
37
+
return`"${this.details.userFieldName}" could not be matched with any of the existing field names: ${projectFieldNames}. If the field should be considered optional, then set it to "${this.details.userFieldNameAlias}: { name: "${this.details.userFieldName}", optional: true}`;
0 commit comments