Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/build-vsix/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ runs:
VSIX_NAME: ${{ inputs.vsix_name }}

- name: Upload VSIX
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v5
with:
name: ${{ inputs.artifact_name }}
path: ${{ inputs.vsix_name }}
Expand Down
14 changes: 0 additions & 14 deletions .github/workflows/pr-file-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,3 @@ jobs:
.github/test_plan.md
skip-label: 'skip tests'
failure-message: 'TypeScript code was edited without also editing a ${file-pattern} file; see the Testing page in our wiki on testing guidelines (the ${skip-label} label can be used to pass this check)'

- name: 'Ensure PR has an associated issue'
uses: actions/github-script@v8
with:
script: |
const labels = context.payload.pull_request.labels.map(label => label.name);
if (!labels.includes('skip-issue-check')) {
const prBody = context.payload.pull_request.body || '';
const issueLink = prBody.match(/https:\/\/github\.com\/\S+\/issues\/\d+/);
const issueReference = prBody.match(/#\d+/);
if (!issueLink && !issueReference) {
core.setFailed('No associated issue found in the PR description.');
}
}
31 changes: 31 additions & 0 deletions .github/workflows/pr-issue-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: PR issue check

on:
pull_request:
types:
- 'opened'
- 'reopened'
- 'synchronize'
- 'labeled'
- 'unlabeled'

permissions: {}

jobs:
check-for-attached-issue:
name: 'Check for attached issue'
runs-on: ubuntu-latest
steps:
- name: 'Ensure PR has an associated issue'
uses: actions/github-script@v8
with:
script: |
const labels = context.payload.pull_request.labels.map(label => label.name);
if (!labels.includes('skip-issue-check')) {
const prBody = context.payload.pull_request.body || '';
const issueLink = prBody.match(/https:\/\/github\.com\/\S+\/issues\/\d+/);
const issueReference = prBody.match(/#\d+/);
if (!issueLink && !issueReference) {
core.setFailed('No associated issue found in the PR description.');
}
}
Loading