Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
markjm authored and stevoland committed Feb 14, 2024
1 parent d0379dd commit c2f6cce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/plugins/autolinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ module.exports = class Autolinks extends Diffable {
// is_alphanumeric was added mid-2023. In order to continue to support settings yamls which dont specify this
// attribute, consider an unset is_alphanumeric as `true` (since that is the default value in the API)
// https://docs.github.com/en/rest/repos/autolinks?apiVersion=2022-11-28#create-an-autolink-reference-for-a-repository
const alphanumericMatches = attr.is_alphanumeric === undefined
? existing.is_alphanumeric
const isAlphaNumericMatch = attr.is_alphanumeric === undefined
? existing.is_alphanumeric // === true, the default
: attr.is_alphanumeric === existing.is_alphanumeric
return existing.key_prefix === attr.key_prefix &&
existing.url_template !== attr.url_template &&
!alphanumericMatches
!isAlphaNumericMatch
}

async update (existing, attr) {
Expand Down

0 comments on commit c2f6cce

Please sign in to comment.