-
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.
Merge pull request #347 from otaku0304/dev-to-master
Dev to master
- Loading branch information
Showing
7 changed files
with
2,623 additions
and
5,119 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,33 @@ | ||
name: Auto-merge Dependabot PRs | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
|
||
jobs: | ||
auto-merge: | ||
runs-on: ubuntu-latest | ||
if: github.actor == 'dependabot[bot]' # Trigger only for Dependabot PRs | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Get Dependabot compatibility score | ||
run: | | ||
pr_url="https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}" | ||
compatibility_score=$(curl -s "$pr_url" | jq -r '.head.repo.compatibility_score') | ||
echo "Compatibility score is $compatibility_score" | ||
- name: Check compatibility score and auto-merge | ||
run: | | ||
if [[ $compatibility_score == "100" ]]; then | ||
echo "Compatibility score is 100%, auto-merging..." | ||
gh pr merge ${{ github.event.pull_request.number }} --auto --squash --delete-branch | ||
else | ||
echo "Compatibility score is not 100%, skipping auto-merge." | ||
fi | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
@@ -1,6 +1,26 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "npm" | ||
- package-ecosystem: "npm" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" | ||
versioning-strategy: increase | ||
target-branch: "dev" | ||
groups: | ||
angular: | ||
patterns: | ||
- "@angular*" | ||
update-types: | ||
- "minor" | ||
- "patch" | ||
minor-and-patch: | ||
patterns: | ||
- "@angular*" | ||
update-types: | ||
- "patch" | ||
- "minor" | ||
ignore: | ||
- dependency-name: "@angular*" | ||
update-types: | ||
- "version-update:semver-major" | ||
|
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
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
Oops, something went wrong.