Repeated error messages and now locked due to rate limit although I did not use many prompts #3187
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |