File tree 2 files changed +75
-0
lines changed
2 files changed +75
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Invitation to the Recode-Hive GitHub Community Organization
2
+ description : I would like to be part of this awesome community
3
+ title : " Please invite me to the Recode-Hive GitHub Community Organization"
4
+ labels : [invite me to the community]
5
+ body :
6
+ - type : input
7
+ id : name
8
+ attributes :
9
+ label : Name
10
+ placeholder : Insert your name here
11
+ validations :
12
+ required : true
13
+ - type : input
14
+ id : discordname
15
+ attributes :
16
+ label : Discord Username (if applicable)
17
+ placeholder : Insert your Discord username here
18
+ validations :
19
+ required : false
20
+ - type : textarea
21
+ id : Additional
22
+ attributes :
23
+ label : Additional Context
24
+ description : What do you like about this community/Why do you want to join?
25
+ validations :
26
+ required : false
27
+ - type : markdown
28
+ attributes :
29
+ value : |
30
+ Feel free to check out other cool repositories of the Recode-Hive Community [here](https://github.com/Recode-Hive)
Original file line number Diff line number Diff line change
1
+ name : Automate Invitation
2
+
3
+ on :
4
+ issues :
5
+ types : [labeled]
6
+
7
+ jobs :
8
+ handle_label :
9
+ runs-on : ubuntu-latest
10
+
11
+ steps :
12
+ - name : Check if Label is 'invite me to the community'
13
+ id : check_label
14
+ run : |
15
+ if [[ "${{ github.event.label.name }}" != "invite me to the community" ]]; then
16
+ echo "Label is not 'invite me to the community'. Exiting."
17
+ exit 0
18
+ fi
19
+
20
+ - name : Close Original Issue in Support Repository
21
+ if : ${{ steps.check_label.outcome == 'success' }}
22
+ uses : actions/github-script@v5
23
+ with :
24
+ github-token : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
25
+ script : |
26
+ const issue = context.payload.issue;
27
+ await github.rest.issues.update({
28
+ owner: context.repo.owner,
29
+ repo: context.repo.repo,
30
+ issue_number: issue.number,
31
+ state: 'closed'
32
+ });
33
+
34
+ - name : Invite on Label
35
+ if : ${{ steps.check_label.outcome == 'success' }}
36
+
37
+ with :
38
+ organization : Recode-Hive
39
+ label : invite me to the community
40
+ repo-token : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
41
+ comment : |
42
+ <b>Invitation sent to join the GitHub Organisation. Welcome to the community 🎉</b><br><br>
43
+ 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<br><br>
44
+ env :
45
+ INVITE_TOKEN : ${{ secrets.INVITE_TOKEN }}
You can’t perform that action at this time.
0 commit comments