You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
elif [ -z "$(comm -23 headings-in-template headings-in-issue)" ]; then
52
+
echo "Match! 👍 💃"
53
+
if diff -Bw "$template" issue > /dev/null; then
54
+
echo "... like, an /exact/ match. 😖"
55
+
REASON="${REASON_EXACT_MATCH}"
56
+
break
57
+
else
58
+
exit 0
59
+
fi
45
60
else
46
-
exit 0
61
+
echo "No match. 👎"
47
62
fi
48
-
else
49
-
echo "No match. 👎"
50
-
fi
51
-
done
63
+
done
64
+
fi
52
65
53
-
# Failed to find a match! Close the issue.
66
+
# Failed validation! Close the issue with a comment.
54
67
cat << EOF > comment
55
-
Sorry, friend. As far as this ol' bot can tell, your issue does not use one of this repo's available issue templates. Please [try again using a template](https://github.com/${{ github.repository }}/issues/new/choose) so that we have the best chance of understanding and addressing your issue. (And if I'm confused, please [let us know](https://github.com/getsentry/.github/issues/new?title=template+enforcer+is+confused&body=${{ github.event.issue.html_url }}). 😬)
68
+
Sorry, friend. As far as this ol' bot can tell, ${REASON}. Please [try again](https://github.com/${{ github.repository }}/issues/new/choose), if you like. (And if I'm confused, please [let us know](https://github.com/getsentry/.github/issues/new?title=template+enforcer+is+confused&body=${{ github.event.issue.html_url }}). 😬)
56
69
57
70
----
58
71
59
-
[](https://www.youtube.com/watch?v=Fy3rjQGc6lA)"
72
+
[](https://www.youtube.com/watch?v=Fy3rjQGc6lA)
0 commit comments