Skip to content

Commit 2c71b66

Browse files
committed
Refactor GraphQL query in star reminder workflow to simplify parameters
1 parent 835aaa1 commit 2c71b66

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

.github/workflows/star-reminder.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
2626
// Use GraphQL to check if user starred the repo
2727
const query = `
28-
query($owner: String!, $repo: String!, $user: String!) {
28+
query($user: String!) {
2929
user(login: $user) {
3030
starredRepositories(first: 100, orderBy: {field: STARRED_AT, direction: DESC}) {
3131
nodes {
@@ -41,8 +41,6 @@ jobs:
4141
4242
try {
4343
const result = await github.graphql(query, {
44-
owner: owner,
45-
repo: repo,
4644
user: contributor
4745
});
4846

0 commit comments

Comments
 (0)