Skip to content

Only added lines accepted, not changed lines #2177

@pepa65

Description

@pepa65

Noticing that the code for checking 1 change only accept and added line, and not a changed line:

TLD_FILE=$(git diff --name-only upstream/main)
TLD_FILE=$(git diff --name-only upstream/main)
DIFF_LOG=$(diff <(git show upstream/main:$TLD_FILE) $TLD_FILE | grep ^[[:digit:]])
[[ $(echo $DIFF_LOG | wc -l) == 1 ]]
[[ $DIFF_LOG =~ ^[0-9]+a[0-9]+$ ]]

That list line should read: [[ $DIFF_LOG =~ ^[0-9]+[ac][0-9]+$ ]] in order for a changed line (# renew added) to pass the test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions