From 2d319bc1c8d88f39a73ed52640adf149455e5d88 Mon Sep 17 00:00:00 2001 From: zerolethanh Date: Wed, 4 Oct 2023 04:25:45 +0700 Subject: [PATCH 1/2] change api --- dist/bash.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/bash.sh b/dist/bash.sh index d9919a3..9b3d520 100755 --- a/dist/bash.sh +++ b/dist/bash.sh @@ -26,6 +26,6 @@ jq -s 'flatten' | jq '{ commits: .}' | \ curl -H "Accept-Charset: UTF-8" \ --silent \ --request POST \ ---location 'https://go-mentoroid-api.geniam.com/gh/commits2md' \ +--location 'https://goapi.classfunc.com/github/whatchanges' \ --header 'Content-Type: application/json' \ --data '@-' | jq ."$outType" -r \ No newline at end of file From ee9a22b797c52aabc5b08a698011fc581cc6d55a Mon Sep 17 00:00:00 2001 From: zerolethanh Date: Wed, 4 Oct 2023 04:28:04 +0700 Subject: [PATCH 2/2] fix readme; del unsued file --- README.md | 4 ++-- dist/what_changes.graphql | 32 -------------------------------- 2 files changed, 2 insertions(+), 34 deletions(-) delete mode 100644 dist/what_changes.graphql diff --git a/README.md b/README.md index 8576dd0..bfb7642 100644 --- a/README.md +++ b/README.md @@ -15,10 +15,10 @@ on: - "release/*" # or whatever branch you want to check steps: - uses: actions/checkout@v4 - - uses: classfunc/what-changes@v1 + - uses: ClassFunc/what-changes@v1 id: 'changes-table' with: - output-type: 'md' + output-type: 'md' # or 'html' or 'rows' - name: Print Output run: echo "${{ steps.changes-table.outputs.value }}" ``` diff --git a/dist/what_changes.graphql b/dist/what_changes.graphql deleted file mode 100644 index 47074dc..0000000 --- a/dist/what_changes.graphql +++ /dev/null @@ -1,32 +0,0 @@ -query ($owner: String!, $repo: String!, $pr: Int!, $endCursor: String) { - repository(owner: $owner, name: $repo) { - pullRequest(number: $pr) { - commits(first: 100, after: $endCursor) { - totalCount - pageInfo { - startCursor - endCursor - hasNextPage - hasPreviousPage - } - nodes { - commit { - authoredDate - authors(last: 2) { - nodes { - name - user { - login - } - } - } - committedDate - messageBody - messageHeadline - oid - } - } - } - } - } -} \ No newline at end of file