From 1d6517ee52df57088cb5c9f0fc92d8226e7c154c Mon Sep 17 00:00:00 2001
From: Siddheya Kulkarni <115717746+Asymtode712@users.noreply.github.com>
Date: Fri, 24 May 2024 18:01:48 +0530
Subject: [PATCH 1/2] Delete .github/workflows/invitation.yml
---
.github/workflows/invitation.yml | 63 --------------------------------
1 file changed, 63 deletions(-)
delete mode 100644 .github/workflows/invitation.yml
diff --git a/.github/workflows/invitation.yml b/.github/workflows/invitation.yml
deleted file mode 100644
index da87226..0000000
--- a/.github/workflows/invitation.yml
+++ /dev/null
@@ -1,63 +0,0 @@
-name: Automate Invitation
-
-on:
- issues:
- types: [labeled]
-
-jobs:
- handle_label:
- runs-on: ubuntu-latest
-
- steps:
- - name: Check if Label is 'invite me to the community'
- id: check_label
- run: |
- if [[ "${{ github.event.label.name }}" != "invite me to the community" ]]; then
- echo "Label is not 'invite me to the community'. Exiting."
- exit 0
- fi
-
- - name: Create Issue in Support Repository
- id: create_issue
- if: ${{ steps.check_label.outcome == 'success' }}
- uses: actions/github-script@v5
- with:
- github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- script: |
- const issue = context.payload.issue;
- const { owner, repo } = context.repo;
- const response = await github.rest.issues.create({
- owner: 'Recode-Hive',
- repo: 'Support',
- title: issue.title,
- body: issue.body,
- labels: ['invite me to the community'],
- });
- core.setOutput('issue_number', response.data.number);
-
- - name: Close Original Issue in StackOverflow Repository
- if: ${{ steps.check_label.outcome == 'success' }}
- uses: actions/github-script@v5
- with:
- github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- script: |
- const issue = context.payload.issue;
- await github.rest.issues.update({
- owner: context.repo.owner,
- repo: context.repo.repo,
- issue_number: issue.number,
- state: 'closed'
- });
-
- - name: Invite on Label
- if: ${{ steps.check_label.outcome == 'success' }}
- uses: vj-abigo/invite-on-label@v1.2
- with:
- organization: Recode-Hive
- label: invite me to the community
- repo-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- comment: |
- Invitation sent to join the GitHub Organisation. Welcome to the community 🎉
- Don't forget after accepting to make it public so it appears on your GitHub profile for everyone else to see. You can do this by finding your name in the GitHub organisation list and change the dropdown to public https://github.com/orgs/Recode-Hive/people
- env:
- INVITE_TOKEN: ${{ secrets.INVITE_TOKEN }}
From 5213fbcd59e03b5288a988e34e6f08218e2d9f7b Mon Sep 17 00:00:00 2001
From: Siddheya Kulkarni <115717746+Asymtode712@users.noreply.github.com>
Date: Fri, 24 May 2024 18:02:05 +0530
Subject: [PATCH 2/2] Delete .github/ISSUE_TEMPLATE/invitation.yml
---
.github/ISSUE_TEMPLATE/invitation.yml | 30 ---------------------------
1 file changed, 30 deletions(-)
delete mode 100644 .github/ISSUE_TEMPLATE/invitation.yml
diff --git a/.github/ISSUE_TEMPLATE/invitation.yml b/.github/ISSUE_TEMPLATE/invitation.yml
deleted file mode 100644
index 186aae9..0000000
--- a/.github/ISSUE_TEMPLATE/invitation.yml
+++ /dev/null
@@ -1,30 +0,0 @@
-name: Invitation to the Recode-Hive GitHub Community Organization
-description: I would like to be part of this awesome community
-title: "Please invite me to the Recode-Hive GitHub Community Organization"
-labels: [invite me to the community]
-body:
- - type: input
- id: name
- attributes:
- label: Name
- placeholder: Insert your name here
- validations:
- required: true
- - type: input
- id: discordname
- attributes:
- label: Discord Username (if applicable)
- placeholder: Insert your Discord username here
- validations:
- required: false
- - type: textarea
- id: Additional
- attributes:
- label: Additional Context
- description: What do you like about this community/Why do you want to join?
- validations:
- required: false
- - type: markdown
- attributes:
- value: |
- Feel free to check out other cool repositories of the Recode-Hive Community [here](https://github.com/Recode-Hive)