mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Merge branch 'main' into cleanup-names
This commit is contained in:
commit
92f96b44e1
27
.github/workflows/stale.yml
vendored
Normal file
27
.github/workflows/stale.yml
vendored
Normal 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"
|
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user