Skip to content

Commit 8afeac6

Browse files
committed
Update search and organize repo history
1 parent fa3c059 commit 8afeac6

File tree

10 files changed

+38
-40
lines changed

10 files changed

+38
-40
lines changed

github/search-organize-repository-history-github/1-introduction.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ metadata:
55
title: Introduction
66
description: "Learn to search and organize repository history by using filters, blame, and cross-linking on GitHub."
77
ms.date: 06/26/2020
8-
author: tpetchel
9-
ms.author: thpetche
8+
author: a-a-ron
9+
ms.author: aastewar
1010
ms.topic: interactive-tutorial
1111
ms.prod: learning-azure
1212
durationInMinutes: 2

github/search-organize-repository-history-github/2-search-organize-repository-history-github.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ metadata:
55
title: How to search and organize repository history by using GitHub
66
description: "Learn to search and organize repository history by using filters, blame, and cross-linking on GitHub."
77
ms.date: 06/26/2020
8-
author: tpetchel
9-
ms.author: thpetche
8+
author: a-a-ron
9+
ms.author: aastewar
1010
ms.topic: interactive-tutorial
1111
ms.prod: learning-azure
1212
durationInMinutes: 8

github/search-organize-repository-history-github/3-connect-dots.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ metadata:
55
title: Exercise - Connect the dots in a GitHub repository
66
description: "Learn to search and organize repository history by using filters, blame, and cross-linking on GitHub."
77
ms.date: 06/26/2020
8-
author: tpetchel
9-
ms.author: thpetche
8+
author: a-a-ron
9+
ms.author: aastewar
1010
ms.topic: interactive-tutorial
1111
ms.prod: learning-azure
1212
durationInMinutes: 24

github/search-organize-repository-history-github/4-knowledge-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ metadata:
55
title: Knowledge check
66
description: Check what you've learned.
77
ms.date: 06/26/2020
8-
author: tpetchel
9-
ms.author: thpetche
8+
author: a-a-ron
9+
ms.author: aastewar
1010
ms.topic: interactive-tutorial
1111
ms.prod: learning-azure
1212
durationInMinutes: 3

github/search-organize-repository-history-github/5-summary.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ metadata:
55
title: Summary
66
description: Review what you've learned.
77
ms.date: 06/26/2020
8-
author: tpetchel
9-
ms.author: thpetche
8+
author: a-a-ron
9+
ms.author: aastewar
1010
ms.topic: interactive-tutorial
1111
ms.prod: learning-azure
1212
durationInMinutes: 1
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
GitHub projects support virtually unlimited scale. The upside of this scale is that your projects can grow to include countless files, commits, issues, pull requests, and more. The downside is, well, the same.
22

3-
Suppose you are a developer working on a rapidly growing project. As more contributors come on board, they're able to add features and fix bugs at an incredible rate. However, every one of those changes likely includes a lot of contextual information buried in issues, discussions, commits, and pull requests. While that information seems fresh in everyone's mind at the time, the risk of losing that context as time passes could cost you some significant productivity down the road. What happens when a bug is reported that traces back to work that hasn't been touched for more than a year? Fortunately, GitHub offers a few ways to help you quickly ramp up for any task.
3+
Suppose you're a developer working on a rapidly growing project. As more contributors come on board, they're able to add features and fix bugs at an incredible rate. However, every one of those changes likely includes a lot of contextual information buried in issues, discussions, commits, and pull requests. While that information seems fresh in everyone's mind at the time, the risk of losing that context as time passes could cost you some significant productivity down the road. What happens when a bug is reported that traces back to work that hasn't been touched for more than a year? Fortunately, GitHub offers a few ways to help you quickly ramp up for any task.
44

55
In this module, you'll learn how to search and organize repository history by using filters, blame, and cross-linking on GitHub.
66

77
## Learning objectives
88

99
In this module, you'll:
1010

