From da27ccc567e107362c76717809feb6260f1005bd Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Mon, 22 Feb 2021 21:11:08 +0100 Subject: [PATCH] Use the config from current branch instead of default branch --- dist/index.js | 2 +- src/github.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index d459c93..2f0c418 100644 --- a/dist/index.js +++ b/dist/index.js @@ -13490,7 +13490,7 @@ async function fetch_config() { owner: context.repo.owner, repo: context.repo.repo, path: config_path, - ref: context.payload.pull_request.base.ref, // base branch name the branch is going into + ref: context.ref, }); const content = Buffer.from(response_body.content, response_body.encoding).toString(); diff --git a/src/github.js b/src/github.js index 3b17195..b2de694 100644 --- a/src/github.js +++ b/src/github.js @@ -40,7 +40,7 @@ async function fetch_config() { owner: context.repo.owner, repo: context.repo.repo, path: config_path, - ref: context.payload.pull_request.base.ref, // base branch name the branch is going into + ref: context.ref, }); const content = Buffer.from(response_body.content, response_body.encoding).toString();