diff --git a/.github/workflows/debug-context.yaml b/.github/workflows/debug-context.yaml index 4658f3b8..017135c4 100644 --- a/.github/workflows/debug-context.yaml +++ b/.github/workflows/debug-context.yaml @@ -39,11 +39,13 @@ jobs: # "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 }}" + echo "github.event.pull_request_target.base.sha = ${{ github.event.pull_request_target.base.sha }}" + echo "github.event.pull_request_target.head.sha = ${{ github.event.pull_request_target.head.sha }}" + + # =============== push echo "github.event.push.ref = ${{ github.event.push.ref }}" #The SHA of the most recent commit on ref before the push. diff --git a/.github/workflows/lint-license.yaml b/.github/workflows/lint-license.yaml index 7518b113..3ea047b8 100644 --- a/.github/workflows/lint-license.yaml +++ b/.github/workflows/lint-license.yaml @@ -39,7 +39,7 @@ jobs: echo ::set-output name=ref::${tag_name} elif ${{ github.event_name == 'push' }} ; then echo ::set-output name=ref::${{ github.event.push.after }} - elif ${{ github.event_name == 'pull_request' }} ; then + elif ${{ github.event_name == 'pull_request' }} || ${{ github.event_name == 'pull_request_target' }} ; then echo "trigger by pull_request_target" echo ::set-output name=tag::${{ github.event.pull_request.head.sha }} else diff --git a/docs/contributing/development/issue.md b/docs/contributing/development/issue.md index 58cd23b4..b7ee3be6 100644 --- a/docs/contributing/development/issue.md +++ b/docs/contributing/development/issue.md @@ -1,3 +1,3 @@ # issue manager -if an issue lasts stale longer than 60 days, label it with "issue/stale" and then close it after 14 days +if an issue lasts stale longer than 60 days, label it with "issue/stale" and then close it after 14 days diff --git a/pkg/lock/lock.go b/pkg/lock/lock.go index 32c00cab..08d90b8c 100644 --- a/pkg/lock/lock.go +++ b/pkg/lock/lock.go @@ -10,6 +10,6 @@ type RWMutex struct { // Mutex is equivalent to sync.Mutex but applies deadlock detection if the // built tag "lockdebug" is set -type Mutex struct { +type Mutex struct { internalMutex }