From 3a230bc670268cb873359a0fac0d5637eca8833b Mon Sep 17 00:00:00 2001 From: Aditya Alok Date: Sat, 15 Nov 2025 12:27:41 +0530 Subject: [PATCH] scripts(update-packages): Remove @MrAdityaAlok as default assignee Signed-off-by: Aditya Alok --- scripts/bin/update-packages | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/bin/update-packages b/scripts/bin/update-packages index 8d48eea27522f7..3da570256fd78d 100755 --- a/scripts/bin/update-packages +++ b/scripts/bin/update-packages @@ -422,10 +422,8 @@ _gh_create_new_issue() { local issue_number local body local link - local assignee="${GITHUB_ACTOR:-}" - if [[ "${assignee:-termuxbot2}" == "termuxbot2" ]]; then - assignee="MrAdityaAlok" # Assign myself if termuxbot2 is the actor. - fi + local assignee="" + [[ "${GITHUB_ACTOR:-termuxbot2}" != "termuxbot2" ]] && assignee="--assignee $GITHUB_ACTOR" if [[ "${CREATE_ISSUE}" != "true" ]]; then echo "INFO: CREATE_ISSUE set to '${CREATE_ISSUE}'. Not creating new issue." @@ -461,12 +459,13 @@ _gh_create_new_issue() { EOF )" + # shellcheck disable=SC2086 issue_number=$( gh issue create \ --title "Auto update failing for ${pkg_name}" \ --body "${body:0:${max_body_length}}" \ --label "auto update failing" --label "bot" \ - --assignee "${assignee}" | + $assignee | grep -oE "[0-9]+" # Last component of the URL returned is the issue number. ) if [ -z "${issue_number}" ]; then