使用 Model.update 中 returning: true, 数据库数据真实被改变,但是没有正确返回对应的数据。并且,使用全局hook 监听不到更新事件。 #239
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Label new issues with pending-approval | |
on: | |
issues: | |
types: | |
- opened | |
permissions: | |
contents: read | |
jobs: | |
label_issues: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
steps: | |
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 | |
with: | |
script: | | |
github.rest.issues.addLabels({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
labels: ["pending-approval"] | |
}) |