-
Notifications
You must be signed in to change notification settings - Fork 4
transfer-fix #484
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
Merged
Merged
transfer-fix #484
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b00918b
update dependabot configuration for weekly dependency updates and add…
jirhiker 14cf1be
Update .github/dependabot.yml
jirhiker 161d907
Update .github/workflows/dependabot_automerge.yml
jirhiker dcf722f
enhance auto-merge workflow to prevent duplicate approvals by the bot
jirhiker a93f4b6
Update .github/workflows/dependabot_automerge.yml
jirhiker 5794ffe
Update .github/dependabot.yml
jirhiker File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,58 @@ | ||
| name: Dependabot auto-merge | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, reopened, synchronize, ready_for_review] | ||
jirhiker marked this conversation as resolved.
Show resolved
Hide resolved
jirhiker marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| automerge: | ||
| if: github.actor == 'dependabot[bot]' && github.event.pull_request.user.login == 'dependabot[bot]' | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Fetch Dependabot metadata | ||
| id: metadata | ||
| uses: dependabot/fetch-metadata@v2 | ||
jirhiker marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| with: | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| # Auto-approve (only matters if your branch protection requires reviews) | ||
| - name: Approve PR | ||
| if: steps.metadata.outputs.update-type != 'version-update:semver-major' | ||
jirhiker marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| uses: actions/github-script@v7 | ||
jirhiker marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| with: | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
jirhiker marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| script: | | ||
| const { data: reviews } = await github.rest.pulls.listReviews({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| pull_number: context.payload.pull_request.number, | ||
| }); | ||
|
|
||
| const alreadyApprovedByBot = reviews.some( | ||
| (review) => | ||
| review.state === "APPROVED" && | ||
| review.user?.login === "github-actions[bot]" | ||
| ); | ||
|
|
||
| if (!alreadyApprovedByBot) { | ||
| await github.rest.pulls.createReview({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| pull_number: context.payload.pull_request.number, | ||
| event: "APPROVE", | ||
| }); | ||
| } | ||
|
|
||
| # Enable GitHub auto-merge; it will merge once required checks (your Test Suite) are green | ||
| - name: Enable auto-merge (squash) | ||
| if: steps.metadata.outputs.update-type != 'version-update:semver-major' | ||
| uses: peter-evans/enable-pull-request-automerge@v3 | ||
jirhiker marked this conversation as resolved.
Show resolved
Hide resolved
jirhiker marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| pull-request-number: ${{ github.event.pull_request.number }} | ||
| merge-method: squash | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.