-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c1b150
commit c62a2fa
Showing
4 changed files
with
58 additions
and
2 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, reopened] | ||
|
||
jobs: | ||
auto-merge: | ||
runs-on: ubuntu-latest | ||
if: github.actor == 'dependabot[bot]' | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
steps: | ||
- name: Enable auto-merge for Dependabot PRs | ||
run: | | ||
# Wait for all checks to complete | ||
gh pr checkout "$PR_URL" | ||
while true; do | ||
checks_status=$(gh pr checks "$PR_URL" --json conclusion -q '.[].conclusion' | uniq) | ||
if [[ "$checks_status" == "success" ]]; then | ||
gh pr merge --auto --merge "$PR_URL" | ||
break | ||
elif [[ "$checks_status" == *"failure"* ]] || [[ "$checks_status" == *"cancelled"* ]]; then | ||
echo "Checks failed or were cancelled. Not merging." | ||
exit 1 | ||
fi | ||
echo "Waiting for checks to complete..." | ||
sleep 30 | ||
done | ||
env: | ||
PR_URL: ${{ github.event.pull_request.html_url }} | ||
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
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,22 @@ | ||
name: PR Review | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
|
||
permissions: | ||
pull-requests: write | ||
contents: write | ||
actions: write | ||
|
||
jobs: | ||
review: | ||
runs-on: ["self-hosted", "telnyx-2xsmall"] | ||
|
||
steps: | ||
- name: PR Review | ||
uses: team-telnyx/reviewpr-internal@main | ||
with: | ||
telnyx_api_key: ${{ secrets.TELNYXAI_TOKEN }} | ||
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} | ||
openai_api_key: ${{ secrets.OPENAI_API_KEY }} |
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