Observação
- Projects, a experiência de todos os novos projetos, agora está disponível. Para obter mais informações sobre Projects, confira Sobre Projects.
- Só possível criar um novo projeto (clássico) para uma organização, repositório, ou usuário que já tenha pelo menos um projeto (clássico). Se você não conseguir criar um projeto (clássico), crie um projeto.
Observação
No momento, não há suporte para executores hospedados no GitHub no GitHub Enterprise Server. Você pode ver mais informações sobre o suporte futuro planejado no GitHub public roadmap.
Introduction
This tutorial demonstrates how to use the alex-page/github-project-automation-plus
action to automatically move an issue to a specific column on a projeto (clássico) when the issue is assigned. For example, when an issue is assigned, you can move it into the In Progress
column your projeto (clássico).
In the tutorial, you will first make a workflow file that uses the alex-page/github-project-automation-plus
action. Then, you will customize the workflow to suit your needs.
Creating the workflow
-
Escolha um repositório onde você deseja aplicar este fluxo de trabalho de gerenciamento de projetos. Você pode usar um repositório existente ao qual você tem acesso de gravação ou criar um novo repositório. Para saber mais sobre como criar um repositório, confira Criar um repositório.
-
In your repository, choose a projeto (clássico). You can use an existing project, or you can create a new project. For more information about creating a project, see Criar um project (classic).
-
No repositório, crie um arquivo chamado
.github/workflows/YOUR_WORKFLOW.yml
, substituindoYOUR_WORKFLOW
por um nome de sua escolha. Este é um arquivo do fluxo de trabaho. Para saber mais sobre como criar arquivos no GitHub, confira Criar arquivos. -
Copy the following YAML contents into your workflow file.
YAML # Esse fluxo de trabalho usa ações que não são certificadas pelo GitHub. # São fornecidas por terceiros e regidas por # termos de serviço, política de privacidade e suporte separados # online. # O GitHub recomenda fixar ações em um SHA de commit. # Para obter uma versão mais recente, você precisará atualizar o SHA. # Você também pode fazer referência a uma marca ou branch, mas a ação pode ser alterada sem aviso. name: Move assigned card on: issues: types: - assigned jobs: move-assigned-card: runs-on: ubuntu-latest steps: - uses: alex-page/github-project-automation-plus@7ffb872c64bd809d23563a130a0a97d01dfa8f43 with: project: Docs Work column: In Progress repo-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
# Esse fluxo de trabalho usa ações que não são certificadas pelo GitHub. # São fornecidas por terceiros e regidas por # termos de serviço, política de privacidade e suporte separados # online. # O GitHub recomenda fixar ações em um SHA de commit. # Para obter uma versão mais recente, você precisará atualizar o SHA. # Você também pode fazer referência a uma marca ou branch, mas a ação pode ser alterada sem aviso. name: Move assigned card on: issues: types: - assigned jobs: move-assigned-card: runs-on: ubuntu-latest steps: - uses: alex-page/github-project-automation-plus@7ffb872c64bd809d23563a130a0a97d01dfa8f43 with: project: Docs Work column: In Progress repo-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
-
Customize the parameters in your workflow file:
- Change the value for
project
to the name of your projeto (clássico). If you have multiple projetos (clássicos) with the same name, thealex-page/github-project-automation-plus
action will act on all projects with the specified name. - Change the value for
column
to the name of the column where you want issues to move when they are assigned. - Change the value for
repo-token
:- Create a personal access token (classic) with the
repo
scope. For more information, see Gerenciar seus tokens de acesso pessoal. - Store this personal access token as a secret in your repository. For more information about storing secrets, see Using secrets in GitHub Actions.
- In your workflow file, replace
PERSONAL_ACCESS_TOKEN
with the name of your secret.
- Create a personal access token (classic) with the
- Change the value for
-
Faça o commit do arquivo de fluxo de trabalho para o branch padrão do seu repositório. Para saber mais, confira Criar arquivos.
Testing the workflow
Whenever an issue in your repository is assigned, the issue will be moved to the specified projeto (clássico) column. If the issue is not already on the projeto (clássico), it will be added to the projeto (clássico).
If your repository is user-owned, the alex-page/github-project-automation-plus
action will act on all projects in your repository or personal account that have the specified project name and column. Likewise, if your repository is organization-owned, the action will act on all projects in your repository or organization that have the specified project name and column.
Test your workflow by assigning an issue in your repository.
- Open an issue in your repository. For more information, see Criar um problema.
- Assign the issue. For more information, see Atribuir problemas e pull requests a outros usuários do GitHub.
- To see the workflow run that assigning the issue triggered, view the history of your workflow runs. For more information, see Viewing workflow run history.
- When the workflow completes, the issue that you assigned should be added to the specified projeto (clássico) column.
Next steps
- To learn more about additional things you can do with the
alex-page/github-project-automation-plus
action, like deleting or archiving project cards, visit thealex-page/github-project-automation-plus
action documentation.