Skip to content

Commit 8135ca7

Browse files
author
Benedikt Volkel
committed
[Workflow] Only request 2 commits max
1 parent bcbd4f5 commit 8135ca7

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎.github/workflows/publish_requests.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
mergeCommit {
7171
oid
7272
}
73-
commits(first: 10) {
73+
commits(first: 2) {
7474
nodes {
7575
commit {
7676
oid
@@ -103,7 +103,7 @@ jobs:
103103
mergeCommit {
104104
oid
105105
}
106-
commits(first: 10) {
106+
commits(first: 2) {
107107
nodes {
108108
commit {
109109
oid
@@ -136,7 +136,7 @@ jobs:
136136
mergeCommit {
137137
oid
138138
}
139-
commits(first: 10) {
139+
commits(first: 2) {
140140
nodes {
141141
commit {
142142
oid
@@ -169,7 +169,7 @@ jobs:
169169
mergeCommit {
170170
oid
171171
}
172-
commits(first: 10) {
172+
commits(first: 2) {
173173
nodes {
174174
commit {
175175
oid
@@ -274,7 +274,7 @@ jobs:
274274
time_geneva = time_geneva.astimezone(to_zone).strftime('%Y-%m-%d %H:%M:%S')
275275
# we fetch at most 10 commits, make that clear
276276
n_commits = len(pr["commits"]["nodes"])
277-
if n_commits >= 10:
277+
if n_commits >= 2:
278278
n_commits = f'at least {n_commits}'
279279
f.write(f'| {pr["author"]["login"]} | {repo_name} | [PR]({pr["url"]}) | {pr["title"]} | {time_geneva} | {n_commits} | {pr["mergeCommit"]["oid"] if pr["mergeCommit"] else "-"} |\n')
280280

0 commit comments

Comments
 (0)