From 4ba81b4b1182fd6b749b9822fa604f8eb420ba33 Mon Sep 17 00:00:00 2001 From: Arthur Baars Date: Thu, 28 Oct 2021 18:43:05 +0200 Subject: [PATCH 1/2] Post comment workflow --- .github/workflows/post-comment.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/post-comment.yml 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 }} From 540dad53276732aadad71977c70a1b74fce12031 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 28 Oct 2021 16:48:46 +0000 Subject: [PATCH 2/2] Update tree-sitter requirement from 0.19 to 0.20 in /ruby/extractor Updates the requirements on [tree-sitter](https://github.com/tree-sitter/tree-sitter) to permit the latest version. - [Release notes](https://github.com/tree-sitter/tree-sitter/releases) - [Commits](https://github.com/tree-sitter/tree-sitter/compare/v0.19.0...v0.20.0) --- updated-dependencies: - dependency-name: tree-sitter dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- ruby/extractor/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"