devcontainers / devcontainers/cli

Add smoke test against Dependabot integration

未关闭
#732 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
feature-request
主要语言
TypeScript
星标
3k
派生
457
平均合并
13 小时 17 分钟
30 天内合并 PR
6

描述

Now that the CLI is coupled to the [dependabot integration ](https://containers.dev/guide/dependabot), it would be great to have an automated PR check to confirm changes are compatible. The `devcontainer outdated`, `devcontainer features info`, and `devcontainer upgrade` commands are all utilized in the [dependabot core implementation](https://github.com/dependabot/dependabot-core/pull/8445)

This should be fairly straightforward to create a test for, given that the project is highly containerized. The [dev container ecosystem container](https://github.com/dependabot/dependabot-core/pkgs/container/dependabot-updater-devcontainers) can be rebuilt using the dev build of the CLI:

The dependabot CLI can then be utilized to run a sanity check:

```
LOCAL_GITHUB_ACCESS_TOKEN="$LOCAL_GITHUB_ACCESS_TOKEN" dependabot \
--updater-image ghcr.io/dependabot/dependabot-updater-devcontainers \
update \
devcontainers \
joshspicer/versioning-project-two-configs \
-o /tmp/updates.yaml \
--directory /

updater | +-----------------------------------------------------------------------+
updater | | Changes to Dependabot Pull Requests |
updater | +---------+-------------------------------------------------------------+
updater | | created | ghcr.io/codspace/versioning/foo:1 ( from 1.1.0 to 2.11.1 ) |
updater | | created | ghcr.io/codspace/versioning/baz:1.0 ( from 1.0.0 to 2.0.0 ) |
updater | +---------+-------------------------------------------------------------+
```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。