forked from TeamUltroid/Ultroid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Date: 30-8-2022 Co-Authored-By: Aditya <[email protected]> Co-Authored-By: Amit Sharma <[email protected]> Co-Authored-By: CyrusXD <[email protected]> Co-Authored-By: Danish <[email protected]> Co-Authored-By: TechiError <[email protected]> Co-Authored-By: Arnab Paryali <[email protected]>
- Loading branch information
1 parent
60c6df5
commit d8bd901
Showing
199 changed files
with
15,774 additions
and
4,107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
blank_issues_enabled: true | ||
contact_links: | ||
- name: Ultroid Support | ||
url: https://t.me/UltroidSupport | ||
url: https://t.me/UltroidSupportChat | ||
about: Please drop your doubts or queries there for an immediate response. | ||
- name: Documentation | ||
url: https://ultroid.tech/ | ||
about: Basic documentation for setting up. | ||
about: Basic documentation for setting up. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Strings Translation | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ dev ] | ||
paths: | ||
- strings/strings/en.yml | ||
|
||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
jobs: | ||
analyze: | ||
name: Checkout Strings | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9.x | ||
- name: Update Translations | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "New-Dev0" | ||
git branch translation && git checkout translation | ||
pip install pyyaml requests telethon | ||
wget -O run.py https://gist.githubusercontent.com/New-dev0/c7d0d1eb514d311e8e3b687ae5cbe5f3/raw/350cc6d451a02a4b07d0f9bbc27b0e7c9465d3d4/updater.py | ||
python3 run.py | ||
rm run.py | ||
git add . && git commit -m "[Auto] Translate" && git push --set-upstream origin translation | ||
gh pr create --title "[Auto] Translation" -B dev --body "Update Translation" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: PyLint | ||
on: | ||
push: | ||
branches: [ dev ] | ||
paths: | ||
- "**.py" | ||
jobs: | ||
PEP8: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
- name: Install Python lint libraries | ||
run: pip install autopep8 autoflake isort black | ||
- name: Check for showstoppers | ||
run: | | ||
autopep8 --verbose --in-place --recursive --aggressive --aggressive assistant/*.py | ||
autopep8 --verbose --in-place --recursive --aggressive --aggressive assistant/manager/*.py | ||
autopep8 --verbose --in-place --recursive --aggressive --aggressive plugins/*.py | ||
- name: Remove unused imports and variables | ||
run: | | ||
autoflake --in-place --recursive --remove-all-unused-imports --remove-unused-variables --ignore-init-module-imports assistant/*.py | ||
autoflake --in-place --recursive --remove-all-unused-imports --remove-unused-variables --ignore-init-module-imports assistant/manager/*.py | ||
autoflake --in-place --recursive --remove-all-unused-imports --remove-unused-variables --ignore-init-module-imports plugins/*.py | ||
- name: lint with isort and black | ||
run: | | ||
isort assistant/*.py | ||
isort assistant/manager/*.py | ||
black --fast assistant/*.py | ||
black assistant/manager/*.py | ||
isort plugins/*.py | ||
black --fast plugins/*.py | ||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: 'pylint: auto fixes' | ||
commit_options: '--no-verify' | ||
repository: . | ||
commit_user_name: buddhhu | ||
commit_user_email: [email protected] | ||
commit_author: Amit Sharma <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Strings Analysis | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: dev | ||
paths: strings/strings/* | ||
workflow_dispatch: | ||
|
||
jobs: | ||
analyze: | ||
name: Checkout Strings | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9.x | ||
- name: Install Stuff | ||
run: pip install pyyaml | ||
- name: dl stuff | ||
run: wget -O stringizer.py https://gist.githubusercontent.com/New-dev0/6dfc8a177418565a776167764b2fe0e4/raw/f515e9892a331110c1565eb109eb712eb64423bd/stringzer.py | ||
- name: do stuff | ||
run: python stringizer.py && rm stringizer.py | ||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: 'Strings: Auto Count' | ||
commit_options: '--no-verify' | ||
repository: . | ||
commit_user_name: TeamUltroid | ||
commit_user_email: [email protected] | ||
commit_author: Amit Sharma <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.