Skip to content

Commit

Permalink
Change good_first_issue filter to show issues updated within the last…
Browse files Browse the repository at this point in the history
… two years #77
  • Loading branch information
andrew committed Nov 29, 2023
1 parent 0dd5b8f commit ffd1288
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', 'Good First Issue','hacktoberfest', 'Hacktoberfest']) }
scope :good_first_issue, -> { openclimateaction.where(pull_request: false, state: 'open').where('issues.created_at > ?', 2.years.ago) }
scope :good_first_issue, -> { openclimateaction.where(pull_request: false, state: 'open').where('issues.updated_at > ?', 2.years.ago) }

def old_labels
JSON.parse(labels_raw)
Expand Down

0 comments on commit ffd1288

Please sign in to comment.