@@ -49,7 +49,7 @@ module.exports = async (context, req) => {
49
49
const thumbsUp = async ( ) => react ( '+1' )
50
50
51
51
try {
52
- if ( command == '/open pr' ) {
52
+ if ( command === '/open pr' ) {
53
53
if ( owner !== 'git-for-windows' || ! [ 'git' , 'msys2-runtime' ] . includes ( repo ) ) return `Ignoring ${ command } in unexpected repo: ${ commentURL } `
54
54
55
55
await checkPermissions ( )
@@ -111,7 +111,7 @@ module.exports = async (context, req) => {
111
111
return `I edited the comment: ${ commentURL } `
112
112
}
113
113
114
- if ( command == '/updpkgsums' ) {
114
+ if ( command === '/updpkgsums' ) {
115
115
if ( owner !== 'git-for-windows'
116
116
|| ! req . body . issue . pull_request
117
117
|| ! [ 'build-extra' , 'MINGW-packages' , 'MSYS2-packages' ] . includes ( repo ) ) {
@@ -265,7 +265,7 @@ module.exports = async (context, req) => {
265
265
return `I edited the comment: ${ answer . html_url } `
266
266
}
267
267
268
- if ( command == '/git-artifacts' ) {
268
+ if ( command === '/git-artifacts' ) {
269
269
if ( owner !== 'git-for-windows'
270
270
|| repo !== 'git'
271
271
|| ! req . body . issue . pull_request
@@ -367,7 +367,7 @@ module.exports = async (context, req) => {
367
367
}
368
368
}
369
369
370
- if ( command == '/release' ) {
370
+ if ( command === '/release' ) {
371
371
if ( owner !== 'git-for-windows'
372
372
|| repo !== 'git'
373
373
|| ! req . body . issue . pull_request
0 commit comments