This is an automated email from the ASF dual-hosted git repository.
ayushsaxena pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 2e329ba HDDS-4765. Update close-pending workflow for new repo (#1856)
2e329ba is described below
commit 2e329ba3b80d764b24c69292ef4fdcb011b3b4bf
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Sun Jan 31 12:49:17 2021 +0100
HDDS-4765. Update close-pending workflow for new repo (#1856)
---
.github/close-pending.sh | 6 +++---
.github/workflows/close-pending.yaml | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/.github/close-pending.sh b/.github/close-pending.sh
index ae05001..5ed27d3 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)')
diff --git a/.github/workflows/close-pending.yaml
b/.github/workflows/close-pending.yaml
index e335701..55444f7 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 }}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]