8000 Merge pull request #22427 from github/repo-sync · github/docs@fe8774e · GitHub
[go: up one dir, main page]

Skip to content

Commit fe8774e

Browse files
authored
Merge pull request #22427 from github/repo-sync
repo sync
2 parents 183e0bd + 34ab888 commit fe8774e

File tree

107 files changed

+2433
-1675
lines changed

Some content is hidden

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

107 files changed

+2433
-1675
lines changed
Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: Adding labels to issues
2+
title: Issue にラベルを追加する
33
shortTitle: Add labels to issues
4-
intro: 'You can use {% data variables.product.prodname_actions %} to automatically label issues.'
4+
intro: '{% data variables.product.prodname_actions %} を使用して、Issue に自動的にラベルを付けることができます。'
55
redirect_from:
66
- /actions/guides/adding-labels-to-issues
77
versions:
@@ -13,24 +13,28 @@ type: tutorial
1313
topics:
1414
- Workflows
1515
- Project management
16+
ms.openlocfilehash: a3523069b9422ecd8107007ca5e00fb0071dd738
17+
ms.sourcegitcommit: 4d6d3735d32540cb6de3b95ea9a75b8b247c580d
18+
ms.translationtype: HT
19+
ms.contentlocale: ja-JP
20+
ms.lasthandoff: 11/30/2022
21+
ms.locfileid: '148185562'
1622
---
23+
{% data reusables.actions.enterprise-beta %} {% data reusables.actions.enterprise-github-hosted-runners %}
1724

18-
{% data reusables.actions.enterprise-beta %}
19-
{% data reusables.actions.enterprise-github-hosted-runners %}
25+
## はじめに
2026

21-
## Introduction
27+
このチュートリアルでは、ワークフローで [`actions/github-script` アクション](https://github.com/marketplace/actions/github-script)を使用して、新しくオープンまたは再オープンした Issue にラベルを付ける方法を示します。 たとえば、Issue をオープンまたは再オープンするたびに `triage` ラベルを追加できます。 次に、`triage` ラベルで Issue をフィルター処理して、トリアージする必要のあるすべての Issue を確認できます。
2228

23-
This tutorial demonstrates how to use the [`actions/github-script` action](https://github.com/marketplace/actions/github-script) in a workflow to label newly opened or reopened issues. For example, you can add the `triage` label every time an issue is opened or reopened. Then, you can see all issues that need to be triaged by filtering for issues with the `triage` label.
29+
`actions/github-script` アクションを使うと、ワークフローで {% data variables.product.prodname_dotcom %} API を簡単に使用できます。
2430

25-
The `actions/github-script` action allows you to easily use the {% data variables.product.prodname_dotcom %} API in a workflow.
31+
チュートリアルでは、[`actions/github-script` アクション](https://github.com/marketplace/actions/github-script)を使用するワークフロー ファイルをまず作成します。 次に、ニーズに合わせてワークフローをカスタマイズします。
2632

27-
In the tutorial, you will first make a workflow file that uses the [`actions/github-script` action](https://github.com/marketplace/actions/github-script). Then, you will customize the workflow to suit your needs.
28-
29-
## Creating the workflow
33+
## ワークフローの作成
3034

3135
1. {% data reusables.actions.choose-repo %}
3236
2. {% data reusables.actions.make-workflow-file %}
33-
3. Copy the following YAML contents into your workflow file.
37+
3. 次の YAML コンテンツをワークフローファイルにコピーします。
3438

3539
```yaml{:copy}
3640
name: Label issues
@@ -56,23 +60,23 @@ In the tutorial, you will first make a workflow file that uses the [`actions/git
5660
})
5761
```
5862
59-
4. Customize the `script` parameter in your workflow file:
60-
- The `issue_number`, `owner`, and `repo` values are automatically set using the `context` object. You do not need to change these.
61-
- Change the value for `labels` to the list of labels that you want to add to the issue. Separate multiple labels with commas. For example, `["help wanted", "good first issue"]`. For more information about labels, see "[Managing labels](/github/managing-your-work-on-github/managing-labels#applying-labels-to-issues-and-pull-requests)."
63+
4. ワークフロー ファイルの `script` パラメーターをカスタマイズします。
64+
- `issue_number``owner``repo` の値は、`context` オブジェクトを使って自動的に設定されます。 これらを変更する必要はありません。
65+
- `labels` の値を、Issue に追加するラベルのリストに変更します。 複数のラベルはコンマで区切ります。 たとえば、「 `["help wanted", "good first issue"]` 」のように入力します。 ラベルの詳細については、「[ラベルを管理する](/github/managing-your-work-on-github/managing-labels#applying-labels-to-issues-and-pull-requests)」を参照してください。
6266
5. {% data reusables.actions.commit-workflow %}
6367
64-
## Testing the workflow
68+
## ワークフローのテスト
6569
66-
Every time an issue in your repository is opened or reopened, this workflow will add the labels that you specified to the issue.
70+
リポジトリ内の Issue をオープンするか再オープンするたびに、このワークフローは指定したラベルを Issue に追加します。
6771
68-
Test out your workflow by creating an issue in your repository.
72+
リポジトリに Issue を作成して、ワークフローをテストします。
6973
70-
1. Create an issue in your repository. For more information, see "[Creating an issue](/github/managing-your-work-on-github/creating-an-issue)."
71-
2. To see the workflow run that was triggered by creating the issue, view the history of your workflow runs. For more information, see "[Viewing workflow run history](/actions/managing-workflow-runs/viewing-workflow-run-history)."
72-
3. When the workflow completes, the issue that you created should have the specified labels added.
74+
1. リポジトリで Issue を作成します。 詳細については、「[Issue の作成](/github/managing-your-work-on-github/creating-an-issue)」を参照してください。
75+
2. Issue の作成によってトリガーされたワークフローの実行を確認するには、ワークフローの実行履歴を表示します。 詳細については、「[ワークフロー実行の履歴を表示する](/actions/managing-workflow-runs/viewing-workflow-run-history)」を参照してください。
76+
3. ワークフローが完了すると、作成した Issue に指定されたラベルが追加されます。
7377
74-
## Next steps
78+
## 次の手順
7579
76-
- To learn more about additional things you can do with the `actions/github-script` action, see the [`actions/github-script` action documentation](https://github.com/marketplace/actions/github-script).
77-
- To learn more about different events that can trigger your workflow, see "[Events that trigger workflows](/actions/reference/events-that-trigger-workflows#issues)."
78-
- [Search GitHub](https://github.com/search?q=%22uses:+actions/github-script%22&type=code) for examples of workflows using this action.
80+
- `actions/github-script` アクションで実行できる追加の機能について詳しくは、[`actions/github-script` アクションのドキュメント](https://github.com/marketplace/actions/github-script)にアクセスしてください。
81+
- ワークフローをトリガーできるさまざまなイベントの詳細については、「[ワークフローをトリガーするイベント](/actions/reference/events-that-trigger-workflows#issues)」を参照してください。
82+
- このアクションを使用するワークフローの例については [GitHub を検索](https://github.com/search?q=%22uses:+actions/github-script%22&type=code)してください。

0 commit comments

Comments
 (0)
0