[Event Request] Codeunit 1535 "Approvals Mgmt." - Possibility to skip check of approvals tables #2073
This file contains hidden or 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: PR Processing | |
on: | |
pull_request_target: | |
types: [labeled] | |
issues: | |
types: [labeled] | |
permissions: | |
issues: write | |
pull-requests: write | |
jobs: | |
post-processing-comment: | |
if: github.event.label.name == 'processing-PR' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Post comment | |
uses: actions/github-script@v7 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
github.rest.issues.createComment({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: 'Processing this PR. The branch is now locked 🔒 Please don\'t push updates unless otherwise agreed.' | |
}) | |
post-approved-comment: | |
if: github.event.label.name == 'Approved' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Post comment | |
uses: actions/github-script@v7 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
github.rest.issues.createComment({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: 'This issue has been approved for contribution ✅ Thanks for contributing.' | |
}) |