Skip to content

Commit

Permalink
Use the config from current branch instead of default branch
Browse files Browse the repository at this point in the history
  • Loading branch information
hex0cter committed Feb 22, 2021
1 parent de08bc0 commit da27ccc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit da27ccc

Please sign in to comment.