Skip to content

Commit c3f0cf6

Browse files
piyush588parvninama
authored andcommitted
refactor: standardize cron workflow and script naming (hiero-ledger#2138)
Signed-off-by: Piyush Kumar <kumarpiyush2k6@gmail.com>
1 parent 9c1759c commit c3f0cf6

14 files changed

Lines changed: 10 additions & 10 deletions

.github/scripts/bot-inactivity-unassign.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if [[ -z "$REPO" ]]; then
2424
fi
2525

2626
echo "------------------------------------------------------------"
27-
echo " Unified Inactivity Bot"
27+
echo " Cron Reminder: Inactivity Unassign"
2828
echo " Repo: $REPO"
2929
echo " Threshold $DAYS days"
3030
echo " DRY_RUN: $DRY_RUN"
@@ -170,7 +170,7 @@ for ISSUE in $ISSUES; do
170170

171171
if (( DRY_RUN == 0 )); then
172172
MESSAGE=$(cat <<EOF
173-
Hi @$USER, this is InactivityBot 👋
173+
Hi @$USER, this is CronInactivityBot 👋
174174
175175
You were assigned to this issue **${ASSIGNED_AGE_DAYS} days** ago, and there is currently no open pull request linked to it.
176176
To keep the backlog available for active contributors, I'm unassigning you for now.
@@ -238,7 +238,7 @@ EOF
238238

239239
if (( DRY_RUN == 0 )); then
240240
MESSAGE=$(cat <<EOF
241-
Hi @$USER, this is InactivityBot 👋
241+
Hi @$USER, this is CronInactivityBot 👋
242242
243243
This pull request has had no new commits for **${PR_AGE_DAYS} days**, so I'm closing it and unassigning you from the linked issue to keep the backlog healthy.
244244
@@ -270,6 +270,6 @@ EOF
270270
done
271271

272272
echo "------------------------------------------------------------"
273-
echo " Unified Inactivity Bot Complete"
273+
echo " Cron Reminder: Inactivity Unassign Complete"
274274
echo " DRY_RUN: $DRY_RUN"
275275
echo "------------------------------------------------------------"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

.github/workflows/cron-update-spam-list.yml renamed to .github/workflows/cron-admin-update-spam-list.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ jobs:
3636

3737
with:
3838
script: |
39-
const updateSpamList = require('./.github/scripts/update-spam-list.js');
39+
const updateSpamList = require('./.github/scripts/cron-admin-update-spam-list.js');
4040
await updateSpamList({ github, context, core });

.github/workflows/cron-community-calls.yml renamed to .github/workflows/cron-calls-community.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ jobs:
3939
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4040
DRY_RUN: ${{ github.event_name == 'workflow_dispatch' && inputs.dry_run || 'false' }}
4141
run: |
42-
bash .github/scripts/cron-community-calls.sh
42+
bash .github/scripts/cron-calls-community.sh

.github/workflows/cron-office-hours.yml renamed to .github/workflows/cron-calls-office-hours.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ jobs:
3838
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3939
DRY_RUN: ${{ github.event_name == 'workflow_dispatch' && inputs.dry_run || 'false' }}
4040
run: |
41-
bash .github/scripts/cron-office-hours.sh
41+
bash .github/scripts/cron-calls-office-hours.sh

0 commit comments

Comments
 (0)