Skip to content

docs: add ECS Fargate Spot reference architecture #169

docs: add ECS Fargate Spot reference architecture

docs: add ECS Fargate Spot reference architecture #169

name: PR Pending Screening
on:
pull_request_target:
types: [opened, reopened]
workflow_dispatch:
inputs:
pr_number:
description: "PR number to add pending-screening label"
required: true
type: number
permissions: {}
jobs:
add-label:
if: github.event.pull_request.draft == false || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/github-script@v7
with:
script: |
const prNumber = context.payload.pull_request?.number || ${{ github.event.inputs.pr_number || 0 }};
if (!prNumber) {
core.setFailed('No PR number found');
return;
}
// Ensure label exists
try {
await github.rest.issues.createLabel({
...context.repo,
name: 'pending-screening',
color: 'fbca04',
description: 'PR awaiting automated screening'
});
core.info('Created pending-screening label');
} catch (e) {
if (e.status !== 422) throw e; // 422 = already exists
}
await github.rest.issues.addLabels({
...context.repo,
issue_number: prNumber,
labels: ['pending-screening']
});
core.info(`Added pending-screening to #${prNumber}`);