mirror of
https://github.com/logto-io/logto.git
synced 2025-01-27 21:39:16 -05:00
ci: add assignees (#547)
This commit is contained in:
parent
c3c2bf20f1
commit
c77bcc172b
2 changed files with 24 additions and 16 deletions
24
.github/workflows/add-labels-and-assignees.yml
vendored
Normal file
24
.github/workflows/add-labels-and-assignees.yml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
name: Add Labels And Assignees
|
||||
|
||||
on:
|
||||
issues:
|
||||
types: [opened, edited, reopened]
|
||||
pull_request:
|
||||
types: [opened, edited, synchronize, reopened]
|
||||
|
||||
jobs:
|
||||
add_labels_and_assignees:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Add Labels
|
||||
uses: logto-io/actions-add-labels-run-steps@v1.0.1
|
||||
with:
|
||||
title: ${{ github.event.pull_request.title || github.event.issue.title }}
|
||||
github-token: ${{ github.token }}
|
||||
|
||||
- name: Add Assignees
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
uses: actions-ecosystem/action-add-assignees@v1
|
||||
with:
|
||||
github_token: ${{ github.token }}
|
||||
assignees: ${{ github.actor }}
|
16
.github/workflows/add-labels.yml
vendored
16
.github/workflows/add-labels.yml
vendored
|
@ -1,16 +0,0 @@
|
|||
name: Add Labels
|
||||
|
||||
on:
|
||||
issues:
|
||||
types: [opened, edited, reopened]
|
||||
pull_request:
|
||||
types: [opened, edited, synchronize, reopened]
|
||||
|
||||
jobs:
|
||||
add_labels:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: logto-io/actions-add-labels-run-steps@v1.0.1
|
||||
with:
|
||||
title: ${{ github.event.pull_request.title || github.event.issue.title }}
|
||||
github-token: ${{ github.token }}
|
Loading…
Add table
Reference in a new issue