Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression introduced in commit 9aac0ab: check_for_duplicate_msg now broken, duplicate_msg_pattern is non-optional #55

Open
pretzelhammer opened this issue May 18, 2022 · 1 comment · Fixed by square/maker#330 · May be fixed by #56

Comments

@pretzelhammer
Copy link

pretzelhammer commented May 18, 2022

@jeffreyguenther made this commit which introduced a regression.

Before the commit this configuration would work as expected:

name: comment-on-pr example
on: pull_request
jobs:
  example:
    name: sample comment
    runs-on: ubuntu-latest
    steps:
      - name: comment PR
        uses: unsplash/[email protected]
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          msg: "Check out this message!"
          check_for_duplicate_msg: true

The expectation being: no duplicate "Check out this message!" comment will be posted in the PR if one exists.

However, after the commit, the above configuration WILL ALWAYS post a "Check out this message!" comment even if it already exists on the PR. Please fix this regression because it's really annoying and beats the point of having a check_for_duplicate_msg configuration in the first place, since it breaks it.

A workaround would be to duplicate the msg into the new "optional" duplicate_msg_pattern. The "optional" is in quotes because it's not really optional, it's now required for check_for_duplicate_msg to work at all.

@pretzelhammer pretzelhammer changed the title Regression introduced in commit 9aac0ab874c140608e0bde6edbb8df09625366c6 Regression introduced in commit 9aac0ab May 18, 2022
@pretzelhammer pretzelhammer changed the title Regression introduced in commit 9aac0ab Regression introduced in commit 9aac0ab: check_for_duplicate_msg now broken May 18, 2022
@pretzelhammer pretzelhammer linked a pull request May 19, 2022 that will close this issue
@pretzelhammer pretzelhammer changed the title Regression introduced in commit 9aac0ab: check_for_duplicate_msg now broken Regression introduced in commit 9aac0ab: check_for_duplicate_msg now broken, duplicate_msg_pattern is non-optional May 19, 2022
@pretzelhammer
Copy link
Author

accidentally closed this, re-opening

@pretzelhammer pretzelhammer reopened this May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant