Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion docs/en/guides/repositories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ The issue body holds the task's description and a link back to the task. Issues

Fields only Vectana has (estimated hours, points, due date, dependencies, progress) are not sent.

With several repositories linked, see [Several repositories](#multiple) for where issues go.

### GitHub / GitLab → Vectana

Creating or changing an issue updates its task:
Expand All @@ -96,14 +98,32 @@ Write `Closes #12`, `Fixes #12` or `Resolves #12` in a pull request's (merge req

A sprint created in Vectana creates a milestone of the same name (or uses an existing one with that name). Name, end date, goal and closing the sprint follow.

Milestones created on GitHub or GitLab become planned sprints. Close sprints in Vectana, since that freezes the points and returns unfinished tasks to the backlog.
With several repositories linked, the milestone is created in the first linked repository. When an issue of another repository joins the sprint, that repository gets a milestone of the same name too, and changes reach every one of them.

Milestones created on GitHub or GitLab become planned sprints. Milestones of the same name in several repositories become one sprint. Close sprints in Vectana, since that freezes the points and returns unfinished tasks to the backlog.

## Issues for security tasks [#security]

When a [security task](/guides/tasks#security) is created automatically, an issue labeled `security` is opened. When every vulnerability is resolved and the task completes itself, the issue is closed.

The issue opens in the repository whose lockfile lists the package (or runtime). See [Several repositories](#multiple).

To keep them out of the repository, turn off **Open issues for security tasks created automatically** on the link.

## Several repositories [#multiple]

A project can link several repositories (say, a frontend and a backend), GitHub and GitLab mixed. Lockfile import, webhooks and issue sync run per repository.

A new task's issue goes to:

| Task | Repository |
| --- | --- |
| A repository was picked | That repository |
| Security task | The repository the package (or runtime) was imported from. If that repository does not open issues, or the package was entered by hand, as in the next row |
| Anything else | The first linked repository that opens issues |

Pick the repository under **Issue repository** in the task dialog. The field shows only when two or more repositories open issues and the task has no issue yet. Picking one for a task made before linking opens its issue right away. Once the issue exists, its repository is fixed.

## Lockfiles and SBOMs [#files]

On every push to the default branch and once a day, the repository's lockfiles and SBOMs are imported as [packages](/guides/packages). **Import now** imports at any time.
Expand Down
22 changes: 21 additions & 1 deletion docs/guides/repositories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ Issue の本文には、タスクの説明と Vectana のタスクへのリン

見積時間・ポイント・期限・依存関係・進み具合など、Vectana だけの項目は Issue には送りません。

リポジトリを複数連携している場合の起票先は、[複数のリポジトリ](#multiple)を参照してください。

### GitHub / GitLab → Vectana

Issue を作ったり変えたりすると、タスクに反映されます。
Expand All @@ -96,14 +98,32 @@ Issue を作ったり変えたりすると、タスクに反映されます。

Vectana でスプリントを作ると、同じ名前のマイルストーンが作られます(すでに同じ名前のマイルストーンがあればそれを使います)。名前・終了日・ゴールの変更や、スプリントの完了も反映されます。

GitHub・GitLab で作ったマイルストーンは、計画中のスプリントになります。スプリントの完了は、ポイントの確定や未完了タスクの戻しを伴うので、Vectana で行ってください。
リポジトリを複数連携している場合、マイルストーンは最初に連携したリポジトリに作られます。ほかのリポジトリの Issue がスプリントに入ると、そのリポジトリにも同じ名前のマイルストーンが作られ、以後はすべてのマイルストーンに変更が反映されます。

GitHub・GitLab で作ったマイルストーンは、計画中のスプリントになります。複数のリポジトリにある同じ名前のマイルストーンは、1 つのスプリントにまとまります。スプリントの完了は、ポイントの確定や未完了タスクの戻しを伴うので、Vectana で行ってください。

## セキュリティ対応タスクの Issue [#security]

[セキュリティ対応タスク](/guides/tasks#security)が自動で作られると、Issue(ラベル `security`)も作られます。脆弱性がすべて解消してタスクが自動で完了すると、Issue もクローズされます。

Issue は、そのパッケージ(またはランタイム)の lockfile があるリポジトリに作られます。詳しくは[複数のリポジトリ](#multiple)を参照してください。

Issue にしたくない場合は、連携の画面で「自動作成されたセキュリティ対応タスクを Issue にする」をオフにします。

## 複数のリポジトリ [#multiple]

1 つのプロジェクトに、複数のリポジトリを連携できます(フロントエンドとバックエンドを別のリポジトリで管理している場合など)。GitHub と GitLab を混ぜてもかまいません。lockfile の取り込み、Webhook、Issue の同期は、リポジトリごとに動きます。

新しいタスクの Issue は、次の順で起票先を決めます。

| タスク | 起票先 |
| --- | --- |
| 起票先を選んだタスク | 選んだリポジトリ |
| セキュリティ対応タスク | パッケージ(ランタイム)を取り込んだリポジトリ。そのリポジトリが Issue を作らない設定のときや、手で登録したパッケージのときは、次の行と同じ |
| そのほか | 最初に連携したリポジトリ(Issue を作る設定のもの) |

起票先は、タスクの画面の「Issueを作るリポジトリ」で選べます。この項目は、Issue を作るリポジトリが 2 つ以上あり、まだ Issue がないタスクにだけ表示されます。連携より前からあるタスクも、起票先を選ぶとその時点で Issue が作られます。Issue ができたあとは、起票先は変えられません。

## lockfile・SBOM の取り込み [#files]

既定ブランチへの push のたびと、毎日 1 回、リポジトリにある lockfile・SBOM を[パッケージ](/guides/packages)として取り込みます。「今すぐ取り込む」でいつでも取り込めます。
Expand Down
Loading