fix(ci): evaluate all Dependabot pull requests
This commit is contained in:
1 parent
529684755e
commit
4151500bf2
1 file changed
-13
@@ -53,19 +53,6 @@ jobs:
|
|||||||
};
|
};
|
||||||
|
|
||||||
const findCandidatePulls = async () => {
|
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, {
|
const pulls = await github.paginate(github.rest.pulls.list, {
|
||||||
owner,
|
owner,
|
||||||
repo,
|
repo,
|
||||||
|
|||||||
Reference in new issue
Block a user