Skip to content Navigation Menu Toggle navigation Sign in Appearance settings PlatformAI CODE CREATIONGitHub CopilotWrite better code with AIGitHub Copilot appDirect agents from issue to mergeMCP RegistryNewIntegrate external toolsDEVELOPER WORKFLOWSActionsAutomate any workflowCodespacesInstant dev environmentsIssuesPlan and track workCode ReviewManage code changesAPPLICATION SECURITYGitHub Advanced SecurityFind and fix vulnerabilitiesCode securitySecure your code as you buildSecret protectionStop leaks before they startEXPLOREWhy GitHubDocumentationBlogChangelogMarketplaceView all featuresSolutionsBY COMPANY SIZEEnterprisesSmall and medium teamsStartupsNonprofitsBY USE CASEApp ModernizationDevSecOpsDevOpsCI/CDView all use casesBY INDUSTRYHealthcareFinancial servicesManufacturingGovernmentView all industriesView all solutionsResourcesEXPLORE BY TOPICAISoftware DevelopmentDevOpsSecurityView all topicsEXPLORE BY TYPECustomer storiesEvents & webinarsEbooks & reportsBusiness insightsGitHub SkillsSUPPORT & SERVICESDocumentationCustomer supportCommunity forumTrust centerPartnersView all resourcesOpen SourceCOMMUNITYGitHub SponsorsFund open source developersPROGRAMSSecurity LabMaintainer CommunityAcceleratorGitHub StarsArchive ProgramREPOSITORIESTopicsTrendingCollectionsEnterpriseENTERPRISE SOLUTIONSEnterprise platformAI-powered developer platformAVAILABLE ADD-ONSGitHub Advanced SecurityEnterprise-grade security featuresCopilot for BusinessEnterprise-grade AI featuresPremium SupportEnterprise-grade 24/7 supportPricing Search or jump to... Search code, repositories, users, issues, pull requests... Search Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Saved searches Use saved searches to filter your results more quickly Name Query To see all available qualifiers, see our documentation. Sign in Sign up Appearance settings Resetting focus You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} bugfishtm / Android-Web-App-Example Public Uh oh! There was an error while loading. Please reload this page. Notifications You must be signed in to change notification settings Fork 10 Star 3 Code Issues 0 Pull requests 0 Actions Security and quality 0 Insights Additional navigation options Code Issues Pull requests Actions Security and quality Insights FilesExpand file tree mainBreadcrumbsAndroid-Web-App-Example/github_update.batCopy pathBlameMore file actionsBlameMore file actions Latest commit HistoryHistoryHistory83 lines (72 loc) · 1.88 KB mainBreadcrumbsAndroid-Web-App-Example/github_update.batCopy pathTopFile metadata and controlsCodeBlame83 lines (72 loc) · 1.88 KBRawCopy raw fileDownload raw fileOpen symbols panelEdit and raw actions1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283@echo offsetlocal enabledelayedexpansion :::: Configurable variables::set "INITIAL_COMMIT_MSG=Initial" :::: Cool Output Messages::echo ==============================echo Github Repository Updateecho ============================== :::: Confirm before proceeding::set /p "confirm=Are you sure you want to proceed? (y/n): "if /i not "!confirm!"=="y" ( echo ============================== echo Operation cancelled. echo ============================== pause exit /b 1) :::: Find the last version file in _changelogs/ folder and use its name (without extension) as default commit msg::set "defaultCommitMsg="for /f "delims=" %%I in ('dir /a-d /b /o-d /tw "_changelogs" 2^>nul ^| findstr /r "^[0-9]*\."') do ( set "defaultCommitMsg=%%~nI" goto :foundDefault):foundDefault :::: Ask for commit message for this update (cannot be empty), default to changelog filename or initial::set "commitMsg=%defaultCommitMsg%"if "!commitMsg!"=="" set "commitMsg=%INITIAL_COMMIT_MSG%"echo Default commit message: "!commitMsg!"set /p "commitMsg=Enter your commit message [!commitMsg!]: "if "!commitMsg!"=="" set "commitMsg=%INITIAL_COMMIT_MSG%" :::: Cool message before starting the Git commands::echo ==============================echo Staging all files...echo ============================== :::: Stage all files except batch script itself (optional: modify if you want to exclude)::git add . :::: Commit with user input message::echo ==============================echo Committing with message: "!commitMsg!"echo ==============================git commit -m "!commitMsg!" :::: Push to specified branch::echo ==============================echo Pushing to branch: mainecho ==============================git push -u origin main :::: Completion message::echo ==============================echo Operation Completeecho ==============================pause endlocal You can’t perform that action at this time.