feat(stackoverflow): add search, hot, unanswered, and bounties commands (#116)

This commit is contained in:
VK authored and GitHub committed 2026-03-20 14:10:15 +08:00
1 parent ce38a1604e
commit b60c69950d
4 files changed
+117

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
site: stackoverflow
name: bounties
description: Active bounties on Stack Overflow
domain: stackoverflow.com
strategy: public
browser: false
args:
limit:
type: int
default: 10
description: Max number of results
pipeline:
- fetch:
url: https://api.stackexchange.com/2.3/questions/featured?order=desc&sort=activity&site=stackoverflow
- select: items
- map:
title: "${{ item.title }}"
bounty: "${{ item.bounty_amount }}"
score: "${{ item.score }}"
answers: "${{ item.answer_count }}"
url: "${{ item.link }}"
- limit: ${{ args.limit }}
columns: [bounty, title, score, answers, url]
+28
View File
@@ -0,0 +1,28 @@
site: stackoverflow
name: hot
description: Hot Stack Overflow questions
domain: stackoverflow.com
strategy: public
browser: false
args:
limit:
type: int
default: 10
description: Max number of results
pipeline:
- fetch:
url: https://api.stackexchange.com/2.3/questions?order=desc&sort=hot&site=stackoverflow
- select: items
- map:
title: "${{ item.title }}"
score: "${{ item.score }}"
answers: "${{ item.answer_count }}"
url: "${{ item.link }}"
- limit: ${{ args.limit }}
columns: [title, score, answers, url]
+32
View File
@@ -0,0 +1,32 @@
site: stackoverflow
name: search
description: Search Stack Overflow questions
domain: stackoverflow.com
strategy: public
browser: false
args:
query:
type: string
required: true
description: Search query
limit:
type: int
default: 10
description: Max number of results
pipeline:
- fetch:
url: https://api.stackexchange.com/2.3/search/advanced?order=desc&sort=relevance&q=${{ args.query }}&site=stackoverflow
- select: items
- map:
title: "${{ item.title }}"
score: "${{ item.score }}"
answers: "${{ item.answer_count }}"
url: "${{ item.link }}"
- limit: ${{ args.limit }}
columns: [title, score, answers, url]
+28
View File
@@ -0,0 +1,28 @@
site: stackoverflow
name: unanswered
description: Top voted unanswered questions on Stack Overflow
domain: stackoverflow.com
strategy: public
browser: false
args:
limit:
type: int
default: 10
description: Max number of results
pipeline:
- fetch:
url: https://api.stackexchange.com/2.3/questions/unanswered?order=desc&sort=votes&site=stackoverflow
- select: items
- map:
title: "${{ item.title }}"
score: "${{ item.score }}"
answers: "${{ item.answer_count }}"
url: "${{ item.link }}"
- limit: ${{ args.limit }}
columns: [title, score, answers, url]