X Tutup
Skip to content

Commit e7047a1

Browse files
committed
fix additional no trailing newlines
2 parents 863733d + fa7f868 commit e7047a1

File tree

249 files changed

+3263
-3351
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

249 files changed

+3263
-3351
lines changed

.devcontainer/devcontainer.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@
3434
"GitHub.copilot",
3535
"GitHub.copilot-chat"
3636
]
37+
},
38+
"codespaces": {
39+
"repositories": {
40+
// allow Codespaces to pull from separate repo when user has access
41+
"github/docs-early-access": {
42+
"permissions": {
43+
"contents": "write"
44+
}
45+
}
46+
}
3747
}
3848
},
3949

@@ -52,7 +62,7 @@
5262

5363
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
5464
"remoteUser": "node",
55-
65+
5666
"hostRequirements": {
5767
"memory": "8gb"
5868
}
121 KB
Loading

content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-user-account-settings/about-your-personal-dashboard.md

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,27 @@ You can also find a list of your recently visited repositories, teams, and proje
5252

5353
## Staying updated with activity from the community
5454

55-
{% ifversion for-you-feed %}
55+
{% ifversion feed %}
56+
57+
{% note %}
58+
59+
**Note:** The new feed is currently in public beta and subject to change.
60+
61+
{% endnote %}
62+
63+
The feed is designed to help you discover relevant content from projects you follow, keep up with your friends and community members, and track recent activity in your communities.
64+
65+
You can use the {% octicon "filter" aria-hidden="true" %} **Filter** dropdown in the upper right corner to filter the feed to show only the exact event types you'd like to see. For example, you'll see updates when someone you follow:
66+
67+
- Stars a repository.
68+
- Follows another user.
69+
- Creates a public repository.
70+
- Opens an issue or pull request with `help wanted` or `good first issue` label on a repository you're watching.
71+
- Pushes commits to a repository you watch.
72+
- Forks a public repository.
73+
- Publishes a new release.
74+
75+
{% else %}
5676
The main section of your dashboard has two activity feeds:
5777

5878
- Following: Activity by people you follow and from repositories you watch.
@@ -62,24 +82,16 @@ The main section of your dashboard has two activity feeds:
6282

6383
This feed shows activity from repositories and users you have shown a direct interest in, by following a user or watching a repository. For example, you'll see updates when a user you follow:
6484

65-
{% else %}
66-
In the "All activity" section of your news feed, you can view updates from repositories you watch and users you follow.
67-
68-
You'll see updates in your news feed when a user you follow:
69-
{% endif %}
70-
7185
- Stars a repository.
72-
- Follows another user.{% ifversion fpt or ghes or ghec %}
73-
- Creates a public repository.{% endif %}
86+
- Follows another user.
87+
- Creates a public repository.
7488
- Opens an issue or pull request with "help wanted" or "good first issue" label on a repository you're watching.
75-
- Pushes commits to a repository you watch.{% ifversion fpt or ghes or ghec %}
76-
- Forks a public repository.{% endif %}
89+
- Pushes commits to a repository you watch.
90+
- Forks a public repository.
7791
- Publishes a new release.
7892

7993
For more information about following people and watching repositories, see "[AUTOTITLE](/get-started/exploring-projects-on-github/following-people)" and "[AUTOTITLE](/get-started/quickstart/be-social)."
8094

81-
{% ifversion for-you-feed %}
82-
8395
### For you feed
8496

8597
{% note %}

content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-user-account-settings/permission-levels-for-a-personal-account-repository.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ The repository owner has full control of the repository. In addition to the acti
5454
| Create security advisories | "[AUTOTITLE](/code-security/security-advisories/working-with-repository-security-advisories/about-repository-security-advisories)" |
5555
| Display a sponsor button | "[AUTOTITLE](/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/displaying-a-sponsor-button-in-your-repository)" |{% endif %}
5656
| Allow or disallow auto-merge for pull requests | "[AUTOTITLE](/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-auto-merge-for-pull-requests-in-your-repository)" |
57-
| Manage webhooks and deploy keys | "[AUTOTITLE](/authentication/connecting-to-github-with-ssh/managing-deploy-keys#deploy-keys)" |
57+
| Manage deploy keys | "[AUTOTITLE](/authentication/connecting-to-github-with-ssh/managing-deploy-keys#deploy-keys)" |
58+
| Manage webhooks | "[AUTOTITLE](/webhooks/about-webhooks)" |
5859

