Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
johnfoconnor committed Jun 11, 2024
1 parent ec98b4b commit 35af39e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ set -eou pipefail
head_ref=$1
shift

base_ref=$2
base_ref=$1
shift

repo_url=$3
repo_url=$1
shift

fetch=false;
Expand All @@ -18,15 +18,15 @@ while [[ $# -gt 0 ]]; do
case $1 in
--reverse)
extra_flags="${extra_flags} --reverse"
shift # past argument
shift
;;
--fetch)
fetch=true;
shift;
;;
--head_ref_only)
compare_operator=".."
shift # past value
shift
;;
-*|--*)
echo "Unknown option $1"
Expand Down
8 changes: 4 additions & 4 deletions dist/changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ set -eou pipefail
head_ref=$1
shift

base_ref=$2
base_ref=$1
shift

repo_url=$3
repo_url=$1
shift

fetch=false;
Expand All @@ -18,15 +18,15 @@ while [[ $# -gt 0 ]]; do
case $1 in
--reverse)
extra_flags="${extra_flags} --reverse"
shift # past argument
shift
;;
--fetch)
fetch=true;
shift;
;;
--head_ref_only)
compare_operator=".."
shift # past value
shift
;;
-*|--*)
echo "Unknown option $1"
Expand Down
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32088,9 +32088,9 @@ async function run() {
var headRef = (0,_actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput)('head-ref')
var baseRef = (0,_actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput)('base-ref')
const myToken = (0,_actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput)('myToken')
const reverse = (0,_actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput)('reverse')
const fetch = (0,_actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput)('fetch')
const headRefCommitsOnly = (0,_actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput)('headRefCommitsOnly')
const reverse = (0,_actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput)('reverse').toLower() === 'true'
const fetch = (0,_actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput)('fetch').toLower() === 'true'
const headRefCommitsOnly = (0,_actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput)('headRefCommitsOnly').toLower() === 'true'
const octokit = new _actions_github__WEBPACK_IMPORTED_MODULE_2__.getOctokit(myToken)
const { owner, repo } = _actions_github__WEBPACK_IMPORTED_MODULE_2__.context.repo
const regexp = /^[.A-Za-z0-9_/-]*$/
Expand Down
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ async function run() {
var headRef = getInput('head-ref')
var baseRef = getInput('base-ref')
const myToken = getInput('myToken')
const reverse = getInput('reverse')
const fetch = getInput('fetch')
const headRefCommitsOnly = getInput('headRefCommitsOnly')
const reverse = getInput('reverse').toLower() === 'true'
const fetch = getInput('fetch').toLower() === 'true'
const headRefCommitsOnly = getInput('headRefCommitsOnly').toLower() === 'true'
const octokit = new getOctokit(myToken)
const { owner, repo } = context.repo
const regexp = /^[.A-Za-z0-9_/-]*$/
Expand Down

0 comments on commit 35af39e

Please sign in to comment.