We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60f1dea commit 389af2eCopy full SHA for 389af2e
scripts/update-endpoints/docs.js
@@ -43,9 +43,13 @@ ${param.description}
43
const requiredParameterNames = endpoint.parameters
44
.filter(parameter => parameter.required)
45
.map(parameter => parameter.name);
46
- const example = `octokit.${endpoint.scope}.${
47
- endpoint.id
48
- }(${requiredParameterNames.join(", ")})`;
+ const example =
+ `octokit.${endpoint.scope}.${endpoint.id}` +
+ (requiredParameterNames.length
49
+ ? `({
50
+ ${requiredParameterNames.join(",\n")}
51
+ })`
52
+ : "()");
53
54
const content = `
55
# ${endpoint.name}
0 commit comments