From a4e91db4163f5446678e5f81c97f16e755fcc48b Mon Sep 17 00:00:00 2001 From: Parker Brown <17183625+parkerbxyz@users.noreply.github.com> Date: Wed, 20 Dec 2023 01:33:59 +0000 Subject: [PATCH 1/3] Remove duplicate string split logic for labels --- issue_metrics.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/issue_metrics.py b/issue_metrics.py index 3a62f05..69e91ff 100644 --- a/issue_metrics.py +++ b/issue_metrics.py @@ -258,10 +258,6 @@ def main(): # Determine if there are label to measure labels = env_vars.labels_to_measure - if labels: - labels = labels.split(",") - else: - labels = [] # Search for issues # If type:discussions is in the search_query, search for discussions using get_discussions() From f82d81b9dea2b10c71faac7dbd213ad0cfde893d Mon Sep 17 00:00:00 2001 From: Parker Brown <17183625+parkerbxyz@users.noreply.github.com> Date: Wed, 20 Dec 2023 01:34:17 +0000 Subject: [PATCH 2/3] Remove duplicate string split logic for ignore_users --- issue_metrics.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/issue_metrics.py b/issue_metrics.py index 69e91ff..033970e 100644 --- a/issue_metrics.py +++ b/issue_metrics.py @@ -137,8 +137,6 @@ def get_per_issue_metrics( issues_with_metrics = [] num_issues_open = 0 num_issues_closed = 0 - if ignore_users is None: - ignore_users = [] for issue in issues: if discussions: From fc015f31f485b04c0b2255c63b418bbac31cfb38 Mon Sep 17 00:00:00 2001 From: Zack Koppert Date: Tue, 9 Jan 2024 14:28:43 -0800 Subject: [PATCH 3/3] install make so that we can do builds --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 344f57b..c47ad10 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,7 @@ COPY requirements.txt *.py /action/workspace/ RUN python3 -m pip install --no-cache-dir -r requirements.txt \ && apt-get -y update \ && apt-get -y install --no-install-recommends git-all=1:2.39.2-1.1 \ + && apt-get install build-essential -y --no-install-recommends \ && rm -rf /var/lib/apt/lists/* CMD ["/action/workspace/issue_metrics.py"]