Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add auto approve #85

Merged
merged 1 commit into from
Dec 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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"
14 changes: 7 additions & 7 deletions .github/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
- '*'
- "*"
4 changes: 2 additions & 2 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: actionlint
on:
pull_request:
paths:
- '.github/actions/**'
- '.github/workflows/**'
- ".github/actions/**"
- ".github/workflows/**"

jobs:
actionlint:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bump-schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Bump version (cron)

on:
schedule:
- cron: '15 3 * * TUE'
- cron: "15 3 * * TUE"

jobs:
scheduled_bump:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}"
2 changes: 1 addition & 1 deletion .github/workflows/cspell.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Check spelling'
name: "Check spelling"
on:
pull_request:

Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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}}
17 changes: 8 additions & 9 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"