PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Written By
Views

Automatically assign an issue using github actions

Automatically assign an issue using github actions

To automatically set the assignee on an issue using GitHub Actions, you can use the assign action in a workflow file. Here is an example of how to do this:

name: Set assignee on issue
on:
  issues:
    types: [opened]

jobs:
  set-assignee:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Set assignee
      uses: bahmutov/assign-action@v1
      with:
        assignees: 'username1,username2'

In this example, the assign action will be triggered whenever a new issue is opened. The action will then set the specified assignees (in this case, username1 and username2) as the assignees for the issue.

You can also use the assign action to set the assignee based on other conditions, such as the label on the issue or the value of a specific field in the issue. For more information and examples, you can check out the assign action documentation on GitHub.

Comments (0)

loading comments