diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 00000000..364d4e80 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,7 @@ +# Code owners file. +# This file controls who is tagged for review for any given pull request. +# +# For syntax help see: +# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax + +.github/auto-approve.yml @googleapis/github-automation diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 2594c236..f89594c4 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -10,15 +10,24 @@ updates: directory: "/" schedule: interval: "weekly" + commit-message: + prefix: chore + include: scope # Maintain dependencies for build tools - package-ecosystem: "gomod" directory: "/tools" schedule: interval: "weekly" + commit-message: + prefix: chore + include: scope # Maintain dependencies for GitHub Actions - package-ecosystem: "github-actions" directory: "/" schedule: interval: "weekly" + commit-message: + prefix: chore + include: scope diff --git a/.github/release-please.yml b/.github/release-please.yml new file mode 100644 index 00000000..e1bcc3c9 --- /dev/null +++ b/.github/release-please.yml @@ -0,0 +1,2 @@ +handleGHRelease: true +releaseType: go diff --git a/.github/workflows/generate_changelog.yml b/.github/workflows/generate_changelog.yml deleted file mode 100644 index e9e01473..00000000 --- a/.github/workflows/generate_changelog.yml +++ /dev/null @@ -1,50 +0,0 @@ -name: Generate CHANGELOG - -on: - - pull_request: - branches: - - master - types: [ closed ] - - release: - types: [ published ] - - issues: - types: [ closed, edited ] - - workflow_dispatch: - -jobs: - generate_changelog: - runs-on: ubuntu-latest - name: Generate changelog for main branch - steps: - - uses: actions/checkout@v3 - with: - token: ${{ secrets.BOT_TOKEN }} - - - name: Import GPG key - id: import_gpg_key - uses: crazy-max/ghaction-import-gpg@v5 - with: - git_commit_gpgsign: true - git_user_signingkey: true - gpg_private_key: ${{ secrets.BOT_GPG_PRIVATE_KEY }} - passphrase: ${{ secrets.BOT_GPG_PASSPHRASE }} - - - name: Generate changelog - uses: charmixer/auto-changelog-action@v1 - with: - token: ${{ secrets.BOT_TOKEN }} - release_branch: main - - - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: Update CHANGELOG.md - branch: main - file_pattern: CHANGELOG.md - push_options: --force - commit_author: ${{ steps.import_gpg_key.outputs.name }} <${{ steps.import_gpg_key.outputs.email }}> - commit_user_email: ${{ steps.import_gpg_key.outputs.email }} - commit_user_name: ${{ steps.import_gpg_key.outputs.name }} diff --git a/.github/workflows/release.yml b/.github/workflows/publish.yml similarity index 100% rename from .github/workflows/release.yml rename to .github/workflows/publish.yml diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index a89d4bf2..292aaf35 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -8,6 +8,3 @@ jobs: runs-on: ubuntu-latest steps: - uses: google-github-actions/release-please-action@v3 - with: - release-type: go - package-name: release-please-action