diff --git a/src/pull.ts b/src/pull.ts index 9bf19d1a..5e4bd699 100644 --- a/src/pull.ts +++ b/src/pull.ts @@ -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 } diff --git a/tasks/move-renovate-config/README.md b/tasks/move-renovate-config/README.md new file mode 100644 index 00000000..78978643 --- /dev/null +++ b/tasks/move-renovate-config/README.md @@ -0,0 +1,3 @@ +# Move renovate.json to repository root + +This moves `.github/renovate.json` to the repository root. diff --git a/tasks/move-renovate-config/precondition.sh b/tasks/move-renovate-config/precondition.sh new file mode 100644 index 00000000..e3d284a9 --- /dev/null +++ b/tasks/move-renovate-config/precondition.sh @@ -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 diff --git a/tasks/move-renovate-config/repositories b/tasks/move-renovate-config/repositories new file mode 100644 index 00000000..f522d0ed --- /dev/null +++ b/tasks/move-renovate-config/repositories @@ -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 diff --git a/tasks/move-renovate-config/task.json b/tasks/move-renovate-config/task.json new file mode 100644 index 00000000..c744e555 --- /dev/null +++ b/tasks/move-renovate-config/task.json @@ -0,0 +1,3 @@ +{ + "enablePullRequestAutoMerge": true +}