You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const body = `## Outdated CI environment\n\nThis pull request was created because the CI environment uses frameworks that are not up-to-date.\nYou can see which frameworks need to be upgraded in the [logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}).\n\n*⚠️ Use \`Squash and merge\` to merge this pull request.*`;
52
54
53
-
This pull request was created because the CI environment uses frameworks that are not up-to-date.
54
-
You can see which frameworks need to be upgraded in the [logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}).
55
+
// Check for existing open PR
56
+
const pulls = await github.rest.pulls.list({
57
+
owner,
58
+
repo,
59
+
head: `${owner}:${head}`,
60
+
state: 'open',
61
+
});
55
62
56
-
*⚠️ Use `Squash and merge` to merge this pull request.*
const body = `## Release\n\nThis pull request was created automatically according to the release cycle.\n\n> [!WARNING]\n> Only use \`Merge Commit\` to merge this pull request. Do not use \`Rebase and Merge\` or \`Squash and Merge\`.`;
39
41
40
-
This pull request was created automatically according to the release cycle.
41
-
42
-
> [!WARNING]
43
-
> Only use `Merge Commit` to merge this pull request. Do not use `Rebase and Merge` or `Squash and Merge`.
0 commit comments