|
41 | 41 | workflow_origin: ${{ github.event.repository.full_name }} |
42 | 42 | secrets: |
43 | 43 | token: ${{ secrets.GITHUB_TOKEN }} |
44 | | - check_related_issue: |
45 | | - permissions: |
46 | | - pull-requests: write # label and comment on PR if missing related issue (requirement) |
47 | | - needs: get_pr_details |
48 | | - runs-on: ubuntu-latest |
49 | | - steps: |
50 | | - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
51 | | - - name: "Ensure related issue is present" |
52 | | - uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 |
53 | | - env: |
54 | | - PR_BODY: ${{ needs.get_pr_details.outputs.prBody }} |
55 | | - PR_NUMBER: ${{ needs.get_pr_details.outputs.prNumber }} |
56 | | - PR_ACTION: ${{ needs.get_pr_details.outputs.prAction }} |
57 | | - PR_AUTHOR: ${{ needs.get_pr_details.outputs.prAuthor }} |
58 | | - with: |
59 | | - github-token: ${{ secrets.GITHUB_TOKEN }} |
60 | | - script: | |
61 | | - const script = require('.github/scripts/label_missing_related_issue.js') |
62 | | - await script({github, context, core}) |
63 | | - check_acknowledge_section: |
64 | | - needs: get_pr_details |
65 | | - runs-on: ubuntu-latest |
66 | | - permissions: |
67 | | - pull-requests: write # label and comment on PR if missing acknowledge section (requirement) |
68 | | - steps: |
69 | | - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
70 | | - - name: "Ensure acknowledgement section is present" |
71 | | - uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 |
72 | | - env: |
73 | | - PR_BODY: ${{ needs.get_pr_details.outputs.prBody }} |
74 | | - PR_NUMBER: ${{ needs.get_pr_details.outputs.prNumber }} |
75 | | - PR_ACTION: ${{ needs.get_pr_details.outputs.prAction }} |
76 | | - PR_AUTHOR: ${{ needs.get_pr_details.outputs.prAuthor }} |
77 | | - with: |
78 | | - github-token: ${{ secrets.GITHUB_TOKEN }} |
79 | | - script: | |
80 | | - const script = require('.github/scripts/label_missing_acknowledgement_section.js') |
81 | | - await script({github, context, core}) |
0 commit comments