From 69ba6ea07a096f8fa1ce0a5684c34cae363e9825 Mon Sep 17 00:00:00 2001 From: Zhang Jun Date: Tue, 1 Nov 2022 13:53:02 +0800 Subject: [PATCH] fix AppVeyor job links only working for most rece --- ...job-links-only-working-for-most-rece.patch | 29 +++++++++++++++++++ libssh2.spec | 9 +++++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 fix-AppVeyor-job-links-only-working-for-most-rece.patch diff --git a/fix-AppVeyor-job-links-only-working-for-most-rece.patch b/fix-AppVeyor-job-links-only-working-for-most-rece.patch new file mode 100644 index 0000000..d95e56b --- /dev/null +++ b/fix-AppVeyor-job-links-only-working-for-most-rece.patch @@ -0,0 +1,29 @@ +From c2a7fad06b2173e7e54827daa8523797b5361262 Mon Sep 17 00:00:00 2001 +From: Marc Hoersken +Date: Fri, 21 Oct 2022 22:57:23 +0200 +Subject: [PATCH] CI: fix AppVeyor job links only working for most recent build + +Ref: https://github.com/curl/curl/pull/9768#issuecomment-1286675916 +Reported-by: Daniel Stenberg + +Follow up to #754 +--- + .github/workflows/appveyor_status.yml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/.github/workflows/appveyor_status.yml b/.github/workflows/appveyor_status.yml +index d7365bf..a36b43c 100644 +--- a/.github/workflows/appveyor_status.yml ++++ b/.github/workflows/appveyor_status.yml +@@ -48,7 +48,7 @@ jobs: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + echo ${APPVEYOR_TARGET_URL} | sed 's/\/project\//\/api\/projects\//' | xargs -t -n1 curl -s | \ +- jq -c '.build.jobs[] | {target_url: (($target_url | sub("s\\/\\d+"; "/job/")) + .jobId), ++ jq -c '.build.jobs[] | {target_url: ($target_url + "/job/" + .jobId), + context: (.name | sub("^(Environment: )?"; "AppVeyor / ")), + state: (.status | sub("queued"; "pending") + | sub("running"; "pending") +-- +2.25.1 + diff --git a/libssh2.spec b/libssh2.spec index 348690e..c819e78 100644 --- a/libssh2.spec +++ b/libssh2.spec @@ -1,6 +1,6 @@ Name: libssh2 Version: 1.10.0 -Release: 4 +Release: 5 Summary: A library implementing the SSH2 protocol License: BSD URL: https://www.libssh2.org/ @@ -9,6 +9,7 @@ Source0: https://libssh2.org/download/libssh2-%{version}.tar.gz Patch0: backport-RSA-SHA2-256-512-key-upgrade-support-RFC-8332.patch Patch1: backport-misc-libssh2_copy_string-avoid-malloc-zero-bytes.patch Patch2: sftp-Prevent-files-from-being-skipped-if-the-output.patch +Patch3: fix-AppVeyor-job-links-only-working-for-most-rece.patch BuildRequires: coreutils findutils /usr/bin/man zlib-devel BuildRequires: gcc make sed openssl-devel > 1:1.0.1 openssh-server @@ -88,6 +89,12 @@ LC_ALL=en_US.UTF-8 make -C tests check %{_mandir}/man3/libssh2_*.3* %changelog +* Tue Nov 1 2022 zhangjun - 1.10.0-5 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:fix AppVeyor job links only working-for most rece + * Mon Oct 17 2022 zhangjun - 1.10.0-4 - Type:bugfix - ID:NA -- Gitee