Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/pull.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,12 @@ export const openPullRequestWithWorkspaceChange = async (
} else {
method = 'MERGE'
}
await enablePullRequestAutoMerge(pull.node_id, method, octokit)
core.info(`Enabled auto-merge for pull request: ${pull.html_url}`)
try {
await enablePullRequestAutoMerge(pull.node_id, method, octokit)
core.info(`Enabled auto-merge for pull request: ${pull.html_url}`)
} catch (error) {
core.warning(`Failed to enable auto-merge: ${error}`)
}
}
return pull
}
Expand Down
3 changes: 3 additions & 0 deletions tasks/move-renovate-config/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Move renovate.json to repository root

This moves `.github/renovate.json` to the repository root.
20 changes: 20 additions & 0 deletions tasks/move-renovate-config/precondition.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash
set -eux -o pipefail

if [ ! -f .github/renovate.json ]; then
echo ".github/renovate.json does not exist. Skipping."
exit 99
fi

if [ -f renovate.json ]; then
echo "renovate.json already exists in the repository root. Skipping."
exit 99
fi

mv .github/renovate.json .

# Format the file
pnpm i
pnpm run check

exit 109 # Skip the coding agent
49 changes: 49 additions & 0 deletions tasks/move-renovate-config/repositories
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# gh search code --limit=100 --owner=int128 --json=repository --jq='.[].repository.nameWithOwner' --filename=biome.json

int128/actions-tanpopo

int128/datadog-actions-metrics
int128/hello-slack-app
int128/trace-workflows-action
int128/kaniko-action
int128/checks-action
int128/list-organization-teams-action
int128/bntp
int128/docker-build-cache-config-action
int128/hide-comment-action
int128/wait-for-workflows-action
int128/list-associated-pull-requests-action
int128/workflow-run-summary-action
int128/delete-deployments-action
int128/renovate-merge-bot
int128/create-commit-action
int128/wait-for-deployment-action
int128/stale-branch-action
int128/typescript-action-with-graphql-codegen
int128/typescript-actions-monorepo
int128/wait-for-docker-image-action
int128/github-api-rate-limit-metrics-action
int128/upload-artifact-wiki-action
int128/opentelemetry-collector-action
int128/find-codeowners-action
int128/list-matched-workflows-action
int128/docker-build-metadata-action
int128/diff-action
int128/create-ecr-repository-action
int128/kustomize-action
int128/comment-action
int128/docker-manifest-create-action
int128/typescript-action
int128/release-typescript-action
int128/update-generated-files-action
int128/send-datadog-action
int128/deployment-action
int128/group-pull-request-action
int128/deploy-lambda-action
int128/parallel-test-action
int128/glob-changed-files-action
int128/issues-action
int128/update-homebrew-formula-action
int128/rerun-workflows-action
int128/label-action
int128/find-ecr-repository-action
3 changes: 3 additions & 0 deletions tasks/move-renovate-config/task.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"enablePullRequestAutoMerge": true
}
Loading