diff --git a/.github/workflows/post-comment.yml b/.github/workflows/post-comment.yml new file mode 100644 index 000000000000..80aeda83aede --- /dev/null +++ b/.github/workflows/post-comment.yml @@ -0,0 +1,26 @@ +name: Post comment +on: + workflow_run: + workflows: ["Query help preview"] + types: + - completed + +permissions: + pull-requests: write + +jobs: + post_comment: + runs-on: ubuntu-latest + needs: qhelp + steps: + - name: Download artifact + uses: dawidd6/action-download-artifact@af92a8455a59214b7b932932f2662fdefbd78126 + with: + workflow: ${{ github.event.workflow_run.workflow_id }} + workflow_conclusion: success + name: comment + - run: | + PR=$(grep -o '^[0-9]\+$' pr.txt) + cat comment.txt | gh pr comment "${PR}" --repo "${{ github.repository }}" -F - + env: + GITHUB_TOKEN: ${{ github.token }} diff --git a/ruby/extractor/Cargo.toml b/ruby/extractor/Cargo.toml index efc5a12159d8..3a91da43f86e 100644 --- a/ruby/extractor/Cargo.toml +++ b/ruby/extractor/Cargo.toml @@ -9,7 +9,7 @@ edition = "2018" [dependencies] flate2 = "1.0" node-types = { path = "../node-types" } -tree-sitter = "0.19" +tree-sitter = "0.20" tree-sitter-embedded-template = "0.19" tree-sitter-ruby = { git = "https://github.com/tree-sitter/tree-sitter-ruby.git", rev = "bb6a42e42b048627a74a127d3e0184c1eef01de9" } clap = "2.33"