From 9b9f45f5a255643152db4f8b7a82f6e534abf68b Mon Sep 17 00:00:00 2001 From: ksauraj Date: Tue, 30 Jan 2024 23:51:55 +0530 Subject: [PATCH 1/3] revert: greetings: change token name in workflow As `actions/first-interaction` uses https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret --- .github/workflows/greetings.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml index a6cde26..1a4514d 100644 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -1,6 +1,6 @@ name: Greetings -on: [pull_request, issues, push] +on: [pull_request, issues] jobs: greeting: @@ -11,6 +11,6 @@ jobs: steps: - uses: actions/first-interaction@v1 with: - repo-token: ${{ secrets.TOKEN }} + repo-token: ${{ secrets.GITHUB_TOKEN }} issue-message: 'Hey, @${{ github.actor }} welcome to JEE Counsellor repository.🎊 Thank you so much for taking the time to point this out.🙌' - pr-message: 'Hey, @${{ github.actor }} welcome to JEE Counsellor repository.🎊 Thank you so much for taking the effort to make our project better! 🙌 Keep making such awesome contributions!' + pr-message: 'Hey, @${{ github.actor }} welcome to JEE Counsellor repository.🎊 Thank you so much for taking the effort to make our project better! 🙌 Keep making such awesome contributions!' \ No newline at end of file From 7dd28c6e76ff5669effb115a8368d5102df57d0f Mon Sep 17 00:00:00 2001 From: ksauraj Date: Wed, 31 Jan 2024 00:01:08 +0530 Subject: [PATCH 2/3] greetings: enable workflow to run from workflow dispatch this would make testing workflow easier and also convenient for manual greetings --- .github/workflows/greetings.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml index 1a4514d..4669e2a 100644 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -1,6 +1,6 @@ name: Greetings -on: [pull_request, issues] +on: [pull_request, issues, workflow_dispatch] jobs: greeting: @@ -13,4 +13,4 @@ jobs: with: repo-token: ${{ secrets.GITHUB_TOKEN }} issue-message: 'Hey, @${{ github.actor }} welcome to JEE Counsellor repository.🎊 Thank you so much for taking the time to point this out.🙌' - pr-message: 'Hey, @${{ github.actor }} welcome to JEE Counsellor repository.🎊 Thank you so much for taking the effort to make our project better! 🙌 Keep making such awesome contributions!' \ No newline at end of file + pr-message: 'Hey, @${{ github.actor }} welcome to JEE Counsellor repository.🎊 Thank you so much for taking the effort to make our project better! 🙌 Keep making such awesome contributions!' From 1bf28cc3aa25c00258c0dbbbf73ff959c752c608 Mon Sep 17 00:00:00 2001 From: Sarvin Shrivastava <41331485+sarvinshrivastava@users.noreply.github.com> Date: Wed, 31 Jan 2024 00:24:36 +0530 Subject: [PATCH 3/3] tool: add an option to exit from main menu of tool. --- tool.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tool.py b/tool.py index dd921c9..238726f 100644 --- a/tool.py +++ b/tool.py @@ -37,13 +37,17 @@ def pre_setup(): print(Fore.GREEN + "1." + Fore.BLUE + "JOSAA") print(Fore.GREEN + "2." + Fore.BLUE + "CSAB" + Fore.RESET) print(Fore.GREEN + "3." + Fore.BLUE + "About" + Fore.RESET) - option = input("Select Option (1 to 3) : ") + print(Fore.GREEN + "4." + Fore.BLUE + "Exit" + Fore.RESET) #adding exit function in main menu + option = input("Select Option (1 to 4) : ") #increasing last choice value if option == '1': josaa_rounds_year() elif option == '2': csab_rounds_year() elif option == '3': show_about_section() + elif option == '4': #adding exit condition + print("Exiting...") #printing exiting + exit(0) #calling exit function else: pre_setup()