Skip to content

Add pitch surfacing workflow for top community issues#12

Merged
tidy-dev merged 6 commits into
mainfrom
tidy-dev/pitch-surfacing-workflow
Mar 10, 2026
Merged

Add pitch surfacing workflow for top community issues#12
tidy-dev merged 6 commits into
mainfrom
tidy-dev/pitch-surfacing-workflow

Conversation

@tidy-dev

@tidy-dev tidy-dev commented Mar 10, 2026

Copy link
Copy Markdown
Contributor

Add pitch surfacing workflow for top community issues

Adds a reusable workflow that automatically surfaces the most-engaged open issues by applying the pitch label, for use in our monthly pitch review meetings.

Acceptance Criteria

  • A reusable workflow_call workflow is available at .github/workflows/pitch-surface-top-issues.yml
  • When triggered, the workflow queries open issues sorted by interactions (reactions + comments) and applies the pitch label to the top N candidates
  • The number of pitched issues never exceeds the configured cap (default: 30) — the workflow counts existing pitched issues and only fills remaining slots
  • Issues that already have the pitch label are excluded from search results
  • Labels specified in exclude_labels are excluded from search results, including labels with spaces (e.g. "help wanted")
  • The workflow is configurable via inputs: pitch_label (default: "pitch"), max_pitched (default: 30), exclude_labels (default: none)
  • Example usage in triage-scheduled-tasks.yml is updated with a monthly cron trigger (0 14 1 * *) and a schedule guard

Testing

Validated in tidy-dev/playground with the following scenarios:

  • Issues with high reactions are surfaced first ✅
  • Issues with high comments (no reactions) are surfaced via interactions sort ✅
  • Issues with an excluded label containing spaces ("help wanted") are correctly skipped ✅
  • The workflow respects the max_pitched cap and only fills available slots ✅

tidy-dev and others added 4 commits March 9, 2026 12:20
Reusable workflow that runs monthly, queries open issues sorted by
community engagement (reactions), and applies the 'pitch' label to
the top N issues (default 30) while respecting a cap so there are
never more than N pitched issues at a time.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Use --repo, --state, --sort, --order flags instead of inline
search query syntax.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@tidy-dev tidy-dev marked this pull request as ready for review March 10, 2026 13:28
Copilot AI review requested due to automatic review settings March 10, 2026 13:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a reusable GitHub Actions workflow to periodically “surface” high-engagement community issues by applying a pitch label, plus an example scheduled usage entry.

Changes:

  • Added reusable workflow pitch-surface-top-issues.yml to label top open issues up to a configurable cap.
  • Updated the example scheduled tasks workflow to run the pitch surfacing job monthly.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
example-usage/triage-scheduled-tasks.yml Adds a monthly cron entry and job invoking the new reusable pitch surfacing workflow.
.github/workflows/pitch-surface-top-issues.yml Implements GH CLI logic to compute remaining “pitch” slots and label top-engagement issues.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/pitch-surface-top-issues.yml Outdated
Comment thread .github/workflows/pitch-surface-top-issues.yml Outdated
Comment thread .github/workflows/pitch-surface-top-issues.yml
tidy-dev and others added 2 commits March 10, 2026 10:38
- Quote label names in search query to handle labels with spaces
- Add --limit to issue count query to avoid undercounting
- Update comment to say interactions (reactions + comments)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
gh search issues doesn't reliably handle -label: negation in the
query arg. Use gh api search/issues directly which properly handles
quoted label names with spaces.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

@mxie mxie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm!

@tidy-dev tidy-dev merged commit b503c13 into main Mar 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants