Skip to content
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
9 changes: 8 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
* @wpengine/mario
* @wpengine/mario

# Dependency files: both the bot and the team are code owners for these paths
package.json @pe-domino-bot @wpengine/mario
package-lock.json @pe-domino-bot @wpengine/mario
Dockerfile @pe-domino-bot @wpengine/mario
.github/workflows/*.yml @pe-domino-bot @wpengine/mario
.github/workflows/*.yaml @pe-domino-bot @wpengine/mario
18 changes: 14 additions & 4 deletions .github/dependabot.yml
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we include the github-actions package ecosystem for updates as well? Since dependabot/fetch-metadata is pinned by SHA, it won't receive updates unless something bumps it.

Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,23 @@ updates:
directory: "/"
schedule:
interval: "daily"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]
open-pull-requests-limit: 10
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]
open-pull-requests-limit: 10
reviewers:
- "wpengine/mario"
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]
open-pull-requests-limit: 10
reviewers:
- "wpengine/mario"
29 changes: 29 additions & 0 deletions .github/workflows/dependabot-automation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Dependabot Automation
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@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3.1.0
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes for the other repo used dependabot/fetch-metadata@v3.1.0. Using the SHA like you have here is probably the safer choice between the two, but I wanted to note the difference.

with:
github-token: "${{secrets.GITHUB_TOKEN}}"
- name: Approve PR
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.BOT_APPROVAL_TOKEN}}
run: gh pr review --approve "$PR_URL"
- name: Enable auto-merge
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.BOT_APPROVAL_TOKEN}}
run: gh pr merge --auto --squash "$PR_URL"
Loading