fix: improve error handling and logging for recording interval estimation feat: add auto-generation prefix extraction for well IDs with new regex support #87
Workflow file for this run
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
| name: Dependabot auto-merge | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize, ready_for_review] | |
| 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 | |
| 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' | |
| uses: actions/github-script@v8 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| 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 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| pull-request-number: ${{ github.event.pull_request.number }} | |
| merge-method: squash |