From 35ae8a2319dba1b52961f820f9d292ae0ae00af7 Mon Sep 17 00:00:00 2001 From: egeakman Date: Sat, 8 Jan 2022 16:37:39 +0300 Subject: [PATCH 01/35] Update CI --- .github/workflows/wrap.yml | 1 + library/stdtypes.po | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/wrap.yml b/.github/workflows/wrap.yml index 97f02bd79..190e1927e 100644 --- a/.github/workflows/wrap.yml +++ b/.github/workflows/wrap.yml @@ -19,6 +19,7 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 + path: ${{ github.event.pull_request.head.ref }} # Setup which version of Python to use - name: Set Up Python ${{ matrix.python-version }} diff --git a/library/stdtypes.po b/library/stdtypes.po index ad2b9a2f4..c80ddd253 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -20,6 +20,7 @@ msgstr "" #: library/stdtypes.rst:8 msgid "Built-in Types" msgstr "" +"TEST TEST" #: library/stdtypes.rst:10 msgid "" From 3aeebeb072d881f67f6058fc95cabe469e6de5c8 Mon Sep 17 00:00:00 2001 From: egeakman Date: Sat, 8 Jan 2022 16:42:19 +0300 Subject: [PATCH 02/35] Update CI --- .github/workflows/wrap.yml | 2 +- library/stdtypes.po | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/wrap.yml b/.github/workflows/wrap.yml index 190e1927e..c4d0f11a4 100644 --- a/.github/workflows/wrap.yml +++ b/.github/workflows/wrap.yml @@ -19,7 +19,7 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 - path: ${{ github.event.pull_request.head.ref }} + ref: ${{ github.event.pull_request.head.ref }} # Setup which version of Python to use - name: Set Up Python ${{ matrix.python-version }} diff --git a/library/stdtypes.po b/library/stdtypes.po index c80ddd253..58658c5d9 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -20,7 +20,7 @@ msgstr "" #: library/stdtypes.rst:8 msgid "Built-in Types" msgstr "" -"TEST TEST" +"TEST TEST TEST" #: library/stdtypes.rst:10 msgid "" From eb6a3192788aeb3fea7391c1bd2e36dce5832b8e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 8 Jan 2022 13:42:52 +0000 Subject: [PATCH 03/35] Wrap translations --- library/stdtypes.po | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/library/stdtypes.po b/library/stdtypes.po index 58658c5d9..279bb60ce 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -19,8 +19,7 @@ msgstr "" #: library/stdtypes.rst:8 msgid "Built-in Types" -msgstr "" -"TEST TEST TEST" +msgstr "TEST TEST TEST" #: library/stdtypes.rst:10 msgid "" From 043b331c9e097c3143363333312d5d9cba597b09 Mon Sep 17 00:00:00 2001 From: egeakman Date: Sat, 8 Jan 2022 16:56:04 +0300 Subject: [PATCH 04/35] Update CI --- .github/workflows/wrap.yml | 7 ++++--- library/stdtypes.po | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/wrap.yml b/.github/workflows/wrap.yml index c4d0f11a4..b1a3e6973 100644 --- a/.github/workflows/wrap.yml +++ b/.github/workflows/wrap.yml @@ -1,11 +1,12 @@ name: "Wrap" on: - pull_request: - branches: [ "**" ] + pull_request_review: + types: [submitted] jobs: - test: + wrap: + if: github.event.review.state == 'approved' runs-on: ubuntu-latest strategy: diff --git a/library/stdtypes.po b/library/stdtypes.po index 58658c5d9..c80ddd253 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -20,7 +20,7 @@ msgstr "" #: library/stdtypes.rst:8 msgid "Built-in Types" msgstr "" -"TEST TEST TEST" +"TEST TEST" #: library/stdtypes.rst:10 msgid "" From 7624196741d6cc36e85525d78a15a8bf56274e65 Mon Sep 17 00:00:00 2001 From: egeakman Date: Sat, 8 Jan 2022 17:08:47 +0300 Subject: [PATCH 05/35] Update CI --- .github/workflows/wrap.yml | 7 ++++--- library/stdtypes.po | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/wrap.yml b/.github/workflows/wrap.yml index b1a3e6973..f674d51dc 100644 --- a/.github/workflows/wrap.yml +++ b/.github/workflows/wrap.yml @@ -1,12 +1,13 @@ name: "Wrap" on: - pull_request_review: - types: [submitted] + issue_comment: + types: [created, edited, deleted] jobs: wrap: - if: github.event.review.state == 'approved' + if: contains(github.event.comment.html_url, '/pull/') + if: contains(github.event.comment.body, '!wrap') runs-on: ubuntu-latest strategy: diff --git a/library/stdtypes.po b/library/stdtypes.po index c80ddd253..58658c5d9 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -20,7 +20,7 @@ msgstr "" #: library/stdtypes.rst:8 msgid "Built-in Types" msgstr "" -"TEST TEST" +"TEST TEST TEST" #: library/stdtypes.rst:10 msgid "" From cf170533594194660cb73739d100058a9eafd30a Mon Sep 17 00:00:00 2001 From: egeakman Date: Sat, 8 Jan 2022 17:13:23 +0300 Subject: [PATCH 06/35] Update CI --- .github/workflows/wrap.yml | 4 +++- library/stdtypes.po | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/wrap.yml b/.github/workflows/wrap.yml index f674d51dc..2512ce3db 100644 --- a/.github/workflows/wrap.yml +++ b/.github/workflows/wrap.yml @@ -7,7 +7,7 @@ on: jobs: wrap: if: contains(github.event.comment.html_url, '/pull/') - if: contains(github.event.comment.body, '!wrap') + runs-on: ubuntu-latest strategy: @@ -15,6 +15,8 @@ jobs: # Run in all these versions of Python python-version: ["3.10"] + if: contains(github.event.comment.body, '!wrap') + steps: # Checkout the latest code from the repo - name: Checkout repo diff --git a/library/stdtypes.po b/library/stdtypes.po index 58658c5d9..c80ddd253 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -20,7 +20,7 @@ msgstr "" #: library/stdtypes.rst:8 msgid "Built-in Types" msgstr "" -"TEST TEST TEST" +"TEST TEST" #: library/stdtypes.rst:10 msgid "" From 9ae6626002e2e0d895573ed8945eec0defd237b8 Mon Sep 17 00:00:00 2001 From: egeakman Date: Sat, 8 Jan 2022 17:16:03 +0300 Subject: [PATCH 07/35] Update CI --- .github/workflows/wrap.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/wrap.yml b/.github/workflows/wrap.yml index 2512ce3db..a7b7d1eab 100644 --- a/.github/workflows/wrap.yml +++ b/.github/workflows/wrap.yml @@ -6,7 +6,7 @@ on: jobs: wrap: - if: contains(github.event.comment.html_url, '/pull/') + if: contains(github.event.comment.html_url, '/pull/') && contains(github.event.comment.body, '!wrap') runs-on: ubuntu-latest @@ -15,8 +15,6 @@ jobs: # Run in all these versions of Python python-version: ["3.10"] - if: contains(github.event.comment.body, '!wrap') - steps: # Checkout the latest code from the repo - name: Checkout repo From f0e30bf28db7c83b419f07403f8f0bd002402853 Mon Sep 17 00:00:00 2001 From: egeakman Date: Sat, 8 Jan 2022 17:20:30 +0300 Subject: [PATCH 08/35] Modify CI --- .github/workflows/wrap.yml | 2 +- library/stdtypes.po | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/wrap.yml b/.github/workflows/wrap.yml index a7b7d1eab..e5838d375 100644 --- a/.github/workflows/wrap.yml +++ b/.github/workflows/wrap.yml @@ -6,7 +6,7 @@ on: jobs: wrap: - if: contains(github.event.comment.html_url, '/pull/') && contains(github.event.comment.body, '!wrap') + if: ((contains(github.event.comment.html_url, '/pull/')) && (contains(github.event.comment.body, '/wrap'))) == true runs-on: ubuntu-latest diff --git a/library/stdtypes.po b/library/stdtypes.po index c80ddd253..58658c5d9 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -20,7 +20,7 @@ msgstr "" #: library/stdtypes.rst:8 msgid "Built-in Types" msgstr "" -"TEST TEST" +"TEST TEST TEST" #: library/stdtypes.rst:10 msgid "" From e51259ae5c76ff1ddabb7f510a69a8219c9da514 Mon Sep 17 00:00:00 2001 From: egeakman Date: Sat, 8 Jan 2022 17:24:52 +0300 Subject: [PATCH 09/35] Modify CI --- .github/workflows/wrap.yml | 5 +++-- library/stdtypes.po | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/wrap.yml b/.github/workflows/wrap.yml index e5838d375..6e7488960 100644 --- a/.github/workflows/wrap.yml +++ b/.github/workflows/wrap.yml @@ -2,11 +2,12 @@ name: "Wrap" on: issue_comment: - types: [created, edited, deleted] + types: + -created jobs: wrap: - if: ((contains(github.event.comment.html_url, '/pull/')) && (contains(github.event.comment.body, '/wrap'))) == true + if: ${{ github.event.comment.body == '/wrap'}} runs-on: ubuntu-latest diff --git a/library/stdtypes.po b/library/stdtypes.po index 58658c5d9..22ce5ac36 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -20,7 +20,7 @@ msgstr "" #: library/stdtypes.rst:8 msgid "Built-in Types" msgstr "" -"TEST TEST TEST" +"TEST TEST TEST TEST" #: library/stdtypes.rst:10 msgid "" From 9e070d4312dec3fe57c62b07947aae57bb2525e6 Mon Sep 17 00:00:00 2001 From: egeakman Date: Sat, 8 Jan 2022 17:30:57 +0300 Subject: [PATCH 10/35] Modify CI --- .github/workflows/wrap.yml | 4 ++-- library/stdtypes.po | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/wrap.yml b/.github/workflows/wrap.yml index 6e7488960..f5f4207cd 100644 --- a/.github/workflows/wrap.yml +++ b/.github/workflows/wrap.yml @@ -7,10 +7,10 @@ on: jobs: wrap: - if: ${{ github.event.comment.body == '/wrap'}} - runs-on: ubuntu-latest + if: ${{ github.event.issue.pull_request && github.event.comment.body == '/wrap'}} + strategy: matrix: # Run in all these versions of Python diff --git a/library/stdtypes.po b/library/stdtypes.po index 22ce5ac36..c80ddd253 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -20,7 +20,7 @@ msgstr "" #: library/stdtypes.rst:8 msgid "Built-in Types" msgstr "" -"TEST TEST TEST TEST" +"TEST TEST" #: library/stdtypes.rst:10 msgid "" From bf7f553b1ef4e28a7adf9f28696cc3e369b9b56b Mon Sep 17 00:00:00 2001 From: egeakman Date: Sat, 8 Jan 2022 17:37:48 +0300 Subject: [PATCH 11/35] Modify CI --- .github/workflows/wrap.yml | 1 + library/stdtypes.po | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/wrap.yml b/.github/workflows/wrap.yml index f5f4207cd..013d81765 100644 --- a/.github/workflows/wrap.yml +++ b/.github/workflows/wrap.yml @@ -4,6 +4,7 @@ on: issue_comment: types: -created + branches: [" ** "] jobs: wrap: diff --git a/library/stdtypes.po b/library/stdtypes.po index c80ddd253..58658c5d9 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -20,7 +20,7 @@ msgstr "" #: library/stdtypes.rst:8 msgid "Built-in Types" msgstr "" -"TEST TEST" +"TEST TEST TEST" #: library/stdtypes.rst:10 msgid "" From 103efa906b238a29d062d451cf839cffce1e7f73 Mon Sep 17 00:00:00 2001 From: egeakman Date: Sat, 8 Jan 2022 17:39:53 +0300 Subject: [PATCH 12/35] Modify CI --- .github/workflows/wrap.yml | 9 +++------ library/stdtypes.po | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/wrap.yml b/.github/workflows/wrap.yml index 013d81765..5f23250de 100644 --- a/.github/workflows/wrap.yml +++ b/.github/workflows/wrap.yml @@ -1,17 +1,14 @@ name: "Wrap" on: - issue_comment: - types: - -created - branches: [" ** "] + workflow_dispatch: + branches: + - ${{ github.event.pull_request.head.ref }} jobs: wrap: runs-on: ubuntu-latest - if: ${{ github.event.issue.pull_request && github.event.comment.body == '/wrap'}} - strategy: matrix: # Run in all these versions of Python diff --git a/library/stdtypes.po b/library/stdtypes.po index 58658c5d9..c80ddd253 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -20,7 +20,7 @@ msgstr "" #: library/stdtypes.rst:8 msgid "Built-in Types" msgstr "" -"TEST TEST TEST" +"TEST TEST" #: library/stdtypes.rst:10 msgid "" From d8f9a1daa2283e7e1873443e6c81a78921d01e88 Mon Sep 17 00:00:00 2001 From: egeakman Date: Sat, 8 Jan 2022 17:41:45 +0300 Subject: [PATCH 13/35] Modify CI --- .github/workflows/wrap.yml | 2 +- library/stdtypes.po | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/wrap.yml b/.github/workflows/wrap.yml index 5f23250de..9b4d7d6f2 100644 --- a/.github/workflows/wrap.yml +++ b/.github/workflows/wrap.yml @@ -1,7 +1,7 @@ name: "Wrap" on: - workflow_dispatch: + pull_request: branches: - ${{ github.event.pull_request.head.ref }} diff --git a/library/stdtypes.po b/library/stdtypes.po index c80ddd253..58658c5d9 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -20,7 +20,7 @@ msgstr "" #: library/stdtypes.rst:8 msgid "Built-in Types" msgstr "" -"TEST TEST" +"TEST TEST TEST" #: library/stdtypes.rst:10 msgid "" From 30b293c3298b8e2ba00d7faff6004c7f6e6eecd5 Mon Sep 17 00:00:00 2001 From: egeakman Date: Sat, 8 Jan 2022 17:43:49 +0300 Subject: [PATCH 14/35] Modify CI --- .github/workflows/wrap.yml | 3 +-- library/stdtypes.po | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/wrap.yml b/.github/workflows/wrap.yml index 9b4d7d6f2..13b4f8f45 100644 --- a/.github/workflows/wrap.yml +++ b/.github/workflows/wrap.yml @@ -2,8 +2,7 @@ name: "Wrap" on: pull_request: - branches: - - ${{ github.event.pull_request.head.ref }} + branches: [ "**" ] jobs: wrap: diff --git a/library/stdtypes.po b/library/stdtypes.po index 58658c5d9..c80ddd253 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -20,7 +20,7 @@ msgstr "" #: library/stdtypes.rst:8 msgid "Built-in Types" msgstr "" -"TEST TEST TEST" +"TEST TEST" #: library/stdtypes.rst:10 msgid "" From d6ffdf87bc71d3139a32ce822deb6f5c153b4f22 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 8 Jan 2022 14:44:24 +0000 Subject: [PATCH 15/35] Wrap translations --- library/stdtypes.po | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/library/stdtypes.po b/library/stdtypes.po index c80ddd253..2ff4b6a4a 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -19,8 +19,7 @@ msgstr "" #: library/stdtypes.rst:8 msgid "Built-in Types" -msgstr "" -"TEST TEST" +msgstr "TEST TEST" #: library/stdtypes.rst:10 msgid "" From 2d41d3746765aed22a40f93296ef0fa024e4395f Mon Sep 17 00:00:00 2001 From: Arda Sak Date: Sat, 8 Jan 2022 17:53:19 +0300 Subject: [PATCH 16/35] Test --- .github/workflows/wrap.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/wrap.yml b/.github/workflows/wrap.yml index 97f02bd79..450c1448e 100644 --- a/.github/workflows/wrap.yml +++ b/.github/workflows/wrap.yml @@ -81,6 +81,7 @@ jobs: git add ${WRAPPED} git commit -m "Wrap translations" echo "WRAPPED=True" >> $GITHUB_ENV + echo test fi # Push changes @@ -89,4 +90,4 @@ jobs: uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} - branch: ${{ github.event.pull_request.head.ref }} \ No newline at end of file + branch: ${{ github.event.pull_request.head.ref }} \ No newline at end of file From 7454b9cd0aeced81d4e0ae2b6bd66fe79b3c04f3 Mon Sep 17 00:00:00 2001 From: Arda Sak Date: Sat, 8 Jan 2022 17:54:55 +0300 Subject: [PATCH 17/35] Test --- .github/workflows/wrap.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/wrap.yml b/.github/workflows/wrap.yml index 1954870b9..c718434c2 100644 --- a/.github/workflows/wrap.yml +++ b/.github/workflows/wrap.yml @@ -82,7 +82,6 @@ jobs: git add ${WRAPPED} git commit -m "Wrap translations" echo "WRAPPED=True" >> $GITHUB_ENV - echo test fi # Push changes From f745c505fafb1af7551d562eb6d2b24decbabfc6 Mon Sep 17 00:00:00 2001 From: egeakman Date: Sat, 8 Jan 2022 18:15:13 +0300 Subject: [PATCH 18/35] Modify CI --- .github/workflows/wrap.yml | 15 +++++++++++---- library/stdtypes.po | 2 +- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/wrap.yml b/.github/workflows/wrap.yml index 13b4f8f45..95b209fbe 100644 --- a/.github/workflows/wrap.yml +++ b/.github/workflows/wrap.yml @@ -1,11 +1,13 @@ name: "Wrap" on: - pull_request: - branches: [ "**" ] + pull_request_review: + types: [submitted] -jobs: +jobs: wrap: + if: github.event.review.state == 'approved' + runs-on: ubuntu-latest strategy: @@ -90,4 +92,9 @@ jobs: uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} - branch: ${{ github.event.pull_request.head.ref }} \ No newline at end of file + branch: ${{ github.event.pull_request.head.ref }} + + if: false == github.event.review.state == 'approved' + steps: + - name: Will wrap when the review is approved + run: echo "Will wrap when the review is approved" \ No newline at end of file diff --git a/library/stdtypes.po b/library/stdtypes.po index c80ddd253..58658c5d9 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -20,7 +20,7 @@ msgstr "" #: library/stdtypes.rst:8 msgid "Built-in Types" msgstr "" -"TEST TEST" +"TEST TEST TEST" #: library/stdtypes.rst:10 msgid "" From 24712b6d613b07892a753b7af59854157b9c19ea Mon Sep 17 00:00:00 2001 From: egeakman Date: Sat, 8 Jan 2022 18:19:17 +0300 Subject: [PATCH 19/35] Modify CI --- .github/workflows/wrap.yml | 7 +++---- library/stdtypes.po | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/wrap.yml b/.github/workflows/wrap.yml index 557ab7810..59888721a 100644 --- a/.github/workflows/wrap.yml +++ b/.github/workflows/wrap.yml @@ -94,7 +94,6 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} branch: ${{ github.event.pull_request.head.ref }} - if: false == github.event.review.state == 'approved' - steps: - - name: Will wrap when the review is approved - run: echo "Will wrap when the review is approved" + - if: false == github.event.review.state == 'approved' + name: Will wrap when the review is approved + run: echo "Will wrap when the review is approved" diff --git a/library/stdtypes.po b/library/stdtypes.po index 6ea3dc2ac..8f6b0e9fd 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -20,7 +20,7 @@ msgstr "" #: library/stdtypes.rst:8 msgid "Built-in Types" msgstr "" -"TEST TEST TEST TEST" +"TEST TEST" #: library/stdtypes.rst:10 From faffcc14cbf136476be2d0327370501030a30136 Mon Sep 17 00:00:00 2001 From: egeakman Date: Sat, 8 Jan 2022 18:21:57 +0300 Subject: [PATCH 20/35] Modify CI --- .github/workflows/wrap.yml | 4 ++-- library/stdtypes.po | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/wrap.yml b/.github/workflows/wrap.yml index 59888721a..93d229f22 100644 --- a/.github/workflows/wrap.yml +++ b/.github/workflows/wrap.yml @@ -94,6 +94,6 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} branch: ${{ github.event.pull_request.head.ref }} - - if: false == github.event.review.state == 'approved' - name: Will wrap when the review is approved + if: false == github.event.review.state == 'approved' + - name: Will wrap when the review is approved run: echo "Will wrap when the review is approved" diff --git a/library/stdtypes.po b/library/stdtypes.po index 8f6b0e9fd..6283107c3 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -20,7 +20,7 @@ msgstr "" #: library/stdtypes.rst:8 msgid "Built-in Types" msgstr "" -"TEST TEST" +"TEST TEST TEST" #: library/stdtypes.rst:10 From 6f93d6a6259dc451da5a323b33f2e2ef50b30bdd Mon Sep 17 00:00:00 2001 From: egeakman Date: Sat, 8 Jan 2022 18:23:19 +0300 Subject: [PATCH 21/35] Modify CI --- .github/workflows/wrap.yml | 6 +++--- library/stdtypes.po | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/wrap.yml b/.github/workflows/wrap.yml index 93d229f22..88ba3f821 100644 --- a/.github/workflows/wrap.yml +++ b/.github/workflows/wrap.yml @@ -94,6 +94,6 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} branch: ${{ github.event.pull_request.head.ref }} - if: false == github.event.review.state == 'approved' - - name: Will wrap when the review is approved - run: echo "Will wrap when the review is approved" + if: ! "github.event.review.state == 'approved'" + name: Will wrap when the review is approved + run: echo "Will wrap when the review is approved" diff --git a/library/stdtypes.po b/library/stdtypes.po index 6283107c3..8f6b0e9fd 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -20,7 +20,7 @@ msgstr "" #: library/stdtypes.rst:8 msgid "Built-in Types" msgstr "" -"TEST TEST TEST" +"TEST TEST" #: library/stdtypes.rst:10 From 102d186a7627700d3d5d50810cdb504d2b40817b Mon Sep 17 00:00:00 2001 From: egeakman Date: Sat, 8 Jan 2022 18:25:05 +0300 Subject: [PATCH 22/35] Modify CI --- .github/workflows/wrap.yml | 2 +- library/stdtypes.po | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/wrap.yml b/.github/workflows/wrap.yml index 88ba3f821..ea4c81878 100644 --- a/.github/workflows/wrap.yml +++ b/.github/workflows/wrap.yml @@ -94,6 +94,6 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} branch: ${{ github.event.pull_request.head.ref }} - if: ! "github.event.review.state == 'approved'" + if: false == github.event.review.state == 'approved' name: Will wrap when the review is approved run: echo "Will wrap when the review is approved" diff --git a/library/stdtypes.po b/library/stdtypes.po index 8f6b0e9fd..6283107c3 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -20,7 +20,7 @@ msgstr "" #: library/stdtypes.rst:8 msgid "Built-in Types" msgstr "" -"TEST TEST" +"TEST TEST TEST" #: library/stdtypes.rst:10 From 573fe0ba46728dcbe88c37dc79f328241fe38b88 Mon Sep 17 00:00:00 2001 From: egeakman Date: Sat, 8 Jan 2022 18:26:27 +0300 Subject: [PATCH 23/35] Modify CI --- .github/workflows/wrap.yml | 2 +- library/stdtypes.po | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/wrap.yml b/.github/workflows/wrap.yml index ea4c81878..f470ae307 100644 --- a/.github/workflows/wrap.yml +++ b/.github/workflows/wrap.yml @@ -94,6 +94,6 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} branch: ${{ github.event.pull_request.head.ref }} - if: false == github.event.review.state == 'approved' + if: false == (github.event.review.state == 'approved') name: Will wrap when the review is approved run: echo "Will wrap when the review is approved" diff --git a/library/stdtypes.po b/library/stdtypes.po index 6283107c3..8f6b0e9fd 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -20,7 +20,7 @@ msgstr "" #: library/stdtypes.rst:8 msgid "Built-in Types" msgstr "" -"TEST TEST TEST" +"TEST TEST" #: library/stdtypes.rst:10 From cfc6c20f4dd4b7a50f45f6fca9dc03237e3ed6e3 Mon Sep 17 00:00:00 2001 From: egeakman Date: Sat, 8 Jan 2022 18:27:28 +0300 Subject: [PATCH 24/35] Modify CI --- .github/workflows/wrap.yml | 6 +++--- library/stdtypes.po | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/wrap.yml b/.github/workflows/wrap.yml index f470ae307..dc6e927a5 100644 --- a/.github/workflows/wrap.yml +++ b/.github/workflows/wrap.yml @@ -94,6 +94,6 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} branch: ${{ github.event.pull_request.head.ref }} - if: false == (github.event.review.state == 'approved') - name: Will wrap when the review is approved - run: echo "Will wrap when the review is approved" + if: ! (github.event.review.state == 'approved') + - name: Will wrap when the review is approved + run: echo "Will wrap when the review is approved" diff --git a/library/stdtypes.po b/library/stdtypes.po index 8f6b0e9fd..6283107c3 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -20,7 +20,7 @@ msgstr "" #: library/stdtypes.rst:8 msgid "Built-in Types" msgstr "" -"TEST TEST" +"TEST TEST TEST" #: library/stdtypes.rst:10 From adf5910ebbfb6c6bac4b2de1649c92d08fbd4c2f Mon Sep 17 00:00:00 2001 From: egeakman Date: Sat, 8 Jan 2022 18:29:17 +0300 Subject: [PATCH 25/35] Modify CI --- .github/workflows/wrap.yml | 6 +----- library/stdtypes.po | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/wrap.yml b/.github/workflows/wrap.yml index dc6e927a5..45f1ddc86 100644 --- a/.github/workflows/wrap.yml +++ b/.github/workflows/wrap.yml @@ -92,8 +92,4 @@ jobs: uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} - branch: ${{ github.event.pull_request.head.ref }} - - if: ! (github.event.review.state == 'approved') - - name: Will wrap when the review is approved - run: echo "Will wrap when the review is approved" + branch: ${{ github.event.pull_request.head.ref }} \ No newline at end of file diff --git a/library/stdtypes.po b/library/stdtypes.po index 6283107c3..8f6b0e9fd 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -20,7 +20,7 @@ msgstr "" #: library/stdtypes.rst:8 msgid "Built-in Types" msgstr "" -"TEST TEST TEST" +"TEST TEST" #: library/stdtypes.rst:10 From 0a332e4f7af7a6b682512eb5e6b51014cd00c8c9 Mon Sep 17 00:00:00 2001 From: egeakman Date: Sat, 8 Jan 2022 18:45:09 +0300 Subject: [PATCH 26/35] Modify CI --- .github/workflows/wrap.yml | 2 +- library/stdtypes.po | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/wrap.yml b/.github/workflows/wrap.yml index 45f1ddc86..7ddc0c40e 100644 --- a/.github/workflows/wrap.yml +++ b/.github/workflows/wrap.yml @@ -47,7 +47,7 @@ jobs: # Detect changed files - name: Detect changed files - run: echo "CHANGED_FILES=$(git diff --name-only ${{ github.event.before }}..${{ github.event.after }} | tr '\n' ' ')" >> $GITHUB_ENV + run: echo "CHANGED_FILES=$(git diff --name-only ${{ github.event.pull_request.before }}..${{ github.event.pull_request.after }} | tr '\n' ' ')" >> $GITHUB_ENV # Wrap changed files - name: Wrap diff --git a/library/stdtypes.po b/library/stdtypes.po index 8f6b0e9fd..6283107c3 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -20,7 +20,7 @@ msgstr "" #: library/stdtypes.rst:8 msgid "Built-in Types" msgstr "" -"TEST TEST" +"TEST TEST TEST" #: library/stdtypes.rst:10 From 81863b8924975c36d6478338c354355b2b7e02e8 Mon Sep 17 00:00:00 2001 From: egeakman Date: Sat, 8 Jan 2022 19:30:19 +0300 Subject: [PATCH 27/35] Modify CI --- .github/workflows/get-changes.py | 16 ++++++++++++++++ .github/workflows/wrap.yml | 2 +- library/stdtypes.po | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/get-changes.py diff --git a/.github/workflows/get-changes.py b/.github/workflows/get-changes.py new file mode 100644 index 000000000..7bc0c0b82 --- /dev/null +++ b/.github/workflows/get-changes.py @@ -0,0 +1,16 @@ +import requests +import json +from argparse import ArgumentParser + +parser = ArgumentParser() +parser.add_argument("--pull_no", help="PR Number ${{ github.event.number }}") +args = parser.parse_args() + +response = requests.get( + f"https://api.github.com/repos/python-docs-tr/python-docs-tr/pulls/{args.pull_no}/files" +) + +response = json.loads(response.text) + +for number in range(len(response)): + print(response[number]["filename"]) diff --git a/.github/workflows/wrap.yml b/.github/workflows/wrap.yml index 7ddc0c40e..91b8e4167 100644 --- a/.github/workflows/wrap.yml +++ b/.github/workflows/wrap.yml @@ -47,7 +47,7 @@ jobs: # Detect changed files - name: Detect changed files - run: echo "CHANGED_FILES=$(git diff --name-only ${{ github.event.pull_request.before }}..${{ github.event.pull_request.after }} | tr '\n' ' ')" >> $GITHUB_ENV + run: echo "CHANGED_FILES=$(python .github/workflows/get-changes.py --pull_no ${{ github.event.number }} | tr '\n' ' ')" >> $GITHUB_ENV # Wrap changed files - name: Wrap diff --git a/library/stdtypes.po b/library/stdtypes.po index 6283107c3..6ea3dc2ac 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -20,7 +20,7 @@ msgstr "" #: library/stdtypes.rst:8 msgid "Built-in Types" msgstr "" -"TEST TEST TEST" +"TEST TEST TEST TEST" #: library/stdtypes.rst:10 From 519fcb30a98919d206490e4524044b6986a6edd7 Mon Sep 17 00:00:00 2001 From: egeakman Date: Sat, 8 Jan 2022 19:35:07 +0300 Subject: [PATCH 28/35] Modify CI --- .github/workflows/get-changes.py | 2 +- .github/workflows/wrap.yml | 4 +++- library/stdtypes.po | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/get-changes.py b/.github/workflows/get-changes.py index 7bc0c0b82..0d9fb0c40 100644 --- a/.github/workflows/get-changes.py +++ b/.github/workflows/get-changes.py @@ -3,7 +3,7 @@ from argparse import ArgumentParser parser = ArgumentParser() -parser.add_argument("--pull_no", help="PR Number ${{ github.event.number }}") +parser.add_argument("--pull", help="PR Number ${{ github.event.number }}") args = parser.parse_args() response = requests.get( diff --git a/.github/workflows/wrap.yml b/.github/workflows/wrap.yml index 91b8e4167..aab454ed4 100644 --- a/.github/workflows/wrap.yml +++ b/.github/workflows/wrap.yml @@ -47,7 +47,9 @@ jobs: # Detect changed files - name: Detect changed files - run: echo "CHANGED_FILES=$(python .github/workflows/get-changes.py --pull_no ${{ github.event.number }} | tr '\n' ' ')" >> $GITHUB_ENV + run: | + echo "EVENT_NUMBER=${{ github.event.number }}" + echo "CHANGED_FILES=$(python .github/workflows/get-changes.py --pull $EVENT_NUMBER | tr '\n' ' ')" >> $GITHUB_ENV # Wrap changed files - name: Wrap diff --git a/library/stdtypes.po b/library/stdtypes.po index 6ea3dc2ac..336a8fff8 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -20,7 +20,7 @@ msgstr "" #: library/stdtypes.rst:8 msgid "Built-in Types" msgstr "" -"TEST TEST TEST TEST" +"TEST TEST TEST TEST TEST" #: library/stdtypes.rst:10 From f4514c29cfe5d19105c6183dc93eb7fca90d1d62 Mon Sep 17 00:00:00 2001 From: egeakman Date: Sat, 8 Jan 2022 19:42:34 +0300 Subject: [PATCH 29/35] Modify CI --- .github/workflows/wrap.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/wrap.yml b/.github/workflows/wrap.yml index aab454ed4..9d377e814 100644 --- a/.github/workflows/wrap.yml +++ b/.github/workflows/wrap.yml @@ -48,7 +48,7 @@ jobs: # Detect changed files - name: Detect changed files run: | - echo "EVENT_NUMBER=${{ github.event.number }}" + echo "EVENT_NUMBER=${{ github.event.pull_request.number }}" echo "CHANGED_FILES=$(python .github/workflows/get-changes.py --pull $EVENT_NUMBER | tr '\n' ' ')" >> $GITHUB_ENV # Wrap changed files From 9aa1b1329f2b0f67bff3e3980fa5f07b9f9952d0 Mon Sep 17 00:00:00 2001 From: egeakman Date: Sat, 8 Jan 2022 19:44:44 +0300 Subject: [PATCH 30/35] Modify CI --- .github/workflows/wrap.yml | 4 ++-- library/stdtypes.po | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/wrap.yml b/.github/workflows/wrap.yml index 9d377e814..94f87a7dd 100644 --- a/.github/workflows/wrap.yml +++ b/.github/workflows/wrap.yml @@ -1,8 +1,8 @@ name: "Wrap" on: - pull_request_review: - types: [submitted] + pull_request: + branches: [ "**" ] jobs: wrap: diff --git a/library/stdtypes.po b/library/stdtypes.po index 336a8fff8..8f6b0e9fd 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -20,7 +20,7 @@ msgstr "" #: library/stdtypes.rst:8 msgid "Built-in Types" msgstr "" -"TEST TEST TEST TEST TEST" +"TEST TEST" #: library/stdtypes.rst:10 From 09be639f723cc6f5fc3be3ad945dcefcfd06bdd2 Mon Sep 17 00:00:00 2001 From: egeakman Date: Sat, 8 Jan 2022 19:47:04 +0300 Subject: [PATCH 31/35] Modify CI --- .github/workflows/wrap.yml | 2 -- library/stdtypes.po | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/wrap.yml b/.github/workflows/wrap.yml index 94f87a7dd..0e4d39816 100644 --- a/.github/workflows/wrap.yml +++ b/.github/workflows/wrap.yml @@ -6,8 +6,6 @@ on: jobs: wrap: - if: github.event.review.state == 'approved' - runs-on: ubuntu-latest strategy: diff --git a/library/stdtypes.po b/library/stdtypes.po index 8f6b0e9fd..6283107c3 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -20,7 +20,7 @@ msgstr "" #: library/stdtypes.rst:8 msgid "Built-in Types" msgstr "" -"TEST TEST" +"TEST TEST TEST" #: library/stdtypes.rst:10 From f099192c0c8259322db7da29ee21e118794e57d7 Mon Sep 17 00:00:00 2001 From: egeakman Date: Sat, 8 Jan 2022 19:48:50 +0300 Subject: [PATCH 32/35] Modify CI --- .github/workflows/wrap.yml | 4 +--- library/stdtypes.po | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/wrap.yml b/.github/workflows/wrap.yml index 0e4d39816..3ca3d95d3 100644 --- a/.github/workflows/wrap.yml +++ b/.github/workflows/wrap.yml @@ -45,9 +45,7 @@ jobs: # Detect changed files - name: Detect changed files - run: | - echo "EVENT_NUMBER=${{ github.event.pull_request.number }}" - echo "CHANGED_FILES=$(python .github/workflows/get-changes.py --pull $EVENT_NUMBER | tr '\n' ' ')" >> $GITHUB_ENV + run: echo "CHANGED_FILES=$(python .github/workflows/get-changes.py --pull ${{ github.event.pull_request.number }} | tr '\n' ' ')" >> $GITHUB_ENV # Wrap changed files - name: Wrap diff --git a/library/stdtypes.po b/library/stdtypes.po index 6283107c3..8f6b0e9fd 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -20,7 +20,7 @@ msgstr "" #: library/stdtypes.rst:8 msgid "Built-in Types" msgstr "" -"TEST TEST TEST" +"TEST TEST" #: library/stdtypes.rst:10 From 82e18e2fb1574aaefd4dea039ff3fda6d6d6ad82 Mon Sep 17 00:00:00 2001 From: egeakman Date: Sat, 8 Jan 2022 19:49:58 +0300 Subject: [PATCH 33/35] Modify CI --- .github/workflows/get-changes.py | 2 +- library/stdtypes.po | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/get-changes.py b/.github/workflows/get-changes.py index 0d9fb0c40..44c4b2b0c 100644 --- a/.github/workflows/get-changes.py +++ b/.github/workflows/get-changes.py @@ -7,7 +7,7 @@ args = parser.parse_args() response = requests.get( - f"https://api.github.com/repos/python-docs-tr/python-docs-tr/pulls/{args.pull_no}/files" + f"https://api.github.com/repos/python-docs-tr/python-docs-tr/pulls/{args.pull}/files" ) response = json.loads(response.text) diff --git a/library/stdtypes.po b/library/stdtypes.po index 8f6b0e9fd..6283107c3 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -20,7 +20,7 @@ msgstr "" #: library/stdtypes.rst:8 msgid "Built-in Types" msgstr "" -"TEST TEST" +"TEST TEST TEST" #: library/stdtypes.rst:10 From bbbd490b1e98fdae10a75286b893cfd298dd3bf7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 8 Jan 2022 16:50:33 +0000 Subject: [PATCH 34/35] Wrap translations --- library/stdtypes.po | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/library/stdtypes.po b/library/stdtypes.po index 6283107c3..279bb60ce 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -19,9 +19,7 @@ msgstr "" #: library/stdtypes.rst:8 msgid "Built-in Types" -msgstr "" -"TEST TEST TEST" - +msgstr "TEST TEST TEST" #: library/stdtypes.rst:10 msgid "" From 06eb475f2b8885c8d7513307f2f533038f7e4836 Mon Sep 17 00:00:00 2001 From: egeakman Date: Sat, 8 Jan 2022 19:52:12 +0300 Subject: [PATCH 35/35] Ready for PR --- library/stdtypes.po | 2 -- 1 file changed, 2 deletions(-) diff --git a/library/stdtypes.po b/library/stdtypes.po index 6283107c3..ad2b9a2f4 100644 --- a/library/stdtypes.po +++ b/library/stdtypes.po @@ -20,8 +20,6 @@ msgstr "" #: library/stdtypes.rst:8 msgid "Built-in Types" msgstr "" -"TEST TEST TEST" - #: library/stdtypes.rst:10 msgid ""