Skip to content

Commit

Permalink
Merge pull request #259 from plebbit/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
plebeius-eth authored Feb 21, 2024
2 parents 1f33f3f + 21e524f commit 4174be4
Show file tree
Hide file tree
Showing 48 changed files with 336 additions and 254 deletions.
166 changes: 83 additions & 83 deletions .github/workflows/notifications.yml
Original file line number Diff line number Diff line change
@@ -1,93 +1,93 @@
# send notifications to telegram group on commits, releases, issues
name: notifications
# # send notifications to telegram group on commits, releases, issues
# name: notifications

on:
pull_request:
branches:
- master
push:
branches:
- master
release:
types: [published]
issues:
types: [opened]
# on:
# pull_request:
# branches:
# - master
# push:
# branches:
# - master
# release:
# types: [published]
# issues:
# types: [opened]

jobs:
push:
if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-latest
strategy:
matrix:
commit: ${{ github.event.commits }}
steps:
# - name: debug
# env:
# DEBUG: ${{ toJSON(matrix.commit) }}
# run: echo "$DEBUG"
# jobs:
# push:
# if: ${{ github.event_name == 'push' }}
# runs-on: ubuntu-latest
# strategy:
# matrix:
# commit: ${{ github.event.commits }}
# steps:
# # - name: debug
# # env:
# # DEBUG: ${{ toJSON(matrix.commit) }}
# # run: echo "$DEBUG"

# write message to file
- run: echo "<code>${{ matrix.commit.message }}</code>" >> message.txt
- run: echo "" >> message.txt
- run: echo "by <i>${{ matrix.commit.author.username }}</i>" >> message.txt
- run: echo "${{ matrix.commit.url }}" >> message.txt
- run: date -d "${{ matrix.commit.timestamp }}" +"%d/%m/%y at %H:%M" >> message.txt
# # write message to file
# - run: echo "<code>${{ matrix.commit.message }}</code>" >> message.txt
# - run: echo "" >> message.txt
# - run: echo "by <i>${{ matrix.commit.author.username }}</i>" >> message.txt
# - run: echo "${{ matrix.commit.url }}" >> message.txt
# - run: date -d "${{ matrix.commit.timestamp }}" +"%d/%m/%y at %H:%M" >> message.txt

# send message, @plebbit telegram chat id is -1001665335693
- name: "telegram notification"
uses: appleboy/telegram-action@master
with:
to: -1001665335693
token: ${{ secrets.TELEGRAM_TOKEN }}
# commit links don't show anything useful in preview
disable_web_page_preview: true
format: html
message_file: message.txt
# # send message, @plebbit telegram chat id is -1001665335693
# - name: "telegram notification"
# uses: appleboy/telegram-action@master
# with:
# to: -1001665335693
# token: ${{ secrets.TELEGRAM_TOKEN }}
# # commit links don't show anything useful in preview
# disable_web_page_preview: true
# format: html
# message_file: message.txt

release:
if: ${{ github.event_name == 'release' }}
runs-on: ubuntu-latest
steps:
# - name: debug
# env:
# DEBUG: ${{ toJSON(github) }}
# run: echo "$DEBUG"
# release:
# if: ${{ github.event_name == 'release' }}
# runs-on: ubuntu-latest
# steps:
# # - name: debug
# # env:
# # DEBUG: ${{ toJSON(github) }}
# # run: echo "$DEBUG"

# write message to file
- run: echo "<b>${{ github.event.repository.name }} ${{ github.event.release.name }}</b>" >> message.txt
- run: echo "" >> message.txt
- run: echo "${{ github.event.release.body }}" >> message.txt
- run: echo "${{ github.event.release.html_url }}" >> message.txt
# # write message to file
# - run: echo "<b>${{ github.event.repository.name }} ${{ github.event.release.name }}</b>" >> message.txt
# - run: echo "" >> message.txt
# - run: echo "${{ github.event.release.body }}" >> message.txt
# - run: echo "${{ github.event.release.html_url }}" >> message.txt

# send message, @plebbit telegram chat id is -1001665335693
- name: "telegram notification"
uses: appleboy/telegram-action@master
with:
to: -1001665335693
token: ${{ secrets.TELEGRAM_TOKEN }}
format: html
message_file: message.txt
# # send message, @plebbit telegram chat id is -1001665335693
# - name: "telegram notification"
# uses: appleboy/telegram-action@master
# with:
# to: -1001665335693
# token: ${{ secrets.TELEGRAM_TOKEN }}
# format: html
# message_file: message.txt

issue:
if: ${{ github.event_name == 'issues' }}
runs-on: ubuntu-latest
steps:
# - name: debug
# env:
# DEBUG: ${{ toJSON(github) }}
# run: echo "$DEBUG"
# issue:
# if: ${{ github.event_name == 'issues' }}
# runs-on: ubuntu-latest
# steps:
# # - name: debug
# # env:
# # DEBUG: ${{ toJSON(github) }}
# # run: echo "$DEBUG"

