GeezerVison is showing github.com — feat: add workflow for checking base branch · LuanLouis/lowcode-engine@4a18f71
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard +33Lines changed: 33 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +name: Check Base Branch |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + types: [opened] |
| 6 | + |
| 7 | +jobs: |
| 8 | + code-review: |
| 9 | + name: Check |
| 10 | + runs-on: ubuntu-latest |
| 11 | + |
| 12 | + steps: |
| 13 | + # 判断用户是否有写仓库权限 |
| 14 | + - name: 'Check User Permission' |
| 15 | + |
| 16 | + with: |
| 17 | + permission: 'write' |
| 18 | + env: |
| 19 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 20 | + |
| 21 | + - name: 'Check base branch name is develop or not' |
| 22 | + if: github.event.pull_request.base.ref != 'develop' # check the target branch if it's master |
| 23 | + uses: actions-cool/issues-helper@v2 |
| 24 | + with: |
| 25 | + actions: 'create-comment' |
| 26 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 27 | + issue-number: ${{ github.event.pull_request.number }} |
| 28 | + body: | |
| 29 | + 感谢你的 PR,根据引擎的 [研发协作流程](https://lowcode-engine.cn/site/docs/participate/flow),请将目标合入分支设置为 **develop**。 |
| 30 | +
|
| 31 | + Thanks in advance, according to the [Contribution Guideline](https://lowcode-engine.cn/site/docs/participate/flow), please set the base branch to **develop**. |
| 32 | +
|
| 33 | + @${{ github.event.pull_request.user.login }} |
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/help wanted.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -name: Issue Reply |
| 1 | +name: Help Wanted |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | issues: |
|
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/insufficient information.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -name: Issue Reply |
| 1 | +name: Insufficient Info |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | issues: |
|
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/test modules.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -name: lint & test |
| 1 | +name: Lint & Test (Mods) |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
|
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/test packages.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -name: lint & test |
| 1 | +name: Lint & Test (Pkgs) |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
|