Skip to content

[Bug]: tests

[Bug]: tests #3

Workflow file for this run

name: Auto Close Issue Workflow
on:
issues:
types:
- opened
- reopened
- edited
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NUMBER: ${{ github.event.issue.number }}
USER: ${{ issue.user.login }}

Check failure on line 13 in .github/workflows/auto-close.yml

View workflow run for this annotation

GitHub Actions / Auto Close Issue Workflow

Invalid workflow file

The workflow is not valid. .github/workflows/auto-close.yml (Line: 13, Col: 9): Unrecognized named-value: 'issue'. Located at position 1 within expression: issue.user.login

Check failure on line 13 in .github/workflows/auto-close.yml

View workflow run for this annotation

GitHub Actions / Auto Close Issue Workflow

Invalid workflow file

The workflow is not valid. .github/workflows/auto-close.yml (Line: 13, Col: 9): Unrecognized named-value: 'issue'. Located at position 1 within expression: issue.user.login
jobs:
autoclose:
if: contains(github.event.issue.body, 'snack.expo.dev') != 'true'
runs-on: ubuntu-latest
steps:
- name: Close Issue
run: gh issue close "$NUMBER" --comment "@$USER hello! :wave:\n\nThis issue is being automatically closed because it does not follow the issue template."
- name: Label Issue
run: gh issue edit "$NUMBER" --add-label "invalid"
- name: Lock Issue
run: gh issue lock "$NUMBER" -r "spam"