public static async IsPullRequestExists()

in src/localizationStringsUploader.ts [289:306]


    public static async IsPullRequestExists(owner: string, repo: string, head: string): Promise<boolean> {
        return GithubApiCreator.CreateGithubApi().pullRequests.getAll({
            owner: owner,
            repo: repo
        })
            .then((pullRequests) => {
                let prExists: boolean = false;
                for (let i in pullRequests.data) {
                    let pr = pullRequests.data[i];

                    if (pr.head.label === head) {
                        return true;
                    }
                }

                return false;
            });
    }