Skip to content

Commit

Permalink
DX-208 <remove require option> (#108)
Browse files Browse the repository at this point in the history
* DX-208 <remove require option>

* formatting fix

---------

Co-authored-by: Gerson Trujillo <[email protected]>
  • Loading branch information
NamanNacedo and GersonTrj authored Apr 23, 2024
1 parent 3b050f9 commit 11650af
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 35 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/automerge-dependabot-with-codeowners.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Auto-merge dependabot PR's

on:
on:
workflow_call:
secrets:
github-token:
Expand All @@ -19,22 +19,22 @@ jobs:
if: ${{ github.actor == 'dependabot[bot]' }}

steps:
- name: Dependabot metadata
id: dependabot-metadata
uses: dependabot/[email protected]
with:
github-token: "${{ secrets.github-token }}"
- name: Check PR checks
run: |
- name: Dependabot metadata
id: dependabot-metadata
uses: dependabot/[email protected]
with:
github-token: "${{ secrets.github-token }}"

- name: Check PR checks
run: |
PR_URL="${{ github.event.pull_request.html_url }}"
gh pr checks $PR_URL --required --watch --fail-fast > /dev/null
env:
GITHUB_TOKEN: ${{ secrets.github-token }}
gh pr checks $PR_URL --watch --fail-fast > /dev/null
env:
GITHUB_TOKEN: ${{ secrets.github-token }}

- name: Enable auto-merge for Dependabot PRs
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }}
run: gh pr merge --auto --squash --admin "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.github-token }}
- name: Enable auto-merge for Dependabot PRs
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }}
run: gh pr merge --auto --squash --admin "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.github-token }}
34 changes: 17 additions & 17 deletions .github/workflows/automerge-dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Auto-merge dependabot PR's

on:
on:
workflow_call:
secrets:
github-token:
Expand All @@ -19,21 +19,21 @@ jobs:
if: ${{ github.actor == 'dependabot[bot]' }}

steps:
- name: Dependabot metadata
id: dependabot-metadata
uses: dependabot/[email protected]
with:
github-token: "${{ secrets.github-token }}"
- name: Dependabot metadata
id: dependabot-metadata
uses: dependabot/[email protected]
with:
github-token: "${{ secrets.github-token }}"

- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.github-token }}
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.github-token }}

- name: Enable auto-merge for Dependabot PRs
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }}
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.github-token }}
- name: Enable auto-merge for Dependabot PRs
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' && github.event.pull_request.check_suite.conclusion == 'success' }}
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.github-token }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -348,3 +348,6 @@ MigrationBackup/

# Ionide (cross platform F# VS Code tools) working folder
.ionide/

# intellij settings folder
.idea/

0 comments on commit 11650af

Please sign in to comment.