Skip to content

Commit

Permalink
Merge pull request #182 from github/parkerbxyz/bugfix
Browse files Browse the repository at this point in the history
Remove duplicate logic
  • Loading branch information
zkoppert authored Jan 9, 2024
2 parents 7035a0c + fc015f3 commit 439fad5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
6 changes: 0 additions & 6 deletions issue_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -258,10 +256,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()
Expand Down

0 comments on commit 439fad5

Please sign in to comment.