[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-573225-105":53,"doc-detail-573225-en":126},{"code":4,"msg":5,"data":6},0,"success",[7,14,19,24,29,34,39,44,49],{"id":8,"doc_module":9,"doc_module_name":10,"category_name":11,"show_sort_weight":12,"slug":13},11,1,"Template","Presentations",90,"presentations",{"id":15,"doc_module":9,"doc_module_name":10,"category_name":16,"show_sort_weight":17,"slug":18},12,"Resumes",80,"resumes",{"id":20,"doc_module":9,"doc_module_name":10,"category_name":21,"show_sort_weight":22,"slug":23},14,"Invoices",70,"invoices",{"id":25,"doc_module":9,"doc_module_name":10,"category_name":26,"show_sort_weight":27,"slug":28},15,"Posters",60,"posters",{"id":30,"doc_module":9,"doc_module_name":10,"category_name":31,"show_sort_weight":32,"slug":33},16,"Social Media",50,"social-media",{"id":35,"doc_module":9,"doc_module_name":10,"category_name":36,"show_sort_weight":37,"slug":38},17,"Forms",40,"forms",{"id":40,"doc_module":9,"doc_module_name":10,"category_name":41,"show_sort_weight":42,"slug":43},18,"Letters",30,"letters",{"id":45,"doc_module":9,"doc_module_name":10,"category_name":46,"show_sort_weight":47,"slug":48},21,"Paper Templates",5,"papers-templates",{"id":50,"doc_module":9,"doc_module_name":10,"category_name":51,"show_sort_weight":4,"slug":52},158,"General","general-158",{"code":4,"msg":54,"data":55},"ok",{"site_id":56,"language":57,"slug":58,"title":59,"keywords":60,"description":61,"schema_data":62,"social_meta":119,"head_meta":121,"extra_data":123,"updated_unix":125},105,"en","gh-pr-and-gh-actions-cheat-sheet","gh PR and gh Actions Cheat Sheet","","Cheat sheet for the GitHub CLI (gh) focused on daily pull request and GitHub Actions workflows. Covers creating pull requests, checking out and merging PRs with options like squash and branch deletion, editing labels via interactive selection, and filtering dashboard views. Also summarizes key commands for workflow runs (listing, viewing summaries, viewing full logs), managing GitHub Actions caches, installing and upgrading gh extensions, and common navigation and action shortcuts such as approve, assign, comment, diff, checkout, close, merge, and help.",{"@graph":63,"@context":118},[64,80,101],{"@type":65,"itemListElement":66},"BreadcrumbList",[67,71,74,77],{"item":68,"name":69,"@type":70,"position":9},"https://docshare.wps.com","Home","ListItem",{"item":72,"name":10,"@type":70,"position":73},"https://docshare.wps.com/template/",2,{"item":75,"name":51,"@type":70,"position":76},"https://docshare.wps.com/template/general/",3,{"item":78,"name":59,"@type":70,"position":79},"https://docshare.wps.com/template/gh-pr-and-gh-actions-cheat-sheet/573225/",4,{"url":78,"name":59,"@type":81,"image":82,"author":87,"headline":59,"publisher":90,"fileFormat":93,"inLanguage":57,"description":61,"dateModified":94,"datePublished":95,"encodingFormat":93,"isAccessibleForFree":96,"interactionStatistic":97},"DigitalDocument",{"url":83,"@type":84,"width":85,"height":86},"https://docshare.wps.com/thumbnails/gh-pr-and-gh-actions-cheat-sheet/573225.png","ImageObject",442,249,{"name":88,"@type":89},"Aurelia","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-10-16","2026-10-13",true,{"@type":98,"interactionType":99,"userInteractionCount":76},"InteractionCounter",{"@type":100},"ViewAction",{"@type":102,"mainEntity":103},"FAQPage",[104,110,114],{"name":105,"@type":106,"acceptedAnswer":107},"How do I create a pull request with the gh CLI?","Question",{"text":108,"@type":109},"Use `gh pr create` to create a pull request on GitHub.","Answer",{"name":111,"@type":106,"acceptedAnswer":112},"What does gh pr merge with --squash do?",{"text":113,"@type":109},"It merges the pull request while squashing the commits into one commit, then deletes the local and remote branch and can use administrator privileges with `--admin`.",{"name":115,"@type":106,"acceptedAnswer":116},"How can I view the full log for a GitHub Actions run?",{"text":117,"@type":109},"Run `gh run view \u003Crun-id> --log` to view the complete log for that workflow run.","https://schema.org",{"og:url":78,"og:type":120,"og:title":59,"og:site_name":91,"og:description":61},"article",{"robots":122,"canonical":78},"index,follow",{"doc_id":124,"site_id":56},573225,1792118339,{"code":4,"msg":5,"data":127},{"doc_id":124,"user_id":128,"nickname":88,"user_avatar":129,"doc_module":9,"category_id":50,"category_name":51,"doc_title":59,"doc_description":61,"doc_content":130,"file_id":131,"file_url":132,"file_type":133,"file_size":134,"view_count":76,"is_deleted":4,"is_public":9,"is_downloadable":9,"audit_status":9,"page_count":9,"language":135,"language_code":57,"site_id":56,"html_lang":57,"table_of_contents":136,"faqs":137,"seo_title":138,"seo_description":61,"update_tm":139,"read_time":4},1099514068365,"https://ap-avatar.wpscdn.com/avatar/10000253d8d9f28188e?_k=1776742907772140068","gh  \nPull Requests  \n gh pr create  -Create a pull request on GitHub  \n\n|  gh pr checkout [\u003Cnumber> | \u003Curl> | \u003Cbranch>] --force  -Check out a pull request and reset the existing local branch to the latest state of the pull request |\n| --- |\n|  gh pr merge [\u003Cnumber> | \u003Curl> | \u003Cbranch>] --squash --delete-branch - -admin  -Merge a pull request, squash the commits into one commit, delete the local and remote branch after merge, use administrator privileges |\n|  |\n| gh pr edit [\u003Cnumber> | \u003Curl> | \u003Cbranch>] --add-label \"$(gh label list --json name - |\n| -jq \" . [] .name\" | fzf)\"  -Add label via fzf (list all labels from repository) |\n|  gh pr edit [\u003Cnumber> | \u003Curl> | \u003Cbranch>] - -remove-label \"$(gh pr view [\u003Cnumber> |\u003Curl> | \u003Cbranch>] --json labels --jq \" . labels . [] .name\" | fzf)\"  -Remove label via fzf (list |\n| all labels from pull request) |\n\ngh-dash  \nGeneral  \nA GitHub (gh) CLI extension to display a dashboard with pull requests and issues by filters you care about.  \nWebsite  \n GitHub  \n My Configuration  \nGitHub Actions  \n gh run list --branch [\u003Cbranch>]  -List recent workflow runs for branch  \n\n|  gh run view [\u003Crun-id>]  -View a summary of a workflow run |\n| --- |\n|  gh run view [\u003Crun-id>] --log  -View full log for a run |\n|  gh cache list  -List GitHub Actions caches |\n|  gh cache delete [\u003Ccache-id>| \u003Ccache-key>]  or gh cache delete --all -Delete a specific / all GitHub Actions caches |\n\nMovement  \n k  or  Up  -Move up  \n\n|  j  or  Down  -Move down |  |  |  |  |  |\n| --- | --- | --- | --- | --- | --- |\n| \u003Cbr>h | or  Left  - |  |  |  | Previous section |\n| \u003Cbr>l | or  Right  |  |  |  | -Next section |\n| \u003Cbr>g | -First item |  |  |  |  |\n| \u003Cbr>G | -Last item |  |  |  |  |\n|  Ctrl  |  | + | \u003Cbr>d | -Preview page down |  |\n|  Ctrl  |  | + | \u003Cbr>u | -Preview page up |  |\n|  [  -Previous sidebar tab |  |  |  |  |  |\n|  ]  -Next sidebar tab |  |  |  |  |  |\n|  s  -Switch view |  |  |  |  |  |\n| Refresh, Open, Copy\u003Cbr> r  -Refresh |  |  |  |  |  |\n|  R  -Refresh all |  |  |  |  |  |\n| \u003Cbr>p | -Open in Preview |  |  |  |  |\n| \u003Cbr>o | -Open in GitHub |  |  |  |  |\n| \u003Cbr>O | -Open in Neovim |  |  |  |  |\n| \u003Cbr>y | -Copy number |  |  |  |  |\n| \u003Cbr>Y | -Copy url |  |  |  |  |\n|  /  -Search |  |  |  |  |  |\n\nExtensions  \n gh extension list  -List installed extensions  \n\n| gh extension install latest already installed | \u003Crepository> --force -Install an extension and force upgrade, or ignore if |\n| --- | --- |\n| gh extension upgrade | --all -Upgrade all installed extensions |\n| Links\u003Cbr>Documentation\u003Cbr>Useful Functions\u003Cbr>Download Cheat Sheet as PDF | PNG |  |\n\nActions  \n v  -Approve  \n\n|  a  -Assign |\n| --- |\n|  A  -Unassign |\n|  c  -Comment |\n|  d -Diff |\n|  D  -Diff in Neovim |\n|  C  -Checkout |\n|  x  -Close |\n|  W  -Ready for review |\n|  w  -Watch checks |\n|  X  -Reopen |\n|  m  -Merge |\n|  u  -Update pr from base branch |\n| Misc\u003Cbr> t -Toggle smart filtering |\n|  ? -Help |\n|  q  -Quit |","cbCaibxmzLdfMflY","https://ap.wps.com/l/cbCaibxmzLdfMflY","pdf",420404,"English","# gh Pull Requests\n## gh pr create\n## gh pr checkout\n## gh pr merge\n## gh pr edit\n# gh-dash and Configuration\n# gh run Commands\n## gh run list\n## gh run view\n# gh cache Commands\n## gh cache list\n## gh cache delete\n# Extensions\n## gh extension list\n## gh extension install\n## gh extension upgrade\n# Actions and Navigation Shortcuts","[{\"question\":\"How do I create a pull request with the gh CLI?\",\"answer\":\"Use `gh pr create` to create a pull request on GitHub.\"},{\"question\":\"What does gh pr merge with --squash do?\",\"answer\":\"It merges the pull request while squashing the commits into one commit, then deletes the local and remote branch and can use administrator privileges with `--admin`.\"},{\"question\":\"How can I view the full log for a GitHub Actions run?\",\"answer\":\"Run `gh run view \\u003crun-id\\u003e --log` to view the complete log for that workflow run.\"}]","gh PR and gh Actions Cheat Sheet | PDF",1791935065]