5960
## Collaborator access for a repository owned by a personal account
6061

content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/managing-multiple-accounts.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ Alternatively, if you want to use the HTTPS protocol for both accounts, you can
7474
```shell copy
7575
echo "protocol=https`nhost=github.com" | git credential-manager erase
7676
```
77+
7778
- If the output is `wincred`, you're using the Windows Credential Manager. To clear the credentials, enter the following command.
7879
7980
```shell copy

content/actions/automating-builds-and-tests/about-continuous-integration.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ For a definition of common terms, see "[AUTOTITLE](/actions/learn-github-actions
5151
Browse the complete list of CI starter workflow offered by {% data variables.product.company_short %} in the {% ifversion fpt or ghec %}[actions/starter-workflows](https://github.com/actions/starter-workflows/tree/main/ci) repository{% else %} `actions/starter-workflows` repository on {% data variables.location.product_location %}{% endif %}.
5252

5353
{% ifversion fpt or ghec %}
54+
5455
## Further reading
5556

5657
- "[AUTOTITLE](/billing/managing-billing-for-github-actions)"

content/actions/automating-builds-and-tests/building-and-testing-go.md

Lines changed: 53 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -29,35 +29,60 @@ You should already be familiar with YAML syntax and how it's used with {% data v
2929

3030
We recommend that you have a basic understanding of the Go language. For more information, see [Getting started with Go](https://golang.org/doc/tutorial/getting-started).
3131

32-
## Using the Go starter workflow
32+
## Using a Go starter workflow
3333

34-
{% data variables.product.prodname_dotcom %} provides a Go starter workflow that should work for most Go projects. This guide includes examples that you can use to customize the starter workflow. For more information, see the [Go starter workflow](https://github.com/actions/starter-workflows/blob/main/ci/go.yml).
34+
{% data reusables.actions.starter-workflow-get-started %}
3535

36-
To get started quickly, add the starter workflow to the `.github/workflows` directory of your repository.
36+
{% data variables.product.prodname_dotcom %} provides a Go starter workflow that should work for most Go projects. The subsequent sections of this guide give examples of how you can customize this starter workflow.
3737

38-
```yaml copy
39-
name: Go package
38+
{% data reusables.repositories.navigate-to-repo %}
39+
{% data reusables.repositories.actions-tab %}
40+
{% data reusables.actions.new-starter-workflow %}
41+
1. The "{% ifversion actions-starter-template-ui %}Choose a workflow{% else %}Choose a workflow template{% endif %}" page shows a selection of recommended starter workflows. Search for "go".
42+
1. Filter the selection of workflows by clicking **Continuous integration**.
43+
1. On the "Go - by {% data variables.product.prodname_actions %}" workflow, click {% ifversion actions-starter-template-ui %}**Configure**{% else %}**Set up this workflow**{% endif %}.
4044

41-
on: [push]
45+
![Screenshot of the "Choose a workflow" page. The "Configure" button on the "Go" workflow is highlighted with an orange outline.](/assets/images/help/actions/starter-workflow-go.png)
4246

43-
jobs:
44-
build:
47+
{%- ifversion ghes or ghae %}
48+
If you don't find the "Go - by {% data variables.product.prodname_actions %}" starter workflow, copy the following workflow code to a new file called `go.yml` in the `.github/workflows` directory of your repository.
4549

46-
runs-on: ubuntu-latest
47-
steps:
48-
- uses: {% data reusables.actions.action-checkout %}
50+
```yaml copy
51+
name: Go
4952

50-
- name: Set up Go
51-
uses: {% data reusables.actions.action-setup-go %}
52-
with:
53-
go-version: '1.15'
53+
on:
54+
push:
55+
branches: [ "main" ]
56+
pull_request:
57+
branches: [ "main" ]
5458

55-
- name: Build
56-
run: go build -v ./...
59+
jobs:
60+
build:
5761

58-
- name: Test
59-
run: go test -v ./...
60-
```
62+
runs-on: self-hosted
63+
steps:
64+
- uses: {% data reusables.actions.action-checkout %}
65+
66+
- name: Set up Go
67+
uses: {% data reusables.actions.action-setup-go %}
68+
with:
69+
go-version: '1.20'
70+
71+
- name: Build
72+
run: go build -v ./...
73+
74+
- name: Test
75+
run: go test -v ./...
76+
```
77+
78+
{%- endif %}
79+
80+
1. Edit the workflow as required. For example, change the version of Go.
81+
1. Click **Commit changes**.
82+
83+
{% ifversion fpt or ghec %}
84+
The `go.yml` workflow file is added to the `.github/workflows` directory of your repository.
85+
{% endif %}
6186

6287
## Specifying a Go version
6388

@@ -80,7 +105,7 @@ jobs:
80105
runs-on: ubuntu-latest
81106
strategy:
82107
matrix:
83-
go-version: [ '1.14', '1.15', '1.16.x' ]
108+
go-version: [ '1.19', '1.20', '1.21.x' ]
84109
85110
steps:
86111
- uses: {% data reusables.actions.action-checkout %}
@@ -95,14 +120,14 @@ jobs:
95120

96121
### Using a specific Go version
97122

98-
You can configure your job to use a specific version of Go, such as `1.16.2`. Alternatively, you can use semantic version syntax to get the latest minor release. This example uses the latest patch release of Go 1.16:
123+
You can configure your job to use a specific version of Go, such as `1.20.8`. Alternatively, you can use semantic version syntax to get the latest minor release. This example uses the latest patch release of Go 1.21:
99124

100125
```yaml copy
101-
- name: Setup Go 1.16.x
126+
- name: Setup Go 1.21.x
102127
uses: {% data reusables.actions.action-setup-go %}
103128
with:
104129
# Semantic version range syntax or exact version of Go
105-
go-version: '1.16.x'
130+
go-version: '1.21.x'
106131
```
107132

108133
## Installing dependencies
@@ -115,7 +140,7 @@ You can use `go get` to install dependencies:
115140
- name: Setup Go
116141
uses: {% data reusables.actions.action-setup-go %}
117142
with:
118-
go-version: '1.16.x'
143+
go-version: '1.21.x'
119144
- name: Install dependencies
120145
run: |
121146
go get .
@@ -150,7 +175,7 @@ When caching is enabled, the `setup-go` action searches for the dependency file,
150175
- name: Setup Go
151176
uses: {% data reusables.actions.action-setup-go %}
152177
with:
153-
go-version: '1.16.x'
178+
go-version: '1.21.x'
154179
cache: true
155180
```
156181

@@ -187,7 +212,7 @@ jobs:
187212
- name: Setup Go
188213
uses: {% data reusables.actions.action-setup-go %}
189214
with:
190-
go-version: '1.16.x'
215+
go-version: '1.21.x'
191216
- name: Install dependencies
192217
run: go get .
193218
- name: Build
@@ -213,7 +238,7 @@ jobs:
213238
runs-on: ubuntu-latest
214239
strategy:
215240
matrix:
216-
go-version: [ '1.14', '1.15', '1.16.x' ]
241+
go-version: [ '1.19', '1.20', '1.21.x' ]
217242
218243
steps:
219244
- uses: {% data reusables.actions.action-checkout %}

content/actions/automating-builds-and-tests/building-and-testing-java-with-ant.md

Lines changed: 48 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ topics:
1515
- Java
1616
- Ant
1717
shortTitle: Build & test Java & Ant
18-
layout: inline
1918
---
2019

2120
{% data reusables.actions.enterprise-github-hosted-runners %}
@@ -40,39 +39,54 @@ We recommend that you have a basic understanding of Java and the Ant framework.
4039

4140
{% data reusables.actions.enterprise-setup-prereq %}
4241

43-
## Using the Ant starter workflow
44-
45-
{% data variables.product.prodname_dotcom %} provides an Ant starter workflow that will work for most Ant-based Java projects. For more information, see the [Ant starter workflow](https://github.com/actions/starter-workflows/blob/main/ci/ant.yml). {% data reusables.actions.workflows.starter-workflows %}
46-
47-
To get started quickly, you can choose the preconfigured Ant starter workflow when you create a new workflow. For more information, see the "[AUTOTITLE](/actions/quickstart)."
48-
49-
You can also add this workflow manually by creating a new file in the `.github/workflows` directory of your repository.
50-
51-
```yaml annotate copy
52-
# {% data reusables.actions.workflows.workflow-syntax-name %}
53-
name: Java CI
54-
55-
#
56-
on: [push]
57-
#
58-
jobs:
59-
build:
60-
{% data reusables.actions.example-github-runner-comment %}
61-
runs-on: ubuntu-latest
62-
#
63-
steps:
64-
{% data reusables.actions.workflows.workflow-checkout-step-explainer %}
65-
- uses: {% data reusables.actions.action-checkout %}
66-
{% data reusables.actions.workflows.setup-java-step-explainer %}
67-
- name: Set up JDK 17
68-
uses: {% data reusables.actions.action-setup-java %}
69-
with:
70-
java-version: '17'
71-
distribution: 'temurin'
72-
# This step runs the default target in your `build.xml` file in non-interactive mode.
73-
- name: Build with Ant
74-
run: ant -noinput -buildfile build.xml
75-
```
42+
## Using an Ant starter workflow
43+
44+
{% data reusables.actions.starter-workflow-get-started %}
45+
46+
{% data variables.product.prodname_dotcom %} provides a starter workflow for Ant that should work for most Java with Ant projects. The subsequent sections of this guide give examples of how you can customize this starter workflow.
47+
48+
{% data reusables.repositories.navigate-to-repo %}
49+
{% data reusables.repositories.actions-tab %}
50+
{% data reusables.actions.new-starter-workflow %}
51+
1. The "{% ifversion actions-starter-template-ui %}Choose a workflow{% else %}Choose a workflow template{% endif %}" page shows a selection of recommended starter workflows. Search for "Java with Ant".
52+
1. On the "Java with Ant" workflow, click {% ifversion actions-starter-template-ui %}**Configure**{% else %}**Set up this workflow**{% endif %}.
53+
54+
{%- ifversion ghes or ghae %}
55+
56+
If you don't find the "Java with Ant" starter workflow, copy the following workflow code to a new file called `ant.yml` in the `.github/workflows` directory of your repository.
57+
58+
```yaml copy
59+
name: Java CI
60+
61+
on:
62+
push:
63+
branches: [ $default-branch ]
64+
pull_request:
65+
branches: [ $default-branch ]
66+
67+
jobs:
68+
build:
69+
runs-on: ubuntu-latest
70+
71+
steps:
72+
- uses: {% data reusables.actions.action-checkout %}
73+
- name: Set up JDK 11
74+
uses: {% data reusables.actions.action-setup-java %}
75+
with:
76+
java-version: '11'
77+
distribution: 'temurin'
78+
- name: Build with Ant
79+
run: ant -noinput -buildfile build.xml
80+
```
81+
82+
{%- endif %}
83+
84+
1. Edit the workflow as required. For example, change the Java version.
85+
1. Click **Commit changes**.
86+
87+
{% ifversion fpt or ghec %}
88+
The `ant.yml` workflow file is added to the `.github/workflows` directory of your repository.
89+
{% endif %}
7690

7791
{% data reusables.actions.java-jvm-architecture %}
7892

0 commit comments

Comments
 (0)
X Tutup