Skip to content

Add outputs for reviewers and assignees #252

@kentaro-m

Description

@kentaro-m

Summary

Add GitHub Actions outputs for reviewers and assignees so that subsequent workflow steps can use this information.

Use Case

Users can pass the assigned reviewers/assignees to other actions, such as Slack notifications:

- uses: kentaro-m/auto-assign-action@v2
  id: assign

- uses: slackapi/slack-github-action@v1
  with:
    payload: |
      {"text": "Reviewers assigned: ${{ steps.assign.outputs.reviewers }}"}

Proposed Outputs

Output Description Example
reviewers Comma-separated list of assigned reviewers user1,user2
assignees Comma-separated list of assigned assignees user3,user4

Implementation

Add core.setOutput() calls in handler.ts after successful assignment.

Also update action.yml to document the outputs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions