Skip to content

Conversation

@matttrach
Copy link
Contributor

This will add the k3s-io/k3s-dev group to dependabot PRs.
This will add the kind/dependabot label to dependabot PRs.

This contributes to k3s-io/k3s#7398
This contributes to k3s-io/k3s#7350

I tested this by running the dependabot cli locally:

Test Scenario
{
  "input": {
    "job": {
      "package-manager": "docker",
      "allowed-updates": [
        {
          "update-type": "all"
        }
      ],
      "ignore-conditions": [
        {
          "dependency-name": "golang",
          "source": "/root/dependabot_test",
          "version-requirement": ">1.20-alpine3.17"
        }
      ],
      "source": {
        "provider": "github",
        "repo": "matttrach/helm-controller",
        "directory": "/",
        "commit": "a14e7f478f924eeb79df9e8e3c102962dab55091"
      },
      "credentials-metadata": [
        {
          "host": "github.com",
          "type": "git_source"
        }
      ]
    },
    "credentials": [
      {
        "host": "github.com",
        "password": "$LOCAL_GITHUB_ACCESS_TOKEN",
        "type": "git_source",
        "username": "x-access-token"
      }
    ]
  },
  "output": [
    {
      "type": "update_dependency_list",
      "expect": {
        "data": {
          "dependencies": [
            {
              "name": "golang",
              "requirements": [
                {
                  "file": "Dockerfile.dapper",
                  "groups": [],
                  "requirement": null,
                  "source": {
                    "tag": "1.19-alpine3.17"
                  }
                }
              ],
              "version": "1.19-alpine3.17"
            }
          ],
          "dependency_files": [
            "/Dockerfile.dapper",
            "/kustomization.yaml"
          ]
        }
      }
    },
    {
      "type": "create_pull_request",
      "expect": {
        "data": {
          "base-commit-sha": "a14e7f478f924eeb79df9e8e3c102962dab55091",
          "dependencies": [
            {
              "name": "golang",
              "previous-requirements": [
                {
                  "file": "Dockerfile.dapper",
                  "groups": [],
                  "requirement": null,
                  "source": {
                    "tag": "1.19-alpine3.17"
                  }
                }
              ],
              "previous-version": "1.19-alpine3.17",
              "requirements": [
                {
                  "file": "Dockerfile.dapper",
                  "groups": [],
                  "requirement": null,
                  "source": {
                    "tag": "1.20-alpine3.17"
                  }
                }
              ],
              "version": "1.20-alpine3.17"
            }
          ],
          "updated-dependency-files": [
            {
              "content_encoding": "utf-8",
              "deleted": false,
              "directory": "/",
              "name": "Dockerfile.dapper",
              "operation": "update",
              "support_file": false,
              "type": "file"
            }
          ],
          "pr-title": "Bump golang from 1.19-alpine3.17 to 1.20-alpine3.17",
          "pr-body": "Bumps golang from 1.19-alpine3.17 to 1.20-alpine3.17.\n",
          "commit-message": "Bump golang from 1.19-alpine3.17 to 1.20-alpine3.17\n\nBumps golang from 1.19-alpine3.17 to 1.20-alpine3.17."
        }
      }
    },
    {
      "type": "mark_as_processed",
      "expect": {
        "data": {
          "base-commit-sha": "a14e7f478f924eeb79df9e8e3c102962dab55091"
        }
      }
    }
  ]
}

Signed-off-by: Matt Trachier <matttrach@gmail.com>
@matttrach matttrach requested review from a team and macedogm May 4, 2023 21:02
@matttrach matttrach self-assigned this May 4, 2023
@matttrach matttrach merged commit 4b6cb54 into k3s-io:master May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants