Skip to content

➕ [RESOURCE] - Add Deque topic to DSA #563

➕ [RESOURCE] - Add Deque topic to DSA

➕ [RESOURCE] - Add Deque topic to DSA #563

Workflow file for this run

name: Auto-label on Any Issue or PR
on:
issues:
types: [opened]
pull_request:
types: [opened]
permissions:
issues: write
pull-requests: write
jobs:
auto-label:
runs-on: ubuntu-latest
steps:
- name: Add labels to any new issue or PR
uses: actions/github-script@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const labelsToAdd = ["gssoc"];
if (context.payload.pull_request) {
// It's a Pull Request
await github.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: labelsToAdd
});
} else {
// It's an Issue
await github.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: labelsToAdd
});
}