Compare commits
11
Commits
33bc2bff92
...
3136ac59d4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3136ac59d4 | ||
|
|
0f847f415d | ||
|
|
24541f665e | ||
|
|
501211f31f | ||
|
|
f49bd5ded2 | ||
|
|
47fa4db7e9 | ||
|
|
712b4a01d7 | ||
|
|
02935603d3 | ||
|
|
7b34f9c63c | ||
|
|
3f3bb53172 | ||
|
|
9f700b84b4 |
No files matched your search
@@ -1,6 +1,8 @@
|
||||
name: Dependabot Auto Merge
|
||||
|
||||
on:
|
||||
check_suite:
|
||||
types: [completed]
|
||||
workflow_run:
|
||||
workflows:
|
||||
- "Build and Push Image"
|
||||
@@ -60,29 +62,16 @@ jobs:
|
||||
};
|
||||
|
||||
const findCandidatePulls = async () => {
|
||||
const branch = context.payload.workflow_run?.head_branch;
|
||||
if (context.eventName === "workflow_run" && branch) {
|
||||
const { data: pulls } = await github.rest.pulls.list({
|
||||
owner,
|
||||
repo,
|
||||
state: "open",
|
||||
head: owner + ":" + branch,
|
||||
per_page: 10,
|
||||
});
|
||||
|
||||
return pulls.filter((pr) => pr.user?.login === "dependabot[bot]");
|
||||
}
|
||||
|
||||
const pulls = await github.paginate(github.rest.pulls.list, {
|
||||
owner,
|
||||
repo,
|
||||
state: "open",
|
||||
per_page: 100,
|
||||
});
|
||||
|
||||
|
||||
return pulls.filter((pr) => pr.user?.login === "dependabot[bot]");
|
||||
};
|
||||
|
||||
|
||||
const getMergeablePullRequest = async (pull_number) => {
|
||||
for (let attempt = 1; attempt <= 6; attempt += 1) {
|
||||
const { data: pr } = await github.rest.pulls.get({ owner, repo, pull_number });
|
||||
|
||||
@@ -3109,5 +3109,3 @@ This repository is licensed under the AGPL-3.0 License. See
|
||||
Made with ❤️ by [Xi Xu](https://xi-xu.me)
|
||||
|
||||
</div>
|
||||
|
||||
[](https://dartnode.com 'Powered by DartNode - Free VPS for Open Source')
|
||||
Generated
+564
-611
File diff suppressed because it is too large.
Load diff
+2
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"devDependencies": {
|
||||
"@cloudflare/vitest-pool-workers": "^0.20.2",
|
||||
"@cloudflare/vitest-pool-workers": "^0.21.3",
|
||||
"@cloudflare/workers-types": "^5.20260804.1",
|
||||
"@commitlint/cli": "^21.2.1",
|
||||
"@commitlint/config-conventional": "^21.2.0",
|
||||
@@ -9,7 +9,7 @@
|
||||
"@vitest/coverage-istanbul": "^4.1.10",
|
||||
"eslint": "^10.8.0",
|
||||
"eslint-config-prettier": "^10.1.8",
|
||||
"eslint-plugin-jsdoc": "^63.3.2",
|
||||
"eslint-plugin-jsdoc": "^64.1.0",
|
||||
"istanbul-lib-coverage": "^3.2.2",
|
||||
"istanbul-lib-report": "^3.0.1",
|
||||
"istanbul-reports": "^3.2.0",
|
||||
|
||||
Reference in new issue
Block a user