Skip to content

Code formatting and styling improvements. #36

Code formatting and styling improvements.

Code formatting and styling improvements. #36

name: Add Hacktoberfest Labels
on:
issues:
types: [opened]
pull_request:
types: [opened]
jobs:
add_labels:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Add Hacktoberfest labels to issues
if: github.event_name == 'issues'
run: |
curl -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/labels \
-d '{"labels":["hacktoberfest", "hacktoberfest-accepted", "hacktoberfest2024"]}'
- name: Add Hacktoberfest labels to pull requests
if: github.event_name == 'pull_request'
run: |
curl -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels \
-d '{"labels":["hacktoberfest", "hacktoberfest-accepted", "hacktoberfest2024"]}'