Skip to content

[Bug]: tests

[Bug]: tests #9

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: ${{ github.event.issue.user.login }}
REPO: "gorhom/react-native-bottom-sheet"
jobs:
autoclose:
runs-on: ubuntu-latest
if: contains(github.event.issue.body, 'snack.expo.dev') != 'true'
permissions:
issues: write
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." --repo "$REPO"
- name: Label Issue
run: gh issue edit "$NUMBER" --add-label "invalid" --repo "$REPO"
- name: Lock Issue
run: gh issue lock "$NUMBER" -r "spam" --repo "$REPO"