Skip to content

Added resource for Interview Questions asked in DSA #527

Added resource for Interview Questions asked in DSA

Added resource for Interview Questions asked in DSA #527

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
});
}