Consider using thiserror
instead of anyhow
in hyperlight_common
#36
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: Issue Labeler | |
on: | |
issues: | |
types: [opened] | |
permissions: | |
issues: write | |
contents: read | |
jobs: | |
labeler: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check and Add label | |
run: | | |
LABELS=$(gh issue view ${{ github.event.issue.number }} --json labels -q '.labels[].name') | |
if [[ $LABELS != *"needs review"* ]]; then | |
gh issue edit ${{ github.event.issue.number }} --add-label "needs review" | |
fi | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |