From c260e571421f3e2669525b0d1ec3b0a97a6bdb05 Mon Sep 17 00:00:00 2001 From: "Doroszlai, Attila" Date: Fri, 29 Jan 2021 17:29:49 +0100 Subject: [PATCH 1/3] HDDS-4765. Update close-pending workflow for new repo --- .github/workflows/close-pending.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/close-pending.yaml b/.github/workflows/close-pending.yaml index e335701e4cf2..55444f76f849 100644 --- a/.github/workflows/close-pending.yaml +++ b/.github/workflows/close-pending.yaml @@ -26,7 +26,7 @@ jobs: - name: Checkout code uses: actions/checkout@master - name: Execute close-pending script - if: github.repository == 'apache/hadoop-ozone' + if: github.repository == 'apache/ozone' run: ./.github/close-pending.sh env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 4ebe7da177e57a041c6a57bbd8f72f27566228c1 Mon Sep 17 00:00:00 2001 From: "Doroszlai, Attila" Date: Sat, 30 Jan 2021 08:47:35 +0100 Subject: [PATCH 2/3] Also update close-pending.sh --- .github/close-pending.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/close-pending.sh b/.github/close-pending.sh index ae05001d479e..5ed27d31a10c 100755 --- a/.github/close-pending.sh +++ b/.github/close-pending.sh @@ -27,15 +27,15 @@ while IFS= read -r number && --data "$(jq --arg body "$MESSAGE" -n '{body: $body}')" \ --header "authorization: Bearer $GITHUB_TOKEN" \ --header 'content-type: application/json' \ - "https://api.github.com/repos/apache/hadoop-ozone/issues/$number/comments" + "https://api.github.com/repos/apache/ozone/issues/$number/comments" curl -s -o /dev/null \ -X PATCH \ --data '{"state": "close"}' \ --header "authorization: Bearer $GITHUB_TOKEN" \ --header 'content-type: application/json' \ - "https://api.github.com/repos/apache/hadoop-ozone/pulls/$number" + "https://api.github.com/repos/apache/ozone/pulls/$number" done < <(curl -H "Content-Type: application/json" \ --header "authorization: Bearer $GITHUB_TOKEN" \ - "https://api.github.com/search/issues?q=repo:apache/hadoop-ozone+type:pr+updated:<$(date -d "-21 days" +%Y-%m-%d)+label:pending+is:open" \ + "https://api.github.com/search/issues?q=repo:apache/ozone+type:pr+updated:<$(date -d "-21 days" +%Y-%m-%d)+label:pending+is:open" \ | jq -r '.items[] | (.number,.title)') From f9601c5a929faaf9c542f275a1c975b4b308ae81 Mon Sep 17 00:00:00 2001 From: "Doroszlai, Attila" Date: Sat, 30 Jan 2021 12:04:03 +0100 Subject: [PATCH 3/3] trigger new CI check