Skip to content

It's virtually useless to clarify the doubts. You must learn how to implement it from intelliJ. #3469

It's virtually useless to clarify the doubts. You must learn how to implement it from intelliJ.

It's virtually useless to clarify the doubts. You must learn how to implement it from intelliJ. #3469

Workflow file for this run

name: Random Triage
on:
issues:
types: [opened]
permissions:
issues: write
jobs:
assign_triage_label:
runs-on: ubuntu-latest
steps:
- name: Assign Triage Label
if: ${{ join(github.event.issue.labels) == '' && join(github.event.issue.assignees) == '' }}
uses: actions-ecosystem/action-add-labels@v1
with:
labels: triage-needed
number: ${{ github.event.issue.number }}
github_token: ${{ secrets.GITHUB_TOKEN }}
assign_random_user:
needs: assign_triage_label
runs-on: ubuntu-latest
steps:
- name: Assign Random User
run: |
if ! gh issue view ${{ github.event.issue.number }} --repo ${{ github.event.repository.full_name }} --json labels | grep "triage-needed"; then
echo "Skipping triage assignment since triage-needed label is not present"
exit 0
fi
users=("lramos15" "roblourens" "digitarald" "ulugbekna" "jrieken" "aiday-mar" "joyceerhl" "mjbvz" "aeschli" "hediet" "rebornix" "bhavyaus" "TylerLeonhardt" "bamurtaugh" "pierceboggan" "isidorn")
random_user=${users[$RANDOM % ${#users[@]}]}
echo "Assigning issue to $random_user"
gh issue edit ${{ github.event.issue.number }} --add-assignee $random_user --repo ${{ github.repository }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}