这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions scripts/bin/update-packages
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down Expand Up @@ -461,12 +459,13 @@ _gh_create_new_issue() {
</i>
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
Expand Down