fix(github): return empty in list labels without repo

This commit is contained in:
Ali BARIN
2022-10-19 19:59:58 +02:00
parent 4670e2fe0c
commit 3d836b45bf

View File

@@ -11,6 +11,9 @@ export default {
repoOwner,
repo,
} = getRepoOwnerAndRepo($.step.parameters.repo as string);
if (!repo) return { data: [] };
const firstPageRequest = $.http.get(`/repos/${repoOwner}/${repo}/labels`);
const response = await paginateAll($, firstPageRequest);