Skip to content

[IconPack] Replace code snippet tooltip on Package and IconPack name fields with a plain text description tooltip #2849

[IconPack] Replace code snippet tooltip on Package and IconPack name fields with a plain text description tooltip

[IconPack] Replace code snippet tooltip on Package and IconPack name fields with a plain text description tooltip #2849

Workflow file for this run

name: Require Label
on:
pull_request:
types: [ opened, edited, labeled, unlabeled, synchronize ]
jobs:
check-label:
runs-on: ubuntu-slim
steps:
- name: Check for Label
uses: actions/github-script@v9
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const requiredLabels = [
'feature-cli',
'feature-figma-plugin',
'feature-gradle-plugin',
'feature-intellij-plugin',
'feature-sdk',
'bugfix-cli',
'bugfix-figma-plugin',
'bugfix-gradle-plugin',
'bugfix-intellij-plugin',
'bugfix-sdk',
'housekeeping',
'dependencies',
'release'
];
const labels = context.payload.pull_request.labels.map(label => label.name);
const hasRequiredLabel = labels.some(label => requiredLabels.includes(label));
if (!hasRequiredLabel) {
core.setFailed(
`Pull request must have at least one of the following labels: ` +
`${requiredLabels.join(', ')}`
);
}