From 69f97be3fad7c5aa188d45ce0cb1791424340bc1 Mon Sep 17 00:00:00 2001 From: Andrew Nesbitt Date: Wed, 29 Nov 2023 08:51:46 +0000 Subject: [PATCH] increase timespan of good_first_issue to 2 years #78 --- app/models/issue.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/issue.rb b/app/models/issue.rb index 6b4ca82..690519e 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -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)