Skip to content

Commit

Permalink
[jenkins]: add dependabot for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Wayonb committed Sep 29, 2023
1 parent c426fd9 commit e3d7e68
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 2
updates:

- package-ecosystem: npm
directory: /
schedule:
interval: daily
target-branch: dev
groups:
all_dependencies:
update-types:
- 'minor'
- 'patch'
labels: [dependency]
versioning-strategy: increase
commit-message:
prefix: '[dependency]'
34 changes: 34 additions & 0 deletions .github/workflows/combine.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Combine PRs

on:
schedule:
- cron: '0 1 * * 1' # Monday at 01:00
workflow_dispatch: # allows you to manually trigger the workflow

# The minimum permissions required to run this Action
permissions:
contents: write
pull-requests: write
repository-projects: write
checks: read

jobs:
combine-prs:
runs-on: ubuntu-latest

steps:
- name: combine-prs
id: combine-prs
uses: github/[email protected]
with:
pr_title: '[dependency]: Combine dependabot PRs'
ci_required: false
labels: dependencies
pr_body_header: "# Combined Dependabot PRs ➡️📦⬅️"

- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --squash --subject "$PR_TITLE" "$PR_URL"
env:
PR_URL: ${{ steps.combine-prs.outputs.pr_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_TITLE: '[dependency]: Combine dependabot PRs'

0 comments on commit e3d7e68

Please sign in to comment.