JasonEtco / create-an-issue

A GitHub Action for creating a new issue from a template file.
MIT License
267 stars 83 forks source link

Add Github Actions dependabot #148

Open james-s-w-clark opened 1 year ago

james-s-w-clark commented 1 year ago

Just like https://github.com/awslabs/smithy/blob/main/.github/dependabot.yml

james-s-w-clark commented 1 year ago

PRs shouldn't be frequent, but you can also have:

.github/workflows/auto-merge.yml

name: auto-merge

on:
  pull_request:
    branches:
      - main

jobs:
  automerge:
    runs-on: ubuntu-latest
    permissions:
      pull-requests: write
      contents: write
    if: ${{ github.actor == 'dependabot[bot]' }}
    steps:
      - uses: fastify/github-action-merge-dependabot@v3.0.2
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}

FWIW, if anyone tries to make an account to abuse this:

Username may only contain alphanumeric characters or single hyphens, and cannot begin or end with a hyphen. Username dependabot[bot] is not available.

So the only concern is adding and extra file to remove some tiny toil 😆