forked from Shinonome/dots-hyprland
Use DISCUSSION_NODE_ID
This commit is contained in:
@@ -15,22 +15,23 @@ jobs:
|
|||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# https://docs.github.com/en/graphql/reference/mutations#adddiscussioncomment
|
# https://docs.github.com/en/graphql/reference/mutations#adddiscussioncomment
|
||||||
run: |
|
run: |
|
||||||
curl -X POST \
|
DISCUSSION_NODE_ID=$(curl -X POST \
|
||||||
-H "Authorization: Bearer $GH_TOKEN" \
|
-H "Authorization: Bearer $GH_TOKEN" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{"query": "query { repository(owner: \"end-4\", name: \"dots-hyprland\") { discussion(number: 2140) { id } } }"}' \
|
-d '{"query": "query { repository(owner: \"end-4\", name: \"dots-hyprland\") { discussion(number: 2140) { id } } }"}' \
|
||||||
https://api.github.com/graphql
|
https://api.github.com/graphql | \
|
||||||
# gh api graphql -f query='
|
jq -r '.data.repository.discussion.id')
|
||||||
# mutation {
|
gh api graphql -f query='
|
||||||
# addDiscussionComment(input:{
|
mutation {
|
||||||
# discussionId: "2140",
|
addDiscussionComment(input:{
|
||||||
# body: "dist-arch/ directory has changed in commit ${{ github.sha }} by ${{ github.actor }}.",
|
discussionId: "$DISCUSSION_NODE_ID",
|
||||||
# }) {
|
body: "dist-arch/ directory has changed in commit ${{ github.sha }} by ${{ github.actor }}.",
|
||||||
# clientMutationId
|
}) {
|
||||||
# comment {
|
clientMutationId
|
||||||
# id
|
comment {
|
||||||
# body
|
id
|
||||||
# }
|
body
|
||||||
# }
|
}
|
||||||
# }
|
}
|
||||||
# '
|
}
|
||||||
|
'
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
# Install scripts for Arch Linux
|
# Install scripts for Arch Linux
|
||||||
|
|
||||||
## Old Dependency Installation Method
|
## Old Dependency Installation Method
|
||||||
The old deps install method mainly involved `./scriptdata/dependencies.conf` (which has been removed now).
|
The old deps install method mainly involved `./scriptdata/dependencies.conf` (which has been removed now).
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user