# write message to file
- run: echo "<code>${{ github.event.issue.title }}</code>" >> message.txt
- run: echo "" >> message.txt
- run: echo "by <i>${{ github.event.issue.user.login }}</i>" >> message.txt
- run: echo "${{ github.event.issue.html_url }}" >> message.txt
# # write message to file
# - run: echo "<code>${{ github.event.issue.title }}</code>" >> message.txt
# - run: echo "" >> message.txt
# - run: echo "by <i>${{ github.event.issue.user.login }}</i>" >> message.txt
# - run: echo "${{ github.event.issue.html_url }}" >> message.txt

# send message, @plebbit telegram chat id is -1001665335693
- name: "telegram notification"
uses: appleboy/telegram-action@master
with:
to: -1001665335693
token: ${{ secrets.TELEGRAM_TOKEN }}
format: html
message_file: message.txt
# # send message, @plebbit telegram chat id is -1001665335693
# - name: "telegram notification"
# uses: appleboy/telegram-action@master
# with:
# to: -1001665335693
# token: ${{ secrets.TELEGRAM_TOKEN }}
# format: html
# message_file: message.txt
3 changes: 2 additions & 1 deletion public/translations/ar/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,5 +273,6 @@
"failed_edit": "فشل التعديل",
"copy_full_address": "<1>نسخ</1> العنوان الكامل",
"node_stats": "إحصائيات العقدة",
"version": "الإصدار"
"version": "الإصدار",
"edit_reason": "سبب التعديل"
}
3 changes: 2 additions & 1 deletion public/translations/bn/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,5 +273,6 @@
"failed_edit": "ব্যর্থ সম্পাদনা",
"copy_full_address": "<1>অনুলিপি</1> সম্পূর্ণ ঠিকানা",
"node_stats": "নোড পরিসংখ্যান",
"version": "সংস্করণ"
"version": "সংস্করণ",
"edit_reason": "সম্পাদনার কারণ"
}
3 changes: 2 additions & 1 deletion public/translations/cs/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,5 +273,6 @@
"failed_edit": "neúspěšná úprava",
"copy_full_address": "<1>kopírovat</1> plnou adresu",
"node_stats": "statistiky uzlu",
"version": "verze"
"version": "verze",
"edit_reason": "důvod úpravy"
}
3 changes: 2 additions & 1 deletion public/translations/da/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,5 +273,6 @@
"failed_edit": "mislykket redigering",
"copy_full_address": "<1>kopiér</1> fuld adresse",
"node_stats": "nodestatistikker",
"version": "version"
"version": "version",
"edit_reason": "redigeringsgrund"
}
3 changes: 2 additions & 1 deletion public/translations/de/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,5 +273,6 @@
"failed_edit": "fehlgeschlagene Bearbeitung",
"copy_full_address": "<1>Kopieren</1> Sie die vollständige Adresse",
"node_stats": "Knotenstatistiken",
"version": "Version"
"version": "Version",
"edit_reason": "Bearbeitungsgrund"
}
3 changes: 2 additions & 1 deletion public/translations/el/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,5 +273,6 @@
"failed_edit": "αποτυχημένη επεξεργασία",
"copy_full_address": "<1>αντιγραφή</1> πλήρους διεύθυνσης",
"node_stats": "στατιστικές κόμβων",
"version": "έκδοση"
"version": "έκδοση",
"edit_reason": "λόγος επεξεργασίας"
}
3 changes: 2 additions & 1 deletion public/translations/en/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,5 +273,6 @@
"failed_edit": "failed edit",
"copy_full_address": "<1>copy</1> full address",
"node_stats": "node stats",
"version": "version"
"version": "version",
"edit_reason": "edit reason"
}
3 changes: 2 additions & 1 deletion public/translations/es/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,5 +273,6 @@
"failed_edit": "edición fallida",
"copy_full_address": "<1>copiar</1> la dirección completa",
"node_stats": "estadísticas del nodo",
"version": "versión"
"version": "versión",
"edit_reason": "motivo de la edición"
}
3 changes: 2 additions & 1 deletion public/translations/fa/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,5 +273,6 @@
"failed_edit": "ویرایش ناموفق",
"copy_full_address": "<1>کپی</1> آدرس کامل",
"node_stats": "آمار گره",
"version": "نسخه"
"version": "نسخه",
"edit_reason": "دلیل ویرایش"
}
3 changes: 2 additions & 1 deletion public/translations/fi/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,5 +273,6 @@
"failed_edit": "epäonnistunut muokkaus",
"copy_full_address": "<1>kopioi</1> koko osoite",
"node_stats": "solmustatistiikka",
"version": "versio"
"version": "versio",
"edit_reason": "muokkaussyy"
}
3 changes: 2 additions & 1 deletion public/translations/fil/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,5 +273,6 @@
"failed_edit": "nakabigong edit",
"copy_full_address": "<1>kopyahin</1> ang buong address",
"node_stats": "stats ng node",
"version": "bersyon"
"version": "bersyon",
"edit_reason": "dahilan ng pag-edit"
}
3 changes: 2 additions & 1 deletion public/translations/fr/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,5 +273,6 @@
"failed_edit": "modification échouée",
"copy_full_address": "<1>copier</1> l'adresse complète",
"node_stats": "statistiques du nœud",
"version": "version"
"version": "version",
"edit_reason": "motif de la modification"
}
3 changes: 2 additions & 1 deletion public/translations/he/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,5 +273,6 @@
"failed_edit": "עריכה נכשלה",
"copy_full_address": "<1>העתק</1> כתובת מלאה",
"node_stats": "סטטיסטיקות הצומת",
"version": "גרסה"
"version": "גרסה",
"edit_reason": "סיבת העריכה"
}
3 changes: 2 additions & 1 deletion public/translations/hi/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,5 +273,6 @@
"failed_edit": "विफल संपादन",
"copy_full_address": "<1>कॉपी</1> पूरा पता",
"node_stats": "नोड आंकड़े",
"version": "संस्करण"
"version": "संस्करण",
"edit_reason": "संपादन का कारण"
}
3 changes: 2 additions & 1 deletion public/translations/hu/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,5 +273,6 @@
"failed_edit": "sikertelen szerkesztés",
"copy_full_address": "<1>másol</1> teljes cím",
"node_stats": "csomópont statisztikák",
"version": "verzió"
"version": "verzió",
"edit_reason": "szerkesztés okának"
}
3 changes: 2 additions & 1 deletion public/translations/id/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,5 +273,6 @@
"failed_edit": "edit gagal",
"copy_full_address": "<1>salin</1> alamat lengkap",
"node_stats": "statistik node",
"version": "versi"
"version": "versi",
"edit_reason": "alasan sunting"
}
5 changes: 3 additions & 2 deletions public/translations/it/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@
"settings_saved": "Impostazioni salvate per p/{{subplebbitAddress}}",
"mod_edit": "modifica dei moderatori",
"continue_thread": "continua questa discussione",
"mod_reason": "motivo di moderazione",
"mod_reason": "motivo della moderazione",
"double_confirm": "Sei davvero sicuro? Questa azione è irreversibile.",
"crypto_address_not_yours": "L'indirizzo cripto appartiene a un altro account.",
"crypto_address_yours": "L'indirizzo cripto appartiene a questo account.",
Expand All @@ -273,5 +273,6 @@
"failed_edit": "modifica fallita",
"copy_full_address": "<1>copia</1> l'indirizzo completo",
"node_stats": "statistiche del nodo",
"version": "versione"
"version": "versione",
"edit_reason": "motivo della modifica"
}
3 changes: 2 additions & 1 deletion public/translations/ja/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,5 +273,6 @@
"failed_edit": "失敗した編集",
"copy_full_address": "<1>コピー</1>完全な住所",
"node_stats": "ノードの統計",
"version": "バージョン"
"version": "バージョン",
"edit_reason": "編集理由"
}
3 changes: 2 additions & 1 deletion public/translations/ko/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,5 +273,6 @@
"failed_edit": "실패한 편집",
"copy_full_address": "<1>복사</1> 전체 주소",
"node_stats": "노드 통계",
"version": "버전"
"version": "버전",
"edit_reason": "편집 이유"
}
3 changes: 2 additions & 1 deletion public/translations/mr/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,5 +273,6 @@
"failed_edit": "अयशस्वी संपादन",
"copy_full_address": "<1>कॉपी</1> पूर्ण पत्ता",
"node_stats": "नोड स्टॅट्स",
"version": "आवृत्ती"
"version": "आवृत्ती",
"edit_reason": "संपादनाचे कारण"
}
3 changes: 2 additions & 1 deletion public/translations/nl/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,5 +273,6 @@
"failed_edit": "mislukte bewerking",
"copy_full_address": "<1>kopieer</1> het volledige adres",
"node_stats": "knoopstatistieken",
"version": "versie"
"version": "versie",
"edit_reason": "reden van bewerking"
}
3 changes: 2 additions & 1 deletion public/translations/no/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,5 +273,6 @@
"failed_edit": "mislykket redigering",
"copy_full_address": "<1>kopier</1> full adresse",
"node_stats": "nodestatistikk",
"version": "versjon"
"version": "versjon",
"edit_reason": "redigeringsgrunn"
}
3 changes: 2 additions & 1 deletion public/translations/pl/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,5 +273,6 @@
"failed_edit": "nieudana edycja",
"copy_full_address": "<1>skopiuj</1> pełny adres",
"node_stats": "statystyki węzła",
"version": "wersja"
"version": "wersja",
"edit_reason": "powód edycji"
}
Loading

0 comments on commit 4174be4

Please sign in to comment.