Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinya Kato committed Feb 1, 2024
1 parent b47b6b6 commit 9b920f9
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/add_pr_actors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Add Reviewers and Assignee to PR

on:
pull_request:
types: [opened, ready_for_review]

jobs:
add_reviewers_and_assignee:
runs-on: ubuntu-latest

steps:
- name: Add Reviewers
run: |
curl \
-X POST \
-H "Authorization: token ${{ secrets.DECKBLUE_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers \
-d '{"reviewers": ["gildaswise", "myConsciousness"]}'
- name: Set Assignee to PR Creator
run: |
curl \
-X POST \
-H "Authorization: token ${{ secrets.DECKBLUE_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/assignees \
-d '{"assignees": ["${{ github.actor }}"]}'

0 comments on commit 9b920f9

Please sign in to comment.