Skip to main content

🤖 denopendabot

CI codecov denoland/deno

denopendabot keeps your Deno projects up-to-date.

Warning
Still under development. Many bugs might remain. Any breaking changes may be introduced on each Feature release.

🚀 Features

Update Deno modules automatically

import { assert } from "https://deno.land/std@0.158.0/testing/asserts.ts";
💡 deno.land/std@0.158.0/testing/mod.ts => 0.159.0

Denopendabot takes advantage of the core engine of udd, one of the most widely used module update libraries for Deno, which supports many registry domains.

Update any SemVer

- uses: denoland/setup-deno@v1
  with:
    deno-version: v1.26.0 # @denopendabot denoland/deno
💡 denoland/deno@v1.26.0 => v1.26.1

Denopendabot update any SemVer in the code specified by a comment of @denopendabot {owner}/{repo}.

Commits and pull requests

  • Commits are created for each updated module/repository individually
  • Each run of Denopendabot creates only one pull request

See an example pull request.

GitHub App

WIP

💡 Usage

GitHub Action

You need a GitHub access token authorized to run workflows. In most cases, secrets.GITHUB_TOKEN should work fine.

If you want to update workflow files (./github/workflows/*.yml), you also need a private access token with the workflow scope. In the examples below, we assume the token is added in repository secrets as GH_TOKEN.

name: Denopendabot
on:
  schedule:
    - cron: "0 0 * * *" # modify to your convinient time
jobs:
  update:
    name: Update
    runs-on: ubuntu-latest
    steps:
      - uses: hasundue/denopendabot@0.6.1 # @denopendabot hasundue/denopendabot
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          user-token: ${{ secrets.GH_TOKEN }}

See action.yml for other options.

Manual configuration

name: Denopendabot
on:
  schedule:
    - cron: "0 0 * * *" # modify to your convinient time
jobs:
  update:
    name: Update
    runs-on: ubuntu-latest
    steps:
      - name: Setup Deno
        uses: denoland/setup-deno@v1
        with:
          deno-version: v1.26.1 # @denopendabot denoland/deno
      - name: Run Denopendabot
        run: >
          deno run -q --allow-env --allow-net
          https://deno.land/x/denopendabot@0.6.1/main.ts
          ${{ github.repository }}
          --token ${{ secrets.GITHUB_TOKEN }}
          --user-token ${{ secrets.GH_TOKEN }}

GitHub App

WIP