This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
dev:github [2024/12/03 12:40] tomas |
dev:github [2025/02/12 14:47] (current) tomas |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===GitHub Copilot=== | + | ==GitHub Copilot== |
Explain this project\\ | Explain this project\\ | ||
What are the dependencies for running the a.sh\\ | What are the dependencies for running the a.sh\\ | ||
- | @workspace /explain #file\\ | + | @workspace /explain #file:\\ |
/doc = generate inline code documentation for the selected code\\ | /doc = generate inline code documentation for the selected code\\ | ||
+ | @workspace Generate a README.md file that can be used as a repo description\\ | ||
+ | @workspace /explain #file: How can I improve the readability of the selected code\\ | ||
+ | @workspace /explain #file: How can I improve the maintainability of the selected code\\ | ||
+ | @workspace /explain #file: How can I improve the modularity of the selected code\\ | ||
+ | @workspace /explain #file: How can I improve the exception handling of the selected code\\ | ||
+ | @workspace /explain #file: How can I improve the performance with the asynchronous tasks or methods in the file\\ | ||
+ | @workspace /explain #file: How can I protect the sensitive data in this class\\ | ||
+ | @workspace /explain #file: How can I decrease complexity of the selected code\\ | ||
+ | Can you please write a terraform script that deploys azure web app with deployment slots\\ | ||
+ | Can you add code comments into the script?\\ | ||
+ | Can you add inline comments in this file?\\ | ||
+ | Add JSDoc comments for the TaskManager function?\\ | ||
+ | Refactor the code in the file. Add the inline comment explaining the purpose of the refactored code\\ | ||
+ | Create usage examples or descriptions for the class and its methods\\ | ||
+ | Can you fix the bugs in the code?\\ | ||
+ | /tests\\ | ||
+ | Can you please generate unit test with terratest? | ||
+ | Convert the current file from json to yaml format\\ | ||
+ | ===VSCode Copilot zkratky=== | ||
+ | ctrp-enter ... otevře okno pro doplňování kódu\\ | ||
- | ===Konfigurační soubory v repozitáři=== | + | ==Repozitáře== |
+ | ===Konfigurační soubory v repozitáři==== | ||
CODEOWNERS ... určuje skupiny, které budou automaticky | CODEOWNERS ... určuje skupiny, které budou automaticky | ||
+ | |||
+ | ==GH - GitHub CLI== | ||
+ | gh alias set iv 'issue view --comments' | ||
+ | gh api -X GET ' | ||
+ | gh iv https:// | ||
+ | gh issue view --comments https:// | ||
+ | gh repo list -L 300 ORG --json name, | ||
+ | gh repo set-default ORG/repo ... nastaví výchozí repozitář - mohu pal přímo pracovat s pull requesty, issues, konfigurací atd\\ | ||
+ | gh org list ... seznam organizací\\ | ||
+ | gh pr list ... seznam pull requestů\\ | ||
+ | gh pr view 462 ... zobrazí PR 462\\ | ||
+ | gh pr merge 462 ... mergne PR 462\\ | ||
+ | gh run list ... reznam běhů akcí\\ | ||
+ | gh workflow list ... seznam akcí - workflow\\ | ||
+ | |||
+ | ===GH CLI v GH Akcích=== | ||
+ | < | ||
+ | steps: | ||
+ | - name: Auto-merge nových PR | ||
+ | run: gh pr merge --auto --merge " | ||
+ | env: | ||
+ | PR_URL: ${{github.event.pull_request.html_url}} | ||
+ | GITHUB_TOKEN: | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | - name: Vytvoření releasu, přiložení souborů | ||
+ | run: | | ||
+ | tagname=" | ||
+ | gh release create " | ||
+ | env: | ||
+ | GITHUB_TOKEN: | ||
+ | </ |