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
Copy file name to clipboardExpand all lines: learn-pr/github/github-actions-automate-tasks/includes/2-github-actions-automate-development-tasks.md
-44Lines changed: 0 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -156,50 +156,6 @@ The last part of this workflow file sets the `MY_NAME` variable value for this w
156
156
157
157
For more information on workflow syntax, see [Workflow syntax for GitHub Actions](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions?azure-portal=true)
158
158
159
-
## Referencing Actions in Workflows
160
-
161
-
When creating workflows in GitHub Actions, you can reference actions from various sources. These actions can be used to automate tasks in your workflows. Below are the primary sources where workflows can reference actions:
162
-
163
-
1. **A published Docker container image on Docker Hub**
164
-
Workflows can reference actions that are published as Docker container images on Docker Hub. These actions are containerized and include all dependencies required to execute the action. To use such an action, you specify the Docker image in the `uses` attribute of your workflow step. For example:
165
-
```yml
166
-
steps:
167
-
- name: Run a Docker action
168
-
uses: docker://<docker-image-name>:<tag>
169
-
```
170
-
171
-
This is particularly useful for actions that require a custom runtime or dependencies not available in standard runners.
172
-
173
-
2. **Any public repository**
174
-
Actions hosted in public repositories can be directly referenced in your workflows. These actions are accessible to anyone and can be used by specifying the repository name and version (Git ref, SHA, or tag) in the `uses` attribute. For example:
175
-
```yml
176
-
steps:
177
-
- name: Use a public action
178
-
uses: actions/checkout@v3
179
-
```
180
-
181
-
3. **The same repository as your workflow file**
182
-
You can reference actions stored in the same repository as your workflow file. This is useful for custom actions that are specific to your project. To reference such actions, use a relative path to the action's directory. For example:
183
-
```yml
184
-
steps:
185
-
- name: Use a local action
186
-
uses: ./path-to-action
187
-
```
188
-
189
-
4. **An enterprise marketplace**
190
-
If your organization uses GitHub Enterprise, you can reference actions from your enterprise's private marketplace. These actions are curated and managed by your organization, ensuring compliance with internal standards. For example:
191
-
```yml
192
-
steps:
193
-
- name: Use an enterprise marketplace action
194
-
uses: enterprise-org/action-name@v1
195
-
```
196
-
197
-
### Additional Notes
198
-
- Actions in private repositories can also be referenced, but they require proper authentication and permissions.
199
-
- When referencing actions, always specify a version (Git ref, SHA, or tag) to ensure consistency and avoid unexpected changes.
200
-
201
-
For more information, see [Referencing actions in workflows](https://docs.github.com/actions/using-workflows/referencing-actions-in-workflows?azure-portal=true).
202
-
203
159
## GitHub-hosted versus self-hosted runners
204
160
205
161
We briefly mentioned runners as being associated with a job. A runner is simply a server that has the GitHub Actions runner application installed. In the previous workflow example, there was a `runs-on: ubuntu-latest` attribute within the jobs block, which told the workflow that the job is going to run using the GitHub-hosted runner that's running in the `ubuntu-latest` environment.
Copy file name to clipboardExpand all lines: learn-pr/github/introduction-to-github/includes/2-what-is-github.md
+37-29Lines changed: 37 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,46 +120,54 @@ Congratulations, you just created a new file in your repository! You have also c
120
120
121
121
Before we review branches and commits in the next unit, let’s quickly review gists, wikis, and GitHub pages because they're similar to repositories.
122
122
123
-
### What are gists?
123
+
### What are gists
124
124
125
-
Gists are a GitHub feature for sharing code snippets, notes, or small pieces of information conveniently. They are Git repositories that can be cloned, forked, and version-controlled like full repositories. Gists are particularly useful for sharing quick solutions, configuration files, or examples without the need to create a full repository.
125
+
Now that we have a good understanding of repositories, we can review gists. Similarly to repositories, gists are a simplified way to share code snippets with others.
126
126
127
-
#### Key features of gists
128
-
1.**Public and Secret Gists**:
129
-
-**Public Gists**: These are visible to everyone and can be discovered through GitHub's search functionality. They are ideal for sharing code snippets or solutions that you want to make available to the broader community.
130
-
-**Secret Gists**: These are not searchable or publicly listed, but they are not entirely private. Anyone with the URL can access them. They are useful for sharing code with a limited audience, such as collaborators or friends.
127
+
Every gist is a Git repository, which you can fork and clone and be made either public or secret. Public gists are displayed publicly where people can browse new ones as they’re created. Public gists are also searchable. Conversely, secret gists aren't searchable, but they aren’t entirely private. If you send the URL of a secret gist to a friend, they'll be able to see it.
131
128
132
-
2.**Version Control**:
133
-
- Every change made to a gist is tracked, allowing you to view the history of edits. This makes it easy to revert to a previous version or see how the snippet has evolved over time.
129
+
### Forking and cloning gists
134
130
135
-
3.**Forking and Cloning**:
136
-
- Like repositories, gists can be forked and cloned. This allows others to build upon your work or adapt it to their needs.
131
+
You can fork a gist to create a copy of someone else's gist in your account.
137
132
138
-
4.**Embedding**:
139
-
- Gists can be embedded into websites or blogs, making them a great tool for sharing code examples in tutorials or documentation.
133
+
1. Navigate to the gist you want to fork.
134
+
2. Select **Fork** at the top-right of the gist page.
140
135
141
-
5.**Markdown Support**:
142
-
- Gists support Markdown formatting, which means you can include rich text, headings, links, and even images alongside your code. This is particularly useful for adding context or explanations to your snippets.
136
+
To clone a gist locally:
143
137
144
-
6.**Collaboration**:
145
-
- While gists are typically used for individual snippets, they can also be shared and collaborated on by multiple users. Forking and commenting on gists enable lightweight collaboration.
- Storing configuration files or scripts for personal use.
150
-
- Creating templates for commonly used code patterns.
151
-
- Sharing error logs or debugging information with others.
152
-
- Embedding code snippets in blogs, forums, or documentation.
142
+
To learn more about gists, see the linked article in our Resources section at the end of this module titled *Creating Gists*.
153
143
154
-
#### Limitations of Gists
155
-
> [!IMPORTANT]
156
-
> Gists are not entirely private, even if marked as secret. Anyone with the URL can access them, so they should not be used for sensitive or confidential information.
157
-
- They are best suited for small snippets or single files. For larger projects or multi-file structures, a full repository is more appropriate.
158
-
159
-
To learn more about how to create and manage gists, refer to the GitHub documentation in the Resources section of this module or visit the [GitHub Gists documentation](https://docs.github.com/en/github/writing-on-github/creating-gists).
144
+
---
160
145
161
146
### What are wikis?
162
147
163
148
Every repository on GitHub.com comes equipped with a section for hosting documentation, called a wiki. You can use your repository's wiki to share long-form content about your project, such as how to use it, how you designed it, or its core principles. While a README file quickly tells what your project can do, you can use a wiki to provide additional documentation.
164
149
165
-
It’s worth a reminder that if your repository is private, only people who have at least read access to your repository will have access to your wiki.
150
+
It’s worth a reminder that if your repository is private, only people who have at least read access to your repository will have access to your wiki.
151
+
152
+
### Creating, editing, and deleting wiki pages
153
+
154
+
You can use the GitHub wiki to create and manage documentation for your project.
155
+
156
+
**To create a wiki page:**
157
+
158
+
1. Navigate to the repository.
159
+
2. Select the **Wiki** tab.
160
+
3. Select **Create the first page** if no pages exist, or **New Page** to add a page.
161
+
4. Enter a title and content, then select **Save Page**.
162
+
163
+
**To edit a wiki page:**
164
+
165
+
1. Navigate to the wiki page you want to edit.
166
+
2. Select **Edit** at the top-right.
167
+
3. Make changes and select **Save Page**.
168
+
169
+
**To delete a wiki page:**
170
+
171
+
- Deleting a wiki page requires using Git. Clone the wiki repository, remove the file, and push the change.
172
+
173
+
Learn more about managing wikis in [GitHub Docs - Adding or editing wiki pages](https://docs.github.com/en/communities/documenting-your-project-with-wikis/adding-or-editing-wiki-pages).
Copy file name to clipboardExpand all lines: learn-pr/github/introduction-to-github/includes/3-components-of-github-flow.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,15 +48,13 @@ Once the changes have been approved (if required), the pull request's source bra
48
48
49
49
:::image type="content" source="../media/2-pull-request.png" alt-text="A screenshot of a pull request and a comment within the pull request." border="false":::
50
50
51
-
Unlike issues and discussions, pull requests relate specifically to proposed changes in code. Issues are used for tracking bugs, feature requests, or tasks, while Discussions are meant for broader conversations that aren’t tied directly to a specific line of code.
52
-
53
-
Now that we understand all the key elements, let’s review the GitHub flow.
51
+
Now that we know of all the ingredients, let’s review the GitHub flow.
54
52
55
53
## The GitHub flow
56
54
57
55
:::image type="content" source="../media/2-branching.png" alt-text="Screenshot showing a visual representation of the GitHub Flow in a linear format that includes a new branch, commits, pull request, and merging the changes back to main in that order." border="false":::
58
56
59
-
The GitHub flow can be defined as a lightweight workflow that allows for safe experimentation. You can test new ideas with your team by using branching, pull requests, and merging.
57
+
The GitHub flow can be defined as a lightweight workflow that allows for safe experimentation. You can test new ideas and collaboration with your team by using branching, pull requests, and merging.
60
58
61
59
Now that we know the basics of GitHub we can walk through the GitHub flow and its components.
Copy file name to clipboardExpand all lines: learn-pr/github/introduction-to-github/includes/4-collaborative-platform.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,17 +33,22 @@ For this walkthrough, we'll go over how to create an issue from a repository. Bu
33
33
1. If you're a project maintainer, you can assign the issue to someone, add it to a project board, associate it with a milestone, or apply a label.
34
34
1. When you're finished, select **Submit new issue**.
35
35
36
-
Some conversations are more suitable for GitHub Discussions. They are intended for open-ended conversations such as asking questions, sharing information, or gathering community feedback..
36
+
Some conversations are more suitable for GitHub Discussions. You can use GitHub Discussions to ask and answer questions, share information, make announcements, and conduct or participate in conversations about a project.
37
37
38
38
In the next section, we’ll review Discussions and how to best utilize the feature.
39
39
40
40
## Discussions
41
41
42
42
Discussions are for conversations that need to be accessible to everyone and aren't related to code. Discussions enable fluid, open conversation in a public forum.
43
43
44
-
Let’s review how to enable discussions in your repository.
44
+
In this section we go over:
45
45
46
-
### Enabling discussions in your repository
46
+
- Enabling a discussion in your repository.
47
+
- Creating a new discussion and various discussion categories.
48
+
49
+
Let’s dive into enabling a discussion in your repository.
50
+
51
+
### Enabling a discussion in your repository
47
52
48
53
Repository owners and people with Write access can enable GitHub Discussions for a community on their public and private repositories. The visibility of a discussion is inherited from the repository the discussion is created in.
49
54
@@ -94,7 +99,7 @@ Each category must have a unique name, emoji pairing, and a detailed description
94
99
95
100
:::image type="content" source="../media/start-a-new-discussion.png" alt-text="A screenshot of starting a new discussion page with the Discussion title box and content box empty." border="false":::
96
101
97
-
1.In your repository, go to the Discussions tab and select**Start discussion**.
102
+
1.Select**Start discussion**.
98
103
99
104
That covers a little about how GitHub inspires collaboration. Now let's move to how you can manage notifications, subscribe to threads, and get started with GitHub pages.
Copy file name to clipboardExpand all lines: learn-pr/github/manage-innersource-program-github/includes/2-manage-innersource-program.md
+2-5Lines changed: 2 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,12 +67,9 @@ A README file communicates expectations for your project and helps you manage co
67
67
- Include references to the projects on which you depend. These references are a good way to promote the work of others.
68
68
- Use Markdown to guide readers through properly formatted content.
69
69
70
-
If you put your README file in your repository's root directory, or in the hidden `.github` or `docs` directory, GitHub recognizes and automatically surfaces your README to repository visitors. If a repository contains more than one README file, then the file shown is chosen from locations in the following order:
71
-
1. The `.github` directory
72
-
2. The repository's root directory
73
-
3. The `docs` directory
70
+
If you put your README file in your repository's root directory, or in the hidden `.github` or `docs` directory, GitHub recognizes and automatically surfaces your README to repository visitors. If a repository contains more than one README file, then the file shown is chosen from locations in the following order: the `.github` directory, then the repository's root directory, and finally the `docs` directory.
74
71
75
-
Check out some [Awesome README examples](https://github.com/matiassingers/awesome-readme).
72
+
Check out some [Awesome README examples](https://github.com/matiassingers/awesome-readme?azure-portal=true).
76
73
77
74
Once the project launches, use email and other networking channels to promote it. Reaching an appropriate audience could produce a significant boost in project participation.
0 commit comments