From 11452dfbf342c770139aa27db6b2ce238528c78b Mon Sep 17 00:00:00 2001 From: "weizhou.lan@daocloud.io" Date: Mon, 18 Apr 2022 22:59:49 +0800 Subject: [PATCH 1/2] ds --- docs/contributing/development/changelog.md | 2 +- test/test_suite_test.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/contributing/development/changelog.md b/docs/contributing/development/changelog.md index 620db447..4f71eac9 100644 --- a/docs/contributing/development/changelog.md +++ b/docs/contributing/development/changelog.md @@ -8,7 +8,7 @@ the changelog content include: -(1) New Features: it include all PR labelled with "pr/release/feature-new" +(1) New Features: it include all PR labelled with "pr/release/feature-new" (2) Changed Features: it include all PR labelled with "pr/release/feature-changed" diff --git a/test/test_suite_test.go b/test/test_suite_test.go index aac0fdf3..308b0fa4 100644 --- a/test/test_suite_test.go +++ b/test/test_suite_test.go @@ -12,5 +12,6 @@ import ( func TestTest(t *testing.T) { RegisterFailHandler(Fail) + RunSpecs(t, "Test Suite") } From 5c279387cc66f91edaa32b7baa264b1a02b854a8 Mon Sep 17 00:00:00 2001 From: "weizhou.lan@daocloud.io" Date: Mon, 18 Apr 2022 23:48:17 +0800 Subject: [PATCH 2/2] d Signed-off-by: weizhou.lan@daocloud.io --- .github/workflows/debug-context.yaml | 20 ++++++++++++++++++++ .github/workflows/lint-md.yaml | 4 +--- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/.github/workflows/debug-context.yaml b/.github/workflows/debug-context.yaml index ede2586e..f262abdb 100644 --- a/.github/workflows/debug-context.yaml +++ b/.github/workflows/debug-context.yaml @@ -33,9 +33,29 @@ jobs: echo "github.repository = ${{ github.repository }}" # =============== pull_request or pull_request_target # base_ref: available for pull_request or pull_request_target event , The base_ref or target branch of the pull request + # "github.base_ref = main" echo "github.base_ref = ${{ github.base_ref }}" # head_ref: available for pull_request or pull_request_target event, The head_ref or source branch of the pull request + # "github.head_ref = pr/welan/md-spell" echo "github.head_ref = ${{ github.head_ref }}" + + # avalibale for pull_request or pull_request_target + echo "github.event.pull_request.base.sha = ${{ github.event.pull_request.base.sha }}" + # avalibale for pull_request or pull_request_target + echo "github.event.pull_request.head.sha = ${{ github.event.pull_request.head.sha }}" + + # =============== push + echo "github.event.push.ref = ${{ github.event.push.ref }}" + #The SHA of the most recent commit on ref before the push. + echo "github.event.push.before = ${{ github.event.push.before }}" + #The SHA of the most recent commit on ref after the push. + echo "github.event.push.after = ${{ github.event.push.after }}" + + echo "github.event.push.head_commit = ${{ github.event.push.head_commit }}" + + #Pushed commits are all commits that are included in the compare between the before commit and the after commit. + echo "github.event.push.head_commit = ${{ github.event.push.commits }}" + # ================= for all # The commit SHA that triggered the workflow run. echo "github.sha = ${{ github.sha }}" diff --git a/.github/workflows/lint-md.yaml b/.github/workflows/lint-md.yaml index 3703c513..1a440575 100644 --- a/.github/workflows/lint-md.yaml +++ b/.github/workflows/lint-md.yaml @@ -49,9 +49,7 @@ jobs: ignore_path: '.github/markdownlintignore' # rules: examples/rules/custom.js # ignore_files: 'vendor/' - - - uses: bahmutov/npm-install@v1 + - name: Lint Markdown Spell run: | - npm install markdown-spellcheck -g make lint-markdown-spell