Skip to content

Commit

Permalink
+ routine/20240821.Clean_up_misspelling_links.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kanasimi committed Aug 25, 2024
1 parent b19d6be commit c283b04
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routine/20240821.Clean_up_misspelling_links.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
node 20240821.Clean_up_misspelling_link.js use_project=zh
node 20240821.Clean_up_misspelling_links.js use_project=zh
這個任務會修正拼寫錯誤的連結,修正所有指向{{錯誤拼寫重定向}}的連結。
Expand Down Expand Up @@ -91,7 +91,7 @@ async function main_process() {
namespace: 'main|Template',
move_to_link,
page_list_filter(page_data, index, page_list) {
if (!('parcess_this_template' in page_list)) {
if (wiki.latest_task_configuration.general.max_backlinks && !('parcess_this_template' in page_list)) {
// assert: index === 0
page_list.parcess_this_template = page_list.length <= wiki.latest_task_configuration.general.max_backlinks;
}
Expand Down
6 changes: 6 additions & 0 deletions wikitech/toolforge-jobs-cewbot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,12 @@
mem: 2Gi
schedule: "6 4 * * 1"

- name: k8s-20240821-clean-up-misspelling-links.zhwiki
command: "node ./wikibot/routine/20240821.Clean_up_misspelling_links.js use_project=zh"
image: node18
mem: 2Gi
schedule: "1 2 * * 6"

# -----------------------------------------------------------------------------
# zh.wikinews

Expand Down

0 comments on commit c283b04

Please sign in to comment.