This is an automated email from the ASF dual-hosted git repository.
erose 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 d480dd2dde0 HDDS-13923. Remove leftover references to custom pending
label (#9290)
d480dd2dde0 is described below
commit d480dd2dde036b3ad77bd1f5afb78f83bb3fe8c1
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Thu Nov 13 18:34:13 2025 +0100
HDDS-13923. Remove leftover references to custom pending label (#9290)
---
.github/ci.md | 3 ---
.github/comment-commands/close.sh | 35 ---------------------------------
.github/comment-commands/pending.sh | 39 -------------------------------------
.github/comment-commands/ready.sh | 35 ---------------------------------
4 files changed, 112 deletions(-)
diff --git a/.github/ci.md b/.github/ci.md
index 4c8182a2877..75b0ad38a9e 100644
--- a/.github/ci.md
+++ b/.github/ci.md
@@ -78,11 +78,8 @@ If they don't match, it describes how to make the updates to
include the changes
### comment-commands Workflow
[This](./workflows/comments.yaml) workflow is triggered each time a comment is
added/edited to a PR. It checks to see if the body of the comment begins with
one of the following strings and, if so, invokes the corresponding command.
-- /close : [Close](./comment-commands/close.sh) pending pull request (with
message saying author is free to reopen.)
- /help : [Show](./comment-commands/help.sh) all the available comment commands
- /label : [Add](./comment-commands/label.sh) new label to the issue: /label
"label"
-- /pending : [Add](./comment-commands/pending.sh) a REQUESTED_CHANGE type
review to mark issue non-mergeable: /pending "reason"
-- /ready : [Dismiss](./comment-commands/ready.sh) all the blocking reviews
- /retest : [Provide](./comment-commands/retest.sh) help on how to trigger new
CI build
diff --git a/.github/comment-commands/close.sh
b/.github/comment-commands/close.sh
deleted file mode 100755
index cb57b719213..00000000000
--- a/.github/comment-commands/close.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-#doc: Close pending pull request temporary
-# shellcheck disable=SC2124
-SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
-MESSAGE=$(cat $SCRIPT_DIR/../closing-message.txt)
-
-set +x #GITHUB_TOKEN
-curl -s -o /dev/null \
- -X POST \
- --data "$(jq --arg body "$MESSAGE" -n '{body: $body}')" \
- --header "authorization: Bearer $GITHUB_TOKEN" \
- --header 'content-type: application/json' \
- "$(jq -r '.issue.comments_url' "$GITHUB_EVENT_PATH")"
-
-curl -s -o /dev/null \
- -X PATCH \
- --data '{"state": "close"}' \
- --header "authorization: Bearer $GITHUB_TOKEN" \
- --header 'content-type: application/json' \
- "$(jq -r '.issue.pull_request.url' "$GITHUB_EVENT_PATH")"
diff --git a/.github/comment-commands/pending.sh
b/.github/comment-commands/pending.sh
deleted file mode 100755
index 840ed82889d..00000000000
--- a/.github/comment-commands/pending.sh
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-#doc: Add a REQUESTED_CHANGE type review to mark issue non-mergeable:
`/pending <reason>`
-# shellcheck disable=SC2124
-MESSAGE="Marking this issue as un-mergeable as requested.
-
-Please use \`/ready\` comment when it's resolved.
-
-Please note that the PR will be closed after 21 days of inactivity from now.
(But can be re-opened anytime later...)
-> $@"
-
-URL="$(jq -r '.issue.pull_request.url' "$GITHUB_EVENT_PATH")/reviews"
-set +x #GITHUB_TOKEN
-curl -s -o /dev/null \
- --data "$(jq --arg body "$MESSAGE" -n '{event: "REQUEST_CHANGES", body:
$body}')" \
- --header "authorization: Bearer $GITHUB_TOKEN" \
- --header 'content-type: application/json' \
- "$URL"
-
-curl -s -o /dev/null \
- -X POST \
- --data '{"labels": [ "pending" ]}' \
- --header "authorization: Bearer $GITHUB_TOKEN" \
- "$(jq -r '.issue.url' "$GITHUB_EVENT_PATH")/labels"
-
diff --git a/.github/comment-commands/ready.sh
b/.github/comment-commands/ready.sh
deleted file mode 100755
index 0abbc3e02a2..00000000000
--- a/.github/comment-commands/ready.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-#doc: Dismiss all the blocking reviews by github-actions bot
-MESSAGE="Blocking review request is removed."
-URL="$(jq -r '.issue.pull_request.url' "$GITHUB_EVENT_PATH")/reviews"
-set +x #GITHUB_TOKEN
-curl -s "$URL" |
- jq -r '.[] | [.user.login, .id] | @tsv' |
- grep github-actions |
- awk '{print $2}' |
- xargs -n1 -IISSUE_ID curl -s -o /dev/null \
- -X PUT \
- --data "$(jq --arg message "$MESSAGE" -n '{message: $message}')" \
- --header "authorization: Bearer $GITHUB_TOKEN" \
- "$URL"/ISSUE_ID/dismissals
-
-curl -s -o /dev/null \
- -X DELETE \
- --header "authorization: Bearer $GITHUB_TOKEN" \
- "$(jq -r '.issue.url' "$GITHUB_EVENT_PATH")/labels/pending"
-
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]