GitHub Copilot 应用入门:用 My work 面板管理任务
GitHub Copilot app for Beginners: Managing your work
This is the third post in our GitHub Copilot app for Beginners series. If you’re just joining us, check out, GitHub Copilot app for beginners: Getting started, where we introduced the app and how it helps you work across multiple agent sessions. Our second post goes deeper on working within a session. Here, we’ll look at how to keep all of the requests and work being done on a project organized in one place.
这是我们 GitHub Copilot 应用初学者系列的第三篇文章。如果你刚刚加入我们,请查看《GitHub Copilot 应用初学者:入门指南》,我们在那里介绍了该应用以及它如何帮助你在多个代理会话中工作。我们的第二篇文章更深入地探讨了在会话内的工作。在这里,我们将看看如何将所有请求和正在进行的项目工作组织在一个地方。
If you’ve been following along in this series, you know that real development is rarely a straight line. You fix a bug here, review a pull request there, and chase down a new idea somewhere in between. As you continue to assign tasks to Copilot and create new pull requests, you’ll quickly find yourself with several proverbial balls in the air.
如果你一直在关注这个系列,你就会知道真正的开发很少是一条直线。你在这里修复一个 bug,在那里审查一个拉取请求,并在其间追逐一个新想法。当你继续向 Copilot 分配任务并创建新的拉取请求时,你会很快发现自己同时处理着多个任务。
Being able to manage everything from one centralized location is key, and that’s exactly why the My work pane exists. Below, we’ll cover how you can use it to manage what’s currently in flight, what’s completed, and what’s next.
能够从一个集中位置管理一切是关键,这正是“我的工作”窗格存在的原因。下面,我们将介绍如何使用它来管理当前正在进行的工作、已完成的工作以及接下来要做的事情。
Exploring the default views for pull requests and issues
探索拉取请求和问题的默认视图
When you open the My work tab, you’ll see three tabs waiting for you. The first is All, which shows all of your pull requests and issues in one place.
当你打开“我的工作”选项卡时,你会看到三个选项卡等着你。第一个是“全部”,它在一个地方显示你所有的拉取请求和问题。
This list is automatically filtered based on the projects you’ve touched inside the Copilot app. It’s not every repo you have access to. If there’s a repo you’d like to see here, just create a quick session pointing to that repo, and it’ll show up.
此列表会根据你在 Copilot 应用中接触过的项目自动过滤。它并不是你有权访问的所有仓库。如果你希望在这里看到某个仓库,只需创建一个指向该仓库的快速会话,它就会显示出来。
Alongside All, you’ll find three more built-in views:
除了“全部”之外,你还会发现三个内置视图:
- Active shows all of your open pull requests and issues.
- Review requests shows the pull requests where someone has requested your review.
- Done shows everything that’s been closed.
- “进行中”显示你所有打开的拉取请求和问题。
- “审查请求”显示有人请求你审查的拉取请求。
- “已完成”显示所有已关闭的内容。
These give you an at-a-glance sense of what needs your attention right now versus what’s already wrapped up.
这些视图让你一目了然地了解哪些需要你立即关注,哪些已经完成。
Creating your own views and filters
创建你自己的视图和过滤器
The built-in views are a great start, but you can also create your own. Select New view, and you’ll get the familiar “New view” placeholder name, which you can rename to something like “My issues.”
内置视图是一个很好的起点,但你也可以创建自己的视图。选择“新建视图”,你会看到熟悉的“新建视图”占位名称,你可以将其重命名为类似“我的问题”的名称。
From here, you can build your filter. You can type it out using the angle-bracket syntax you might recognize from GitHub, or use the UI, which is often the friendlier option when you’re getting started.
从这里,你可以构建你的过滤器。你可以使用你可能从 GitHub 中认识的尖括号语法来输入,或者使用 UI,这在你刚开始时通常是更友好的选择。
For your My issues view, you can add a filter for Is: Issue to grab all issues, then add one more filter for Assignee: Me. Select Save, and now this view shows every issue that’s been assigned to you.
对于你的“我的问题”视图,你可以添加一个“类型:问题”过滤器来获取所有问题,然后再添加一个“负责人:我”过滤器。选择“保存”,现在这个视图会显示所有分配给你的问题。
You can also do some quick filtering. Select the filter at the top and you’ll get the same interface. Maybe instead of sorting by Recently updated, you’d rather flip it to Ascending so the oldest items float to the top. From there, save your changes to a brand-new view, update the view you’re currently on, or discard the changes to revert back.
你也可以进行一些快速筛选。点击顶部的筛选器,你会看到相同的界面。也许你可以不按“最近更新”排序,而是改为“升序”,让最旧的条目浮到顶部。然后,你可以将更改保存为一个全新的视图,更新当前所在的视图,或者放弃更改以恢复原状。
Customizing your list and table layouts
自定义列表和表格布局
By default, your items show up in a list view, which feels a bit like a set of cards. It’s a clean, approachable way to scan through your work.
默认情况下,你的条目以列表视图显示,感觉像是一组卡片。这是一种清晰、易用的方式来浏览你的工作。
If you’d like a little more control, switch to the table view. The table unlocks a few extra features you won’t find in the list: choose which columns to display, move them around, and resize them to fit how you like to work.
如果你想要更多控制,可以切换到表格视图。表格解锁了一些列表中没有的额外功能:选择要显示的列,移动它们的位置,并调整大小以适应你的工作方式。
And don’t worry about experimenting: you can always reset everything back to the way it was before, and switch right back to the list view whenever you’d like.
不用担心尝试:你随时可以将一切重置回之前的状态,并且随时切换回列表视图。
Starting agent sessions from issues and pull requests
从问题和拉取请求开始代理会话
Here’s where things really come together. You can bring up any item by selecting it, and from there, start a brand-new session on it. Just tell Copilot, “Hey, let’s get to work on this,” it’ll get to work, using the issue as its context.
这里才是真正整合的地方。你可以通过选择任何条目来调出它,然后在其上开始一个全新的会话。只需告诉 Copilot,“嘿,让我们开始处理这个吧”,它就会以该问题作为上下文开始工作。
Back in the list view, you can select multiple items at once, choose Actions, and create new sessions from them. This is useful in a couple of ways:
回到列表视图,你可以一次选择多个条目,选择“操作”,并从它们创建新会话。这在几个方面很有用:
- If you have several independent feature requests, you can spin up an individual session for each one.
- If you have a series of bug reports that all point to the same feature, you can bundle them into a single session by selecting New session.
- 如果你有几个独立的功能请求,你可以为每个请求启动一个单独的会话。
- 如果你有一系列指向同一功能的错误报告,你可以通过选择“新会话”将它们捆绑到一个会话中。
In either case, you can change the repo that the Copilot app uses for its session, which is perfect for those situations where the repo hosting the issue is separate from the one hosting the code.
无论哪种情况,你都可以更改 Copilot 应用用于其会话的仓库,这对于托管问题的仓库与托管代码的仓库分开的情况非常理想。
Creating issues and changing your repository scope
创建问题和更改仓库范围
Near the top of the pane, you’ll find two more helpful buttons.
在窗格顶部附近,你会找到另外两个有用的按钮。
The first is your repository filter, which is set to All Repositories by default. Remember, even “all” here is automatically scoped to the repos you’ve touched inside the Copilot app.
第一个是仓库筛选器,默认设置为“所有仓库”。记住,即使这里的“所有”也自动限定为你已在 Copilot 应用中接触过的仓库。
The second is New issue, which lets you create an issue right on the spot. For example, if you want to add a light mode toggle, select Create and you can kick off a brand-new session that starts with that issue as its context.
第二个是“新问题”,让你可以立即创建问题。例如,如果你想添加一个浅色模式切换,选择“创建”,你就可以启动一个以该问题为上下文的全新会话。
Take this with you
带着这些继续前进
The My work pane gives you a single, centralized place to manage all of your pull requests and issues. You can create custom views, search to find exactly what you need, and quickly assign tasks to Copilot, so you can stay organized and focus your attention where it’s needed most.
“我的工作”窗格为您提供了一个集中管理所有拉取请求和问题的单一位置。您可以创建自定义视图,搜索以精确找到所需内容,并快速将任务分配给 Copilot,从而保持组织有序,将注意力集中在最需要的地方。
Learn more by exploring the rest of the videos in this series, or by visiting gh.io/app. We’ll see you in the next post!
通过浏览本系列的其他视频或访问 gh.io/app 了解更多信息。我们下篇文章见!
The post GitHub Copilot app for Beginners: Managing your work appeared first on The GitHub Blog.
文章《GitHub Copilot 应用初学者指南:管理工作》最初出现在 GitHub 博客上。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力