[PR #4] [MERGED] feat: add assign-prs-to-author reusable workflow #15

Closed
opened 2026-10-26 22:35:25 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Comfy-Org/github-workflows/pull/4
Author: @mattmillerai
Created: 6/2/2026
Status: ✅ Merged
Merged: 7/3/2026
Merged by: @mattmillerai

Base: main ← Head: feat/assign-prs-to-author-reusable


📝 Commits (1)

  • 92dcc1a feat: add assign-prs-to-author reusable workflow

📊 Changes

2 files changed (+75 additions, -0 deletions)

View changed files

➕ .github/workflows/assign-prs-to-author.yml (+74 -0)
📝 README.md (+1 -0)

📄 Description

What

Adds a third reusable workflow to this repo: assign-prs-to-author.yml. It assigns every open PR with no assignees to its author, so unassigned PRs get routed back to whoever opened them. Bot-authored PRs (Dependabot, Renovate, app tokens) are skipped by default via the skip-bots input.

Extracted from a copy that currently lives in Comfy-Org/cloud, following the same thin-caller pattern as cursor-review and detect-unreviewed-merge.

Why a reusable workflow

It's generic CI housekeeping with zero repo-specific anything — pure github-script over context.repo. Hosting it here means consumer repos carry a small scheduled caller instead of a maintained copy (no drift).

Permissions

Uses the caller's GITHUB_TOKEN (no secrets to pass). The calling job must grant pull-requests: write and issues: write — assignees are set through the issues API.

Caller pattern

name: Housekeeping - Assign PRs to Author
on:
  schedule:
    - cron: "0 2 * * *"   # daily at 02:00 UTC
  workflow_dispatch:
jobs:
  assign:
    permissions:
      pull-requests: write
      issues: write
    uses: Comfy-Org/github-workflows/.github/workflows/assign-prs-to-author.yml@<sha>  # v1

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Comfy-Org/github-workflows/pull/4 **Author:** [@mattmillerai](https://github.com/mattmillerai) **Created:** 6/2/2026 **Status:** ✅ Merged **Merged:** 7/3/2026 **Merged by:** [@mattmillerai](https://github.com/mattmillerai) **Base:** `main` ← **Head:** `feat/assign-prs-to-author-reusable` --- ### 📝 Commits (1) - [`92dcc1a`](https://github.com/Comfy-Org/github-workflows/commit/92dcc1a70aead5d49f6bb7850269ccaf7f1c1209) feat: add assign-prs-to-author reusable workflow ### 📊 Changes **2 files changed** (+75 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/assign-prs-to-author.yml` (+74 -0) 📝 `README.md` (+1 -0) </details> ### 📄 Description ## What Adds a third reusable workflow to this repo: `assign-prs-to-author.yml`. It assigns every open PR with no assignees to its author, so unassigned PRs get routed back to whoever opened them. Bot-authored PRs (Dependabot, Renovate, app tokens) are skipped by default via the `skip-bots` input. Extracted from a copy that currently lives in `Comfy-Org/cloud`, following the same thin-caller pattern as `cursor-review` and `detect-unreviewed-merge`. ## Why a reusable workflow It's generic CI housekeeping with zero repo-specific anything — pure `github-script` over `context.repo`. Hosting it here means consumer repos carry a small scheduled caller instead of a maintained copy (no drift). ## Permissions Uses the caller's `GITHUB_TOKEN` (no secrets to pass). The calling job must grant `pull-requests: write` and `issues: write` — assignees are set through the issues API. ## Caller pattern ```yaml name: Housekeeping - Assign PRs to Author on: schedule: - cron: "0 2 * * *" # daily at 02:00 UTC workflow_dispatch: jobs: assign: permissions: pull-requests: write issues: write uses: Comfy-Org/github-workflows/.github/workflows/assign-prs-to-author.yml@<sha> # v1 ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-26 22:35:25 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/github-workflows#15
No description provided.