Buckets:
| [ | |
| { | |
| "id": "640b4e3e9b26158ab2a5458f", | |
| "prompt": "How do I set up Git for the first time to work with GitHub?", | |
| "reply": "To set up Git for use with GitHub, follow these steps:\n\n1. **Install Git** if you haven't already. You can download it from the official Git website.\n2. **Configure your username and email globally** so your commits are properly attributed:\n ```bash\n git config --global user.name \"Your Name\"\n git config --global user.email \"your.email@example.com\"\n ```\n3. **Link your local Git to GitHub** by authenticating with SSH or a personal access token.\n\nFor more details, see the [Set up Git](/en/get-started/git-basics/set-up-git) documentation.", | |
| "type": "how_to", | |
| "source_url": "https://docs.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "3a430b8aea26c77b9060bf0c", | |
| "prompt": "What authentication methods does GitHub support for secure connections?", | |
| "reply": "GitHub supports several secure authentication methods:\n- **Personal access tokens (classic and fine-grained)** for API and Git operations.\n- **SSH keys** for Git over SSH connections, providing a secure channel over an unsecured network.\n- **GitHub App tokens and OAuth tokens** for application integrations.\n- **Web browser sign-in** for authenticating via the GitHub web interface.\n\nYou can also enable **two-factor authentication (2FA)** to further protect your account. For complete guidance, see the [Authentication documentation](/en/authentication).", | |
| "type": "concept_explanation", | |
| "source_url": "https://docs.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "bdd334a192a962c6f67525fa", | |
| "prompt": "Show me how to create and manage a repository on GitHub, including how to rename or change its location.", | |
| "reply": "To create a new repository on GitHub:\n1. Navigate to your GitHub profile or organization page and click the **+** dropdown, then **New repository**.\n2. Enter a name, description, and choose visibility (public/private).\n3. Optionally initialize with a README, .gitignore, or license.\n4. Click **Create repository**.\n\nTo manage an existing repository:\n- **Rename** a repository by going to the repo’s **Settings > General > Repository name**, entering a new name, and clicking **Rename**.\n- **Transfer ownership** (change location) via **Settings > Danger Zone > Transfer ownership**, then select the new owner (personal account or organization).\n\nLearn more in the [Creating and managing repositories](/en/repositories/creating-and-managing-repositories) guide.", | |
| "type": "how_to", | |
| "source_url": "https://docs.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "287c893ec451caa7952490e2", | |
| "prompt": "How can I use GitHub Copilot to get code suggestions directly in my IDE?", | |
| "reply": "To get code suggestions with GitHub Copilot in your IDE:\n1. Install the **GitHub Copilot extension** for your code editor (e.g., VS Code, JetBrains, Neovim).\n2. Sign in with your GitHub account that has an active Copilot subscription.\n3. Start coding — Copilot will suggest completions as you type. Accept a suggestion by pressing **Tab** (or the configured keybinding).\n4. For alternate suggestions, press **Alt + ]** or **Alt + [** to cycle through proposals.\n\nFull setup details and tips are in the [Getting code suggestions in your IDE with GitHub Copilot](/en/copilot/how-tos/get-code-suggestions/get-ide-code-suggestions) documentation.", | |
| "type": "how_to", | |
| "source_url": "https://docs.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "b00ca024ddde4bc38c5da256", | |
| "prompt": "What's the difference between a pull request and a branch in GitHub, and how do they work together?", | |
| "reply": "A **branch** is a separate line of development within a repository, allowing you to work on features or fixes without affecting the main codebase. A **pull request (PR)** is a mechanism to propose, review, and merge changes from one branch into another (typically into the default branch like `main`).\n\nWorkflow overview:\n1. Create a new branch (e.g., `feature-x`) from `main`.\n2. Commit changes to `feature-x`.\n3. Open a pull request from `feature-x` to `main` to propose your changes.\n4. Collaborators review the PR, discuss modifications, and add further commits if needed.\n5. Merge the PR to integrate the changes into `main`.\n\nFor deeper understanding, see [About pull requests](/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests).", | |
| "type": "comparison", | |
| "source_url": "https://docs.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "59dd57d64b48173ea3a0e422", | |
| "prompt": "How do I securely connect to GitHub using SSH on my local machine?", | |
| "reply": "To connect to GitHub via SSH securely:\n1. **Generate an SSH key pair** on your local machine:\n ```bash\n ssh-keygen -t ed25519 -C \"your_email@example.com\"\n ```\n2. **Add the private key to your SSH agent**:\n ```bash\n eval \"$(ssh-agent -s)\"\n ssh-add ~/.ssh/id_ed25519\n ```\n3. **Add the public key to your GitHub account**:\n - Copy the public key: `cat ~/.ssh/id_ed25519.pub`.\n - Go to **GitHub > Settings > SSH and GPG keys > New SSH key**, paste the key, and save.\n4. **Test the connection**:\n ```bash\n ssh -T git@github.com\n ```\n You should see a success message confirming authentication.\n\nRefer to the [Connecting to GitHub with SSH](/en/authentication/connecting-to-github-with-ssh) documentation for troubleshooting.", | |
| "type": "how_to", | |
| "source_url": "https://docs.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "2625b01fcac9469a8d1e2c98", | |
| "prompt": "How can I search for files that contain 'test' in their file path on GitHub?", | |
| "reply": "Use the `path:` qualifier followed by the term. For example, `path:test` will match any file that has 'test' anywhere in its path, such as `src/test_runner.py` or `docs/test_plan.md`.", | |
| "type": "how_to", | |
| "source_url": "https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax", | |
| "source_title": "understanding-github-code-search-syntax" | |
| }, | |
| { | |
| "id": "664e2469a250f64046ca8cec", | |
| "prompt": "Explain how GitHub Code Search treats a bare search term like 'http-push'.", | |
| "reply": "A bare term with no qualifiers matches both file content and file paths. For example, searching `http-push` will find the file `docs/http-push.txt` even if it doesn't contain the term in its content, and also any file that contains the term in its text.", | |
| "type": "concept_explanation", | |
| "source_url": "https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax", | |
| "source_title": "understanding-github-code-search-syntax" | |
| }, | |
| { | |
| "id": "a6554189b62e0726e63be465", | |
| "prompt": "Write a GitHub Code Search query to find files named exactly 'README.md' (not part of a longer path).", | |
| "reply": "Use a regular expression with the `path:` qualifier: `path:/(^|\\/)README\\.md$/`. This matches 'README.md' at the end of the path, ensuring it's a filename, not a directory.", | |
| "type": "code_generation", | |
| "source_url": "https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax", | |
| "source_title": "understanding-github-code-search-syntax" | |
| }, | |
| { | |
| "id": "24881574571922d99c65ea0c", | |
| "prompt": "My search for `unit_tests` returns files like `src/docs/unit_tests.md` but I only want actual test files. What am I doing wrong?", | |
| "reply": "The `path:unit_tests` query matches any file with 'unit_tests' anywhere in its path. To restrict to filenames only, use a regular expression: `path:/(^|\\/)unit_tests\\.[^.]+$/` (adjust extension as needed).", | |
| "type": "debugging", | |
| "source_url": "https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax", | |
| "source_title": "understanding-github-code-search-syntax" | |
| }, | |
| { | |
| "id": "18af7caf8c5bb002fc0c9a75", | |
| "prompt": "How do I search for an exact string that contains spaces, like 'sparse index'?", | |
| "reply": "Enclose the exact string in double quotes: `\"sparse index\"`. This will search for the literal sequence 'sparse index' (including the space) in file contents or paths.", | |
| "type": "how_to", | |
| "source_url": "https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax", | |
| "source_title": "understanding-github-code-search-syntax" | |
| }, | |
| { | |
| "id": "f57ab6e6c305f584d3aefda3", | |
| "prompt": "Searching for `sparse index` without quotes returns files with 'sparse' and 'index' in any order. How do I force both words to appear but not necessarily adjacent?", | |
| "reply": "Separation by whitespace without quotes is the equivalent of an AND operation. So `sparse index` already requires both terms to appear somewhere in the file, in any order. If you need them adjacent, use quotes: `\"sparse index\"`.", | |
| "type": "edge_cases", | |
| "source_url": "https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax", | |
| "source_title": "understanding-github-code-search-syntax" | |
| }, | |
| { | |
| "id": "99617a3169702cfdd35903bf", | |
| "prompt": "What is technical debt and why should I care about it as a beginner developer?", | |
| "reply": "Technical debt is a concept in software development that describes the implied cost of additional rework caused by choosing an easy or quick solution now instead of using a better approach that would take longer. As a beginner, you should care because technical debt can accumulate over time, making your code harder to maintain, slower to change, and more prone to bugs. Managing and mitigating technical debt is essential for long-term code quality and maintainability.", | |
| "type": "concept_explanation", | |
| "source_url": "https://github.com/resources/articles?topic=software-development", | |
| "source_title": "articles?topic=software-development" | |
| }, | |
| { | |
| "id": "9cfbd988da33aecb543d3914", | |
| "prompt": "How can I manage and mitigate technical debt in my software projects?", | |
| "reply": "To manage and mitigate technical debt, you should regularly refactor code, prioritize code quality, write automated tests, and allocate time for addressing known issues. The documentation emphasizes understanding the impact of technical debt on software development and learning strategies to keep code maintainable over the long term. Practical steps include conducting code reviews, tracking debt items in your issue tracker, and gradually paying down debt during normal development cycles.", | |
| "type": "how_to", | |
| "source_url": "https://github.com/resources/articles?topic=software-development", | |
| "source_title": "articles?topic=software-development" | |
| }, | |
| { | |
| "id": "c08775ef5797f055c0d1e074", | |
| "prompt": "What are the long-term consequences of ignoring technical debt in a large codebase?", | |
| "reply": "Ignoring technical debt in a large codebase leads to decreased code quality, increased maintenance costs, slower feature development, and higher risk of bugs. The documentation highlights that technical debt impacts software development by reducing long-term code quality and maintainability. Over time, the code becomes harder to understand and modify, which can slow down your team and increase the likelihood of introducing new defects.", | |
| "type": "gotchas", | |
| "source_url": "https://github.com/resources/articles?topic=software-development", | |
| "source_title": "articles?topic=software-development" | |
| }, | |
| { | |
| "id": "29ac3319354b3697350d40f3", | |
| "prompt": "Compare technical debt with financial debt. How are they similar in the context of software projects?", | |
| "reply": "Technical debt is similar to financial debt in that taking on debt can speed up short-term delivery, but it accrues 'interest' in the form of extra work required to maintain or extend the code later. Just as financial debt must be repaid to avoid compounding interest, technical debt must be managed and mitigated to prevent long-term code quality and maintainability issues. The documentation frames technical debt as a concept that requires active management to keep software healthy.", | |
| "type": "comparison", | |
| "source_url": "https://github.com/resources/articles?topic=software-development", | |
| "source_title": "articles?topic=software-development" | |
| }, | |
| { | |
| "id": "a2370cd3b5ead2251337ec4b", | |
| "prompt": "What are some common causes of technical debt in software development?", | |
| "reply": "Common causes of technical debt include tight deadlines that force quick-and-dirty solutions, lack of proper design or architecture, insufficient testing, and accumulating workarounds for known issues. The documentation advises learning how to manage and mitigate technical debt, implying that awareness of these causes is the first step. Addressing them proactively helps maintain long-term code quality and maintainability.", | |
| "type": "edge_cases", | |
| "source_url": "https://github.com/resources/articles?topic=software-development", | |
| "source_title": "articles?topic=software-development" | |
| }, | |
| { | |
| "id": "a82bec88758861ba10406703", | |
| "prompt": "How does technical debt affect the maintainability of a software project over time?", | |
| "reply": "Technical debt directly reduces maintainability by making code harder to read, test, and change. As debt accumulates, even simple modifications become risky and time-consuming. The documentation stresses understanding the impact of technical debt on software development and learning to manage it for long-term code quality and maintainability. Without mitigation, maintainability degrades, leading to higher costs and slower delivery.", | |
| "type": "performance", | |
| "source_url": "https://github.com/resources/articles?topic=software-development", | |
| "source_title": "articles?topic=software-development" | |
| }, | |
| { | |
| "id": "814df62c2edb13f168f95e20", | |
| "prompt": "How do I build and publish a Docker image using GitHub Actions?", | |
| "reply": "To build and publish Docker images using GitHub Actions, start by creating a workflow file (e.g., `.github/workflows/docker-publish.yml`). In that workflow, you can use the `docker/build-push-action` action to build your Docker image and push it to a container registry like Docker Hub or GitHub Container Registry. The documentation provides a 'Get Started' link for 'Publish Docker Images' which will guide you through the process step by step.", | |
| "type": "how_to", | |
| "source_url": "https://skills.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "6bafb729b6f2f738f93f45cf", | |
| "prompt": "What is the purpose of reusable workflows in GitHub Actions and how do I create one?", | |
| "reply": "Reusable workflows allow you to define a workflow that can be called from other workflows, promoting reuse and reducing duplication. To create one, you define a workflow file with `on: workflow_call` trigger. Then, in another workflow, you use the `uses` keyword to reference that workflow file. The documentation has a 'Get Started' section for 'Create and use reusable workflows' that provides detailed instructions.", | |
| "type": "concept_explanation", | |
| "source_url": "https://skills.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "cd7b4e264b0c8f15fd78cd52", | |
| "prompt": "How can I upload and download workflow artifacts in GitHub Actions?", | |
| "reply": "You can work with workflow artifacts by using the `actions/upload-artifact` and `actions/download-artifact` actions. To upload, add a step with `uses: actions/upload-artifact@v4` and specify the `path` of the files to upload. To download, use `actions/download-artifact@v4` and specify the artifact name. The documentation includes a 'Get Started' section for 'Work with Workflow Artifacts' that covers previewing and reusing artifacts as well.", | |
| "type": "how_to", | |
| "source_url": "https://skills.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "e44a781495ac6a3e2c15ee44", | |
| "prompt": "What is CodeQL and how do I enable it to secure my code?", | |
| "reply": "CodeQL is a code analysis engine that helps you find vulnerabilities in your codebase. To enable it, you can add a CodeQL workflow to your repository (e.g., using the 'CodeQL Analysis' starter workflow). The documentation provides an 'Introduction to CodeQL' guide under 'Code security and analysis' that explains how to set it up and run queries to secure your code.", | |
| "type": "concept_explanation", | |
| "source_url": "https://skills.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "0a873144ebd7b8f8a79d385c", | |
| "prompt": "How can I integrate AI models directly into my GitHub Actions workflows?", | |
| "reply": "You can integrate AI models into your GitHub Actions workflows using GitHub Models. The documentation has a 'AI in Actions' section that shows how to call AI models (like GPT) directly from your workflow steps. You can use the `github-models` action or make HTTP requests to the GitHub Models API. The 'Get Started' link for 'AI in Actions' provides a step-by-step guide.", | |
| "type": "how_to", | |
| "source_url": "https://skills.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "03887d6b62294930298d86fc", | |
| "prompt": "What are the steps to create a custom JavaScript action for GitHub Actions?", | |
| "reply": "To create a custom JavaScript action, you need to: 1) Create a repository with an `action.yml` file that defines the action's metadata (name, inputs, outputs, runs). 2) Write your JavaScript code in an `index.js` file (or similar). 3) Use the `@actions/core` package to interact with the workflow (e.g., `core.getInput()`, `core.setOutput()`). 4) Commit and tag the repository. The documentation provides a 'Write JavaScript Actions' guide under 'Automate workflows with GitHub Actions' that walks through the entire process.", | |
| "type": "how_to", | |
| "source_url": "https://skills.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "502df4fc53cb8bc17d7661f7", | |
| "prompt": "I just installed Git. How do I set my name and email so my commits show correctly on GitHub?", | |
| "reply": "After installing Git, you must configure your global username and email. Use the following commands:\n\n```bash\ngit config --global user.name \"Your Name\"\ngit config --global user.email \"your.email@example.com\"\n```\n\nThis ensures your commits are properly attributed on GitHub. For more details, see the [Set up Git](/en/get-started/git-basics/set-up-git) documentation.", | |
| "type": "direct_question", | |
| "source_url": "https://docs.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "2d071d9aa4d5bb042eeb6958", | |
| "prompt": "I'm getting an authentication error when trying to push to GitHub. How do I link my local Git to GitHub?", | |
| "reply": "To link your local Git to GitHub, you need to authenticate using either SSH or a personal access token (PAT).\n\n- **SSH**: Generate an SSH key pair and add the public key to your GitHub account. See [Connecting to GitHub with SSH](/en/authentication/connecting-to-github-with-ssh).\n- **Personal access token**: Create a PAT in GitHub settings and use it as your password when prompted.\n\nAfter authentication, you can push to your repositories. For the full setup, refer to the [Set up Git](/en/get-started/git-basics/set-up-git) documentation.", | |
| "type": "debugging", | |
| "source_url": "https://docs.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "2e0e875e1e83b146eb6935e6", | |
| "prompt": "What are the steps to set up SSH keys for connecting to GitHub?", | |
| "reply": "To set up SSH keys, generate a key pair on your local machine, add the public key to your GitHub account settings, and configure your local Git client to use SSH. For detailed instructions, see the [Connecting to GitHub with SSH](https://docs.github.com/en/authentication/connecting-to-github-with-ssh) documentation.", | |
| "type": "direct_question", | |
| "source_url": "https://docs.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "4b898787fc49ed0e3a593022", | |
| "prompt": "My personal access token keeps getting rejected when I push to a GitHub repository. What could be wrong?", | |
| "reply": "First, verify that the token hasn’t expired and that you’re using the correct type: classic or fine‑grained. For fine‑grained tokens, ensure the token has the required repository and scope permissions (e.g., `contents: write`). Also confirm the token is included in the remote URL or used as the password. For more help, see the [Authentication documentation](https://docs.github.com/en/authentication).", | |
| "type": "debugging", | |
| "source_url": "https://docs.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "59d0bdf61279dfe299d8ee79", | |
| "prompt": "Can I change the name of a GitHub repository after it's created? Also, if I want to move it to another account or organization, what should I do?", | |
| "reply": "Yes, you can rename a repository at any time. Go to the repository's **Settings > General > Repository name**, enter a new name, and click **Rename**. To transfer ownership (move it to a different owner), navigate to **Settings > Danger Zone > Transfer ownership**, then select the new owner (a personal account or an organization). Learn more in the [Creating and managing repositories](/en/repositories/creating-and-managing-repositories) guide.", | |
| "type": "debugging", | |
| "source_url": "https://docs.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "9a92f19b521e825683cb36ec", | |
| "prompt": "Write the steps to create a repository on GitHub and then rename it.", | |
| "reply": "To create a repository: 1. Click the **+** dropdown in the top‑right corner of GitHub and select **New repository**. 2. Enter a name, description, and choose public or private visibility. 3. Optionally add a README, .gitignore, or license. 4. Click **Create repository**. To rename the repository later: go to **Settings > General > Repository name**, type the new name, and click **Rename**. See the [Creating and managing repositories](/en/repositories/creating-and-managing-repositories) guide for details.", | |
| "type": "task-request", | |
| "source_url": "https://docs.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "de920238505d433fd0d2e3e8", | |
| "prompt": "My Copilot is not suggesting anything in VS Code even though I have the extension installed. What should I check?", | |
| "reply": "First, confirm you've signed into the GitHub Copilot extension with a GitHub account that has an active Copilot subscription. In VS Code, you can check the extension status by looking at the Copilot icon in the bottom status bar. Also verify you have the latest version of the GitHub Copilot extension installed. If you're still not seeing suggestions, try reloading the window or checking the Output panel (View → Output, then select 'GitHub Copilot' from the dropdown) for any error messages.", | |
| "type": "debugging", | |
| "source_url": "https://docs.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "350b7dbe461d1685006079fa", | |
| "prompt": "What keybindings does GitHub Copilot use to accept suggestions and cycle through alternatives?", | |
| "reply": "To accept a code suggestion from GitHub Copilot, press **Tab** (or the configured keybinding). To cycle through alternate suggestions, use **Alt + ]** to go forward and **Alt + [** to go backward. These keybindings can be customized in your editor settings. For full setup and tips, refer to the [Getting code suggestions in your IDE with GitHub Copilot](/en/copilot/how-tos/get-code-suggestions/get-ide-code-suggestions) documentation.", | |
| "type": "direct question", | |
| "source_url": "https://docs.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "ee6457142f510d9395c1f38b", | |
| "prompt": "I'm working on a new feature and I've created a branch called 'feature-login'. How do I turn that branch into a pull request on GitHub?", | |
| "reply": "After you've committed changes to your branch (e.g., `feature-login`), you can open a pull request to propose merging those changes into another branch, typically `main`. On GitHub, navigate to your repository, click the \"Pull requests\" tab, then click \"New pull request\". Select your base branch (e.g., `main`) and the compare branch (e.g., `feature-login`), review the changes, and create the pull request. For more details, see [About pull requests](/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests).", | |
| "type": "task request", | |
| "source_url": "https://docs.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "7aba8e79e2160f34499a34ab", | |
| "prompt": "Does every branch need a pull request to merge changes? I tried to merge a branch directly via the command line and it seemed to work without any review.", | |
| "reply": "No, a pull request is not required for every merge. Branches can be merged locally via Git commands (e.g., `git merge`) without any review. However, using a pull request provides a structured workflow for proposing, reviewing, and discussing changes before merging—especially when collaborating with others. On GitHub, branch protection rules can also require that pull requests go through review before merging into protected branches like `main`. The typical workflow is: create a branch, commit changes, open a pull request, review, then merge.", | |
| "type": "debugging", | |
| "source_url": "https://docs.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "0de755cbf02d98630ab361f2", | |
| "prompt": "I'm trying to connect to GitHub with SSH, but the connection test fails with a 'Permission denied' error. What should I check first?", | |
| "reply": "When a 'Permission denied' error occurs during `ssh -T git@github.com`, the most common cause is that the public key has not been added to your GitHub account correctly. Verify these steps:\n\n1. Confirm you have copied the correct public key with `cat ~/.ssh/id_ed25519.pub` (or the appropriate key file).\n2. On GitHub, go to **Settings > SSH and GPG keys** and ensure the key is listed exactly as shown in the terminal (including the prefix, e.g., `ssh-ed25519 AAA...`).\n3. If the key is missing or incorrect, delete the old entry and add the current public key.\n\nAfter correcting, test again with `ssh -T git@github.com`. For additional troubleshooting, refer to the [Connecting to GitHub with SSH](/en/authentication/connecting-to-github-with-ssh) documentation.", | |
| "type": "debugging", | |
| "source_url": "https://docs.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "7fe8dc56d21f284fbf71a96a", | |
| "prompt": "Can I use an RSA key instead of Ed25519 for SSH with GitHub?", | |
| "reply": "Yes, GitHub supports RSA keys as well, though Ed25519 is recommended for better security and performance. To generate an RSA key pair, use:\n\n```bash\nssh-keygen -t rsa -b 4096 -C \"your_email@example.com\"\n```\n\nThen follow the same steps:\n1. Add the private key to your SSH agent with `ssh-add ~/.ssh/id_rsa`.\n2. Copy the public key (`cat ~/.ssh/id_rsa.pub`) and add it to **GitHub > Settings > SSH and GPG keys**.\n3. Test with `ssh -T git@github.com`.\n\nFor more details, see the [Connecting to GitHub with SSH](/en/authentication/connecting-to-github-with-ssh) documentation.", | |
| "type": "comparison", | |
| "source_url": "https://docs.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "754be951f3af57d07f89cabf", | |
| "prompt": "How do I find files on GitHub where the filename is exactly `README.md` using the path qualifier?", | |
| "reply": "To match only a specific filename (not part of the path), use a regular expression with the `path:` qualifier. For example: `path:/(^|\\/)README\\.md$/`. The `^` or `\\/` ensures the match starts at a directory boundary, and `$` anchors to the end. The `.` is escaped because it has special meaning in regex.", | |
| "type": "direct question", | |
| "source_url": "https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax", | |
| "source_title": "understanding-github-code-search-syntax" | |
| }, | |
| { | |
| "id": "449cbd7c3eb2cd6520221333", | |
| "prompt": "I need to debug a query that returns too many results. I only want files that have 'test' in the filename, not in any directory name. How can I fix this?", | |
| "reply": "Use a regular expression with the `path:` qualifier to anchor the match to the filename portion. For example, `path:/(^|\\/)test/` will match 'test' only at the start of a filename (after a slash or at the root). This avoids matching directory names like `test_utils/`. Remember to escape any regex special characters in your search term.", | |
| "type": "debugging", | |
| "source_url": "https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax", | |
| "source_title": "understanding-github-code-search-syntax" | |
| }, | |
| { | |
| "id": "1ff75d6ff4890c8e8582dea1", | |
| "prompt": "If I search for 'http-push' without any qualifiers, will it match a file named 'docs/http-push.txt' even if that file doesn't contain the word 'http-push' in its content?", | |
| "reply": "Yes, a bare term like `http-push` matches both file content and file paths. So `docs/http-push.txt` will appear in results because its path contains the term, regardless of its content. This is the default behavior for unqualified search terms in GitHub Code Search.", | |
| "type": "direct question", | |
| "source_url": "https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax", | |
| "source_title": "understanding-github-code-search-syntax" | |
| }, | |
| { | |
| "id": "7bb3b75ed30a98b2dfdad5b3", | |
| "prompt": "I need to find files that contain the term 'http-push' only in their content, not in their file path. How can I exclude path matches?", | |
| "reply": "To search only file content and exclude path matches, you can combine a content qualifier with a negative path qualifier. For example: `http-push -path:http-push`. This will return files whose content contains 'http-push' but whose file path does not contain that term. Note that the `-path:` qualifier excludes files whose path includes the specified term.", | |
| "type": "task request", | |
| "source_url": "https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax", | |
| "source_title": "understanding-github-code-search-syntax" | |
| }, | |
| { | |
| "id": "1549628fb48dafac826ab889", | |
| "prompt": "I'm trying to find all files named exactly 'README.md' using GitHub Code Search, but my query `path:README.md` is returning files like `src/README.md` and also `docs/README.md.txt`. What am I doing wrong?", | |
| "reply": "The `path:` qualifier without a regular expression matches any file path that contains the term anywhere, so `path:README.md` matches paths like `docs/README.md.txt` because the substring `README.md` appears. To match only files whose filename is exactly `README.md` (i.e., at the end of the path), use a regex with anchors: `path:/(^|\\/)README\\.md$/`. The `(^|\\/)` ensures the match starts at the beginning of the path or after a slash, and `$` anchors to the end. Also escape the dot since `.` is a regex metacharacter.", | |
| "type": "debugging", | |
| "source_url": "https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax", | |
| "source_title": "understanding-github-code-search-syntax" | |
| }, | |
| { | |
| "id": "6a1ce8f31ec0e8ee4e1ee52f", | |
| "prompt": "What's the difference between using `path:README.md` and `path:/(^|\\/)README\\.md$/` in GitHub Code Search?", | |
| "reply": "`path:README.md` matches any file whose path contains the string `README.md` anywhere—so it would also match `src/README.md.txt` or `docs/README.md/notes`. The regex `path:/(^|\\/)README\\.md$/` restricts the match to files where `README.md` is the complete filename at the end of the path (after a slash or at the start). This ensures you only get files named exactly `README.md`, not longer paths or extensions. The dot is escaped (`\\.`) because `.` matches any character in regex.", | |
| "type": "comparison", | |
| "source_url": "https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax", | |
| "source_title": "understanding-github-code-search-syntax" | |
| }, | |
| { | |
| "id": "ba76d2bf013c997307f02793", | |
| "prompt": "How can I search only for files named exactly `unit_tests.py` using GitHub code search?", | |
| "reply": "Use the `path:` qualifier with a regular expression: `path:/(^|\\/)unit_tests\\.py$/`. This restricts the match to filenames exactly `unit_tests.py` in any directory, without matching files like `src/docs/unit_tests.md`.", | |
| "type": "comparison", | |
| "source_url": "https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax", | |
| "source_title": "understanding-github-code-search-syntax" | |
| }, | |
| { | |
| "id": "14a4a4678e8d410c2d6d0e9f", | |
| "prompt": "I want to find all files named `index`, but the results include files with `index` anywhere in the path, like `src/subindex/foo.txt`. How do I limit results to files whose filename is exactly `index`?", | |
| "reply": "Use a regular expression with the `path:` qualifier: `path:/(^|\\/)index$/`. This matches only files whose filename is exactly `index` (any extension, but you can add one if needed).", | |
| "type": "debugging", | |
| "source_url": "https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax", | |
| "source_title": "understanding-github-code-search-syntax" | |
| }, | |
| { | |
| "id": "b054224efdfade2fa1a983bb", | |
| "prompt": "In GitHub code search, what does a bare term like http-push match?", | |
| "reply": "A bare term with no qualifiers matches either the content of a file or the file's path. For example, http-push matches the file docs/http-push.txt even if it doesn't contain the term http-push, and also matches files that contain the term http-push.", | |
| "type": "direct question", | |
| "source_url": "https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax", | |
| "source_title": "understanding-github-code-search-syntax" | |
| }, | |
| { | |
| "id": "d15df04e59004b5f4039a2cc", | |
| "prompt": "I want to find a file named 'index.txt' that contains the word 'sparse'. What query should I use?", | |
| "reply": "Use the query: sparse index . This searches for documents containing both terms 'sparse' and 'index' in any order, so it will match index.txt if it contains the term sparse. To ensure the path contains index, you could use path:index.txt sparse , but note that path: matches the entire path, not just the filename. For a literal filename match, use path:/(^|\\/)index\\.txt$/ sparse .", | |
| "type": "task request", | |
| "source_url": "https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax", | |
| "source_title": "understanding-github-code-search-syntax" | |
| }, | |
| { | |
| "id": "a6c07dd7cdca7f3334d5047e", | |
| "prompt": "How does GitHub code search handle multiple space-separated terms? Is it an AND or OR by default?", | |
| "reply": "By default, space-separated terms in GitHub code search behave as an AND operator. For example, the query `sparse index` requires both `sparse` and `index` to appear somewhere in the file, in any order. This is equivalent to `sparse AND index`. If you need an exact phrase where the words are adjacent, wrap them in double quotes like `\"sparse index\"`.", | |
| "type": "comparison", | |
| "source_url": "https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax", | |
| "source_title": "understanding-github-code-search-syntax" | |
| }, | |
| { | |
| "id": "a024d18e9fdb98b8a2150860", | |
| "prompt": "I need to find files that contain both the words 'sparse' and 'index', but they don't have to be next to each other. What query should I use?", | |
| "reply": "To find files containing both terms in any order without requiring adjacency, simply separate them with a space: `sparse index`. This is the default behavior—GitHub interprets space-separated terms as an AND operation, so both words must appear somewhere in the file. Note that the terms can be in any order (e.g., 'SparseIndexVector' or 'index for sparse trees') as long as both appear.", | |
| "type": "task-request", | |
| "source_url": "https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax", | |
| "source_title": "understanding-github-code-search-syntax" | |
| }, | |
| { | |
| "id": "78b21fcceb34a48917c43a72", | |
| "prompt": "I just finished a small project and my mentor said it has technical debt. What does that mean, and how can I start reducing it?", | |
| "reply": "Technical debt describes the hidden cost of taking quick-and-easy shortcuts instead of better, but slower, approaches. Your mentor likely sees code that is harder to maintain or change as a result. To reduce it, start by refactoring the most painful spots (e.g., duplicated logic, unclear variable names) and add tests to prevent future shortcuts from piling up. Over time, this keeps the codebase healthy and makes adding features less risky.", | |
| "type": "task request", | |
| "source_url": "https://github.com/resources/articles?topic=software-development", | |
| "source_title": "articles?topic=software-development" | |
| }, | |
| { | |
| "id": "b674d3187c1a45be45fa989f", | |
| "prompt": "How does technical debt affect debugging? I've heard it makes finding bugs harder, but can you explain why?", | |
| "reply": "Technical debt makes debugging harder because quick-and-easy solutions often produce tangled, poorly-structured code. When you need to trace a bug, you may fight through unclear logic, duplicated code sections, or missing abstractions that hide the real issue. As the base explanation notes, this debt accumulates, making the code slower to change and more prone to new bugs. A cleaner codebase, with clear separation of concerns, makes bug hunting much more straightforward.", | |
| "type": "debugging", | |
| "source_url": "https://github.com/resources/articles?topic=software-development", | |
| "source_title": "articles?topic=software-development" | |
| }, | |
| { | |
| "id": "dd1d34e0a9169649b9d5b314", | |
| "prompt": "I need to convince my team to prioritize technical debt. What practical steps can I use to demonstrate its impact and get buy-in for regular refactoring?", | |
| "reply": "You can start by sharing resources like the GitHub articles on technical debt, which explain how debt affects long-term code quality and maintainability. Practical steps to convince your team include: tracking debt items in your issue tracker so they are visible and quantifiable, conducting regular code reviews to identify and discuss debt, and allocating time each development cycle to pay down the most critical items. Emphasize that ignoring debt leads to slower feature delivery and higher maintenance costs, while gradual payoff keeps the codebase healthy.", | |
| "type": "task request", | |
| "source_url": "https://github.com/resources/articles?topic=software-development", | |
| "source_title": "articles?topic=software-development" | |
| }, | |
| { | |
| "id": "d84e6b44b9ada57c8f14dcee", | |
| "prompt": "We have a backlog of old, messy code that no one wants to touch. How can we start paying off this technical debt without slowing down new feature development?", | |
| "reply": "Start by prioritizing debt items in your issue tracker and categorizing them by severity and effort. Then, adopt a 'boy scout rule' approach: leave code cleaner than you found it during regular development. Allocate a small, fixed percentage of each sprint (e.g., 20%) exclusively for refactoring and automated test writing. Code reviews are also a natural place to catch and fix new debt as it arises. This gradual approach minimizes disruption while making steady progress.", | |
| "type": "debugging", | |
| "source_url": "https://github.com/resources/articles?topic=software-development", | |
| "source_title": "articles?topic=software-development" | |
| }, | |
| { | |
| "id": "1ed6595701e7b3f107f63824", | |
| "prompt": "Our team has been ignoring technical debt for months, and we're now seeing a spike in bug reports. How will this trend continue if we don't address the debt?", | |
| "reply": "Ignoring technical debt leads to a steady increase in maintenance costs and bug risk. The documentation explains that technical debt reduces long-term code quality and maintainability, making the codebase progressively harder to understand and modify. Over time, this slows feature development and increases the chance of new defects.", | |
| "type": "debugging", | |
| "source_url": "https://github.com/resources/articles?topic=software-development", | |
| "source_title": "articles?topic=software-development" | |
| }, | |
| { | |
| "id": "32366737dc7b8d276511f94f", | |
| "prompt": "What are the long-term effects of technical debt on software development teams?", | |
| "reply": "Technical debt negatively impacts software development by decreasing code quality, raising maintenance costs, slowing feature development, and increasing bug risk. As the code becomes harder to understand and modify, teams face slower progress and higher defect rates, as noted in the GitHub articles on software development.", | |
| "type": "direct question", | |
| "source_url": "https://github.com/resources/articles?topic=software-development", | |
| "source_title": "articles?topic=software-development" | |
| }, | |
| { | |
| "id": "12ddb302c5dd1c0459d3ff71", | |
| "prompt": "Why is technical debt often compared to financial debt?", | |
| "reply": "Technical debt is compared to financial debt because both can speed up short-term delivery but incur 'interest' over time. For technical debt, interest manifests as extra work needed to maintain or extend code. Just as financial debt must be repaid to avoid compounding interest, technical debt must be actively managed to prevent long-term code quality and maintainability issues.", | |
| "type": "direct", | |
| "source_url": "https://github.com/resources/articles?topic=software-development", | |
| "source_title": "articles?topic=software-development" | |
| }, | |
| { | |
| "id": "16067bad077c28f4810ef5f9", | |
| "prompt": "I need to convince my team to prioritize reducing technical debt. How can I use the financial debt analogy to make my case?", | |
| "reply": "You can explain that taking on technical debt is like borrowing money: it allows faster delivery now but builds up 'interest' in the form of added maintenance effort. If left unmanaged, this debt compounds, making future changes slower and riskier. The documentation emphasizes that active management of technical debt is essential to keep software healthy, just as financial debt must be repaid to avoid growing obligations.", | |
| "type": "task", | |
| "source_url": "https://github.com/resources/articles?topic=software-development", | |
| "source_title": "articles?topic=software-development" | |
| }, | |
| { | |
| "id": "a570670425105bd7b0215181", | |
| "prompt": "How can I start identifying and managing technical debt in my existing codebase?", | |
| "reply": "To identify and manage technical debt, start by recognizing its common causes: tight deadlines leading to quick-and-dirty solutions, lack of proper design or architecture, insufficient testing, and accumulated workarounds. The documentation suggests awareness of these causes as a first step, then learning how to manage and mitigate technical debt proactively to maintain long-term code quality and maintainability.", | |
| "type": "debugging", | |
| "source_url": "https://github.com/resources/articles?topic=software-development", | |
| "source_title": "articles?topic=software-development" | |
| }, | |
| { | |
| "id": "3e8939c29e631d11b45619a3", | |
| "prompt": "I'm worried our team is piling up technical debt. What are the root causes I should look for?", | |
| "reply": "Key root causes of technical debt include tight deadlines that force quick-and-dirty solutions, lack of proper design or architecture, insufficient testing, and accumulating workarounds for known issues. The documentation emphasizes that awareness of these causes is the first step in learning how to manage and mitigate technical debt. Addressing them proactively helps maintain long-term code quality and maintainability.", | |
| "type": "debugging", | |
| "source_url": "https://github.com/resources/articles?topic=software-development", | |
| "source_title": "articles?topic=software-development" | |
| }, | |
| { | |
| "id": "16072ba574efe8b91ae30074", | |
| "prompt": "What are some strategies to manage technical debt and prevent it from degrading maintainability?", | |
| "reply": "Managing technical debt involves understanding its impact and learning mitigation techniques. The documentation emphasizes learning to manage and mitigate technical debt for long-term code quality and maintainability. Without active management, maintainability degrades, leading to higher costs and slower delivery. Key strategies include regularly refactoring code, prioritizing debt reduction in sprints, and using code reviews to catch shortcuts early.", | |
| "type": "task request", | |
| "source_url": "https://github.com/resources/articles?topic=software-development", | |
| "source_title": "articles?topic=software-development" | |
| }, | |
| { | |
| "id": "9332b5bc50182434be4a1cc1", | |
| "prompt": "Can you give an example of how technical debt makes a simple code change risky?", | |
| "reply": "Yes. Consider a function that has accumulated technical debt through poor naming, lack of tests, and tangled dependencies. A simple change, like updating a validation rule, now requires tracing through hundreds of lines of undocumented code. The documentation notes that as debt accumulates, even simple modifications become risky and time-consuming. This increases the chance of introducing bugs and slows delivery.", | |
| "type": "debugging", | |
| "source_url": "https://github.com/resources/articles?topic=software-development", | |
| "source_title": "articles?topic=software-development" | |
| }, | |
| { | |
| "id": "6113a756d32bcafc9b8fdcbd", | |
| "prompt": "Which GitHub Action is recommended for building and publishing Docker images in GitHub Actions workflows?", | |
| "reply": "The recommended action is `docker/build-push-action`. You can find a step-by-step guide in the GitHub Skills 'Publish Docker Images' course, which walks you through creating a workflow and configuring the action for registries like Docker Hub or GitHub Container Registry.", | |
| "type": "direct_question", | |
| "source_url": "https://skills.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "7139843aecfc66b24b130669", | |
| "prompt": "I need to set up a workflow that automatically builds and pushes a Docker image to a registry when I push to the main branch. How should I start?", | |
| "reply": "Start by creating a workflow file (e.g., `.github/workflows/docker-publish.yml`). Use the `docker/build-push-action` to build and push your image. For complete instructions, refer to the GitHub Skills 'Publish Docker Images' guide, which provides a hands-on tutorial.", | |
| "type": "task_request", | |
| "source_url": "https://skills.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "3e754da5ff2ab6dbc41ae982", | |
| "prompt": "I want to call a reusable workflow from another workflow. What syntax do I use to reference it?", | |
| "reply": "To call a reusable workflow from another workflow, you use the `uses` keyword with the path to the reusable workflow file. For example, if your reusable workflow is defined at `.github/workflows/reusable.yml`, you would write:\n\n```yaml\njobs:\n call-workflow:\n uses: ./.github/workflows/reusable.yml\n```\n\nThis references the workflow file that has `on: workflow_call` trigger, allowing it to be invoked by other workflows.", | |
| "type": "task request", | |
| "source_url": "https://skills.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "bb0d90b6065d1e61b2ec9a26", | |
| "prompt": "My reusable workflow isn't being recognized when I try to call it from another workflow. What could be wrong?", | |
| "reply": "A common issue is that the reusable workflow file must have the `on: workflow_call` trigger defined correctly. Ensure your reusable workflow starts with:\n\n```yaml\non:\n workflow_call:\n inputs:\n # optional inputs\n```\n\nAlso verify that the path used in the `uses` keyword is correct and that the workflow file exists in your repository. For more detailed steps, refer to the 'Create and use reusable workflows' guide in the GitHub Skills documentation.", | |
| "type": "debugging", | |
| "source_url": "https://skills.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "6408abca11cae24704e0de2d", | |
| "prompt": "Write a GitHub Actions workflow that uploads the contents of the 'dist' directory as an artifact named 'build-output' and then downloads it in a later job.", | |
| "reply": "You can use the `actions/upload-artifact@v4` and `actions/download-artifact@v4` actions. For upload, add a step with `uses: actions/upload-artifact@v4`, set `name: build-output`, and `path: dist`. For download in a later job, add a step with `uses: actions/download-artifact@v4` and `name: build-output`. The 'Work with Workflow Artifacts' section in the documentation also covers previewing and reusing artifacts.", | |
| "type": "task-request", | |
| "source_url": "https://skills.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "25ea66a43c4a3feeed24bbbb", | |
| "prompt": "I'm trying to download an artifact but I keep getting 'Artifact not found'. What could be wrong?", | |
| "reply": "Common issues include a misspelled artifact name or the artifact not being uploaded due to a failed previous step. Check the artifact name in the workflow run summary under the Artifacts section—you can preview artifacts there. Ensure the name in `actions/download-artifact@v4` matches exactly. Also verify that the upload step completed successfully. The 'Work with Workflow Artifacts' guide explains previewing and reusing artifacts.", | |
| "type": "debugging", | |
| "source_url": "https://skills.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "f61503dd8a9da6400b4684a4", | |
| "prompt": "I'm trying to enable CodeQL for my repository but I'm not sure where to start. Can you give me step-by-step instructions based on the GitHub Skills documentation?", | |
| "reply": "Based on the GitHub Skills documentation, you can enable CodeQL by starting with the 'Introduction to CodeQL' guide under the 'Code security and analysis' section. This guide walks you through setting up CodeQL and running queries to find vulnerabilities in your codebase. A common first step is to add a CodeQL workflow to your repository, for example by using the 'CodeQL Analysis' starter workflow available in GitHub Actions.", | |
| "type": "task request", | |
| "source_url": "https://skills.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "4ec86e4b6eb9a922066e98ac", | |
| "prompt": "What's the difference between CodeQL and secret scanning for securing my code?", | |
| "reply": "According to the GitHub Skills documentation, both are part of 'Code security and analysis'. CodeQL is a code analysis engine that helps you find vulnerabilities by running queries against your codebase, while secret scanning is specifically designed to detect secrets like tokens and passwords in your repository. The 'Introduction to CodeQL' guide explains how to set up CodeQL, and there is a separate 'Introduction to secret scanning' guide for secrets. Both can be enabled to strengthen your security posture.", | |
| "type": "comparison", | |
| "source_url": "https://skills.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "aa6db37d6922bf04b3cceff7", | |
| "prompt": "I need to call an AI model from within a GitHub Actions workflow. What are the concrete steps?", | |
| "reply": "The ‘AI in Actions’ section of GitHub Skills shows you how to do exactly that. You can either use the `github-models` action in a step or make HTTP requests directly to the GitHub Models API. The ‘Get Started’ guide provides a step-by-step walkthrough.", | |
| "type": "task-request", | |
| "source_url": "https://skills.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "3ec3230a22010db7fe7756b2", | |
| "prompt": "When using GitHub Models inside a workflow step, should I use a dedicated action or send raw HTTP requests?", | |
| "reply": "Both options are supported. The ‘AI in Actions’ guide explains that you can either use the `github-models` action for simplicity or call the GitHub Models API directly via HTTP requests if you need more control. The ‘Get Started’ link has the details.", | |
| "type": "comparison", | |
| "source_url": "https://skills.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "77cdbad49dc101f31529d070", | |
| "prompt": "How do I handle user inputs and set outputs in a custom JavaScript GitHub Action? I need code using the `@actions/core` package.", | |
| "reply": "Inside your action's JavaScript file (e.g., `index.js`), use the `@actions/core` package. First install it with npm: `npm install @actions/core`. Then in your code:\n\n```javascript\nconst core = require('@actions/core');\n\n// Get an input defined in action.yml\nconst myInput = core.getInput('my-input');\n\n// Perform your action logic...\n\n// Set an output defined in action.yml\ncore.setOutput('my-output', 'some result');\n```\n\nRefer to the 'Write JavaScript Actions' guide under 'Automate workflows with GitHub Actions' for the full walkthrough.", | |
| "type": "code-writing", | |
| "source_url": "https://skills.github.com/", | |
| "source_title": "document" | |
| }, | |
| { | |
| "id": "c28bd3319129361d804fd24d", | |
| "prompt": "When building a custom GitHub Action, what goes into the `action.yml` metadata file and what are required fields?", | |
| "reply": "The `action.yml` file is the metadata descriptor for your action. At minimum, it must include:\n- `name`: A name for your action.\n- `description`: A short description.\n- `runs`: Using `main` to point to your entry JavaScript file (e.g., `'index.js'`) and `using: 'node16'` or a later Node version.\n\nIt can also define optional `inputs` (with description and default) and `outputs`. Example:\n\n```yaml\nname: 'My Custom Action'\ndescription: 'Does something cool'\ninputs:\n my-input:\n description: 'Some input'\n required: true\n default: 'default-value'\noutputs:\n my-output:\n description: 'Result'\nruns:\n using: 'node16'\n main: 'index.js'\n```\n\nSee the 'Write JavaScript Actions' guide in GitHub Skills for the full process.", | |
| "type": "direct question", | |
| "source_url": "https://skills.github.com/", | |
| "source_title": "document" | |
| } | |
| ] |
Xet Storage Details
- Size:
- 54.9 kB
- Xet hash:
- 0adab09450603c2a64b6ef167bf37d3b1411d9ad3dbadbc27d3ee4ff7257d020
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.