forked from symbol/catapult-rest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[jenkins]: add dependabot for testing
- Loading branch information
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |