Skip to content

Commit

Permalink
Merge pull request from GHSA-xp96-pghg-87vx
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgectf committed Mar 25, 2024
1 parent c2eb7fd commit a41a889
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/autoclose-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ jobs:
uses: actions/checkout@v4
- id: match-java
name: Match Java
env:
ISSUE_TITLE: ${{ github.event.issue.title }}
# if the title contains the word Java (case insensitive)
# we make sure that this word is the end of the string or is followed by a space character (ex. we do not want to match javascript)
# we make sure that this word is the beginning of the string or is preceded by a space character (ex. we do not want to match foojava)
run: |
if [[ "${{ github.event.issue.title }}" =~ (^|[[:space:]])([jJ][aA][vV][aA])([[:space:]]|$) ]]; then
if [[ "$ISSUE_TITLE" =~ (^|[[:space:]])([jJ][aA][vV][aA])([[:space:]]|$) ]]; then
echo "match=true" >> $GITHUB_OUTPUT
fi
Expand Down

0 comments on commit a41a889

Please sign in to comment.