From 2c71978fc8bbe4cdda28e0f74a197e6a40459b74 Mon Sep 17 00:00:00 2001 From: ygowthamr Date: Tue, 22 Oct 2024 22:20:48 +0530 Subject: [PATCH 1/7] Added Issue labeler work flow --- .github/workflows/issue_labeler.yaml | 55 ++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/issue_labeler.yaml diff --git a/.github/workflows/issue_labeler.yaml b/.github/workflows/issue_labeler.yaml new file mode 100644 index 0000000..273cad5 --- /dev/null +++ b/.github/workflows/issue_labeler.yaml @@ -0,0 +1,55 @@ +name: Issue Labeler + +on: + issues: + types: [opened, edited] + +jobs: + manage-labels: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Create or Update Labels + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + curl -X POST \ + -H "Authorization: token $GITHUB_TOKEN" \ + -H "Accept: application/vnd.github.v3+json" \ + https://api.github.com/repos/${{ github.repository }}/labels \ + -d '{ + "name": "gssoc-extd", + "color": "0E8A16", + "description": "GSSOC extended contribution" + }' + + curl -X POST \ + -H "Authorization: token $GITHUB_TOKEN" \ + -H "Accept: application/vnd.github.v3+json" \ + https://api.github.com/repos/${{ github.repository }}/labels \ + -d '{ + "name": "hacktoberfest", + "color": "FF7518", + "description": "Hacktoberfest participation" + }' + + curl -X POST \ + -H "Authorization: token $GITHUB_TOKEN" \ + -H "Accept: application/vnd.github.v3+json" \ + https://api.github.com/repos/${{ github.repository }}/labels \ + -d '{ + "name": "level?", + "color": "5319E7", + "description": "Placeholder for difficulty level" + }' + + - name: Add Labels to Issue + uses: actions-ecosystem/action-add-labels@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + labels: | + gssoc-extd + hacktoberfest + level? \ No newline at end of file From bb18acf7713cc08c9b865090ddb0b9460a91233c Mon Sep 17 00:00:00 2001 From: gowtham <68599050+ygowthamr@users.noreply.github.com> Date: Tue, 22 Oct 2024 22:31:43 +0530 Subject: [PATCH 2/7] Update issue_labeler.yaml --- .github/workflows/issue_labeler.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/issue_labeler.yaml b/.github/workflows/issue_labeler.yaml index 273cad5..d42b037 100644 --- a/.github/workflows/issue_labeler.yaml +++ b/.github/workflows/issue_labeler.yaml @@ -30,7 +30,7 @@ jobs: -H "Accept: application/vnd.github.v3+json" \ https://api.github.com/repos/${{ github.repository }}/labels \ -d '{ - "name": "hacktoberfest", + "name": "hacktoberfest-accepted", "color": "FF7518", "description": "Hacktoberfest participation" }' @@ -52,4 +52,4 @@ jobs: labels: | gssoc-extd hacktoberfest - level? \ No newline at end of file + level? From 284ef48c60f9a391f878d470f4769998be605261 Mon Sep 17 00:00:00 2001 From: gowtham <68599050+ygowthamr@users.noreply.github.com> Date: Wed, 23 Oct 2024 06:20:31 +0530 Subject: [PATCH 3/7] Update issue_labeler.yaml --- .github/workflows/issue_labeler.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/issue_labeler.yaml b/.github/workflows/issue_labeler.yaml index d42b037..79b8ada 100644 --- a/.github/workflows/issue_labeler.yaml +++ b/.github/workflows/issue_labeler.yaml @@ -21,7 +21,7 @@ jobs: https://api.github.com/repos/${{ github.repository }}/labels \ -d '{ "name": "gssoc-extd", - "color": "0E8A16", + "color": "55a0ea", "description": "GSSOC extended contribution" }' @@ -31,7 +31,7 @@ jobs: https://api.github.com/repos/${{ github.repository }}/labels \ -d '{ "name": "hacktoberfest-accepted", - "color": "FF7518", + "color": "263432", "description": "Hacktoberfest participation" }' From f0190c3ffc0b83794cee9b395a7bef3642195819 Mon Sep 17 00:00:00 2001 From: gowtham <68599050+ygowthamr@users.noreply.github.com> Date: Wed, 23 Oct 2024 11:27:30 +0530 Subject: [PATCH 4/7] Added all requested labels --- .github/workflows/issue_labeler.yaml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/issue_labeler.yaml b/.github/workflows/issue_labeler.yaml index 79b8ada..0622833 100644 --- a/.github/workflows/issue_labeler.yaml +++ b/.github/workflows/issue_labeler.yaml @@ -20,11 +20,21 @@ jobs: -H "Accept: application/vnd.github.v3+json" \ https://api.github.com/repos/${{ github.repository }}/labels \ -d '{ - "name": "gssoc-extd", + "name": "gssoc-ext", "color": "55a0ea", "description": "GSSOC extended contribution" }' + curl -X POST \ + -H "Authorization: token $GITHUB_TOKEN" \ + -H "Accept: application/vnd.github.v3+json" \ + https://api.github.com/repos/${{ github.repository }}/labels \ + -d '{ + "name": "hacktoberfest", + "color": "ff7518", + "description": "Hacktoberfest participation" + }' + curl -X POST \ -H "Authorization: token $GITHUB_TOKEN" \ -H "Accept: application/vnd.github.v3+json" \ @@ -32,7 +42,7 @@ jobs: -d '{ "name": "hacktoberfest-accepted", "color": "263432", - "description": "Hacktoberfest participation" + "description": "Hacktoberfest contribution accepted" }' curl -X POST \ @@ -50,6 +60,7 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} labels: | - gssoc-extd + gssoc-ext hacktoberfest + hacktoberfest-accepted level? From 37499c1f4786f9343257bdc1fd8027f20e17e1c0 Mon Sep 17 00:00:00 2001 From: gowtham <68599050+ygowthamr@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:44:33 +0530 Subject: [PATCH 5/7] Updated all label color changes --- .github/workflows/issue_labeler.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/issue_labeler.yaml b/.github/workflows/issue_labeler.yaml index 0622833..b2b0e24 100644 --- a/.github/workflows/issue_labeler.yaml +++ b/.github/workflows/issue_labeler.yaml @@ -21,7 +21,7 @@ jobs: https://api.github.com/repos/${{ github.repository }}/labels \ -d '{ "name": "gssoc-ext", - "color": "55a0ea", + "color": "0E4075", "description": "GSSOC extended contribution" }' @@ -31,7 +31,7 @@ jobs: https://api.github.com/repos/${{ github.repository }}/labels \ -d '{ "name": "hacktoberfest", - "color": "ff7518", + "color": "006b75", "description": "Hacktoberfest participation" }' @@ -41,7 +41,7 @@ jobs: https://api.github.com/repos/${{ github.repository }}/labels \ -d '{ "name": "hacktoberfest-accepted", - "color": "263432", + "color": "95D2AA", "description": "Hacktoberfest contribution accepted" }' From 7eb18a7d4a5bf4c0a1aed0e36448420edf8ef2d7 Mon Sep 17 00:00:00 2001 From: gowtham <68599050+ygowthamr@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:50:10 +0530 Subject: [PATCH 6/7] Solved some errors --- .github/workflows/issue_labeler.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/issue_labeler.yaml b/.github/workflows/issue_labeler.yaml index b2b0e24..db862ec 100644 --- a/.github/workflows/issue_labeler.yaml +++ b/.github/workflows/issue_labeler.yaml @@ -21,7 +21,7 @@ jobs: https://api.github.com/repos/${{ github.repository }}/labels \ -d '{ "name": "gssoc-ext", - "color": "0E4075", + "color": "0e4075", "description": "GSSOC extended contribution" }' @@ -41,7 +41,7 @@ jobs: https://api.github.com/repos/${{ github.repository }}/labels \ -d '{ "name": "hacktoberfest-accepted", - "color": "95D2AA", + "color": "95d2aa", "description": "Hacktoberfest contribution accepted" }' @@ -51,7 +51,7 @@ jobs: https://api.github.com/repos/${{ github.repository }}/labels \ -d '{ "name": "level?", - "color": "5319E7", + "color": "5319e7", "description": "Placeholder for difficulty level" }' From d5c7c175be819acbc7385f5edb5faa8b68f4ef5a Mon Sep 17 00:00:00 2001 From: gowtham <68599050+ygowthamr@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:57:16 +0530 Subject: [PATCH 7/7] Solved potential issues