diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..4e388bb Binary files /dev/null and b/.DS_Store differ diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..dd66a5e --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "github-actions.workflows.pinned.workflows": [ + ".github/workflows/label.yml" + ] +} \ No newline at end of file diff --git a/label.yml b/label.yml new file mode 100644 index 0000000..d4cdb26 --- /dev/null +++ b/label.yml @@ -0,0 +1,27 @@ +name: Labeler + +on: + push: + branches: + - main + - dev # Adjust the branch name as needed + pull_request: + types: + - opened + +jobs: + label: + runs-on: ubuntu-latest + + steps: + - name: Check out code + uses: actions/checkout@v2 + + - name: Extract issue number + run: | + ISSUE_NUMBER=$(curl -s https://api.github.com/repos/AdityyaX/Task_Manager_CRUD/issues/2 | jq -r '.number') + echo "Issue Number: $ISSUE_NUMBER" + + - name: Fetch labels from the issue + run: | + LABELS=$(curl -s "${{ github.event