Skip to content

Commit 4e2e4f1

Browse files
authored
Merge pull request #22428 from github/repo-sync
repo sync
2 parents fe8774e + 50b0cc1 commit 4e2e4f1

90 files changed

Lines changed: 2068 additions & 1455 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: Adding labels to issues
2+
title: Ajout d’étiquettes à des problèmes
33
shortTitle: Add labels to issues
4-
intro: 'You can use {% data variables.product.prodname_actions %} to automatically label issues.'
4+
intro: 'Vous pouvez utiliser {% data variables.product.prodname_actions %} pour étiqueter automatiquement les problèmes.'
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: fr-FR
20+
ms.lasthandoff: 11/30/2022
21+
ms.locfileid: '148185560'
1622
---
17-
18-
{% data reusables.actions.enterprise-beta %}
19-
{% data reusables.actions.enterprise-github-hosted-runners %}
23+
{% data reusables.actions.enterprise-beta %} {% data reusables.actions.enterprise-github-hosted-runners %}
2024

2125
## Introduction
2226

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.
27+
Ce tutoriel montre comment utiliser [l’action `actions/github-script`](https://github.com/marketplace/actions/github-script) dans un workflow pour étiqueter les problèmes nouvellement ouverts ou rouverts. Par exemple, vous pouvez ajouter l’étiquette `triage` chaque fois qu’un problème est ouvert ou rouvert. Ensuite, vous pouvez voir tous les problèmes qui doivent être triés en filtrant les problèmes à l’aide de l’étiquette `triage`.
2428

25-
The `actions/github-script` action allows you to easily use the {% data variables.product.prodname_dotcom %} API in a workflow.
29+
L’action `actions/github-script` vous permet d’utiliser facilement l’API {% data variables.product.prodname_dotcom %} dans un workflow.
2630

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.
31+
Dans le tutoriel, vous allez d’abord créer un fichier de workflow qui utilise [l’action `actions/github-script`](https://github.com/marketplace/actions/github-script). Ensuite, vous personnaliserez le workflow en fonction de vos besoins.
2832

29-
## Creating the workflow
33+
## Création du workflow
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. Copiez le contenu YAML suivant dans votre fichier de workflow.
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. Personnalisez le paramètre `script` dans votre fichier de workflow :
64+
- Les valeurs `issue_number`, `owner` et `repo` sont automatiquement définies à l’aide de l’objet `context` . Il est inutile de les modifier.
65+
- Remplacez la valeur de `labels` par la liste des étiquettes que vous souhaitez ajouter au problème. Séparez plusieurs étiquettes par des virgules. Par exemple : `["help wanted", "good first issue"]`. Pour plus d’informations sur les étiquettes, consultez « [Gestion des étiquettes](/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+
## Test du workflow
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+
Chaque fois qu’un problème dans votre dépôt est ouvert ou rouvert, ce workflow ajoute les étiquettes que vous avez spécifiées au problème.
6771
68-
Test out your workflow by creating an issue in your repository.
72+
Testez votre workflow en créant un problème dans votre dépôt.
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. Créez un problème dans votre dépôt. Pour plus d’informations, consultez « [Création d’un problème](/github/managing-your-work-on-github/creating-an-issue) ».
75+
2. Pour voir l’exécution du workflow qui a été déclenchée par la création du problème, affichez l’historique des exécutions de votre workflow. Pour plus d’informations, consultez « [Affichage de l’historique des exécutions de workflows](/actions/managing-workflow-runs/viewing-workflow-run-history) ».
76+
3. Une fois le workflow terminé, les étiquettes spécifiées doivent avoir été ajoutées au problème que vous avez créé.
7377
74-
## Next steps
78+
## Étapes suivantes
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+
- Pour en savoir plus sur d’autres choses que vous pouvez faire avec l’action `actions/github-script`, consultez la [`actions/github-script`documentation sur l’action](https://github.com/marketplace/actions/github-script).
81+
- Pour en savoir plus sur les différents événements qui peuvent déclencher votre workflow, consultez « [Événements qui déclenchent des workflows](/actions/reference/events-that-trigger-workflows#issues) ».
82+
- [Visitez GitHub](https://github.com/search?q=%22uses:+actions/github-script%22&type=code) pour trouver des exemples de workflow utilisant cette action.

0 commit comments

Comments
 (0)