Skip to content

feat: auto-assign all PRs to maintainer#11

Merged
stdNullPtr merged 1 commit into
masterfrom
feat/auto-assign-prs
Jun 1, 2025
Merged

feat: auto-assign all PRs to maintainer#11
stdNullPtr merged 1 commit into
masterfrom
feat/auto-assign-prs

Conversation

@stdNullPtr
Copy link
Copy Markdown
Owner

@stdNullPtr stdNullPtr commented Jun 1, 2025

Summary

Add GitHub Actions workflow to automatically assign all new pull requests to the maintainer.

Changes

  • Added .github/workflows/auto-assign.yml
  • Triggers on pull_request: opened events
  • Uses actions/github-script@v7 to assign PRs to stdNullPtr
  • Requires only pull-requests: write permission

Implementation Details

on:
  pull_request:
    types: [opened]

The workflow uses GitHub's REST API to add the maintainer as an assignee:

github.rest.issues.addAssignees({
  owner: context.repo.owner,
  repo: context.repo.repo, 
  issue_number: context.issue.number,
  assignees: ['stdNullPtr']
});

This ensures consistent assignment of all incoming pull requests for review tracking.

- Auto-assign all new PRs to stdNullPtr for review
- Triggers on pull_request opened events
- Uses GitHub Script action for reliability
- Helps ensure timely review of contributions
@stdNullPtr stdNullPtr merged commit e8255d3 into master Jun 1, 2025
3 checks passed
@stdNullPtr stdNullPtr deleted the feat/auto-assign-prs branch June 1, 2025 17:11
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.

1 participant