Skip to content

Commit

Permalink
increase timespan of good_first_issue to 2 years #78
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Nov 29, 2023
1 parent ed0ab07 commit 69f97be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/issue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Issue < ApplicationRecord

scope :label, ->(labels) { where("labels && ARRAY[?]::varchar[]", labels) }
scope :openclimateaction, -> { label(["open climate action", 'help wanted', 'good first issue','hacktoberfest']) }
scope :good_first_issue, -> { openclimateaction.where(pull_request: false, state: 'open').where('issues.created_at > ?', 1.year.ago) }
scope :good_first_issue, -> { openclimateaction.where(pull_request: false, state: 'open').where('issues.created_at > ?', 2.years.ago) }

def old_labels
JSON.parse(labels_raw)
Expand Down

0 comments on commit 69f97be

Please sign in to comment.