Show only one error per file #135
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: Add to Project on Label | |
on: | |
issues: | |
types: [labeled] | |
permissions: | |
issues: write | |
jobs: | |
add-to-project: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "good first issue" | |
if: "${{ github.event.label.name == 'good first issue' }}" | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN_PROJECT_ITEM_ADD }} | |
run: | | |
ISSUE_URL=$(jq --raw-output .issue.html_url "$GITHUB_EVENT_PATH") | |
gh project item-add 5 --owner JabRef --url $ISSUE_URL | |
- name: needs-refinement | |
if: github.event.label.name == 'needs-refinement' | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN_PROJECT_ITEM_ADD }} | |
run: | | |
ISSUE_URL=$(jq --raw-output .issue.html_url "$GITHUB_EVENT_PATH") | |
gh project item-add 15 --owner JabRef --url $ISSUE_URL | |
- name: "status: freeze" | |
if: "${{ github.event.label.name == 'status: freeze' }}" | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN_PROJECT_ITEM_ADD }} | |
run: | | |
ISSUE_URL=$(jq --raw-output .issue.html_url "$GITHUB_EVENT_PATH") | |
gh project item-add 9 --owner JabRef --url $ISSUE_URL | |
- name: ui | |
if: "${{ github.event.label.name == 'ui' }}" | |
env: | |
GH_DEBUG: api | |
GH_TOKEN: ${{ secrets.GH_TOKEN_PROJECT_ITEM_ADD }} | |
run: | | |
ISSUE_URL=$(jq --raw-output .issue.html_url "$GITHUB_EVENT_PATH") | |
echo $ISSUE_URL | |
gh project item-add 8 --owner JabRef --url $ISSUE_URL |