11-
- Find relevant issues and pull requests
12-
- Search history to find context
13-
- Make connections within GitHub to help others find things
11+
- Find relevant issues and pull requests.
12+
- Search history to find context.
13+
- Make connections within GitHub to help others find things.
1414

1515
## Prerequisites
1616

@@ -19,6 +19,6 @@ In this module, you'll:
1919

2020
This module covers the process of finding and organizing information on GitHub. To fully appreciate the benefits this module discusses, we recommend that you complete the following modules first:
2121

22-
- [Introduction to GitHub](/learn/modules/introduction-to-github)
23-
- [Manage software delivery by using a release based workflow on GitHub](/learn/modules/release-based-workflow-github)
24-
- [Manage repository changes by using pull requests on GitHub](/learn/modules/manage-changes-pull-requests-github)
22+
- [Introduction to GitHub](/training/modules/introduction-to-github)
23+
- [Manage software delivery by using a release based workflow on GitHub](/training/modules/release-based-workflow-github)
24+
- [Manage repository changes by using pull requests on GitHub](/training/modules/manage-changes-pull-requests-github)

github/search-organize-repository-history-github/includes/2-search-organize-repository-history-github.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ As a new team member, you're not yet familiar with the codebase. You also haven'
88

99
Although you weren't around for the events that led to the sidebar's implementation, many of those events live on in the project's history. Searching the project's repository for "sidebar" will give you a starting point.
1010

11-
There are two search methods available on GitHub: the global search at the top of the page, and the scoped search available on certain repository tabs. They support the same syntax and function in the same way, with some key differences.
11+
There are two search methods available on GitHub: the global search at the top of the page, and the scoped search available on certain repository tabs. They support the same syntax and function in the same way, but with some key differences.
1212

1313
### Global search
1414

