diff --git a/action.yaml b/action.yaml index a92aa84..f456acf 100644 --- a/action.yaml +++ b/action.yaml @@ -70,7 +70,7 @@ runs: preview="preview.png" echo "PREVIEW_NAME=$preview" >> "$GITHUB_ENV" echo "PREVIEW_URL=https://$org.github.io/$repo$extra/$preview?v=$preview_date" >> "$GITHUB_ENV" - if [ "${{ env.BACKLOG_STATUS }}" -eq 0 ]; then + if [ "${{ env.BACKLOG_STATUS }}" == 0 ]; then color="#55cc33" else color="#cc3333" diff --git a/backlogger.py b/backlogger.py index 9a9dab9..73aea8c 100755 --- a/backlogger.py +++ b/backlogger.py @@ -140,7 +140,7 @@ def render_table(data): return (all_good, rows, bad_queries) def remove_project_part_from_url(url): - return(re.sub("projects\/.*\/", "", url)) + return(re.sub("projects/.*/", "", url)) def cycle_time(issue, status_ids): start = datetime.strptime(issue["created_on"], "%Y-%m-%dT%H:%M:%SZ")