From 182c08bee110edf9d88abac141b7bed2d332c38f Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Sun, 26 Aug 2018 00:25:59 +0300 Subject: [PATCH] refactor(docs-infra): fix method name (getPrfromBranch --> getPrFromBranch) (#25671) PR Close #25671 --- .../scripts-js/lib/preview-server/build-retriever.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aio/aio-builds-setup/dockerbuild/scripts-js/lib/preview-server/build-retriever.ts b/aio/aio-builds-setup/dockerbuild/scripts-js/lib/preview-server/build-retriever.ts index 34b05103f6..af26b9eb70 100644 --- a/aio/aio-builds-setup/dockerbuild/scripts-js/lib/preview-server/build-retriever.ts +++ b/aio/aio-builds-setup/dockerbuild/scripts-js/lib/preview-server/build-retriever.ts @@ -34,7 +34,7 @@ export class BuildRetriever { const buildInfo = await this.api.getBuildInfo(buildNum); const githubInfo: GithubInfo = { org: buildInfo.username, - pr: getPrfromBranch(buildInfo.branch), + pr: getPrFromBranch(buildInfo.branch), repo: buildInfo.reponame, sha: buildInfo.vcs_revision, success: !buildInfo.failed, @@ -73,7 +73,7 @@ export class BuildRetriever { } } -function getPrfromBranch(branch: string): number { +function getPrFromBranch(branch: string): number { // CircleCI only exposes PR numbers via the `branch` field :-( const match = /^pull\/(\d+)$/.exec(branch); if (!match) {