diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 8da4a20..2294c55 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,14 +1,14 @@ version: 2 updates: -- package-ecosystem: composer - directory: '/' - schedule: - interval: "daily" -- package-ecosystem: docker - directory: '/' - schedule: - interval: "daily" -- package-ecosystem: github-actions - directory: '/' - schedule: - interval: "daily" + - package-ecosystem: composer + directory: "/" + schedule: + interval: "daily" + - package-ecosystem: docker + directory: "/" + schedule: + interval: "daily" + - package-ecosystem: github-actions + directory: "/" + schedule: + interval: "daily" diff --git a/.github/release.yml b/.github/release.yml index 53400a4..f65ff95 100644 --- a/.github/release.yml +++ b/.github/release.yml @@ -7,15 +7,15 @@ changelog: authors: - octocat categories: - - title: ':bug: Type: Bug' + - title: ":bug: Type: Bug" labels: - - 'bug' - - title: ':memo: Documentation' + - "bug" + - title: ":memo: Documentation" labels: - - 'documentation' - - title: ':rocket: Type: Feature' + - "documentation" + - title: ":rocket: Type: Feature" labels: - - 'enhancement' + - "enhancement" - title: Other Changes labels: - - '*' + - "*" diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml index a343b3b..2d9fa63 100644 --- a/.github/workflows/actionlint.yml +++ b/.github/workflows/actionlint.yml @@ -3,8 +3,8 @@ name: actionlint on: pull_request: paths: - - '.github/actions/**' - - '.github/workflows/**' + - ".github/actions/**" + - ".github/workflows/**" jobs: actionlint: diff --git a/.github/workflows/bump-schedule.yml b/.github/workflows/bump-schedule.yml index 22a9440..a4bfe1d 100644 --- a/.github/workflows/bump-schedule.yml +++ b/.github/workflows/bump-schedule.yml @@ -2,7 +2,7 @@ name: Bump version (cron) on: schedule: - - cron: '15 3 * * TUE' + - cron: "15 3 * * TUE" jobs: scheduled_bump: diff --git a/.github/workflows/bump.yml b/.github/workflows/bump.yml index 8a893c3..589e70b 100644 --- a/.github/workflows/bump.yml +++ b/.github/workflows/bump.yml @@ -4,9 +4,9 @@ on: workflow_dispatch: inputs: semver: - description: 'Which SemVer' + description: "Which SemVer" required: true - default: 'patch' + default: "patch" type: choice options: - major @@ -62,10 +62,10 @@ jobs: with: base: main branch: main-${{ steps.get_version.outputs.NEW_VERSION }} - commit-message: 'bump: v${{ steps.get_version.outputs.NEW_VERSION }}' + commit-message: "bump: v${{ steps.get_version.outputs.NEW_VERSION }}" body: ${{ steps.get_release_note.outputs.result }} - title: 'chore: bump v${{ steps.get_version.outputs.NEW_VERSION }}' + title: "chore: bump v${{ steps.get_version.outputs.NEW_VERSION }}" labels: | documentation draft: true - milestone: 'v${{ steps.get_version.outputs.NEW_VERSION }}' + milestone: "v${{ steps.get_version.outputs.NEW_VERSION }}" diff --git a/.github/workflows/cspell.yml b/.github/workflows/cspell.yml index 0d3d2dc..71feda2 100644 --- a/.github/workflows/cspell.yml +++ b/.github/workflows/cspell.yml @@ -1,4 +1,4 @@ -name: 'Check spelling' +name: "Check spelling" on: pull_request: diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml new file mode 100644 index 0000000..8187a9a --- /dev/null +++ b/.github/workflows/dependabot.yml @@ -0,0 +1,23 @@ +name: Dependabot auto-merge +on: pull_request + +permissions: + contents: write + pull-requests: write + +jobs: + dependabot: + runs-on: ubuntu-latest + if: github.actor == 'dependabot[bot]' + steps: + - name: Dependabot metadata + id: metadata + uses: dependabot/fetch-metadata@v1 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + - name: Enable auto-merge for Dependabot PRs + if: contains(steps.metadata.outputs.dependency-names, 'my-dependency') && steps.metadata.outputs.update-type == 'version-update:semver-patch' + run: gh pr merge --auto --merge "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index a44616c..c55b054 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -2,18 +2,17 @@ name: Mark stale issues and pull requests on: schedule: - - cron: "30 1 * * *" + - cron: "30 1 * * *" jobs: stale: - runs-on: ubuntu-latest steps: - - uses: actions/stale@v8 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: 'Stale issue message' - stale-pr-message: 'Stale pull request message' - stale-issue-label: 'no-issue-activity' - stale-pr-label: 'no-pr-activity' + - uses: actions/stale@v8 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: "Stale issue message" + stale-pr-message: "Stale pull request message" + stale-issue-label: "no-issue-activity" + stale-pr-label: "no-pr-activity"