kiegroup / git-backporting

Git backporting is a CLI tool to execute pull request backporting.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

improve performance by concurrently setting labels, reviewers and assignees

shubhbapna opened this issue · comments

Currently we are setting labels, reviewers and assignees one by one. See: https://github.com/kiegroup/git-backporting/blob/main/src/service/git/github/github-client.ts#L69

However, we can take advantage of promises here and trigger all the API calls concurrently and await them together. We can use Promise.all or Promise.allSettled