From f681af4d2c705afee002f16c843fb9826cf57fc9 Mon Sep 17 00:00:00 2001 From: Jiri Popelka Date: Fri, 29 Apr 2022 17:11:08 +0200 Subject: [PATCH 1/3] Pass PAGURE_TOKEN into check-in-container --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b0368850..a58640b1 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,8 @@ check: PYTHONPATH=$(CURDIR) PYTHONDONTWRITEBYTECODE=1 pytest --verbose --showlocals $(TEST_TARGET) check-in-container: - podman run --rm -it -v $(CURDIR):/src:Z -w /src --env TEST_TARGET $(OGR_IMAGE) make -e GITHUB_TOKEN=$(GITHUB_TOKEN) GITLAB_TOKEN=$(GITLAB_TOKEN) check + podman run --rm -it -v $(CURDIR):/src:Z -w /src --env TEST_TARGET $(OGR_IMAGE) \ + make -e GITHUB_TOKEN=$(GITHUB_TOKEN) GITLAB_TOKEN=$(GITLAB_TOKEN) PAGURE_TOKEN=$(PAGURE_TOKEN) check shell: podman run --rm -ti -v $(CURDIR):/src:Z -w /src $(OGR_IMAGE) bash From 7d4850d70ad60964312324df0b8fb3903e96567d Mon Sep 17 00:00:00 2001 From: Jiri Popelka Date: Fri, 29 Apr 2022 17:22:42 +0200 Subject: [PATCH 2/3] Use FQCN for builtin actions --- files/tasks/build-rpm-deps.yaml | 2 +- files/tasks/configure-git.yaml | 4 ++-- files/tasks/generic-dnf-requirements.yaml | 4 ++-- files/tasks/install-ogr.yaml | 4 ++-- files/tasks/packit-requirements.yaml | 4 ++-- files/tasks/packit-tests.yaml | 4 ++-- files/tasks/project-dir.yaml | 8 ++++---- files/tasks/python-compile-deps.yaml | 2 +- files/tasks/rpm-test-deps.yaml | 4 ++-- files/zuul-install-requirements-pip.yaml | 2 +- files/zuul-install-requirements-rpms.yaml | 2 +- files/zuul-reverse-dep-packit.yaml | 2 +- files/zuul-tests.yaml | 2 +- 13 files changed, 22 insertions(+), 22 deletions(-) diff --git a/files/tasks/build-rpm-deps.yaml b/files/tasks/build-rpm-deps.yaml index 92e4dc3b..c402b7f9 100644 --- a/files/tasks/build-rpm-deps.yaml +++ b/files/tasks/build-rpm-deps.yaml @@ -1,6 +1,6 @@ --- - name: Install RPM build dependencies - command: dnf -y builddep fedora/python-ogr.spec + ansible.builtin.command: dnf -y builddep fedora/python-ogr.spec args: chdir: "{{ project_dir }}" become: true diff --git a/files/tasks/configure-git.yaml b/files/tasks/configure-git.yaml index 8c79089a..eebaa8dc 100644 --- a/files/tasks/configure-git.yaml +++ b/files/tasks/configure-git.yaml @@ -1,5 +1,5 @@ --- - name: "set up git: email" - command: git config --global user.email test@example.com + ansible.builtin.command: git config --global user.email test@example.com - name: "set up git: name" - command: git config --global user.name "OGR Test Suite" + ansible.builtin.command: git config --global user.name "OGR Test Suite" diff --git a/files/tasks/generic-dnf-requirements.yaml b/files/tasks/generic-dnf-requirements.yaml index fbe40086..88ad7928 100644 --- a/files/tasks/generic-dnf-requirements.yaml +++ b/files/tasks/generic-dnf-requirements.yaml @@ -1,6 +1,6 @@ --- - name: Install generic RPM packages - dnf: + ansible.builtin.dnf: name: - make - git @@ -8,7 +8,7 @@ - python3-pip become: true - name: Install rpmautospec-rpm-macros - dnf: + ansible.builtin.dnf: name: - rpmautospec-rpm-macros # rpmautospec-rpm-macros is not in epel diff --git a/files/tasks/install-ogr.yaml b/files/tasks/install-ogr.yaml index 66dcb4f8..5de8eef1 100644 --- a/files/tasks/install-ogr.yaml +++ b/files/tasks/install-ogr.yaml @@ -1,7 +1,7 @@ --- - name: Print the current working directory - command: pwd + ansible.builtin.command: pwd - name: Install ogr from {{ project_dir }} - pip: + ansible.builtin.pip: name: "{{ project_dir }}" become: true diff --git a/files/tasks/packit-requirements.yaml b/files/tasks/packit-requirements.yaml index 1db3de36..785e1781 100644 --- a/files/tasks/packit-requirements.yaml +++ b/files/tasks/packit-requirements.yaml @@ -1,12 +1,12 @@ --- - name: Install ansible - dnf: + ansible.builtin.dnf: name: - ansible state: present become: true - name: Install packit dependencies via ansible playbooks - command: ansible-playbook -e "ansible_python_interpreter=/usr/bin/python3" -v -c local -i localhost, files/install-requirements-pip.yaml + ansible.builtin.command: ansible-playbook -e "ansible_python_interpreter=/usr/bin/python3" -v -c local -i localhost, files/install-requirements-pip.yaml args: chdir: "{{ reverse_dir }}" diff --git a/files/tasks/packit-tests.yaml b/files/tasks/packit-tests.yaml index 6ee960f6..ff20f444 100644 --- a/files/tasks/packit-tests.yaml +++ b/files/tasks/packit-tests.yaml @@ -1,9 +1,9 @@ --- - name: install and run basic packit tests via ansible playbooks - command: ansible-playbook -e "ansible_python_interpreter=/usr/bin/python3" -v -c local -i localhost, files/zuul-tests.yaml + ansible.builtin.command: ansible-playbook -e "ansible_python_interpreter=/usr/bin/python3" -v -c local -i localhost, files/zuul-tests.yaml args: chdir: "{{ reverse_dir }}" - name: install and run packit tests with session recording via ansible playbooks - command: ansible-playbook -e "ansible_python_interpreter=/usr/bin/python3" -v -c local -i localhost, files/zuul-tests-session-recording.yaml + ansible.builtin.command: ansible-playbook -e "ansible_python_interpreter=/usr/bin/python3" -v -c local -i localhost, files/zuul-tests-session-recording.yaml args: chdir: "{{ reverse_dir }}" diff --git a/files/tasks/project-dir.yaml b/files/tasks/project-dir.yaml index f84bf638..17256ddb 100644 --- a/files/tasks/project-dir.yaml +++ b/files/tasks/project-dir.yaml @@ -1,17 +1,17 @@ --- -- set_fact: +- ansible.builtin.set_fact: project_dir: "{{ playbook_dir }}/.." when: zuul is not defined -- set_fact: +- ansible.builtin.set_fact: project_dir: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}" when: zuul is defined - name: stat {{ project_dir }} - stat: + ansible.builtin.stat: path: "{{ project_dir }}" tags: - no-cache register: src_path - name: Make sure {{ project_dir }} is present - assert: + ansible.builtin.assert: that: - src_path.stat.isdir diff --git a/files/tasks/python-compile-deps.yaml b/files/tasks/python-compile-deps.yaml index bd9095ff..49fbaf9b 100644 --- a/files/tasks/python-compile-deps.yaml +++ b/files/tasks/python-compile-deps.yaml @@ -1,6 +1,6 @@ --- - name: Install specific RPMs to be able to use PIP installation - dnf: + ansible.builtin.dnf: name: - krb5-devel - gcc diff --git a/files/tasks/rpm-test-deps.yaml b/files/tasks/rpm-test-deps.yaml index d0ad9bc0..eb7d61f4 100644 --- a/files/tasks/rpm-test-deps.yaml +++ b/files/tasks/rpm-test-deps.yaml @@ -1,6 +1,6 @@ --- - name: Install test rpm dependencies - dnf: + ansible.builtin.dnf: name: - python3-pip - python3-setuptools @@ -14,7 +14,7 @@ state: present become: true - name: Install requre from git - pip: + ansible.builtin.pip: name: - git+https://github.com/packit/requre.git state: latest diff --git a/files/zuul-install-requirements-pip.yaml b/files/zuul-install-requirements-pip.yaml index f7a0ed85..97389b85 100644 --- a/files/zuul-install-requirements-pip.yaml +++ b/files/zuul-install-requirements-pip.yaml @@ -5,7 +5,7 @@ - include_tasks: tasks/generic-dnf-requirements.yaml - include_tasks: tasks/python-compile-deps.yaml - name: Install deps from PyPI - pip: + ansible.builtin.pip: name: "{{ item }}" with_items: - PyGithub diff --git a/files/zuul-install-requirements-rpms.yaml b/files/zuul-install-requirements-rpms.yaml index f63ff998..9f3247b5 100644 --- a/files/zuul-install-requirements-rpms.yaml +++ b/files/zuul-install-requirements-rpms.yaml @@ -6,7 +6,7 @@ - include_tasks: tasks/generic-dnf-requirements.yaml - include_tasks: tasks/build-rpm-deps.yaml - name: Install deps as RPMs - dnf: + ansible.builtin.dnf: name: - python3-pygithub - python3-gitlab diff --git a/files/zuul-reverse-dep-packit.yaml b/files/zuul-reverse-dep-packit.yaml index 0b24be69..6a190631 100644 --- a/files/zuul-reverse-dep-packit.yaml +++ b/files/zuul-reverse-dep-packit.yaml @@ -2,7 +2,7 @@ - name: Check if we are not breaking packit hosts: all tasks: - - set_fact: + - ansible.builtin.set_fact: reverse_dir: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/packit/packit'].src_dir }}" - include_tasks: tasks/project-dir.yaml - include_tasks: tasks/generic-dnf-requirements.yaml diff --git a/files/zuul-tests.yaml b/files/zuul-tests.yaml index c64a5e7f..3e123c4b 100644 --- a/files/zuul-tests.yaml +++ b/files/zuul-tests.yaml @@ -7,6 +7,6 @@ - include_tasks: tasks/install-ogr.yaml - include_tasks: tasks/configure-git.yaml - name: Run tests - command: make check + ansible.builtin.command: make check args: chdir: "{{ project_dir }}" From de4a18959feef4953f9ec565bb523a63070eaef9 Mon Sep 17 00:00:00 2001 From: Jiri Popelka Date: Fri, 29 Apr 2022 15:57:55 +0200 Subject: [PATCH 3/3] Add and implement PullRequest.reopen() --- ogr/abstract.py | 9 + ogr/services/github/pull_request.py | 4 + ogr/services/gitlab/pull_request.py | 5 + ogr/services/pagure/pull_request.py | 9 + .../PullRequests.test_pr_reopen.yaml | 1805 +++++++++++++++++ .../integration/github/test_pull_requests.py | 15 + .../PullRequests.test_pr_reopen.yaml | 1074 ++++++++++ .../integration/gitlab/test_pull_requests.py | 8 + .../integration/pagure/test_pull_requests.py | 16 + 9 files changed, 2945 insertions(+) create mode 100644 tests/integration/github/test_data/test_pull_requests/PullRequests.test_pr_reopen.yaml create mode 100644 tests/integration/gitlab/test_data/test_pull_requests/PullRequests.test_pr_reopen.yaml diff --git a/ogr/abstract.py b/ogr/abstract.py index 3b129bd5..560b0bf2 100644 --- a/ogr/abstract.py +++ b/ogr/abstract.py @@ -866,6 +866,15 @@ def close(self) -> "PullRequest": """ raise NotImplementedError() + def reopen(self) -> "PullRequest": + """ + Reopen closed pull request. + + Returns: + Pull request itself. + """ + raise NotImplementedError() + def merge(self) -> "PullRequest": """ Merge the pull request. diff --git a/ogr/services/github/pull_request.py b/ogr/services/github/pull_request.py index 4f7ff373..34545ff6 100644 --- a/ogr/services/github/pull_request.py +++ b/ogr/services/github/pull_request.py @@ -240,6 +240,10 @@ def close(self) -> "PullRequest": self._raw_pr.edit(state=PRStatus.closed.name) return self + def reopen(self) -> "PullRequest": + self._raw_pr.edit(state=PRStatus.open.name) + return self + def merge(self) -> "PullRequest": self._raw_pr.merge() return self diff --git a/ogr/services/gitlab/pull_request.py b/ogr/services/gitlab/pull_request.py index c17b2dd9..7b74be0f 100644 --- a/ogr/services/gitlab/pull_request.py +++ b/ogr/services/gitlab/pull_request.py @@ -279,6 +279,11 @@ def close(self) -> "PullRequest": self._raw_pr.save() return self + def reopen(self) -> "PullRequest": + self._raw_pr.state_event = "reopen" + self._raw_pr.save() + return self + def merge(self) -> "PullRequest": self._raw_pr.merge() return self diff --git a/ogr/services/pagure/pull_request.py b/ogr/services/pagure/pull_request.py index 4c88f63d..4e4452dc 100644 --- a/ogr/services/pagure/pull_request.py +++ b/ogr/services/pagure/pull_request.py @@ -251,6 +251,15 @@ def close(self) -> "PullRequest": self.__dirty = True return self + def reopen(self) -> "PullRequest": + return_value = self.__call_api("close", method="POST") + + if return_value["message"] != "Pull request reopened!": + raise PagureAPIException(return_value["message"]) + + self.__dirty = True + return self + def merge(self) -> "PullRequest": return_value = self.__call_api("merge", method="POST") diff --git a/tests/integration/github/test_data/test_pull_requests/PullRequests.test_pr_reopen.yaml b/tests/integration/github/test_data/test_pull_requests/PullRequests.test_pr_reopen.yaml new file mode 100644 index 00000000..b96d2a67 --- /dev/null +++ b/tests/integration/github/test_data/test_pull_requests/PullRequests.test_pr_reopen.yaml @@ -0,0 +1,1805 @@ +_requre: + DataTypes: 1 + key_strategy: StorageKeysInspectSimple + version_storage_file: 3 +requests.sessions: + send: + GET: + https://api.github.com:443/repos/packit/hello-world: + - metadata: + latency: 0.3193192481994629 + module_call_list: + - unittest.case + - requre.record_and_replace + - tests.integration.github.test_pull_requests + - ogr.abstract + - ogr.read_only + - ogr.utils + - ogr.abstract + - ogr.services.github.pull_request + - ogr.services.github.project + - github.MainClass + - github.Requester + - requests.sessions + - requre.objects + - requre.cassette + - requests.sessions + - send + output: + __store_indicator: 2 + _content: + allow_auto_merge: false + allow_forking: true + allow_merge_commit: true + allow_rebase_merge: true + allow_squash_merge: true + allow_update_branch: false + archive_url: https://api.github.com/repos/packit/hello-world/{archive_format}{/ref} + archived: false + assignees_url: https://api.github.com/repos/packit/hello-world/assignees{/user} + blobs_url: https://api.github.com/repos/packit/hello-world/git/blobs{/sha} + branches_url: https://api.github.com/repos/packit/hello-world/branches{/branch} + clone_url: https://github.com/packit/hello-world.git + collaborators_url: https://api.github.com/repos/packit/hello-world/collaborators{/collaborator} + comments_url: https://api.github.com/repos/packit/hello-world/comments{/number} + commits_url: https://api.github.com/repos/packit/hello-world/commits{/sha} + compare_url: https://api.github.com/repos/packit/hello-world/compare/{base}...{head} + contents_url: https://api.github.com/repos/packit/hello-world/contents/{+path} + contributors_url: https://api.github.com/repos/packit/hello-world/contributors + created_at: '2019-05-02T18:54:46Z' + default_branch: main + delete_branch_on_merge: false + deployments_url: https://api.github.com/repos/packit/hello-world/deployments + description: The most progresive command-line tool in the world. + disabled: false + downloads_url: https://api.github.com/repos/packit/hello-world/downloads + events_url: https://api.github.com/repos/packit/hello-world/events + fork: false + forks: 20 + forks_count: 20 + forks_url: https://api.github.com/repos/packit/hello-world/forks + full_name: packit/hello-world + git_commits_url: https://api.github.com/repos/packit/hello-world/git/commits{/sha} + git_refs_url: https://api.github.com/repos/packit/hello-world/git/refs{/sha} + git_tags_url: https://api.github.com/repos/packit/hello-world/git/tags{/sha} + git_url: git://github.com/packit/hello-world.git + has_downloads: true + has_issues: true + has_pages: false + has_projects: true + has_wiki: true + homepage: null + hooks_url: https://api.github.com/repos/packit/hello-world/hooks + html_url: https://github.com/packit/hello-world + id: 184635124 + is_template: false + issue_comment_url: https://api.github.com/repos/packit/hello-world/issues/comments{/number} + issue_events_url: https://api.github.com/repos/packit/hello-world/issues/events{/number} + issues_url: https://api.github.com/repos/packit/hello-world/issues{/number} + keys_url: https://api.github.com/repos/packit/hello-world/keys{/key_id} + labels_url: https://api.github.com/repos/packit/hello-world/labels{/name} + language: Python + languages_url: https://api.github.com/repos/packit/hello-world/languages + license: + key: mit + name: MIT License + node_id: MDc6TGljZW5zZTEz + spdx_id: MIT + url: https://api.github.com/licenses/mit + merges_url: https://api.github.com/repos/packit/hello-world/merges + milestones_url: https://api.github.com/repos/packit/hello-world/milestones{/number} + mirror_url: null + name: hello-world + network_count: 20 + node_id: MDEwOlJlcG9zaXRvcnkxODQ2MzUxMjQ= + notifications_url: https://api.github.com/repos/packit/hello-world/notifications{?since,all,participating} + open_issues: 68 + open_issues_count: 68 + organization: + avatar_url: https://avatars.githubusercontent.com/u/46870917?v=4 + events_url: https://api.github.com/users/packit/events{/privacy} + followers_url: https://api.github.com/users/packit/followers + following_url: https://api.github.com/users/packit/following{/other_user} + gists_url: https://api.github.com/users/packit/gists{/gist_id} + gravatar_id: '' + html_url: https://github.com/packit + id: 46870917 + login: packit + node_id: MDEyOk9yZ2FuaXphdGlvbjQ2ODcwOTE3 + organizations_url: https://api.github.com/users/packit/orgs + received_events_url: https://api.github.com/users/packit/received_events + repos_url: https://api.github.com/users/packit/repos + site_admin: false + starred_url: https://api.github.com/users/packit/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/packit/subscriptions + type: Organization + url: https://api.github.com/users/packit + owner: + avatar_url: https://avatars.githubusercontent.com/u/46870917?v=4 + events_url: https://api.github.com/users/packit/events{/privacy} + followers_url: https://api.github.com/users/packit/followers + following_url: https://api.github.com/users/packit/following{/other_user} + gists_url: https://api.github.com/users/packit/gists{/gist_id} + gravatar_id: '' + html_url: https://github.com/packit + id: 46870917 + login: packit + node_id: MDEyOk9yZ2FuaXphdGlvbjQ2ODcwOTE3 + organizations_url: https://api.github.com/users/packit/orgs + received_events_url: https://api.github.com/users/packit/received_events + repos_url: https://api.github.com/users/packit/repos + site_admin: false + starred_url: https://api.github.com/users/packit/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/packit/subscriptions + type: Organization + url: https://api.github.com/users/packit + permissions: + admin: true + maintain: true + pull: true + push: true + triage: true + private: false + pulls_url: https://api.github.com/repos/packit/hello-world/pulls{/number} + pushed_at: '2022-04-29T05:37:00Z' + releases_url: https://api.github.com/repos/packit/hello-world/releases{/id} + size: 58 + ssh_url: git@github.com:packit/hello-world.git + stargazers_count: 4 + stargazers_url: https://api.github.com/repos/packit/hello-world/stargazers + statuses_url: https://api.github.com/repos/packit/hello-world/statuses/{sha} + subscribers_count: 8 + subscribers_url: https://api.github.com/repos/packit/hello-world/subscribers + subscription_url: https://api.github.com/repos/packit/hello-world/subscription + svn_url: https://github.com/packit/hello-world + tags_url: https://api.github.com/repos/packit/hello-world/tags + teams_url: https://api.github.com/repos/packit/hello-world/teams + temp_clone_token: '' + topics: [] + trees_url: https://api.github.com/repos/packit/hello-world/git/trees{/sha} + updated_at: '2022-02-04T14:06:18Z' + url: https://api.github.com/repos/packit/hello-world + visibility: public + watchers: 4 + watchers_count: 4 + _next: null + elapsed: 0.318917 + encoding: utf-8 + headers: + Access-Control-Allow-Origin: '*' + Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, + X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, + X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, + X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, + Sunset + Cache-Control: private, max-age=60, s-maxage=60 + Content-Encoding: gzip + Content-Security-Policy: default-src 'none' + Content-Type: application/json; charset=utf-8 + Date: Fri, 29 Apr 2022 14:17:36 GMT + ETag: W/"5e60df2f06af45e04b0bc3aedbef6c705c9e17f9872a034eae60ec485f46b256" + Last-Modified: Fri, 04 Feb 2022 14:06:18 GMT + Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin + Server: GitHub.com + Strict-Transport-Security: max-age=31536000; includeSubdomains; preload + Transfer-Encoding: chunked + Vary: Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, + X-Requested-With + X-Accepted-OAuth-Scopes: repo + X-Content-Type-Options: nosniff + X-Frame-Options: deny + X-GitHub-Media-Type: github.v3; format=json + X-GitHub-Request-Id: 52E6:08E6:1B7DD5B:1BF7A9D:626BF380 + X-OAuth-Scopes: repo + X-RateLimit-Limit: '5000' + X-RateLimit-Remaining: '4998' + X-RateLimit-Reset: '1651244711' + X-RateLimit-Resource: core + X-RateLimit-Used: '2' + X-XSS-Protection: '0' + github-authentication-token-expiration: 2022-10-09 22:00:00 UTC + raw: !!binary "" + reason: OK + status_code: 200 + https://api.github.com:443/repos/packit/hello-world/pulls/727: + - metadata: + latency: 0.2938530445098877 + module_call_list: + - unittest.case + - requre.record_and_replace + - tests.integration.github.test_pull_requests + - ogr.abstract + - ogr.utils + - ogr.abstract + - ogr.services.github.pull_request + - github.Repository + - github.Requester + - requests.sessions + - requre.objects + - requre.cassette + - requests.sessions + - send + output: + __store_indicator: 2 + _content: + _links: + comments: + href: https://api.github.com/repos/packit/hello-world/issues/727/comments + commits: + href: https://api.github.com/repos/packit/hello-world/pulls/727/commits + html: + href: https://github.com/packit/hello-world/pull/727 + issue: + href: https://api.github.com/repos/packit/hello-world/issues/727 + review_comment: + href: https://api.github.com/repos/packit/hello-world/pulls/comments{/number} + review_comments: + href: https://api.github.com/repos/packit/hello-world/pulls/727/comments + self: + href: https://api.github.com/repos/packit/hello-world/pulls/727 + statuses: + href: https://api.github.com/repos/packit/hello-world/statuses/7cf6d0cbeca285ecbeb19a0067cb243783b3c768 + active_lock_reason: null + additions: 0 + assignee: null + assignees: [] + author_association: MEMBER + auto_merge: null + base: + label: packit:test_target + ref: test_target + repo: + allow_forking: true + archive_url: https://api.github.com/repos/packit/hello-world/{archive_format}{/ref} + archived: false + assignees_url: https://api.github.com/repos/packit/hello-world/assignees{/user} + blobs_url: https://api.github.com/repos/packit/hello-world/git/blobs{/sha} + branches_url: https://api.github.com/repos/packit/hello-world/branches{/branch} + clone_url: https://github.com/packit/hello-world.git + collaborators_url: https://api.github.com/repos/packit/hello-world/collaborators{/collaborator} + comments_url: https://api.github.com/repos/packit/hello-world/comments{/number} + commits_url: https://api.github.com/repos/packit/hello-world/commits{/sha} + compare_url: https://api.github.com/repos/packit/hello-world/compare/{base}...{head} + contents_url: https://api.github.com/repos/packit/hello-world/contents/{+path} + contributors_url: https://api.github.com/repos/packit/hello-world/contributors + created_at: '2019-05-02T18:54:46Z' + default_branch: main + deployments_url: https://api.github.com/repos/packit/hello-world/deployments + description: The most progresive command-line tool in the world. + disabled: false + downloads_url: https://api.github.com/repos/packit/hello-world/downloads + events_url: https://api.github.com/repos/packit/hello-world/events + fork: false + forks: 20 + forks_count: 20 + forks_url: https://api.github.com/repos/packit/hello-world/forks + full_name: packit/hello-world + git_commits_url: https://api.github.com/repos/packit/hello-world/git/commits{/sha} + git_refs_url: https://api.github.com/repos/packit/hello-world/git/refs{/sha} + git_tags_url: https://api.github.com/repos/packit/hello-world/git/tags{/sha} + git_url: git://github.com/packit/hello-world.git + has_downloads: true + has_issues: true + has_pages: false + has_projects: true + has_wiki: true + homepage: null + hooks_url: https://api.github.com/repos/packit/hello-world/hooks + html_url: https://github.com/packit/hello-world + id: 184635124 + is_template: false + issue_comment_url: https://api.github.com/repos/packit/hello-world/issues/comments{/number} + issue_events_url: https://api.github.com/repos/packit/hello-world/issues/events{/number} + issues_url: https://api.github.com/repos/packit/hello-world/issues{/number} + keys_url: https://api.github.com/repos/packit/hello-world/keys{/key_id} + labels_url: https://api.github.com/repos/packit/hello-world/labels{/name} + language: Python + languages_url: https://api.github.com/repos/packit/hello-world/languages + license: + key: mit + name: MIT License + node_id: MDc6TGljZW5zZTEz + spdx_id: MIT + url: https://api.github.com/licenses/mit + merges_url: https://api.github.com/repos/packit/hello-world/merges + milestones_url: https://api.github.com/repos/packit/hello-world/milestones{/number} + mirror_url: null + name: hello-world + node_id: MDEwOlJlcG9zaXRvcnkxODQ2MzUxMjQ= + notifications_url: https://api.github.com/repos/packit/hello-world/notifications{?since,all,participating} + open_issues: 69 + open_issues_count: 69 + owner: + avatar_url: https://avatars.githubusercontent.com/u/46870917?v=4 + events_url: https://api.github.com/users/packit/events{/privacy} + followers_url: https://api.github.com/users/packit/followers + following_url: https://api.github.com/users/packit/following{/other_user} + gists_url: https://api.github.com/users/packit/gists{/gist_id} + gravatar_id: '' + html_url: https://github.com/packit + id: 46870917 + login: packit + node_id: MDEyOk9yZ2FuaXphdGlvbjQ2ODcwOTE3 + organizations_url: https://api.github.com/users/packit/orgs + received_events_url: https://api.github.com/users/packit/received_events + repos_url: https://api.github.com/users/packit/repos + site_admin: false + starred_url: https://api.github.com/users/packit/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/packit/subscriptions + type: Organization + url: https://api.github.com/users/packit + private: false + pulls_url: https://api.github.com/repos/packit/hello-world/pulls{/number} + pushed_at: '2022-04-29T14:17:37Z' + releases_url: https://api.github.com/repos/packit/hello-world/releases{/id} + size: 58 + ssh_url: git@github.com:packit/hello-world.git + stargazers_count: 4 + stargazers_url: https://api.github.com/repos/packit/hello-world/stargazers + statuses_url: https://api.github.com/repos/packit/hello-world/statuses/{sha} + subscribers_url: https://api.github.com/repos/packit/hello-world/subscribers + subscription_url: https://api.github.com/repos/packit/hello-world/subscription + svn_url: https://github.com/packit/hello-world + tags_url: https://api.github.com/repos/packit/hello-world/tags + teams_url: https://api.github.com/repos/packit/hello-world/teams + topics: [] + trees_url: https://api.github.com/repos/packit/hello-world/git/trees{/sha} + updated_at: '2022-02-04T14:06:18Z' + url: https://api.github.com/repos/packit/hello-world + visibility: public + watchers: 4 + watchers_count: 4 + sha: 28d30dd1178b9983a0b717c809895500b2a3583b + user: + avatar_url: https://avatars.githubusercontent.com/u/46870917?v=4 + events_url: https://api.github.com/users/packit/events{/privacy} + followers_url: https://api.github.com/users/packit/followers + following_url: https://api.github.com/users/packit/following{/other_user} + gists_url: https://api.github.com/users/packit/gists{/gist_id} + gravatar_id: '' + html_url: https://github.com/packit + id: 46870917 + login: packit + node_id: MDEyOk9yZ2FuaXphdGlvbjQ2ODcwOTE3 + organizations_url: https://api.github.com/users/packit/orgs + received_events_url: https://api.github.com/users/packit/received_events + repos_url: https://api.github.com/users/packit/repos + site_admin: false + starred_url: https://api.github.com/users/packit/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/packit/subscriptions + type: Organization + url: https://api.github.com/users/packit + body: pull request body + changed_files: 1 + closed_at: null + comments: 0 + comments_url: https://api.github.com/repos/packit/hello-world/issues/727/comments + commits: 3 + commits_url: https://api.github.com/repos/packit/hello-world/pulls/727/commits + created_at: '2022-04-29T14:17:37Z' + deletions: 26 + diff_url: https://github.com/packit/hello-world/pull/727.diff + draft: false + head: + label: packit:test_source + ref: test_source + repo: + allow_forking: true + archive_url: https://api.github.com/repos/packit/hello-world/{archive_format}{/ref} + archived: false + assignees_url: https://api.github.com/repos/packit/hello-world/assignees{/user} + blobs_url: https://api.github.com/repos/packit/hello-world/git/blobs{/sha} + branches_url: https://api.github.com/repos/packit/hello-world/branches{/branch} + clone_url: https://github.com/packit/hello-world.git + collaborators_url: https://api.github.com/repos/packit/hello-world/collaborators{/collaborator} + comments_url: https://api.github.com/repos/packit/hello-world/comments{/number} + commits_url: https://api.github.com/repos/packit/hello-world/commits{/sha} + compare_url: https://api.github.com/repos/packit/hello-world/compare/{base}...{head} + contents_url: https://api.github.com/repos/packit/hello-world/contents/{+path} + contributors_url: https://api.github.com/repos/packit/hello-world/contributors + created_at: '2019-05-02T18:54:46Z' + default_branch: main + deployments_url: https://api.github.com/repos/packit/hello-world/deployments + description: The most progresive command-line tool in the world. + disabled: false + downloads_url: https://api.github.com/repos/packit/hello-world/downloads + events_url: https://api.github.com/repos/packit/hello-world/events + fork: false + forks: 20 + forks_count: 20 + forks_url: https://api.github.com/repos/packit/hello-world/forks + full_name: packit/hello-world + git_commits_url: https://api.github.com/repos/packit/hello-world/git/commits{/sha} + git_refs_url: https://api.github.com/repos/packit/hello-world/git/refs{/sha} + git_tags_url: https://api.github.com/repos/packit/hello-world/git/tags{/sha} + git_url: git://github.com/packit/hello-world.git + has_downloads: true + has_issues: true + has_pages: false + has_projects: true + has_wiki: true + homepage: null + hooks_url: https://api.github.com/repos/packit/hello-world/hooks + html_url: https://github.com/packit/hello-world + id: 184635124 + is_template: false + issue_comment_url: https://api.github.com/repos/packit/hello-world/issues/comments{/number} + issue_events_url: https://api.github.com/repos/packit/hello-world/issues/events{/number} + issues_url: https://api.github.com/repos/packit/hello-world/issues{/number} + keys_url: https://api.github.com/repos/packit/hello-world/keys{/key_id} + labels_url: https://api.github.com/repos/packit/hello-world/labels{/name} + language: Python + languages_url: https://api.github.com/repos/packit/hello-world/languages + license: + key: mit + name: MIT License + node_id: MDc6TGljZW5zZTEz + spdx_id: MIT + url: https://api.github.com/licenses/mit + merges_url: https://api.github.com/repos/packit/hello-world/merges + milestones_url: https://api.github.com/repos/packit/hello-world/milestones{/number} + mirror_url: null + name: hello-world + node_id: MDEwOlJlcG9zaXRvcnkxODQ2MzUxMjQ= + notifications_url: https://api.github.com/repos/packit/hello-world/notifications{?since,all,participating} + open_issues: 69 + open_issues_count: 69 + owner: + avatar_url: https://avatars.githubusercontent.com/u/46870917?v=4 + events_url: https://api.github.com/users/packit/events{/privacy} + followers_url: https://api.github.com/users/packit/followers + following_url: https://api.github.com/users/packit/following{/other_user} + gists_url: https://api.github.com/users/packit/gists{/gist_id} + gravatar_id: '' + html_url: https://github.com/packit + id: 46870917 + login: packit + node_id: MDEyOk9yZ2FuaXphdGlvbjQ2ODcwOTE3 + organizations_url: https://api.github.com/users/packit/orgs + received_events_url: https://api.github.com/users/packit/received_events + repos_url: https://api.github.com/users/packit/repos + site_admin: false + starred_url: https://api.github.com/users/packit/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/packit/subscriptions + type: Organization + url: https://api.github.com/users/packit + private: false + pulls_url: https://api.github.com/repos/packit/hello-world/pulls{/number} + pushed_at: '2022-04-29T14:17:37Z' + releases_url: https://api.github.com/repos/packit/hello-world/releases{/id} + size: 58 + ssh_url: git@github.com:packit/hello-world.git + stargazers_count: 4 + stargazers_url: https://api.github.com/repos/packit/hello-world/stargazers + statuses_url: https://api.github.com/repos/packit/hello-world/statuses/{sha} + subscribers_url: https://api.github.com/repos/packit/hello-world/subscribers + subscription_url: https://api.github.com/repos/packit/hello-world/subscription + svn_url: https://github.com/packit/hello-world + tags_url: https://api.github.com/repos/packit/hello-world/tags + teams_url: https://api.github.com/repos/packit/hello-world/teams + topics: [] + trees_url: https://api.github.com/repos/packit/hello-world/git/trees{/sha} + updated_at: '2022-02-04T14:06:18Z' + url: https://api.github.com/repos/packit/hello-world + visibility: public + watchers: 4 + watchers_count: 4 + sha: 7cf6d0cbeca285ecbeb19a0067cb243783b3c768 + user: + avatar_url: https://avatars.githubusercontent.com/u/46870917?v=4 + events_url: https://api.github.com/users/packit/events{/privacy} + followers_url: https://api.github.com/users/packit/followers + following_url: https://api.github.com/users/packit/following{/other_user} + gists_url: https://api.github.com/users/packit/gists{/gist_id} + gravatar_id: '' + html_url: https://github.com/packit + id: 46870917 + login: packit + node_id: MDEyOk9yZ2FuaXphdGlvbjQ2ODcwOTE3 + organizations_url: https://api.github.com/users/packit/orgs + received_events_url: https://api.github.com/users/packit/received_events + repos_url: https://api.github.com/users/packit/repos + site_admin: false + starred_url: https://api.github.com/users/packit/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/packit/subscriptions + type: Organization + url: https://api.github.com/users/packit + html_url: https://github.com/packit/hello-world/pull/727 + id: 923893120 + issue_url: https://api.github.com/repos/packit/hello-world/issues/727 + labels: [] + locked: false + maintainer_can_modify: false + merge_commit_sha: 2ce510916b217cb67b04a9749bf2f1b126d681a3 + mergeable: null + mergeable_state: unknown + merged: false + merged_at: null + merged_by: null + milestone: null + node_id: PR_kwDOCwFO9M43EX2A + number: 727 + patch_url: https://github.com/packit/hello-world/pull/727.patch + rebaseable: null + requested_reviewers: [] + requested_teams: [] + review_comment_url: https://api.github.com/repos/packit/hello-world/pulls/comments{/number} + review_comments: 0 + review_comments_url: https://api.github.com/repos/packit/hello-world/pulls/727/comments + state: open + statuses_url: https://api.github.com/repos/packit/hello-world/statuses/7cf6d0cbeca285ecbeb19a0067cb243783b3c768 + title: test pr_reopen + updated_at: '2022-04-29T14:17:38Z' + url: https://api.github.com/repos/packit/hello-world/pulls/727 + user: + avatar_url: https://avatars.githubusercontent.com/u/288686?v=4 + events_url: https://api.github.com/users/jpopelka/events{/privacy} + followers_url: https://api.github.com/users/jpopelka/followers + following_url: https://api.github.com/users/jpopelka/following{/other_user} + gists_url: https://api.github.com/users/jpopelka/gists{/gist_id} + gravatar_id: '' + html_url: https://github.com/jpopelka + id: 288686 + login: jpopelka + node_id: MDQ6VXNlcjI4ODY4Ng== + organizations_url: https://api.github.com/users/jpopelka/orgs + received_events_url: https://api.github.com/users/jpopelka/received_events + repos_url: https://api.github.com/users/jpopelka/repos + site_admin: false + starred_url: https://api.github.com/users/jpopelka/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/jpopelka/subscriptions + type: User + url: https://api.github.com/users/jpopelka + _next: null + elapsed: 0.293238 + encoding: utf-8 + headers: + Access-Control-Allow-Origin: '*' + Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, + X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, + X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, + X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, + Sunset + Cache-Control: private, max-age=60, s-maxage=60 + Content-Encoding: gzip + Content-Security-Policy: default-src 'none' + Content-Type: application/json; charset=utf-8 + Date: Fri, 29 Apr 2022 14:17:39 GMT + ETag: W/"27369fb6e80839c2f3b0e656b41d817a03ffd5ee4eb007f820356013e3e8c853" + Last-Modified: Fri, 29 Apr 2022 14:17:38 GMT + Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin + Server: GitHub.com + Strict-Transport-Security: max-age=31536000; includeSubdomains; preload + Transfer-Encoding: chunked + Vary: Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, + X-Requested-With + X-Accepted-OAuth-Scopes: '' + X-Content-Type-Options: nosniff + X-Frame-Options: deny + X-GitHub-Media-Type: github.v3; format=json + X-GitHub-Request-Id: 52E6:08E6:1B7E156:1BF7EA9:626BF383 + X-OAuth-Scopes: repo + X-RateLimit-Limit: '5000' + X-RateLimit-Remaining: '4994' + X-RateLimit-Reset: '1651244711' + X-RateLimit-Resource: core + X-RateLimit-Used: '6' + X-XSS-Protection: '0' + github-authentication-token-expiration: 2022-10-09 22:00:00 UTC + raw: !!binary "" + reason: OK + status_code: 200 + https://api.github.com:443/repos/packit/hello-world/pulls/727/merge: + - metadata: + latency: 0.20800471305847168 + module_call_list: + - ogr.abstract + - ogr.services.github.pull_request + - ogr.abstract + - ogr.services.github.pull_request + - github.PullRequest + - github.Requester + - requests.sessions + - requre.objects + - requre.cassette + - requests.sessions + - send + output: + __store_indicator: 2 + _content: + documentation_url: https://docs.github.com/rest/reference/pulls#check-if-a-pull-request-has-been-merged + message: Not Found + _next: null + elapsed: 0.20759 + encoding: utf-8 + headers: + Access-Control-Allow-Origin: '*' + Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, + X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, + X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, + X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, + Sunset + Content-Encoding: gzip + Content-Security-Policy: default-src 'none' + Content-Type: application/json; charset=utf-8 + Date: Fri, 29 Apr 2022 14:17:39 GMT + Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin + Server: GitHub.com + Strict-Transport-Security: max-age=31536000; includeSubdomains; preload + Transfer-Encoding: chunked + Vary: Accept-Encoding, Accept, X-Requested-With + X-Accepted-OAuth-Scopes: '' + X-Content-Type-Options: nosniff + X-Frame-Options: deny + X-GitHub-Media-Type: github.v3; format=json + X-GitHub-Request-Id: 52E6:08E6:1B7E1D3:1BF7F27:626BF383 + X-OAuth-Scopes: repo + X-RateLimit-Limit: '5000' + X-RateLimit-Remaining: '4993' + X-RateLimit-Reset: '1651244711' + X-RateLimit-Resource: core + X-RateLimit-Used: '7' + X-XSS-Protection: '0' + github-authentication-token-expiration: 2022-10-09 22:00:00 UTC + raw: !!binary "" + reason: Not Found + status_code: 404 + PATCH: + https://api.github.com:443/repos/packit/hello-world/pulls/727: + - metadata: + latency: 0.6325764656066895 + module_call_list: + - unittest.case + - requre.record_and_replace + - tests.integration.github.test_pull_requests + - ogr.abstract + - ogr.services.github.pull_request + - github.PullRequest + - github.Requester + - requests.sessions + - requre.objects + - requre.cassette + - requests.sessions + - send + output: + __store_indicator: 2 + _content: + _links: + comments: + href: https://api.github.com/repos/packit/hello-world/issues/727/comments + commits: + href: https://api.github.com/repos/packit/hello-world/pulls/727/commits + html: + href: https://github.com/packit/hello-world/pull/727 + issue: + href: https://api.github.com/repos/packit/hello-world/issues/727 + review_comment: + href: https://api.github.com/repos/packit/hello-world/pulls/comments{/number} + review_comments: + href: https://api.github.com/repos/packit/hello-world/pulls/727/comments + self: + href: https://api.github.com/repos/packit/hello-world/pulls/727 + statuses: + href: https://api.github.com/repos/packit/hello-world/statuses/7cf6d0cbeca285ecbeb19a0067cb243783b3c768 + active_lock_reason: null + additions: 0 + assignee: null + assignees: [] + author_association: MEMBER + auto_merge: null + base: + label: packit:test_target + ref: test_target + repo: + allow_forking: true + archive_url: https://api.github.com/repos/packit/hello-world/{archive_format}{/ref} + archived: false + assignees_url: https://api.github.com/repos/packit/hello-world/assignees{/user} + blobs_url: https://api.github.com/repos/packit/hello-world/git/blobs{/sha} + branches_url: https://api.github.com/repos/packit/hello-world/branches{/branch} + clone_url: https://github.com/packit/hello-world.git + collaborators_url: https://api.github.com/repos/packit/hello-world/collaborators{/collaborator} + comments_url: https://api.github.com/repos/packit/hello-world/comments{/number} + commits_url: https://api.github.com/repos/packit/hello-world/commits{/sha} + compare_url: https://api.github.com/repos/packit/hello-world/compare/{base}...{head} + contents_url: https://api.github.com/repos/packit/hello-world/contents/{+path} + contributors_url: https://api.github.com/repos/packit/hello-world/contributors + created_at: '2019-05-02T18:54:46Z' + default_branch: main + deployments_url: https://api.github.com/repos/packit/hello-world/deployments + description: The most progresive command-line tool in the world. + disabled: false + downloads_url: https://api.github.com/repos/packit/hello-world/downloads + events_url: https://api.github.com/repos/packit/hello-world/events + fork: false + forks: 20 + forks_count: 20 + forks_url: https://api.github.com/repos/packit/hello-world/forks + full_name: packit/hello-world + git_commits_url: https://api.github.com/repos/packit/hello-world/git/commits{/sha} + git_refs_url: https://api.github.com/repos/packit/hello-world/git/refs{/sha} + git_tags_url: https://api.github.com/repos/packit/hello-world/git/tags{/sha} + git_url: git://github.com/packit/hello-world.git + has_downloads: true + has_issues: true + has_pages: false + has_projects: true + has_wiki: true + homepage: null + hooks_url: https://api.github.com/repos/packit/hello-world/hooks + html_url: https://github.com/packit/hello-world + id: 184635124 + is_template: false + issue_comment_url: https://api.github.com/repos/packit/hello-world/issues/comments{/number} + issue_events_url: https://api.github.com/repos/packit/hello-world/issues/events{/number} + issues_url: https://api.github.com/repos/packit/hello-world/issues{/number} + keys_url: https://api.github.com/repos/packit/hello-world/keys{/key_id} + labels_url: https://api.github.com/repos/packit/hello-world/labels{/name} + language: Python + languages_url: https://api.github.com/repos/packit/hello-world/languages + license: + key: mit + name: MIT License + node_id: MDc6TGljZW5zZTEz + spdx_id: MIT + url: https://api.github.com/licenses/mit + merges_url: https://api.github.com/repos/packit/hello-world/merges + milestones_url: https://api.github.com/repos/packit/hello-world/milestones{/number} + mirror_url: null + name: hello-world + node_id: MDEwOlJlcG9zaXRvcnkxODQ2MzUxMjQ= + notifications_url: https://api.github.com/repos/packit/hello-world/notifications{?since,all,participating} + open_issues: 68 + open_issues_count: 68 + owner: + avatar_url: https://avatars.githubusercontent.com/u/46870917?v=4 + events_url: https://api.github.com/users/packit/events{/privacy} + followers_url: https://api.github.com/users/packit/followers + following_url: https://api.github.com/users/packit/following{/other_user} + gists_url: https://api.github.com/users/packit/gists{/gist_id} + gravatar_id: '' + html_url: https://github.com/packit + id: 46870917 + login: packit + node_id: MDEyOk9yZ2FuaXphdGlvbjQ2ODcwOTE3 + organizations_url: https://api.github.com/users/packit/orgs + received_events_url: https://api.github.com/users/packit/received_events + repos_url: https://api.github.com/users/packit/repos + site_admin: false + starred_url: https://api.github.com/users/packit/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/packit/subscriptions + type: Organization + url: https://api.github.com/users/packit + private: false + pulls_url: https://api.github.com/repos/packit/hello-world/pulls{/number} + pushed_at: '2022-04-29T14:17:37Z' + releases_url: https://api.github.com/repos/packit/hello-world/releases{/id} + size: 58 + ssh_url: git@github.com:packit/hello-world.git + stargazers_count: 4 + stargazers_url: https://api.github.com/repos/packit/hello-world/stargazers + statuses_url: https://api.github.com/repos/packit/hello-world/statuses/{sha} + subscribers_url: https://api.github.com/repos/packit/hello-world/subscribers + subscription_url: https://api.github.com/repos/packit/hello-world/subscription + svn_url: https://github.com/packit/hello-world + tags_url: https://api.github.com/repos/packit/hello-world/tags + teams_url: https://api.github.com/repos/packit/hello-world/teams + topics: [] + trees_url: https://api.github.com/repos/packit/hello-world/git/trees{/sha} + updated_at: '2022-02-04T14:06:18Z' + url: https://api.github.com/repos/packit/hello-world + visibility: public + watchers: 4 + watchers_count: 4 + sha: 28d30dd1178b9983a0b717c809895500b2a3583b + user: + avatar_url: https://avatars.githubusercontent.com/u/46870917?v=4 + events_url: https://api.github.com/users/packit/events{/privacy} + followers_url: https://api.github.com/users/packit/followers + following_url: https://api.github.com/users/packit/following{/other_user} + gists_url: https://api.github.com/users/packit/gists{/gist_id} + gravatar_id: '' + html_url: https://github.com/packit + id: 46870917 + login: packit + node_id: MDEyOk9yZ2FuaXphdGlvbjQ2ODcwOTE3 + organizations_url: https://api.github.com/users/packit/orgs + received_events_url: https://api.github.com/users/packit/received_events + repos_url: https://api.github.com/users/packit/repos + site_admin: false + starred_url: https://api.github.com/users/packit/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/packit/subscriptions + type: Organization + url: https://api.github.com/users/packit + body: pull request body + changed_files: 1 + closed_at: '2022-04-29T14:17:38Z' + comments: 0 + comments_url: https://api.github.com/repos/packit/hello-world/issues/727/comments + commits: 3 + commits_url: https://api.github.com/repos/packit/hello-world/pulls/727/commits + created_at: '2022-04-29T14:17:37Z' + deletions: 26 + diff_url: https://github.com/packit/hello-world/pull/727.diff + draft: false + head: + label: packit:test_source + ref: test_source + repo: + allow_forking: true + archive_url: https://api.github.com/repos/packit/hello-world/{archive_format}{/ref} + archived: false + assignees_url: https://api.github.com/repos/packit/hello-world/assignees{/user} + blobs_url: https://api.github.com/repos/packit/hello-world/git/blobs{/sha} + branches_url: https://api.github.com/repos/packit/hello-world/branches{/branch} + clone_url: https://github.com/packit/hello-world.git + collaborators_url: https://api.github.com/repos/packit/hello-world/collaborators{/collaborator} + comments_url: https://api.github.com/repos/packit/hello-world/comments{/number} + commits_url: https://api.github.com/repos/packit/hello-world/commits{/sha} + compare_url: https://api.github.com/repos/packit/hello-world/compare/{base}...{head} + contents_url: https://api.github.com/repos/packit/hello-world/contents/{+path} + contributors_url: https://api.github.com/repos/packit/hello-world/contributors + created_at: '2019-05-02T18:54:46Z' + default_branch: main + deployments_url: https://api.github.com/repos/packit/hello-world/deployments + description: The most progresive command-line tool in the world. + disabled: false + downloads_url: https://api.github.com/repos/packit/hello-world/downloads + events_url: https://api.github.com/repos/packit/hello-world/events + fork: false + forks: 20 + forks_count: 20 + forks_url: https://api.github.com/repos/packit/hello-world/forks + full_name: packit/hello-world + git_commits_url: https://api.github.com/repos/packit/hello-world/git/commits{/sha} + git_refs_url: https://api.github.com/repos/packit/hello-world/git/refs{/sha} + git_tags_url: https://api.github.com/repos/packit/hello-world/git/tags{/sha} + git_url: git://github.com/packit/hello-world.git + has_downloads: true + has_issues: true + has_pages: false + has_projects: true + has_wiki: true + homepage: null + hooks_url: https://api.github.com/repos/packit/hello-world/hooks + html_url: https://github.com/packit/hello-world + id: 184635124 + is_template: false + issue_comment_url: https://api.github.com/repos/packit/hello-world/issues/comments{/number} + issue_events_url: https://api.github.com/repos/packit/hello-world/issues/events{/number} + issues_url: https://api.github.com/repos/packit/hello-world/issues{/number} + keys_url: https://api.github.com/repos/packit/hello-world/keys{/key_id} + labels_url: https://api.github.com/repos/packit/hello-world/labels{/name} + language: Python + languages_url: https://api.github.com/repos/packit/hello-world/languages + license: + key: mit + name: MIT License + node_id: MDc6TGljZW5zZTEz + spdx_id: MIT + url: https://api.github.com/licenses/mit + merges_url: https://api.github.com/repos/packit/hello-world/merges + milestones_url: https://api.github.com/repos/packit/hello-world/milestones{/number} + mirror_url: null + name: hello-world + node_id: MDEwOlJlcG9zaXRvcnkxODQ2MzUxMjQ= + notifications_url: https://api.github.com/repos/packit/hello-world/notifications{?since,all,participating} + open_issues: 68 + open_issues_count: 68 + owner: + avatar_url: https://avatars.githubusercontent.com/u/46870917?v=4 + events_url: https://api.github.com/users/packit/events{/privacy} + followers_url: https://api.github.com/users/packit/followers + following_url: https://api.github.com/users/packit/following{/other_user} + gists_url: https://api.github.com/users/packit/gists{/gist_id} + gravatar_id: '' + html_url: https://github.com/packit + id: 46870917 + login: packit + node_id: MDEyOk9yZ2FuaXphdGlvbjQ2ODcwOTE3 + organizations_url: https://api.github.com/users/packit/orgs + received_events_url: https://api.github.com/users/packit/received_events + repos_url: https://api.github.com/users/packit/repos + site_admin: false + starred_url: https://api.github.com/users/packit/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/packit/subscriptions + type: Organization + url: https://api.github.com/users/packit + private: false + pulls_url: https://api.github.com/repos/packit/hello-world/pulls{/number} + pushed_at: '2022-04-29T14:17:37Z' + releases_url: https://api.github.com/repos/packit/hello-world/releases{/id} + size: 58 + ssh_url: git@github.com:packit/hello-world.git + stargazers_count: 4 + stargazers_url: https://api.github.com/repos/packit/hello-world/stargazers + statuses_url: https://api.github.com/repos/packit/hello-world/statuses/{sha} + subscribers_url: https://api.github.com/repos/packit/hello-world/subscribers + subscription_url: https://api.github.com/repos/packit/hello-world/subscription + svn_url: https://github.com/packit/hello-world + tags_url: https://api.github.com/repos/packit/hello-world/tags + teams_url: https://api.github.com/repos/packit/hello-world/teams + topics: [] + trees_url: https://api.github.com/repos/packit/hello-world/git/trees{/sha} + updated_at: '2022-02-04T14:06:18Z' + url: https://api.github.com/repos/packit/hello-world + visibility: public + watchers: 4 + watchers_count: 4 + sha: 7cf6d0cbeca285ecbeb19a0067cb243783b3c768 + user: + avatar_url: https://avatars.githubusercontent.com/u/46870917?v=4 + events_url: https://api.github.com/users/packit/events{/privacy} + followers_url: https://api.github.com/users/packit/followers + following_url: https://api.github.com/users/packit/following{/other_user} + gists_url: https://api.github.com/users/packit/gists{/gist_id} + gravatar_id: '' + html_url: https://github.com/packit + id: 46870917 + login: packit + node_id: MDEyOk9yZ2FuaXphdGlvbjQ2ODcwOTE3 + organizations_url: https://api.github.com/users/packit/orgs + received_events_url: https://api.github.com/users/packit/received_events + repos_url: https://api.github.com/users/packit/repos + site_admin: false + starred_url: https://api.github.com/users/packit/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/packit/subscriptions + type: Organization + url: https://api.github.com/users/packit + html_url: https://github.com/packit/hello-world/pull/727 + id: 923893120 + issue_url: https://api.github.com/repos/packit/hello-world/issues/727 + labels: [] + locked: false + maintainer_can_modify: false + merge_commit_sha: null + mergeable: null + mergeable_state: unknown + merged: false + merged_at: null + merged_by: null + milestone: null + node_id: PR_kwDOCwFO9M43EX2A + number: 727 + patch_url: https://github.com/packit/hello-world/pull/727.patch + rebaseable: null + requested_reviewers: [] + requested_teams: [] + review_comment_url: https://api.github.com/repos/packit/hello-world/pulls/comments{/number} + review_comments: 0 + review_comments_url: https://api.github.com/repos/packit/hello-world/pulls/727/comments + state: closed + statuses_url: https://api.github.com/repos/packit/hello-world/statuses/7cf6d0cbeca285ecbeb19a0067cb243783b3c768 + title: test pr_reopen + updated_at: '2022-04-29T14:17:38Z' + url: https://api.github.com/repos/packit/hello-world/pulls/727 + user: + avatar_url: https://avatars.githubusercontent.com/u/288686?v=4 + events_url: https://api.github.com/users/jpopelka/events{/privacy} + followers_url: https://api.github.com/users/jpopelka/followers + following_url: https://api.github.com/users/jpopelka/following{/other_user} + gists_url: https://api.github.com/users/jpopelka/gists{/gist_id} + gravatar_id: '' + html_url: https://github.com/jpopelka + id: 288686 + login: jpopelka + node_id: MDQ6VXNlcjI4ODY4Ng== + organizations_url: https://api.github.com/users/jpopelka/orgs + received_events_url: https://api.github.com/users/jpopelka/received_events + repos_url: https://api.github.com/users/jpopelka/repos + site_admin: false + starred_url: https://api.github.com/users/jpopelka/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/jpopelka/subscriptions + type: User + url: https://api.github.com/users/jpopelka + _next: null + elapsed: 0.631987 + encoding: utf-8 + headers: + Access-Control-Allow-Origin: '*' + Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, + X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, + X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, + X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, + Sunset + Cache-Control: private, max-age=60, s-maxage=60 + Content-Encoding: gzip + Content-Security-Policy: default-src 'none' + Content-Type: application/json; charset=utf-8 + Date: Fri, 29 Apr 2022 14:17:38 GMT + ETag: W/"636f9dcb15abe0193088ae5511f7619ae3e30b2bb9cff6268a3a47d508720e57" + Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin + Server: GitHub.com + Strict-Transport-Security: max-age=31536000; includeSubdomains; preload + Transfer-Encoding: chunked + Vary: Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, + X-Requested-With + X-Accepted-OAuth-Scopes: '' + X-Content-Type-Options: nosniff + X-Frame-Options: deny + X-GitHub-Media-Type: github.v3; format=json + X-GitHub-Request-Id: 52E6:08E6:1B7DF71:1BF7CB3:626BF381 + X-OAuth-Scopes: repo + X-RateLimit-Limit: '5000' + X-RateLimit-Remaining: '4996' + X-RateLimit-Reset: '1651244711' + X-RateLimit-Resource: core + X-RateLimit-Used: '4' + X-XSS-Protection: '0' + github-authentication-token-expiration: 2022-10-09 22:00:00 UTC + raw: !!binary "" + reason: OK + status_code: 200 + - metadata: + latency: 0.6552319526672363 + module_call_list: + - unittest.case + - requre.record_and_replace + - tests.integration.github.test_pull_requests + - ogr.abstract + - ogr.services.github.pull_request + - github.PullRequest + - github.Requester + - requests.sessions + - requre.objects + - requre.cassette + - requests.sessions + - send + output: + __store_indicator: 2 + _content: + _links: + comments: + href: https://api.github.com/repos/packit/hello-world/issues/727/comments + commits: + href: https://api.github.com/repos/packit/hello-world/pulls/727/commits + html: + href: https://github.com/packit/hello-world/pull/727 + issue: + href: https://api.github.com/repos/packit/hello-world/issues/727 + review_comment: + href: https://api.github.com/repos/packit/hello-world/pulls/comments{/number} + review_comments: + href: https://api.github.com/repos/packit/hello-world/pulls/727/comments + self: + href: https://api.github.com/repos/packit/hello-world/pulls/727 + statuses: + href: https://api.github.com/repos/packit/hello-world/statuses/7cf6d0cbeca285ecbeb19a0067cb243783b3c768 + active_lock_reason: null + additions: 0 + assignee: null + assignees: [] + author_association: MEMBER + auto_merge: null + base: + label: packit:test_target + ref: test_target + repo: + allow_forking: true + archive_url: https://api.github.com/repos/packit/hello-world/{archive_format}{/ref} + archived: false + assignees_url: https://api.github.com/repos/packit/hello-world/assignees{/user} + blobs_url: https://api.github.com/repos/packit/hello-world/git/blobs{/sha} + branches_url: https://api.github.com/repos/packit/hello-world/branches{/branch} + clone_url: https://github.com/packit/hello-world.git + collaborators_url: https://api.github.com/repos/packit/hello-world/collaborators{/collaborator} + comments_url: https://api.github.com/repos/packit/hello-world/comments{/number} + commits_url: https://api.github.com/repos/packit/hello-world/commits{/sha} + compare_url: https://api.github.com/repos/packit/hello-world/compare/{base}...{head} + contents_url: https://api.github.com/repos/packit/hello-world/contents/{+path} + contributors_url: https://api.github.com/repos/packit/hello-world/contributors + created_at: '2019-05-02T18:54:46Z' + default_branch: main + deployments_url: https://api.github.com/repos/packit/hello-world/deployments + description: The most progresive command-line tool in the world. + disabled: false + downloads_url: https://api.github.com/repos/packit/hello-world/downloads + events_url: https://api.github.com/repos/packit/hello-world/events + fork: false + forks: 20 + forks_count: 20 + forks_url: https://api.github.com/repos/packit/hello-world/forks + full_name: packit/hello-world + git_commits_url: https://api.github.com/repos/packit/hello-world/git/commits{/sha} + git_refs_url: https://api.github.com/repos/packit/hello-world/git/refs{/sha} + git_tags_url: https://api.github.com/repos/packit/hello-world/git/tags{/sha} + git_url: git://github.com/packit/hello-world.git + has_downloads: true + has_issues: true + has_pages: false + has_projects: true + has_wiki: true + homepage: null + hooks_url: https://api.github.com/repos/packit/hello-world/hooks + html_url: https://github.com/packit/hello-world + id: 184635124 + is_template: false + issue_comment_url: https://api.github.com/repos/packit/hello-world/issues/comments{/number} + issue_events_url: https://api.github.com/repos/packit/hello-world/issues/events{/number} + issues_url: https://api.github.com/repos/packit/hello-world/issues{/number} + keys_url: https://api.github.com/repos/packit/hello-world/keys{/key_id} + labels_url: https://api.github.com/repos/packit/hello-world/labels{/name} + language: Python + languages_url: https://api.github.com/repos/packit/hello-world/languages + license: + key: mit + name: MIT License + node_id: MDc6TGljZW5zZTEz + spdx_id: MIT + url: https://api.github.com/licenses/mit + merges_url: https://api.github.com/repos/packit/hello-world/merges + milestones_url: https://api.github.com/repos/packit/hello-world/milestones{/number} + mirror_url: null + name: hello-world + node_id: MDEwOlJlcG9zaXRvcnkxODQ2MzUxMjQ= + notifications_url: https://api.github.com/repos/packit/hello-world/notifications{?since,all,participating} + open_issues: 69 + open_issues_count: 69 + owner: + avatar_url: https://avatars.githubusercontent.com/u/46870917?v=4 + events_url: https://api.github.com/users/packit/events{/privacy} + followers_url: https://api.github.com/users/packit/followers + following_url: https://api.github.com/users/packit/following{/other_user} + gists_url: https://api.github.com/users/packit/gists{/gist_id} + gravatar_id: '' + html_url: https://github.com/packit + id: 46870917 + login: packit + node_id: MDEyOk9yZ2FuaXphdGlvbjQ2ODcwOTE3 + organizations_url: https://api.github.com/users/packit/orgs + received_events_url: https://api.github.com/users/packit/received_events + repos_url: https://api.github.com/users/packit/repos + site_admin: false + starred_url: https://api.github.com/users/packit/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/packit/subscriptions + type: Organization + url: https://api.github.com/users/packit + private: false + pulls_url: https://api.github.com/repos/packit/hello-world/pulls{/number} + pushed_at: '2022-04-29T14:17:37Z' + releases_url: https://api.github.com/repos/packit/hello-world/releases{/id} + size: 58 + ssh_url: git@github.com:packit/hello-world.git + stargazers_count: 4 + stargazers_url: https://api.github.com/repos/packit/hello-world/stargazers + statuses_url: https://api.github.com/repos/packit/hello-world/statuses/{sha} + subscribers_url: https://api.github.com/repos/packit/hello-world/subscribers + subscription_url: https://api.github.com/repos/packit/hello-world/subscription + svn_url: https://github.com/packit/hello-world + tags_url: https://api.github.com/repos/packit/hello-world/tags + teams_url: https://api.github.com/repos/packit/hello-world/teams + topics: [] + trees_url: https://api.github.com/repos/packit/hello-world/git/trees{/sha} + updated_at: '2022-02-04T14:06:18Z' + url: https://api.github.com/repos/packit/hello-world + visibility: public + watchers: 4 + watchers_count: 4 + sha: 28d30dd1178b9983a0b717c809895500b2a3583b + user: + avatar_url: https://avatars.githubusercontent.com/u/46870917?v=4 + events_url: https://api.github.com/users/packit/events{/privacy} + followers_url: https://api.github.com/users/packit/followers + following_url: https://api.github.com/users/packit/following{/other_user} + gists_url: https://api.github.com/users/packit/gists{/gist_id} + gravatar_id: '' + html_url: https://github.com/packit + id: 46870917 + login: packit + node_id: MDEyOk9yZ2FuaXphdGlvbjQ2ODcwOTE3 + organizations_url: https://api.github.com/users/packit/orgs + received_events_url: https://api.github.com/users/packit/received_events + repos_url: https://api.github.com/users/packit/repos + site_admin: false + starred_url: https://api.github.com/users/packit/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/packit/subscriptions + type: Organization + url: https://api.github.com/users/packit + body: pull request body + changed_files: 1 + closed_at: null + comments: 0 + comments_url: https://api.github.com/repos/packit/hello-world/issues/727/comments + commits: 3 + commits_url: https://api.github.com/repos/packit/hello-world/pulls/727/commits + created_at: '2022-04-29T14:17:37Z' + deletions: 26 + diff_url: https://github.com/packit/hello-world/pull/727.diff + draft: false + head: + label: packit:test_source + ref: test_source + repo: + allow_forking: true + archive_url: https://api.github.com/repos/packit/hello-world/{archive_format}{/ref} + archived: false + assignees_url: https://api.github.com/repos/packit/hello-world/assignees{/user} + blobs_url: https://api.github.com/repos/packit/hello-world/git/blobs{/sha} + branches_url: https://api.github.com/repos/packit/hello-world/branches{/branch} + clone_url: https://github.com/packit/hello-world.git + collaborators_url: https://api.github.com/repos/packit/hello-world/collaborators{/collaborator} + comments_url: https://api.github.com/repos/packit/hello-world/comments{/number} + commits_url: https://api.github.com/repos/packit/hello-world/commits{/sha} + compare_url: https://api.github.com/repos/packit/hello-world/compare/{base}...{head} + contents_url: https://api.github.com/repos/packit/hello-world/contents/{+path} + contributors_url: https://api.github.com/repos/packit/hello-world/contributors + created_at: '2019-05-02T18:54:46Z' + default_branch: main + deployments_url: https://api.github.com/repos/packit/hello-world/deployments + description: The most progresive command-line tool in the world. + disabled: false + downloads_url: https://api.github.com/repos/packit/hello-world/downloads + events_url: https://api.github.com/repos/packit/hello-world/events + fork: false + forks: 20 + forks_count: 20 + forks_url: https://api.github.com/repos/packit/hello-world/forks + full_name: packit/hello-world + git_commits_url: https://api.github.com/repos/packit/hello-world/git/commits{/sha} + git_refs_url: https://api.github.com/repos/packit/hello-world/git/refs{/sha} + git_tags_url: https://api.github.com/repos/packit/hello-world/git/tags{/sha} + git_url: git://github.com/packit/hello-world.git + has_downloads: true + has_issues: true + has_pages: false + has_projects: true + has_wiki: true + homepage: null + hooks_url: https://api.github.com/repos/packit/hello-world/hooks + html_url: https://github.com/packit/hello-world + id: 184635124 + is_template: false + issue_comment_url: https://api.github.com/repos/packit/hello-world/issues/comments{/number} + issue_events_url: https://api.github.com/repos/packit/hello-world/issues/events{/number} + issues_url: https://api.github.com/repos/packit/hello-world/issues{/number} + keys_url: https://api.github.com/repos/packit/hello-world/keys{/key_id} + labels_url: https://api.github.com/repos/packit/hello-world/labels{/name} + language: Python + languages_url: https://api.github.com/repos/packit/hello-world/languages + license: + key: mit + name: MIT License + node_id: MDc6TGljZW5zZTEz + spdx_id: MIT + url: https://api.github.com/licenses/mit + merges_url: https://api.github.com/repos/packit/hello-world/merges + milestones_url: https://api.github.com/repos/packit/hello-world/milestones{/number} + mirror_url: null + name: hello-world + node_id: MDEwOlJlcG9zaXRvcnkxODQ2MzUxMjQ= + notifications_url: https://api.github.com/repos/packit/hello-world/notifications{?since,all,participating} + open_issues: 69 + open_issues_count: 69 + owner: + avatar_url: https://avatars.githubusercontent.com/u/46870917?v=4 + events_url: https://api.github.com/users/packit/events{/privacy} + followers_url: https://api.github.com/users/packit/followers + following_url: https://api.github.com/users/packit/following{/other_user} + gists_url: https://api.github.com/users/packit/gists{/gist_id} + gravatar_id: '' + html_url: https://github.com/packit + id: 46870917 + login: packit + node_id: MDEyOk9yZ2FuaXphdGlvbjQ2ODcwOTE3 + organizations_url: https://api.github.com/users/packit/orgs + received_events_url: https://api.github.com/users/packit/received_events + repos_url: https://api.github.com/users/packit/repos + site_admin: false + starred_url: https://api.github.com/users/packit/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/packit/subscriptions + type: Organization + url: https://api.github.com/users/packit + private: false + pulls_url: https://api.github.com/repos/packit/hello-world/pulls{/number} + pushed_at: '2022-04-29T14:17:37Z' + releases_url: https://api.github.com/repos/packit/hello-world/releases{/id} + size: 58 + ssh_url: git@github.com:packit/hello-world.git + stargazers_count: 4 + stargazers_url: https://api.github.com/repos/packit/hello-world/stargazers + statuses_url: https://api.github.com/repos/packit/hello-world/statuses/{sha} + subscribers_url: https://api.github.com/repos/packit/hello-world/subscribers + subscription_url: https://api.github.com/repos/packit/hello-world/subscription + svn_url: https://github.com/packit/hello-world + tags_url: https://api.github.com/repos/packit/hello-world/tags + teams_url: https://api.github.com/repos/packit/hello-world/teams + topics: [] + trees_url: https://api.github.com/repos/packit/hello-world/git/trees{/sha} + updated_at: '2022-02-04T14:06:18Z' + url: https://api.github.com/repos/packit/hello-world + visibility: public + watchers: 4 + watchers_count: 4 + sha: 7cf6d0cbeca285ecbeb19a0067cb243783b3c768 + user: + avatar_url: https://avatars.githubusercontent.com/u/46870917?v=4 + events_url: https://api.github.com/users/packit/events{/privacy} + followers_url: https://api.github.com/users/packit/followers + following_url: https://api.github.com/users/packit/following{/other_user} + gists_url: https://api.github.com/users/packit/gists{/gist_id} + gravatar_id: '' + html_url: https://github.com/packit + id: 46870917 + login: packit + node_id: MDEyOk9yZ2FuaXphdGlvbjQ2ODcwOTE3 + organizations_url: https://api.github.com/users/packit/orgs + received_events_url: https://api.github.com/users/packit/received_events + repos_url: https://api.github.com/users/packit/repos + site_admin: false + starred_url: https://api.github.com/users/packit/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/packit/subscriptions + type: Organization + url: https://api.github.com/users/packit + html_url: https://github.com/packit/hello-world/pull/727 + id: 923893120 + issue_url: https://api.github.com/repos/packit/hello-world/issues/727 + labels: [] + locked: false + maintainer_can_modify: false + merge_commit_sha: 2ce510916b217cb67b04a9749bf2f1b126d681a3 + mergeable: null + mergeable_state: unknown + merged: false + merged_at: null + merged_by: null + milestone: null + node_id: PR_kwDOCwFO9M43EX2A + number: 727 + patch_url: https://github.com/packit/hello-world/pull/727.patch + rebaseable: null + requested_reviewers: [] + requested_teams: [] + review_comment_url: https://api.github.com/repos/packit/hello-world/pulls/comments{/number} + review_comments: 0 + review_comments_url: https://api.github.com/repos/packit/hello-world/pulls/727/comments + state: open + statuses_url: https://api.github.com/repos/packit/hello-world/statuses/7cf6d0cbeca285ecbeb19a0067cb243783b3c768 + title: test pr_reopen + updated_at: '2022-04-29T14:17:38Z' + url: https://api.github.com/repos/packit/hello-world/pulls/727 + user: + avatar_url: https://avatars.githubusercontent.com/u/288686?v=4 + events_url: https://api.github.com/users/jpopelka/events{/privacy} + followers_url: https://api.github.com/users/jpopelka/followers + following_url: https://api.github.com/users/jpopelka/following{/other_user} + gists_url: https://api.github.com/users/jpopelka/gists{/gist_id} + gravatar_id: '' + html_url: https://github.com/jpopelka + id: 288686 + login: jpopelka + node_id: MDQ6VXNlcjI4ODY4Ng== + organizations_url: https://api.github.com/users/jpopelka/orgs + received_events_url: https://api.github.com/users/jpopelka/received_events + repos_url: https://api.github.com/users/jpopelka/repos + site_admin: false + starred_url: https://api.github.com/users/jpopelka/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/jpopelka/subscriptions + type: User + url: https://api.github.com/users/jpopelka + _next: null + elapsed: 0.65457 + encoding: utf-8 + headers: + Access-Control-Allow-Origin: '*' + Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, + X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, + X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, + X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, + Sunset + Cache-Control: private, max-age=60, s-maxage=60 + Content-Encoding: gzip + Content-Security-Policy: default-src 'none' + Content-Type: application/json; charset=utf-8 + Date: Fri, 29 Apr 2022 14:17:39 GMT + ETag: W/"27369fb6e80839c2f3b0e656b41d817a03ffd5ee4eb007f820356013e3e8c853" + Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin + Server: GitHub.com + Strict-Transport-Security: max-age=31536000; includeSubdomains; preload + Transfer-Encoding: chunked + Vary: Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, + X-Requested-With + X-Accepted-OAuth-Scopes: '' + X-Content-Type-Options: nosniff + X-Frame-Options: deny + X-GitHub-Media-Type: github.v3; format=json + X-GitHub-Request-Id: 52E6:08E6:1B7E058:1BF7D9F:626BF382 + X-OAuth-Scopes: repo + X-RateLimit-Limit: '5000' + X-RateLimit-Remaining: '4995' + X-RateLimit-Reset: '1651244711' + X-RateLimit-Resource: core + X-RateLimit-Used: '5' + X-XSS-Protection: '0' + github-authentication-token-expiration: 2022-10-09 22:00:00 UTC + raw: !!binary "" + reason: OK + status_code: 200 + POST: + https://api.github.com:443/repos/packit/hello-world/pulls: + - metadata: + latency: 1.0783603191375732 + module_call_list: + - unittest.case + - requre.record_and_replace + - tests.integration.github.test_pull_requests + - ogr.abstract + - ogr.read_only + - ogr.utils + - ogr.abstract + - ogr.services.github.pull_request + - github.Repository + - github.Requester + - requests.sessions + - requre.objects + - requre.cassette + - requests.sessions + - send + output: + __store_indicator: 2 + _content: + _links: + comments: + href: https://api.github.com/repos/packit/hello-world/issues/727/comments + commits: + href: https://api.github.com/repos/packit/hello-world/pulls/727/commits + html: + href: https://github.com/packit/hello-world/pull/727 + issue: + href: https://api.github.com/repos/packit/hello-world/issues/727 + review_comment: + href: https://api.github.com/repos/packit/hello-world/pulls/comments{/number} + review_comments: + href: https://api.github.com/repos/packit/hello-world/pulls/727/comments + self: + href: https://api.github.com/repos/packit/hello-world/pulls/727 + statuses: + href: https://api.github.com/repos/packit/hello-world/statuses/7cf6d0cbeca285ecbeb19a0067cb243783b3c768 + active_lock_reason: null + additions: 0 + assignee: null + assignees: [] + author_association: MEMBER + auto_merge: null + base: + label: packit:test_target + ref: test_target + repo: + allow_forking: true + archive_url: https://api.github.com/repos/packit/hello-world/{archive_format}{/ref} + archived: false + assignees_url: https://api.github.com/repos/packit/hello-world/assignees{/user} + blobs_url: https://api.github.com/repos/packit/hello-world/git/blobs{/sha} + branches_url: https://api.github.com/repos/packit/hello-world/branches{/branch} + clone_url: https://github.com/packit/hello-world.git + collaborators_url: https://api.github.com/repos/packit/hello-world/collaborators{/collaborator} + comments_url: https://api.github.com/repos/packit/hello-world/comments{/number} + commits_url: https://api.github.com/repos/packit/hello-world/commits{/sha} + compare_url: https://api.github.com/repos/packit/hello-world/compare/{base}...{head} + contents_url: https://api.github.com/repos/packit/hello-world/contents/{+path} + contributors_url: https://api.github.com/repos/packit/hello-world/contributors + created_at: '2019-05-02T18:54:46Z' + default_branch: main + deployments_url: https://api.github.com/repos/packit/hello-world/deployments + description: The most progresive command-line tool in the world. + disabled: false + downloads_url: https://api.github.com/repos/packit/hello-world/downloads + events_url: https://api.github.com/repos/packit/hello-world/events + fork: false + forks: 20 + forks_count: 20 + forks_url: https://api.github.com/repos/packit/hello-world/forks + full_name: packit/hello-world + git_commits_url: https://api.github.com/repos/packit/hello-world/git/commits{/sha} + git_refs_url: https://api.github.com/repos/packit/hello-world/git/refs{/sha} + git_tags_url: https://api.github.com/repos/packit/hello-world/git/tags{/sha} + git_url: git://github.com/packit/hello-world.git + has_downloads: true + has_issues: true + has_pages: false + has_projects: true + has_wiki: true + homepage: null + hooks_url: https://api.github.com/repos/packit/hello-world/hooks + html_url: https://github.com/packit/hello-world + id: 184635124 + is_template: false + issue_comment_url: https://api.github.com/repos/packit/hello-world/issues/comments{/number} + issue_events_url: https://api.github.com/repos/packit/hello-world/issues/events{/number} + issues_url: https://api.github.com/repos/packit/hello-world/issues{/number} + keys_url: https://api.github.com/repos/packit/hello-world/keys{/key_id} + labels_url: https://api.github.com/repos/packit/hello-world/labels{/name} + language: Python + languages_url: https://api.github.com/repos/packit/hello-world/languages + license: + key: mit + name: MIT License + node_id: MDc6TGljZW5zZTEz + spdx_id: MIT + url: https://api.github.com/licenses/mit + merges_url: https://api.github.com/repos/packit/hello-world/merges + milestones_url: https://api.github.com/repos/packit/hello-world/milestones{/number} + mirror_url: null + name: hello-world + node_id: MDEwOlJlcG9zaXRvcnkxODQ2MzUxMjQ= + notifications_url: https://api.github.com/repos/packit/hello-world/notifications{?since,all,participating} + open_issues: 69 + open_issues_count: 69 + owner: + avatar_url: https://avatars.githubusercontent.com/u/46870917?v=4 + events_url: https://api.github.com/users/packit/events{/privacy} + followers_url: https://api.github.com/users/packit/followers + following_url: https://api.github.com/users/packit/following{/other_user} + gists_url: https://api.github.com/users/packit/gists{/gist_id} + gravatar_id: '' + html_url: https://github.com/packit + id: 46870917 + login: packit + node_id: MDEyOk9yZ2FuaXphdGlvbjQ2ODcwOTE3 + organizations_url: https://api.github.com/users/packit/orgs + received_events_url: https://api.github.com/users/packit/received_events + repos_url: https://api.github.com/users/packit/repos + site_admin: false + starred_url: https://api.github.com/users/packit/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/packit/subscriptions + type: Organization + url: https://api.github.com/users/packit + private: false + pulls_url: https://api.github.com/repos/packit/hello-world/pulls{/number} + pushed_at: '2022-04-29T05:37:00Z' + releases_url: https://api.github.com/repos/packit/hello-world/releases{/id} + size: 58 + ssh_url: git@github.com:packit/hello-world.git + stargazers_count: 4 + stargazers_url: https://api.github.com/repos/packit/hello-world/stargazers + statuses_url: https://api.github.com/repos/packit/hello-world/statuses/{sha} + subscribers_url: https://api.github.com/repos/packit/hello-world/subscribers + subscription_url: https://api.github.com/repos/packit/hello-world/subscription + svn_url: https://github.com/packit/hello-world + tags_url: https://api.github.com/repos/packit/hello-world/tags + teams_url: https://api.github.com/repos/packit/hello-world/teams + topics: [] + trees_url: https://api.github.com/repos/packit/hello-world/git/trees{/sha} + updated_at: '2022-02-04T14:06:18Z' + url: https://api.github.com/repos/packit/hello-world + visibility: public + watchers: 4 + watchers_count: 4 + sha: 28d30dd1178b9983a0b717c809895500b2a3583b + user: + avatar_url: https://avatars.githubusercontent.com/u/46870917?v=4 + events_url: https://api.github.com/users/packit/events{/privacy} + followers_url: https://api.github.com/users/packit/followers + following_url: https://api.github.com/users/packit/following{/other_user} + gists_url: https://api.github.com/users/packit/gists{/gist_id} + gravatar_id: '' + html_url: https://github.com/packit + id: 46870917 + login: packit + node_id: MDEyOk9yZ2FuaXphdGlvbjQ2ODcwOTE3 + organizations_url: https://api.github.com/users/packit/orgs + received_events_url: https://api.github.com/users/packit/received_events + repos_url: https://api.github.com/users/packit/repos + site_admin: false + starred_url: https://api.github.com/users/packit/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/packit/subscriptions + type: Organization + url: https://api.github.com/users/packit + body: pull request body + changed_files: 1 + closed_at: null + comments: 0 + comments_url: https://api.github.com/repos/packit/hello-world/issues/727/comments + commits: 3 + commits_url: https://api.github.com/repos/packit/hello-world/pulls/727/commits + created_at: '2022-04-29T14:17:37Z' + deletions: 26 + diff_url: https://github.com/packit/hello-world/pull/727.diff + draft: false + head: + label: packit:test_source + ref: test_source + repo: + allow_forking: true + archive_url: https://api.github.com/repos/packit/hello-world/{archive_format}{/ref} + archived: false + assignees_url: https://api.github.com/repos/packit/hello-world/assignees{/user} + blobs_url: https://api.github.com/repos/packit/hello-world/git/blobs{/sha} + branches_url: https://api.github.com/repos/packit/hello-world/branches{/branch} + clone_url: https://github.com/packit/hello-world.git + collaborators_url: https://api.github.com/repos/packit/hello-world/collaborators{/collaborator} + comments_url: https://api.github.com/repos/packit/hello-world/comments{/number} + commits_url: https://api.github.com/repos/packit/hello-world/commits{/sha} + compare_url: https://api.github.com/repos/packit/hello-world/compare/{base}...{head} + contents_url: https://api.github.com/repos/packit/hello-world/contents/{+path} + contributors_url: https://api.github.com/repos/packit/hello-world/contributors + created_at: '2019-05-02T18:54:46Z' + default_branch: main + deployments_url: https://api.github.com/repos/packit/hello-world/deployments + description: The most progresive command-line tool in the world. + disabled: false + downloads_url: https://api.github.com/repos/packit/hello-world/downloads + events_url: https://api.github.com/repos/packit/hello-world/events + fork: false + forks: 20 + forks_count: 20 + forks_url: https://api.github.com/repos/packit/hello-world/forks + full_name: packit/hello-world + git_commits_url: https://api.github.com/repos/packit/hello-world/git/commits{/sha} + git_refs_url: https://api.github.com/repos/packit/hello-world/git/refs{/sha} + git_tags_url: https://api.github.com/repos/packit/hello-world/git/tags{/sha} + git_url: git://github.com/packit/hello-world.git + has_downloads: true + has_issues: true + has_pages: false + has_projects: true + has_wiki: true + homepage: null + hooks_url: https://api.github.com/repos/packit/hello-world/hooks + html_url: https://github.com/packit/hello-world + id: 184635124 + is_template: false + issue_comment_url: https://api.github.com/repos/packit/hello-world/issues/comments{/number} + issue_events_url: https://api.github.com/repos/packit/hello-world/issues/events{/number} + issues_url: https://api.github.com/repos/packit/hello-world/issues{/number} + keys_url: https://api.github.com/repos/packit/hello-world/keys{/key_id} + labels_url: https://api.github.com/repos/packit/hello-world/labels{/name} + language: Python + languages_url: https://api.github.com/repos/packit/hello-world/languages + license: + key: mit + name: MIT License + node_id: MDc6TGljZW5zZTEz + spdx_id: MIT + url: https://api.github.com/licenses/mit + merges_url: https://api.github.com/repos/packit/hello-world/merges + milestones_url: https://api.github.com/repos/packit/hello-world/milestones{/number} + mirror_url: null + name: hello-world + node_id: MDEwOlJlcG9zaXRvcnkxODQ2MzUxMjQ= + notifications_url: https://api.github.com/repos/packit/hello-world/notifications{?since,all,participating} + open_issues: 69 + open_issues_count: 69 + owner: + avatar_url: https://avatars.githubusercontent.com/u/46870917?v=4 + events_url: https://api.github.com/users/packit/events{/privacy} + followers_url: https://api.github.com/users/packit/followers + following_url: https://api.github.com/users/packit/following{/other_user} + gists_url: https://api.github.com/users/packit/gists{/gist_id} + gravatar_id: '' + html_url: https://github.com/packit + id: 46870917 + login: packit + node_id: MDEyOk9yZ2FuaXphdGlvbjQ2ODcwOTE3 + organizations_url: https://api.github.com/users/packit/orgs + received_events_url: https://api.github.com/users/packit/received_events + repos_url: https://api.github.com/users/packit/repos + site_admin: false + starred_url: https://api.github.com/users/packit/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/packit/subscriptions + type: Organization + url: https://api.github.com/users/packit + private: false + pulls_url: https://api.github.com/repos/packit/hello-world/pulls{/number} + pushed_at: '2022-04-29T05:37:00Z' + releases_url: https://api.github.com/repos/packit/hello-world/releases{/id} + size: 58 + ssh_url: git@github.com:packit/hello-world.git + stargazers_count: 4 + stargazers_url: https://api.github.com/repos/packit/hello-world/stargazers + statuses_url: https://api.github.com/repos/packit/hello-world/statuses/{sha} + subscribers_url: https://api.github.com/repos/packit/hello-world/subscribers + subscription_url: https://api.github.com/repos/packit/hello-world/subscription + svn_url: https://github.com/packit/hello-world + tags_url: https://api.github.com/repos/packit/hello-world/tags + teams_url: https://api.github.com/repos/packit/hello-world/teams + topics: [] + trees_url: https://api.github.com/repos/packit/hello-world/git/trees{/sha} + updated_at: '2022-02-04T14:06:18Z' + url: https://api.github.com/repos/packit/hello-world + visibility: public + watchers: 4 + watchers_count: 4 + sha: 7cf6d0cbeca285ecbeb19a0067cb243783b3c768 + user: + avatar_url: https://avatars.githubusercontent.com/u/46870917?v=4 + events_url: https://api.github.com/users/packit/events{/privacy} + followers_url: https://api.github.com/users/packit/followers + following_url: https://api.github.com/users/packit/following{/other_user} + gists_url: https://api.github.com/users/packit/gists{/gist_id} + gravatar_id: '' + html_url: https://github.com/packit + id: 46870917 + login: packit + node_id: MDEyOk9yZ2FuaXphdGlvbjQ2ODcwOTE3 + organizations_url: https://api.github.com/users/packit/orgs + received_events_url: https://api.github.com/users/packit/received_events + repos_url: https://api.github.com/users/packit/repos + site_admin: false + starred_url: https://api.github.com/users/packit/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/packit/subscriptions + type: Organization + url: https://api.github.com/users/packit + html_url: https://github.com/packit/hello-world/pull/727 + id: 923893120 + issue_url: https://api.github.com/repos/packit/hello-world/issues/727 + labels: [] + locked: false + maintainer_can_modify: false + merge_commit_sha: null + mergeable: null + mergeable_state: unknown + merged: false + merged_at: null + merged_by: null + milestone: null + node_id: PR_kwDOCwFO9M43EX2A + number: 727 + patch_url: https://github.com/packit/hello-world/pull/727.patch + rebaseable: null + requested_reviewers: [] + requested_teams: [] + review_comment_url: https://api.github.com/repos/packit/hello-world/pulls/comments{/number} + review_comments: 0 + review_comments_url: https://api.github.com/repos/packit/hello-world/pulls/727/comments + state: open + statuses_url: https://api.github.com/repos/packit/hello-world/statuses/7cf6d0cbeca285ecbeb19a0067cb243783b3c768 + title: test pr_reopen + updated_at: '2022-04-29T14:17:37Z' + url: https://api.github.com/repos/packit/hello-world/pulls/727 + user: + avatar_url: https://avatars.githubusercontent.com/u/288686?v=4 + events_url: https://api.github.com/users/jpopelka/events{/privacy} + followers_url: https://api.github.com/users/jpopelka/followers + following_url: https://api.github.com/users/jpopelka/following{/other_user} + gists_url: https://api.github.com/users/jpopelka/gists{/gist_id} + gravatar_id: '' + html_url: https://github.com/jpopelka + id: 288686 + login: jpopelka + node_id: MDQ6VXNlcjI4ODY4Ng== + organizations_url: https://api.github.com/users/jpopelka/orgs + received_events_url: https://api.github.com/users/jpopelka/received_events + repos_url: https://api.github.com/users/jpopelka/repos + site_admin: false + starred_url: https://api.github.com/users/jpopelka/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/jpopelka/subscriptions + type: User + url: https://api.github.com/users/jpopelka + _next: null + elapsed: 1.058787 + encoding: utf-8 + headers: + Access-Control-Allow-Origin: '*' + Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, + X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, + X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, + X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, + Sunset + Cache-Control: private, max-age=60, s-maxage=60 + Content-Length: '15151' + Content-Security-Policy: default-src 'none' + Content-Type: application/json; charset=utf-8 + Date: Fri, 29 Apr 2022 14:17:37 GMT + ETag: '"b7fcf797dba96a893665586a75abf7d48e371c5656a3c1c9e91b974811a114ce"' + Location: https://api.github.com/repos/packit/hello-world/pulls/727 + Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin + Server: GitHub.com + Strict-Transport-Security: max-age=31536000; includeSubdomains; preload + Vary: Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, + X-Requested-With + X-Accepted-OAuth-Scopes: '' + X-Content-Type-Options: nosniff + X-Frame-Options: deny + X-GitHub-Media-Type: github.v3; format=json + X-GitHub-Request-Id: 52E6:08E6:1B7DDBD:1BF7B09:626BF380 + X-OAuth-Scopes: repo + X-RateLimit-Limit: '5000' + X-RateLimit-Remaining: '4997' + X-RateLimit-Reset: '1651244711' + X-RateLimit-Resource: core + X-RateLimit-Used: '3' + X-XSS-Protection: '0' + github-authentication-token-expiration: 2022-10-09 22:00:00 UTC + raw: !!binary "" + reason: Created + status_code: 201 diff --git a/tests/integration/github/test_pull_requests.py b/tests/integration/github/test_pull_requests.py index 01c8450a..05227e5c 100644 --- a/tests/integration/github/test_pull_requests.py +++ b/tests/integration/github/test_pull_requests.py @@ -225,6 +225,21 @@ def test_pr_close(self): assert pr_check.title == "test pr_close" assert pr_check.status == PRStatus.closed + def test_pr_reopen(self): + gh_project = self.hello_world_project + pr = gh_project.create_pr( + title="test pr_reopen", + body="pull request body", + target_branch="test_target", + source_branch="test_source", + ) + pr.close() + pr.reopen() + pr_check = gh_project.get_pr(pr.id) + + assert pr_check.title == "test pr_reopen" + assert pr_check.status == PRStatus.open + def test_pr_status(self): pr = self.ogr_project.get_pr(pr_id=278) diff --git a/tests/integration/gitlab/test_data/test_pull_requests/PullRequests.test_pr_reopen.yaml b/tests/integration/gitlab/test_data/test_pull_requests/PullRequests.test_pr_reopen.yaml new file mode 100644 index 00000000..dd00ee5a --- /dev/null +++ b/tests/integration/gitlab/test_data/test_pull_requests/PullRequests.test_pr_reopen.yaml @@ -0,0 +1,1074 @@ +_requre: + DataTypes: 1 + key_strategy: StorageKeysInspectSimple + version_storage_file: 3 +requests.sessions: + send: + GET: + https://gitlab.com/api/v4/projects/14233409/merge_requests/86: + - metadata: + latency: 0.2941772937774658 + module_call_list: + - unittest.case + - requre.record_and_replace + - tests.integration.gitlab.test_pull_requests + - ogr.abstract + - ogr.utils + - ogr.abstract + - ogr.services.gitlab.pull_request + - gitlab.exceptions + - gitlab.mixins + - gitlab.client + - requre.objects + - requre.cassette + - requests.sessions + - send + output: + __store_indicator: 2 + _content: + approvals_before_merge: null + assignee: null + assignees: [] + author: + avatar_url: https://gitlab.com/uploads/-/system/user/avatar/2952463/avatar.png + id: 2952463 + name: Jiri Popelka + state: active + username: jpopelka + web_url: https://gitlab.com/jpopelka + blocking_discussions_resolved: true + changes_count: null + closed_at: null + closed_by: null + created_at: '2022-04-29T14:19:43.343Z' + description: Description + diff_refs: + base_sha: db843cde94391923c6acb4cce938d830477a9732 + head_sha: db843cde94391923c6acb4cce938d830477a9732 + start_sha: dd9b6c54c0788301c86bdf058a8e91e3594a0a17 + discussion_locked: null + downvotes: 0 + draft: false + first_contribution: false + first_deployed_to_production_at: null + force_remove_source_branch: null + has_conflicts: false + head_pipeline: null + id: 152883878 + iid: 86 + labels: [] + latest_build_finished_at: null + latest_build_started_at: null + merge_commit_sha: null + merge_error: null + merge_status: checking + merge_user: null + merge_when_pipeline_succeeds: false + merged_at: null + merged_by: null + milestone: null + pipeline: null + project_id: 14233409 + reference: '!86' + references: + full: packit-service/ogr-tests!86 + relative: '!86' + short: '!86' + reviewers: [] + sha: db843cde94391923c6acb4cce938d830477a9732 + should_remove_source_branch: null + source_branch: pr-3 + source_project_id: 14233409 + squash: false + squash_commit_sha: null + state: opened + subscribed: true + target_branch: master + target_project_id: 14233409 + task_completion_status: + completed_count: 0 + count: 0 + time_stats: + human_time_estimate: null + human_total_time_spent: null + time_estimate: 0 + total_time_spent: 0 + title: New PR of pr-3 + updated_at: '2022-04-29T14:19:43.343Z' + upvotes: 0 + user: + can_merge: true + user_notes_count: 0 + web_url: https://gitlab.com/packit-service/ogr-tests/-/merge_requests/86 + work_in_progress: false + _next: null + elapsed: 0.29195 + encoding: utf-8 + headers: + CF-Cache-Status: DYNAMIC + CF-RAY: 7038aca0de2b2774-PRG + Cache-Control: max-age=0, private, must-revalidate + Connection: keep-alive + Content-Encoding: gzip + Content-Type: application/json + Date: Fri, 29 Apr 2022 14:19:44 GMT + Etag: W/"1185e539baa44f84ba276b370f71a749" + Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" + GitLab-LB: fe-04-lb-gprd + GitLab-SV: localhost + NEL: '{"success_fraction":0.01,"report_to":"cf-nel","max_age":604800}' + RateLimit-Limit: '2000' + RateLimit-Observed: '4' + RateLimit-Remaining: '1996' + RateLimit-Reset: '1651242044' + RateLimit-ResetTime: Fri, 29 Apr 2022 14:20:44 GMT + Referrer-Policy: strict-origin-when-cross-origin + Report-To: '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=vQMGWl1GBtItPtWjCl2uOcO40A5DS9xjmgLU0qqCN6hPuvlQjM%2FtBzfZfcC4%2BqP%2FFuHVs4EpiCuMumjGvLNlZtYQ8xV0WR1495g0aKs7ySFCUisk%2FHO8jnEuxJ0%3D"}],"group":"cf-nel","max_age":604800}' + Server: cloudflare + Strict-Transport-Security: max-age=31536000 + Transfer-Encoding: chunked + Vary: Origin + X-Content-Type-Options: nosniff + X-Frame-Options: SAMEORIGIN + X-Request-Id: 01G1TV287TJ9P79ZKNFGDMDPCF + X-Runtime: '0.098627' + raw: !!binary "" + reason: OK + status_code: 200 + - metadata: + latency: 0.3267226219177246 + module_call_list: + - unittest.case + - requre.record_and_replace + - tests.integration.gitlab.test_pull_requests + - ogr.abstract + - ogr.utils + - ogr.abstract + - ogr.services.gitlab.pull_request + - gitlab.exceptions + - gitlab.mixins + - gitlab.client + - requre.objects + - requre.cassette + - requests.sessions + - send + output: + __store_indicator: 2 + _content: + approvals_before_merge: null + assignee: null + assignees: [] + author: + avatar_url: https://gitlab.com/uploads/-/system/user/avatar/2952463/avatar.png + id: 2952463 + name: Jiri Popelka + state: active + username: jpopelka + web_url: https://gitlab.com/jpopelka + blocking_discussions_resolved: true + changes_count: null + closed_at: '2022-04-29T14:19:44.659Z' + closed_by: + avatar_url: https://gitlab.com/uploads/-/system/user/avatar/2952463/avatar.png + id: 2952463 + name: Jiri Popelka + state: active + username: jpopelka + web_url: https://gitlab.com/jpopelka + created_at: '2022-04-29T14:19:43.343Z' + description: Description + diff_refs: + base_sha: db843cde94391923c6acb4cce938d830477a9732 + head_sha: db843cde94391923c6acb4cce938d830477a9732 + start_sha: dd9b6c54c0788301c86bdf058a8e91e3594a0a17 + discussion_locked: null + downvotes: 0 + draft: false + first_contribution: false + first_deployed_to_production_at: null + force_remove_source_branch: null + has_conflicts: true + head_pipeline: null + id: 152883878 + iid: 86 + labels: [] + latest_build_finished_at: null + latest_build_started_at: null + merge_commit_sha: null + merge_error: null + merge_status: cannot_be_merged + merge_user: null + merge_when_pipeline_succeeds: false + merged_at: null + merged_by: null + milestone: null + pipeline: null + project_id: 14233409 + reference: '!86' + references: + full: packit-service/ogr-tests!86 + relative: '!86' + short: '!86' + reviewers: [] + sha: db843cde94391923c6acb4cce938d830477a9732 + should_remove_source_branch: null + source_branch: pr-3 + source_project_id: 14233409 + squash: false + squash_commit_sha: null + state: closed + subscribed: true + target_branch: master + target_project_id: 14233409 + task_completion_status: + completed_count: 0 + count: 0 + time_stats: + human_time_estimate: null + human_total_time_spent: null + time_estimate: 0 + total_time_spent: 0 + title: New PR of pr-3 + updated_at: '2022-04-29T14:19:44.625Z' + upvotes: 0 + user: + can_merge: true + user_notes_count: 0 + web_url: https://gitlab.com/packit-service/ogr-tests/-/merge_requests/86 + work_in_progress: false + _next: null + elapsed: 0.326099 + encoding: utf-8 + headers: + CF-Cache-Status: DYNAMIC + CF-RAY: 7038aca60fb12774-PRG + Cache-Control: max-age=0, private, must-revalidate + Connection: keep-alive + Content-Encoding: gzip + Content-Type: application/json + Date: Fri, 29 Apr 2022 14:19:45 GMT + Etag: W/"888f4d7381910b8b742a39cf791e76dc" + Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" + GitLab-LB: fe-03-lb-gprd + GitLab-SV: localhost + NEL: '{"success_fraction":0.01,"report_to":"cf-nel","max_age":604800}' + RateLimit-Limit: '2000' + RateLimit-Observed: '6' + RateLimit-Remaining: '1994' + RateLimit-Reset: '1651242045' + RateLimit-ResetTime: Fri, 29 Apr 2022 14:20:45 GMT + Referrer-Policy: strict-origin-when-cross-origin + Report-To: '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=85RpItlj6DZPslSeZbh0nl3oL%2FKdxWGlPXdKZ8SxjcGPWtJW8PcL6udK41zRe9MvpiynUMJerbG6TY%2F%2FvyyyQT%2FrdfpmTIwkeZxCIaa6%2FfclxhctREiaPrZsKNE%3D"}],"group":"cf-nel","max_age":604800}' + Server: cloudflare + Strict-Transport-Security: max-age=31536000 + Transfer-Encoding: chunked + Vary: Origin + X-Content-Type-Options: nosniff + X-Frame-Options: SAMEORIGIN + X-Request-Id: 01G1TV29179FDS87X312HPFR6T + X-Runtime: '0.131955' + raw: !!binary "" + reason: OK + status_code: 200 + - metadata: + latency: 0.26959848403930664 + module_call_list: + - unittest.case + - requre.record_and_replace + - tests.integration.gitlab.test_pull_requests + - ogr.abstract + - ogr.utils + - ogr.abstract + - ogr.services.gitlab.pull_request + - gitlab.exceptions + - gitlab.mixins + - gitlab.client + - requre.objects + - requre.cassette + - requests.sessions + - send + output: + __store_indicator: 2 + _content: + approvals_before_merge: null + assignee: null + assignees: [] + author: + avatar_url: https://gitlab.com/uploads/-/system/user/avatar/2952463/avatar.png + id: 2952463 + name: Jiri Popelka + state: active + username: jpopelka + web_url: https://gitlab.com/jpopelka + blocking_discussions_resolved: true + changes_count: null + closed_at: null + closed_by: null + created_at: '2022-04-29T14:19:43.343Z' + description: Description + diff_refs: + base_sha: db843cde94391923c6acb4cce938d830477a9732 + head_sha: db843cde94391923c6acb4cce938d830477a9732 + start_sha: dd9b6c54c0788301c86bdf058a8e91e3594a0a17 + discussion_locked: null + downvotes: 0 + draft: false + first_contribution: false + first_deployed_to_production_at: null + force_remove_source_branch: null + has_conflicts: true + head_pipeline: null + id: 152883878 + iid: 86 + labels: [] + latest_build_finished_at: null + latest_build_started_at: null + merge_commit_sha: null + merge_error: null + merge_status: cannot_be_merged + merge_user: null + merge_when_pipeline_succeeds: false + merged_at: null + merged_by: null + milestone: null + pipeline: null + project_id: 14233409 + reference: '!86' + references: + full: packit-service/ogr-tests!86 + relative: '!86' + short: '!86' + reviewers: [] + sha: db843cde94391923c6acb4cce938d830477a9732 + should_remove_source_branch: null + source_branch: pr-3 + source_project_id: 14233409 + squash: false + squash_commit_sha: null + state: opened + subscribed: true + target_branch: master + target_project_id: 14233409 + task_completion_status: + completed_count: 0 + count: 0 + time_stats: + human_time_estimate: null + human_total_time_spent: null + time_estimate: 0 + total_time_spent: 0 + title: New PR of pr-3 + updated_at: '2022-04-29T14:19:45.492Z' + upvotes: 0 + user: + can_merge: true + user_notes_count: 0 + web_url: https://gitlab.com/packit-service/ogr-tests/-/merge_requests/86 + work_in_progress: false + _next: null + elapsed: 0.268974 + encoding: utf-8 + headers: + CF-Cache-Status: DYNAMIC + CF-RAY: 7038acad8f602774-PRG + Cache-Control: max-age=0, private, must-revalidate + Connection: keep-alive + Content-Encoding: gzip + Content-Type: application/json + Date: Fri, 29 Apr 2022 14:19:46 GMT + Etag: W/"3c11af21a1ba37ab963b116ffe0c9c63" + Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" + GitLab-LB: fe-12-lb-gprd + GitLab-SV: localhost + NEL: '{"success_fraction":0.01,"report_to":"cf-nel","max_age":604800}' + RateLimit-Limit: '2000' + RateLimit-Observed: '8' + RateLimit-Remaining: '1992' + RateLimit-Reset: '1651242046' + RateLimit-ResetTime: Fri, 29 Apr 2022 14:20:46 GMT + Referrer-Policy: strict-origin-when-cross-origin + Report-To: '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=DQcvFUGjy4malaZxmxSnbIfFAgDTSGgbZP6WPyxnOFRlrOytKw9rqGVXelP2EZxsbSrDXCXiWOMxXC4sedq%2BWHywGc%2FjIhT%2F86Q7hPTvy7VElKHgdQechESwfJg%3D"}],"group":"cf-nel","max_age":604800}' + Server: cloudflare + Strict-Transport-Security: max-age=31536000 + Transfer-Encoding: chunked + Vary: Origin + X-Content-Type-Options: nosniff + X-Frame-Options: SAMEORIGIN + X-Request-Id: 01G1TV2A6RJGWAPK2DKHMSQV4B + X-Runtime: '0.086637' + raw: !!binary "" + reason: OK + status_code: 200 + https://gitlab.com/api/v4/projects/packit-service%2Fogr-tests: + - metadata: + latency: 0.4917631149291992 + module_call_list: + - unittest.case + - requre.record_and_replace + - tests.integration.gitlab.test_pull_requests + - ogr.abstract + - ogr.utils + - ogr.abstract + - ogr.services.gitlab.pull_request + - ogr.services.gitlab.project + - gitlab.exceptions + - gitlab.mixins + - gitlab.client + - requre.objects + - requre.cassette + - requests.sessions + - send + output: + __store_indicator: 2 + _content: + _links: + cluster_agents: https://gitlab.com/api/v4/projects/14233409/cluster_agents + events: https://gitlab.com/api/v4/projects/14233409/events + issues: https://gitlab.com/api/v4/projects/14233409/issues + labels: https://gitlab.com/api/v4/projects/14233409/labels + members: https://gitlab.com/api/v4/projects/14233409/members + merge_requests: https://gitlab.com/api/v4/projects/14233409/merge_requests + repo_branches: https://gitlab.com/api/v4/projects/14233409/repository/branches + self: https://gitlab.com/api/v4/projects/14233409 + allow_merge_on_skipped_pipeline: null + analytics_access_level: enabled + approvals_before_merge: 0 + archived: false + auto_cancel_pending_pipelines: enabled + auto_devops_deploy_strategy: continuous + auto_devops_enabled: false + autoclose_referenced_issues: true + avatar_url: null + build_git_strategy: fetch + build_timeout: 3600 + builds_access_level: enabled + can_create_merge_request_in: true + ci_config_path: null + ci_default_git_depth: 50 + ci_forward_deployment_enabled: null + ci_job_token_scope_enabled: false + compliance_frameworks: [] + container_registry_access_level: enabled + container_registry_enabled: true + container_registry_image_prefix: registry.gitlab.com/packit-service/ogr-tests + created_at: '2019-09-10T10:28:09.946Z' + creator_id: 433670 + default_branch: master + description: Testing repository for python-ogr package. | https://github.com/packit-service/ogr + emails_disabled: null + empty_repo: false + external_authorization_classification_label: '' + forking_access_level: enabled + forks_count: 7 + http_url_to_repo: https://gitlab.com/packit-service/ogr-tests.git + id: 14233409 + import_error: null + import_status: none + import_type: null + import_url: null + issues_access_level: enabled + issues_enabled: true + issues_template: null + jobs_enabled: true + keep_latest_artifact: true + last_activity_at: '2022-04-22T09:31:53.089Z' + lfs_enabled: true + marked_for_deletion_at: null + marked_for_deletion_on: null + merge_commit_template: null + merge_method: merge + merge_pipelines_enabled: false + merge_requests_access_level: enabled + merge_requests_enabled: true + merge_requests_template: null + merge_trains_enabled: false + mirror: false + name: ogr-tests + name_with_namespace: packit-service / ogr-tests + namespace: + avatar_url: /uploads/-/system/group/avatar/6032704/logo-square-small-borders.png + full_path: packit-service + id: 6032704 + kind: group + name: packit-service + parent_id: null + path: packit-service + web_url: https://gitlab.com/groups/packit-service + only_allow_merge_if_all_discussions_are_resolved: false + only_allow_merge_if_pipeline_succeeds: false + open_issues_count: 74 + operations_access_level: enabled + packages_enabled: true + pages_access_level: enabled + path: ogr-tests + path_with_namespace: packit-service/ogr-tests + permissions: + group_access: + access_level: 50 + notification_level: 3 + project_access: null + printing_merge_request_link_enabled: true + public_jobs: true + readme_url: https://gitlab.com/packit-service/ogr-tests/-/blob/master/README.md + remove_source_branch_after_merge: null + repository_access_level: enabled + request_access_enabled: false + requirements_access_level: enabled + requirements_enabled: true + resolve_outdated_diff_discussions: false + restrict_user_defined_variables: false + runner_token_expiration_interval: null + runners_token: GR1348941sWEgsQKmwrxmdNipZmMH + security_and_compliance_access_level: private + security_and_compliance_enabled: true + service_desk_address: contact-project+packit-service-ogr-tests-14233409-issue-@incoming.gitlab.com + service_desk_enabled: true + shared_runners_enabled: true + shared_with_groups: [] + snippets_access_level: enabled + snippets_enabled: true + squash_commit_template: null + squash_option: default_off + ssh_url_to_repo: git@gitlab.com:packit-service/ogr-tests.git + star_count: 0 + suggestion_commit_message: null + tag_list: [] + topics: [] + visibility: public + web_url: https://gitlab.com/packit-service/ogr-tests + wiki_access_level: enabled + wiki_enabled: true + _next: null + elapsed: 0.491058 + encoding: utf-8 + headers: + CF-Cache-Status: DYNAMIC + CF-RAY: 7038ac971a0b2774-PRG + Cache-Control: max-age=0, private, must-revalidate + Connection: keep-alive + Content-Encoding: gzip + Content-Type: application/json + Date: Fri, 29 Apr 2022 14:19:43 GMT + Etag: W/"23a289aaceeafe66605a755676a147fb" + Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" + GitLab-LB: fe-26-lb-gprd + GitLab-SV: localhost + NEL: '{"success_fraction":0.01,"report_to":"cf-nel","max_age":604800}' + RateLimit-Limit: '2000' + RateLimit-Observed: '2' + RateLimit-Remaining: '1998' + RateLimit-Reset: '1651242042' + RateLimit-ResetTime: Fri, 29 Apr 2022 14:20:42 GMT + Referrer-Policy: strict-origin-when-cross-origin + Report-To: '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=eRvfl%2FE6Zy9zYibuOwM0Q4zit8Q7q5U0HJ3mmQ4iXf6qBEBMYsOBQ032iJVZSHCcoeh8jGT0aXRwDUmVfSxxMmhl10WGWlAJ2D9osj2%2BSINOb0DreGmBHpziB6o%3D"}],"group":"cf-nel","max_age":604800}' + Server: cloudflare + Strict-Transport-Security: max-age=31536000 + Transfer-Encoding: chunked + Vary: Origin + X-Content-Type-Options: nosniff + X-Frame-Options: SAMEORIGIN + X-Request-Id: 01G1TV26W2P585YKFK5KT6N7ZR + X-Runtime: '0.101417' + raw: !!binary "" + reason: OK + status_code: 200 + https://gitlab.com/api/v4/user: + - metadata: + latency: 0.548694372177124 + module_call_list: + - unittest.case + - requre.record_and_replace + - tests.integration.gitlab.test_pull_requests + - ogr.abstract + - ogr.utils + - ogr.abstract + - ogr.services.gitlab.pull_request + - ogr.services.gitlab.project + - ogr.services.gitlab.service + - gitlab.client + - gitlab.exceptions + - gitlab.mixins + - gitlab.client + - requre.objects + - requre.cassette + - requests.sessions + - send + output: + __store_indicator: 2 + _content: + avatar_url: https://gitlab.com/uploads/-/system/user/avatar/2952463/avatar.png + bio: '' + bot: false + can_create_group: true + can_create_project: true + color_scheme_id: 1 + commit_email: jpopelka@redhat.com + confirmed_at: '2018-10-08T14:26:41.419Z' + created_at: '2018-10-08T14:26:41.721Z' + current_sign_in_at: '2022-04-25T12:57:32.378Z' + email: jpopelka@redhat.com + external: false + extra_shared_runners_minutes_limit: null + followers: 0 + following: 0 + id: 2952463 + identities: + - extern_uid: jpopelka + provider: group_saml + saml_provider_id: 2868 + - extern_uid: 78e344c6-0d75-11e7-80dc-28d244ea5a6d + provider: group_saml + saml_provider_id: 1769 + - extern_uid: '115977727485665327598' + provider: google_oauth2 + saml_provider_id: null + - extern_uid: '288686' + provider: github + saml_provider_id: null + job_title: '' + last_activity_on: '2022-04-29' + last_sign_in_at: '2022-04-12T18:13:37.156Z' + linkedin: https://www.linkedin.com/in/ji%C5%99%C3%AD-popelka-6301345 + local_time: 4:19 PM + location: Brno + name: Jiri Popelka + organization: Red Hat, inc. + private_profile: false + projects_limit: 100000 + pronouns: '' + public_email: '' + shared_runners_minutes_limit: null + skype: '' + state: active + theme_id: 1 + twitter: '' + two_factor_enabled: true + username: jpopelka + web_url: https://gitlab.com/jpopelka + website_url: '' + work_information: Red Hat, inc. + _next: null + elapsed: 0.548016 + encoding: utf-8 + headers: + CF-Cache-Status: DYNAMIC + CF-RAY: 7038ac940bfc2774-PRG + Cache-Control: max-age=0, private, must-revalidate + Connection: keep-alive + Content-Encoding: gzip + Content-Type: application/json + Date: Fri, 29 Apr 2022 14:19:42 GMT + Etag: W/"16d3a995d464bbcbc31f06e64a9f4e53" + Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" + GitLab-LB: fe-23-lb-gprd + GitLab-SV: localhost + NEL: '{"success_fraction":0.01,"report_to":"cf-nel","max_age":604800}' + RateLimit-Limit: '2000' + RateLimit-Observed: '1' + RateLimit-Remaining: '1999' + RateLimit-Reset: '1651242042' + RateLimit-ResetTime: Fri, 29 Apr 2022 14:20:42 GMT + Referrer-Policy: strict-origin-when-cross-origin + Report-To: '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=CTBLn%2Bai7oooFepEty%2B4K4fLh5ZRXuhdQ7LOTipyB8Lju9cr8GCPWqTZIAArHZLVNhSfysKKqMYY9bWL2I%2BD4QbSrJxeDKY%2BWA4qsHlh0mF3kFi9oAmumTQHAYg%3D"}],"group":"cf-nel","max_age":604800}' + Server: cloudflare + Strict-Transport-Security: max-age=31536000 + Transfer-Encoding: chunked + Vary: Origin + X-Content-Type-Options: nosniff + X-Frame-Options: SAMEORIGIN + X-Request-Id: 01G1TV267C00TA2FY88B01RDHM + X-Runtime: '0.286131' + raw: !!binary "" + reason: OK + status_code: 200 + POST: + https://gitlab.com/api/v4/projects/14233409/merge_requests: + - metadata: + latency: 1.0500950813293457 + module_call_list: + - unittest.case + - requre.record_and_replace + - tests.integration.gitlab.test_pull_requests + - ogr.abstract + - ogr.utils + - ogr.abstract + - ogr.services.gitlab.pull_request + - gitlab.exceptions + - gitlab.mixins + - gitlab.client + - requre.objects + - requre.cassette + - requests.sessions + - send + output: + __store_indicator: 2 + _content: + approvals_before_merge: null + assignee: null + assignees: [] + author: + avatar_url: https://gitlab.com/uploads/-/system/user/avatar/2952463/avatar.png + id: 2952463 + name: Jiri Popelka + state: active + username: jpopelka + web_url: https://gitlab.com/jpopelka + blocking_discussions_resolved: true + changes_count: null + closed_at: null + closed_by: null + created_at: '2022-04-29T14:19:43.343Z' + description: Description + diff_refs: + base_sha: db843cde94391923c6acb4cce938d830477a9732 + head_sha: db843cde94391923c6acb4cce938d830477a9732 + start_sha: dd9b6c54c0788301c86bdf058a8e91e3594a0a17 + discussion_locked: null + downvotes: 0 + draft: false + first_deployed_to_production_at: null + force_remove_source_branch: null + has_conflicts: false + head_pipeline: null + id: 152883878 + iid: 86 + labels: [] + latest_build_finished_at: null + latest_build_started_at: null + merge_commit_sha: null + merge_error: null + merge_status: checking + merge_user: null + merge_when_pipeline_succeeds: false + merged_at: null + merged_by: null + milestone: null + pipeline: null + project_id: 14233409 + reference: '!86' + references: + full: packit-service/ogr-tests!86 + relative: '!86' + short: '!86' + reviewers: [] + sha: db843cde94391923c6acb4cce938d830477a9732 + should_remove_source_branch: null + source_branch: pr-3 + source_project_id: 14233409 + squash: false + squash_commit_sha: null + state: opened + subscribed: true + target_branch: master + target_project_id: 14233409 + task_completion_status: + completed_count: 0 + count: 0 + time_stats: + human_time_estimate: null + human_total_time_spent: null + time_estimate: 0 + total_time_spent: 0 + title: New PR of pr-3 + updated_at: '2022-04-29T14:19:43.343Z' + upvotes: 0 + user: + can_merge: true + user_notes_count: 0 + web_url: https://gitlab.com/packit-service/ogr-tests/-/merge_requests/86 + work_in_progress: false + _next: null + elapsed: 1.049637 + encoding: utf-8 + headers: + CF-Cache-Status: DYNAMIC + CF-RAY: 7038ac9a48be2774-PRG + Cache-Control: max-age=0, private, must-revalidate + Connection: keep-alive + Content-Length: '1861' + Content-Type: application/json + Date: Fri, 29 Apr 2022 14:19:44 GMT + Etag: W/"26ec7af65b3af5d525a20e8be93fd7c7" + Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" + GitLab-LB: fe-03-lb-gprd + GitLab-SV: localhost + NEL: '{"success_fraction":0.01,"report_to":"cf-nel","max_age":604800}' + RateLimit-Limit: '2000' + RateLimit-Observed: '3' + RateLimit-Remaining: '1997' + RateLimit-Reset: '1651242044' + RateLimit-ResetTime: Fri, 29 Apr 2022 14:20:44 GMT + Referrer-Policy: strict-origin-when-cross-origin + Report-To: '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=rG2rQWuUHKyj%2FRfADvEpuOm3MxHF52efDrLb5zGYN2OgAT057z3r3vxWeZ6xKMfnSlc2ifu6KWylthWFKwjxG5VEn%2B8vJKZq%2F1Q%2BWYyVsY4XBB1OB2WFwzteJjk%3D"}],"group":"cf-nel","max_age":604800}' + Server: cloudflare + Strict-Transport-Security: max-age=31536000 + Vary: Origin + X-Content-Type-Options: nosniff + X-Frame-Options: SAMEORIGIN + X-Request-Id: 01G1TV2761Y30SEYGRSYR82VDY + X-Runtime: '0.870529' + raw: !!binary "" + reason: Created + status_code: 201 + PUT: + https://gitlab.com/api/v4/projects/14233409/merge_requests/86: + - metadata: + latency: 0.5153517723083496 + module_call_list: + - unittest.case + - requre.record_and_replace + - tests.integration.gitlab.test_pull_requests + - ogr.abstract + - ogr.services.gitlab.pull_request + - gitlab.mixins + - gitlab.exceptions + - gitlab.mixins + - gitlab.client + - requre.objects + - requre.cassette + - requests.sessions + - send + output: + __store_indicator: 2 + _content: + approvals_before_merge: null + assignee: null + assignees: [] + author: + avatar_url: https://gitlab.com/uploads/-/system/user/avatar/2952463/avatar.png + id: 2952463 + name: Jiri Popelka + state: active + username: jpopelka + web_url: https://gitlab.com/jpopelka + blocking_discussions_resolved: true + changes_count: null + closed_at: '2022-04-29T14:19:44.659Z' + closed_by: + avatar_url: https://gitlab.com/uploads/-/system/user/avatar/2952463/avatar.png + id: 2952463 + name: Jiri Popelka + state: active + username: jpopelka + web_url: https://gitlab.com/jpopelka + created_at: '2022-04-29T14:19:43.343Z' + description: Description + diff_refs: + base_sha: db843cde94391923c6acb4cce938d830477a9732 + head_sha: db843cde94391923c6acb4cce938d830477a9732 + start_sha: dd9b6c54c0788301c86bdf058a8e91e3594a0a17 + discussion_locked: null + downvotes: 0 + draft: false + first_deployed_to_production_at: null + force_remove_source_branch: null + has_conflicts: true + head_pipeline: null + id: 152883878 + iid: 86 + labels: [] + latest_build_finished_at: null + latest_build_started_at: null + merge_commit_sha: null + merge_error: null + merge_status: cannot_be_merged + merge_user: null + merge_when_pipeline_succeeds: false + merged_at: null + merged_by: null + milestone: null + pipeline: null + project_id: 14233409 + reference: '!86' + references: + full: packit-service/ogr-tests!86 + relative: '!86' + short: '!86' + reviewers: [] + sha: db843cde94391923c6acb4cce938d830477a9732 + should_remove_source_branch: null + source_branch: pr-3 + source_project_id: 14233409 + squash: false + squash_commit_sha: null + state: closed + subscribed: true + target_branch: master + target_project_id: 14233409 + task_completion_status: + completed_count: 0 + count: 0 + time_stats: + human_time_estimate: null + human_total_time_spent: null + time_estimate: 0 + total_time_spent: 0 + title: New PR of pr-3 + updated_at: '2022-04-29T14:19:44.625Z' + upvotes: 0 + user: + can_merge: true + user_notes_count: 0 + web_url: https://gitlab.com/packit-service/ogr-tests/-/merge_requests/86 + work_in_progress: false + _next: null + elapsed: 0.515009 + encoding: utf-8 + headers: + CF-Cache-Status: DYNAMIC + CF-RAY: 7038aca2c9e02774-PRG + Cache-Control: max-age=0, private, must-revalidate + Connection: keep-alive + Content-Encoding: gzip + Content-Type: application/json + Date: Fri, 29 Apr 2022 14:19:44 GMT + Etag: W/"6775b62b01ac5794f74dcc9d00ae856a" + Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" + GitLab-LB: fe-18-lb-gprd + GitLab-SV: localhost + NEL: '{"success_fraction":0.01,"report_to":"cf-nel","max_age":604800}' + RateLimit-Limit: '2000' + RateLimit-Observed: '5' + RateLimit-Remaining: '1995' + RateLimit-Reset: '1651242044' + RateLimit-ResetTime: Fri, 29 Apr 2022 14:20:44 GMT + Referrer-Policy: strict-origin-when-cross-origin + Report-To: '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=a2PObAGJlUi%2F8q%2Ft2gUzVPUAi9gOtjQmGyz7pbZN2VUpBkEhaGLld9qFWjrpCzw2B68zJoFde0v%2F9QefiAF%2FHVe10xKQwAnzCFCZZlbkfn44PoVC1bF0%2FdptouI%3D"}],"group":"cf-nel","max_age":604800}' + Server: cloudflare + Strict-Transport-Security: max-age=31536000 + Transfer-Encoding: chunked + Vary: Origin + X-Content-Type-Options: nosniff + X-Frame-Options: SAMEORIGIN + X-Request-Id: 01G1TV28GY898K2TZ2SY5ZJRND + X-Runtime: '0.332862' + raw: !!binary "" + reason: OK + status_code: 200 + - metadata: + latency: 0.8575315475463867 + module_call_list: + - unittest.case + - requre.record_and_replace + - tests.integration.gitlab.test_pull_requests + - ogr.abstract + - ogr.services.gitlab.pull_request + - gitlab.mixins + - gitlab.exceptions + - gitlab.mixins + - gitlab.client + - requre.objects + - requre.cassette + - requests.sessions + - send + output: + __store_indicator: 2 + _content: + approvals_before_merge: null + assignee: null + assignees: [] + author: + avatar_url: https://gitlab.com/uploads/-/system/user/avatar/2952463/avatar.png + id: 2952463 + name: Jiri Popelka + state: active + username: jpopelka + web_url: https://gitlab.com/jpopelka + blocking_discussions_resolved: true + changes_count: null + closed_at: null + closed_by: null + created_at: '2022-04-29T14:19:43.343Z' + description: Description + diff_refs: + base_sha: db843cde94391923c6acb4cce938d830477a9732 + head_sha: db843cde94391923c6acb4cce938d830477a9732 + start_sha: dd9b6c54c0788301c86bdf058a8e91e3594a0a17 + discussion_locked: null + downvotes: 0 + draft: false + first_deployed_to_production_at: null + force_remove_source_branch: null + has_conflicts: false + head_pipeline: null + id: 152883878 + iid: 86 + labels: [] + latest_build_finished_at: null + latest_build_started_at: null + merge_commit_sha: null + merge_error: null + merge_status: checking + merge_user: null + merge_when_pipeline_succeeds: false + merged_at: null + merged_by: null + milestone: null + pipeline: null + project_id: 14233409 + reference: '!86' + references: + full: packit-service/ogr-tests!86 + relative: '!86' + short: '!86' + reviewers: [] + sha: db843cde94391923c6acb4cce938d830477a9732 + should_remove_source_branch: null + source_branch: pr-3 + source_project_id: 14233409 + squash: false + squash_commit_sha: null + state: opened + subscribed: true + target_branch: master + target_project_id: 14233409 + task_completion_status: + completed_count: 0 + count: 0 + time_stats: + human_time_estimate: null + human_total_time_spent: null + time_estimate: 0 + total_time_spent: 0 + title: New PR of pr-3 + updated_at: '2022-04-29T14:19:45.492Z' + upvotes: 0 + user: + can_merge: true + user_notes_count: 0 + web_url: https://gitlab.com/packit-service/ogr-tests/-/merge_requests/86 + work_in_progress: false + _next: null + elapsed: 0.856882 + encoding: utf-8 + headers: + CF-Cache-Status: DYNAMIC + CF-RAY: 7038aca81bd52774-PRG + Cache-Control: max-age=0, private, must-revalidate + Connection: keep-alive + Content-Encoding: gzip + Content-Type: application/json + Date: Fri, 29 Apr 2022 14:19:46 GMT + Etag: W/"4c87ab728f9f1ef7f803e0dcca514378" + Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" + GitLab-LB: fe-04-lb-gprd + GitLab-SV: localhost + NEL: '{"success_fraction":0.01,"report_to":"cf-nel","max_age":604800}' + RateLimit-Limit: '2000' + RateLimit-Observed: '7' + RateLimit-Remaining: '1993' + RateLimit-Reset: '1651242046' + RateLimit-ResetTime: Fri, 29 Apr 2022 14:20:46 GMT + Referrer-Policy: strict-origin-when-cross-origin + Report-To: '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=ZTtOXAJVbIZSCDIHVpNwLNz2H8ex701kLROXVoGMxx%2BKKBCDemkqP%2FCnHZENkbRIk%2ByhlYV1zAlOWl05kwRD%2FH6L5reDqDF%2B9Wh8WCTP8NT5C%2BKghbxUE9kCkAU%3D"}],"group":"cf-nel","max_age":604800}' + Server: cloudflare + Strict-Transport-Security: max-age=31536000 + Transfer-Encoding: chunked + Vary: Origin + X-Content-Type-Options: nosniff + X-Frame-Options: SAMEORIGIN + X-Request-Id: 01G1TV29BJNNPXBB868CHZDRFK + X-Runtime: '0.675410' + raw: !!binary "" + reason: OK + status_code: 200 diff --git a/tests/integration/gitlab/test_pull_requests.py b/tests/integration/gitlab/test_pull_requests.py index d171da28..df1b1a3c 100644 --- a/tests/integration/gitlab/test_pull_requests.py +++ b/tests/integration/gitlab/test_pull_requests.py @@ -72,6 +72,14 @@ def test_pr_close(self): closed_pr = pr_for_closing.close() assert closed_pr.status == PRStatus.closed + def test_pr_reopen(self): + pr = self.create_pull_request() + assert self.project.get_pr(pr_id=pr.id).status == PRStatus.open + pr.close() + assert self.project.get_pr(pr_id=pr.id).status == PRStatus.closed + pr.reopen() + assert self.project.get_pr(pr_id=pr.id).status == PRStatus.open + def test_pr_merge(self): """ Create new PR and update pull request ID to this test before this test diff --git a/tests/integration/pagure/test_pull_requests.py b/tests/integration/pagure/test_pull_requests.py index 21ab6340..d12a4272 100644 --- a/tests/integration/pagure/test_pull_requests.py +++ b/tests/integration/pagure/test_pull_requests.py @@ -36,6 +36,22 @@ def test_pr_create_from_parent(self): assert pr.source_branch == "master" assert pr.status == PRStatus.open + # TODO can't make this work, It creates the PR, but /close returns + # "Invalid or expired token..." + # even I just generated it with all ACLs + # def test_pr_close_reopen(self): + # pr = self.ogr_project.create_pr( + # title="Testing PR 3", + # body="Body of the testing PR.", + # target_branch="master", + # source_branch="master", + # ) + # assert pr.status == PRStatus.open + # pr.close() + # assert self.ogr_project.get_pr(pr_id=pr.id).status == PRStatus.closed + # pr.reopen() + # assert self.ogr_project.get_pr(pr_id=pr.id).status == PRStatus.open + def test_pr_list(self): pr_list_default = self.ogr_project.get_pr_list() assert isinstance(pr_list_default, list)