Skip to content

[releases/24.0] Update AL-Go System Files from microsoft/AL-Go-PTE@preview - aae02ad59c6f4cd9d551a613b1d230d93e5a3098 #6535

[releases/24.0] Update AL-Go System Files from microsoft/AL-Go-PTE@preview - aae02ad59c6f4cd9d551a613b1d230d93e5a3098

[releases/24.0] Update AL-Go System Files from microsoft/AL-Go-PTE@preview - aae02ad59c6f4cd9d551a613b1d230d93e5a3098 #6535

name: Work Item Validation
on:
pull_request_target:
types: [opened, synchronize, reopened, edited]
branches: [ 'main', 'releases/*' ]
permissions:
contents: read
pull-requests: write
issues: write
defaults:
run:
shell: pwsh
jobs:
GitHubIssueValidation:
if: github.repository_owner == 'microsoft' && github.event.pull_request.state == 'open'
name: 'Validate link to issues'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Validate work items for pull request
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
build/scripts/PullRequestValidation/ValidateIssuesForPullRequest.ps1 -PullRequestNumber ${{ github.event.pull_request.number }} -Repository ${{ github.repository }}
WorkItemValidationForMicrosoft:
if: github.repository_owner == 'microsoft' && github.event.pull_request.state == 'open'
name: 'For Microsoft: Validate link to internal work items'
runs-on: ubuntu-latest
needs: GitHubIssueValidation
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Link work items to pull request if possible
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
build/scripts/PullRequestValidation/LinkPullRequestToWorkItem.ps1 -PullRequestNumber ${{ github.event.pull_request.number }} -Repository ${{ github.repository }}
- name: Validate internal work items for pull request
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
build/scripts/PullRequestValidation/ValidateInternalWorkItemForPullRequest.ps1 -PullRequestNumber ${{ github.event.pull_request.number }} -Repository ${{ github.repository }}
- name: Add milestone to PR
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
build/scripts/PullRequestValidation/AddMilestoneToPullRequest.ps1 -PullRequestNumber ${{ github.event.pull_request.number }} -Repository ${{ github.repository }}