mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
b56c810f52
comment out pull_request_review, only run the step on pull requests
25 lines
723 B
YAML
25 lines
723 B
YAML
name: Label & Assign
|
|
|
|
on:
|
|
issue_comment:
|
|
types: [created, edited]
|
|
# https://github.com/orgs/community/discussions/26651 pull_request_review runs in the context of the PR,
|
|
# so doesn't have permission to add labels or reassign
|
|
# pull_request_review:
|
|
# types: [submitted, edited]
|
|
|
|
permissions:
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
label-and-assign:
|
|
if: ${{ github.event.issue.pull_request }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: docker://samuelcolvin/label-and-assign:latest
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
reviewers: samuelcolvin,PrettyWood,hramezani
|
|
awaiting_update_label: 'awaiting author revision'
|
|
awaiting_review_label: 'ready for review'
|