Skip to content

Commit

Permalink
Resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
wesley-dean-gsa committed Aug 22, 2024
2 parents 0be7e6c + dbd3d2b commit ffd564e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bin/has_newer_commits.bash
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ compare_dates() {
fetch_data "$(build_url "$a")"
fetch_data "$(build_url "$b")"
} | jq \
--raw-output \
--slurp \
'if .[0].commit.commit.author.date < .[1].commit.commit.author.date then true else false end'
--raw-output \
--slurp \
'if .[0].commit.commit.author.date < .[1].commit.commit.author.date then true else false end'
}

build_url() {
Expand All @@ -31,7 +31,7 @@ build_url() {
repo="${item%%@*}"
branch="${item##*@}"

if [ "$branch" == "$repo" ] ; then
if [ "$branch" == "$repo" ]; then
repo="$item"
branch="main"
fi
Expand All @@ -42,6 +42,7 @@ build_url() {
filter_branch_string() {
string="${1:-}"

<<<<<<< HEAD

Check failure

Code scanning / shellcheck (MegaLinter BASH_SHELLCHECK)

SC1073 Error

Couldn't parse this here string. Fix to allow more checks.

Check notice

Code scanning / shellcheck (MegaLinter BASH_SHELLCHECK)

SC1009 Note

The mentioned syntax error was in this simple command.

Check failure

Code scanning / shellcheck (MegaLinter BASH_SHELLCHECK)

SC1072 Error

Fix any mentioned problems and try again.
echo "$string" | tr -cd '[:alnum:]\/\-\_\.\@'
}

Expand Down

0 comments on commit ffd564e

Please sign in to comment.