Skip to content

Sorry, the response was filtered by the Responsible AI Service. Please rephrase your prompt and try again. Learn more. #1777

Sorry, the response was filtered by the Responsible AI Service. Please rephrase your prompt and try again. Learn more.

Sorry, the response was filtered by the Responsible AI Service. Please rephrase your prompt and try again. Learn more. #1777

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" "andreamah" "aeschli" "hediet" "rebornix" "bhavyaus" "TylerLeonhardt")
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 }}