1515
The global search lets you use [the complete search syntax](https://help.github.com/github/searching-for-information-on-github/searching-on-github?azure-portal=true) to search across all of GitHub.
1616

17-
![Searching across GitHub.](../media/2-global-search.png)
17+
![A screenshot of a search across GitHub.](../media/2-global-search.png)
1818

1919
The search results are comprehensive and include everything from code to issues to the Marketplace (and even users). This is the best way to find mentions of key terms across multiple result types and repositories.
2020

21-
![Global search results.](../media/2-global-search-results.png)
21+
![A screenshot of global search results.](../media/2-global-search-results.png)
2222

2323
> [!NOTE]
2424
> The filter clause `is:pr` filters out issues returned from the issues/pull requests store. Some filter clauses, such as `is:pr`, are only supported by certain search providers and ignored by others. For example, the code-search provider doesn't support that clause, so it will ignore it and return the same code results either way.
@@ -31,13 +31,13 @@ To craft a complex global search, try the [advanced search](https://github.com/s
3131

3232
Context searches are available on certain tabs, such as **Issues** and **Pull requests**. These searches are scoped into the current repository and only return results of that type. The benefit to this scoping is that it allows the user interface to expose known type-specific filters, such as authors, labels, projects, and more.
3333

34-
![Context search within a repository.](../media/2-context-search.png)
34+
![Screenshot of a context search within a repository.](../media/2-context-search.png)
3535

3636
Using the context search is the preferred option when you're looking for something in the current repository. In our scenario, this would be a good way to find search results mentioning "sidebar," which you could then easily refine using the filter dropdowns.
3737

3838
### Using search filters
3939

40-
There are an infinite number of ways to search using [the complete search syntax](https://help.github.com/github/searching-for-information-on-github/searching-on-github?azure-portal=true). However, most searches only make use of a few common filters. While these are often available from context search dropdowns, it's sometimes more convenient to type them in directly.
40+
There are an infinite number of ways to search using [the complete search syntax](https://docs.github.com/en/search-github/getting-started-with-searching-on-github/about-searching-on-github). However, most searches only make use of a few common filters. While these are often available from context search dropdowns, it's sometimes more convenient to type them in directly.
4141

4242
Here are some example filter queries:
4343

@@ -52,7 +52,7 @@ Learn more about [Understanding the search syntax](https://help.github.com/en/gi
5252

5353
## What is git blame?
5454

55-
Despite its ominous name, `git blame` is a command that displays the commit history for a file. It makes it easy for you to see who made what changes and when. This makes it a lot easier to track down other people who have worked on a file in order to seek out their input or participation.
55+
Despite its ominous name, `git blame` is a command that displays the commit history for a file. It makes it easy for you to see who made what changes and when. This makes it much easier to track down other people who have worked on a file in order to seek out their input or participation.
5656

5757
> [!NOTE]
5858
> Some Git systems alias `git praise` onto `git blame` to avoid the implication of judgment.
@@ -61,9 +61,9 @@ Despite its ominous name, `git blame` is a command that displays the commit hist
6161

6262
GitHub extends the basic `git blame` functionality with a more robust user interface.
6363

64-
![GitHub blame.](../media/2-github-blame.png)
64+
![A screenshot of GitHub blame.](../media/2-github-blame.png)
6565

66-
In our scenario, there are a few ways you might get to this view. You might have found some sidebar code from the global search and selected the **Blame** option to see who worked on it last. Or maybe you found a pull request and tracked that back to the last commit that seems related to the bug description. However you got here, the blame view is an effective way to locate a subject matter expert for the task at hand.
66+
In our scenario, there are a few ways you might get to this view. You might've found some sidebar code from the global search and selected the **Blame** option to see who worked on it last. Or maybe you found a pull request and tracked that back to the last commit that seems related to the bug description. However you got here, the blame view is an effective way to locate a subject matter expert for the task at hand.
6767

6868
## Cross-linking issues, commits, and more
6969

@@ -73,11 +73,11 @@ Part of what makes GitHub great for collaborative software projects is its suppo
7373

7474
To make it even easier to cross-link different items throughout your project, GitHub offers a shorthand syntax. For example, if you leave a comment like `Duplicate of #8`, GitHub will recognize that #8 is an issue and create the appropriate link for you.
7575

76-
![An autolinked issue.](../media/2-autolinked-issue.png)
76+
![Screenshot of an autolinked issue.](../media/2-autolinked-issue.png)
7777

7878
GitHub also links commits for you if you paste in the first seven or more characters of its ID.
7979

80-
![An autolinked commit.](../media/2-autolinked-commit.png)
80+
![Screenshot of an autolinked commit.](../media/2-autolinked-commit.png)
8181

8282
In our scenario, these links could prove very valuable for ramping up if someone thought ahead to leave the context. For example, the current state of the sidebar may have had some known issues related to a JavaScript dependency. If the issue with that dependency was discussed in another issue that didn't explicitly mention "sidebar", then it would be difficult to find. However, if someone had thought ahead to link the issue in the discussion, then it could save you a lot of time now. Keep that in mind the next time you're documenting issues and pull requests.
8383

@@ -87,4 +87,4 @@ Learn more about [Autolinked references and URLs](https://help.github.com/en/git
8787

8888
Besides linking issues and commits, it's often helpful to associate other people with discussions. The easiest way to do this is by using an `@mention`. This kind of mention notifies the mentioned user so that they can participate in the discussion. It's also a good way to identify people associated with issues long after they have been closed.
8989

90-
![An @mention.](../media/2-user-mention.png)
90+
![Screenshot of an @ mention.](../media/2-user-mention.png)

github/search-organize-repository-history-github/includes/3-connect-dots.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ This exercise checks your knowledge on the ability to search and organize your r
22

33
## Getting started
44

5-
When you click the _Start the exercise on GitHub_ button below, you'll be navigated to a public GitHub template repository that will prompt you to complete a series of small challenges. Before you can begin the exercise, complete the below tasks:
5+
When you select the **Start the exercise on GitHub** button below, you'll be directed to a public GitHub template repository that will prompt you to complete a series of small challenges. Before you can begin the exercise, complete the below tasks:
66

7-
- Select the _Start course_ button or the _Use this template_ feature within the template repository. This will prompt you to create a new repository. We recommend creating a public repository, as private repositories will use Actions minutes.
8-
After you make your own repository from the template, wait about 20 seconds and refresh.
7+
- Select the **Start course** button or the **Use this template** feature within the template repository. This will prompt you to create a new repository. We recommend creating a public repository, as private repositories will use Actions minutes. After you make your own repository from the template, wait about 20 seconds and refresh.
98

109
- Follow the instructions in the repository's README to understand how the exercise works, its learning objectives, and how to successfully complete the exercise.
1110

@@ -17,9 +16,8 @@ When you've finished the exercise in GitHub, return here for:
1716
> * To earn a badge for completing this module
1817
1918
>[!Note]
20-
> You do not need to modify any of the workflow files to complete this exercise.
21-
> **Altering the contents in this workflow can break the exercise's**
22-
> **ability to validate your actions, provide feedback, or grade the results**.
19+
> You do not need to modify any of the workflow files to complete this exercise.
20+
> **Altering the contents in this workflow can break the exercise's ability to validate your actions, provide feedback, or grade the results**.
2321
2422
> [!div class="nextstepaction"]
2523
> [Start the exercise on GitHub](https://github.com/skills/connect-the-dots?azure-portal=true)

github/search-organize-repository-history-github/includes/5-summary.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ You learned about:
66
- Searching history to find context
77
- Making connections within GitHub to help others find things
88

9-
Now that you're familiar with finding and organizing information on GitHub, learn to [Maintain a secure repository by using GitHub best practices](/learn/modules/maintain-secure-repository-github/).
9+
Now that you're familiar with finding and organizing information on GitHub, learn to [Maintain a secure repository by using GitHub best practices](/training/modules/maintain-secure-repository-github/).
1010

1111
## Learn more
1212

1313
Here are some links to more information on the topics we discussed in this module.
1414

15-
- [Searching on GitHub](https://help.github.com/github/searching-for-information-on-github/searching-on-github?azure-portal=true)
15+
- [Searching on GitHub](https://docs.github.com/en/search-github/getting-started-with-searching-on-github/about-searching-on-github)
1616
- [Understanding the search syntax](https://help.github.com/github/searching-for-information-on-github/understanding-the-search-syntax?azure-portal=true)
1717
- [git blame documentation](https://git-scm.com/docs/git-blame?azure-portal=true)
18-
- [Tracking changes in a file](https://help.github.com/github/managing-files-in-a-repository/tracking-changes-in-a-file?azure-portal=true)
19-
- [Autolinked references and URLs](https://help.github.com/github/writing-on-github/autolinked-references-and-urls?azure-portal=true)
18+
- [View files and track file changes](https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file)
19+
- [Autolinked references and URLs](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls)

github/search-organize-repository-history-github/index.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ uid: learn.github.search-organize-repository-history-github
33
metadata:
44
title: "Search and organize repository history by using GitHub"
55
description: "Learn to search and organize repository history by using filters, blame, and cross-linking on GitHub."
6-
ms.date: 07/08/2022
6+
ms.date: 10/18/2022
77
author: a-a-ron
88
ms.author: aastewar
99
ms.topic: interactive-tutorial
@@ -18,7 +18,7 @@ abstract: |
1818
prerequisites: |
1919
- A GitHub account
2020
- The ability to navigate and edit files in GitHub
21-
iconUrl: /learn/achievements/github/search-organize-repository-history-github.svg
21+
iconUrl: /training/achievements/github/search-organize-repository-history-github.svg
2222
ratingEnabled: true
2323
levels:
2424
- beginner

0 commit comments

Comments
 (0)