Merge branch 'main' into cleanup-names

This commit is contained in:
Andrew Murray 2022-04-15 20:45:44 +10:00 committed by GitHub
commit 92f96b44e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 4 deletions

27
.github/workflows/stale.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: Close stale issues
on:
schedule:
- cron: "10 0 * * *"
workflow_dispatch:
permissions:
issues: write
jobs:
stale:
if: github.repository_owner == 'python-pillow'
runs-on: ubuntu-latest
steps:
- name: "Check issues"
uses: actions/stale@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
only-labels: "Awaiting OP Action"
close-issue-message: "Closing this issue as no feedback has been received."
days-before-stale: 7
days-before-issue-close: 0
days-before-pr-close: -1
labels-to-remove-when-unstale: "Awaiting OP Action"

View File

@ -48,10 +48,6 @@ def img_string_normalize(im):
return img_to_string(string_to_img(im)) return img_to_string(string_to_img(im))
def assert_img_equal(a, b):
assert img_to_string(a) == img_to_string(b)
def assert_img_equal_img_string(a, b_string): def assert_img_equal_img_string(a, b_string):
assert img_to_string(a) == img_string_normalize(b_string) assert img_to_string(a) == img_string_normalize(b_string)