Skip to content

Commit

Permalink
Merge pull request #124248 from community/mgriffin/code-security
Browse files Browse the repository at this point in the history
Add the Code Security category
  • Loading branch information
mgriffin committed May 17, 2024
2 parents f06b996 + f17eed7 commit d3450f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/lib/discussions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def self.all(owner: nil, repo: nil)
return [] if owner.nil? || repo.nil?

cutoff_date = Time.now.advance(days: -60).to_date.to_s
searchquery = "repo:#{owner}/#{repo} is:unanswered is:open is:unlocked updated:<#{cutoff_date} category:Copilot category:Accessibility category:\\\"Projects and Issues\\\" category:Sponsors category:Actions category:\\\"API and Webhooks\\\" category:\\\"Code Search and Navigation\\\" label:Question"
searchquery = "repo:#{owner}/#{repo} is:unanswered is:open is:unlocked updated:<#{cutoff_date} category:Copilot category:Accessibility category:\\\"Projects and Issues\\\" category:Sponsors category:Actions category:\\\"API and Webhooks\\\" category:\\\"Code Search and Navigation\\\" category: \\\"Code Security\\\" label:Question"

query = <<~QUERY
{
Expand Down Expand Up @@ -72,7 +72,7 @@ def self.to_be_closed(owner: nil, repo: nil)
return [] if owner.nil? || repo.nil?

cutoff_date = Time.now.advance(days: -30).to_date.to_s
searchquery = "repo:#{owner}/#{repo} is:unanswered is:open is:unlocked updated:<#{cutoff_date} category:Copilot category:Accessibility category:\\\"Projects and Issues\\\" category:Sponsors category:Actions category:\\\"API and Webhooks\\\" category:\\\"Code Search and Navigation\\\" label:Question label:inactive"
searchquery = "repo:#{owner}/#{repo} is:unanswered is:open is:unlocked updated:<#{cutoff_date} category:Copilot category:Accessibility category:\\\"Projects and Issues\\\" category:Sponsors category:Actions category:\\\"API and Webhooks\\\" category:\\\"Code Search and Navigation\\\" category: \\\"Code Security\\\" label:Question label:inactive"

query = <<~QUERY
{
Expand Down Expand Up @@ -135,7 +135,7 @@ def self.to_be_closed(owner: nil, repo: nil)
def self.to_remove_label(owner: nil, repo: nil)
return [] if owner.nil? || repo.nil?

searchquery = "repo:#{owner}/#{repo} is:unanswered is:open category:Copilot category:Accessibility category:\\\"Projects and Issues\\\" category:Sponsors category:Actions category:\\\"API and Webhooks\\\" category:\\\"Code Search and Navigation\\\" label:Question label:inactive"
searchquery = "repo:#{owner}/#{repo} is:unanswered is:open category:Copilot category:Accessibility category:\\\"Projects and Issues\\\" category:Sponsors category:Actions category:\\\"API and Webhooks\\\" category:\\\"Code Search and Navigation\\\" category: \\\"Code Security\\\" label:Question label:inactive"

query = <<~QUERY
{
Expand Down

1 comment on commit d3450f7

@ButteredHerBiscuits11
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


**reason.You're**

Please sign in to comment.