Skip to content

Commit

Permalink
Update add-reviewer.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mariiakomisar1985 authored Nov 8, 2024
1 parent 8459132 commit 32f042f
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/add-reviewer.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
name: Add Reviewer for Freezed Branches
# name: Add Reviewer for Freezed Branches

on:
pull_request:
branches:
- 'v*.*' # Matches branches like v1.10, v1.11, etc.
# on:
# pull_request:
# branches:
# - 'v*.*' # Matches branches like v1.10, v1.11, etc.

jobs:
add-reviewer:
runs-on: ubuntu-latest
steps:
- name: Add KomissarMaria as a reviewer
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
run: |
pr_number=${{ github.event.pull_request.number }}
repo=${{ github.repository }}
curl -s -X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $GITHUB_TOKEN" \
https://api.github.com/repos/$repo/pulls/$pr_number/requested_reviewers \
-d '{"reviewers":["KomissarMaria"]}'
# jobs:
# add-reviewer:
# runs-on: ubuntu-latest
# steps:
# - name: Add KomissarMaria as a reviewer
# env:
# GITHUB_TOKEN: ${{ secrets.TOKEN }}
# run: |
# pr_number=${{ github.event.pull_request.number }}
# repo=${{ github.repository }}
# curl -s -X POST \
# -H "Accept: application/vnd.github+json" \
# -H "Authorization: Bearer $GITHUB_TOKEN" \
# https://api.github.com/repos/$repo/pulls/$pr_number/requested_reviewers \
# -d '{"reviewers":["KomissarMaria"]}'

0 comments on commit 32f042f

Please sign in to comment.