Skip to content

Commit 0687862

Browse files
committed
Initial commit
0 parents  commit 0687862

File tree

14 files changed

+413
-0
lines changed

14 files changed

+413
-0
lines changed

.github/ISSUE_TEMPLATE/Ideas.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Ideas
2+
description: Have a new idea or feature request
3+
title: "[FEATURE REQUEST] <description here>"
4+
labels: [enhancement]
5+
body:
6+
- type: textarea
7+
id: description
8+
attributes:
9+
label: Description of feature request, idea
10+
validations:
11+
required: true
12+
- type: textarea
13+
id: screenshots
14+
attributes:
15+
label: Add (multiple) screenshot links (if applicable)
16+
validations:
17+
required: false
18+
- type: textarea
19+
id: context
20+
attributes:
21+
label: Add any other context about the feature request here
22+
validations:
23+
required: false
24+
- type: markdown
25+
attributes:
26+
value: |
27+
You can also join our Discord community [here](https://discord.gg/RXhJ2Rnbxm)
28+
Feel free to check out other cool repositories of the Codame IT Solutions [here](https://github.com/codameio)

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Bug report
2+
description: Create a bug report to help us address errors in the repository
3+
title: "[BUG] <bug description>"
4+
labels: [bug]
5+
body:
6+
- type: textarea
7+
id: bugdescription
8+
attributes:
9+
label: Description of the bug
10+
validations:
11+
required: true
12+
- type: input
13+
id: stack
14+
attributes:
15+
label: Project stack or language (e.g. front-end)
16+
validations:
17+
required: true
18+
- type: textarea
19+
id: workingenvironment
20+
attributes:
21+
label: Working Environment (e.g. operating system, browser, device)
22+
validations:
23+
required: true
24+
- type: textarea
25+
id: screenshots
26+
attributes:
27+
label: Please add screenshots (if applicable)
28+
validations:
29+
required: false
30+
- type: textarea
31+
id: context
32+
attributes:
33+
label: Add any other context about the problem here
34+
validations:
35+
required: false
36+
- type: markdown
37+
attributes:
38+
value: |
39+
You can also join our Discord community [here](https://discord.gg/RXhJ2Rnbxm)
40+
Feel free to check out other cool repositories of the Codame IT Solutions [here](https://github.com/codameio)

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: GitHub Profile Review
2+
description: Please review my GitHub profile on a livestream
3+
title: "[REVIEW] <your-username>"
4+
labels: [gh profile, livestream]
5+
body:
6+
- type: input
7+
id: link
8+
attributes:
9+
label: GitHub Profile Link
10+
placeholder: https://github.com/<your-username>
11+
validations:
12+
required: true
13+
- type: markdown
14+
attributes:
15+
value: |
16+
You can also join our Discord community [here](https://discord.gg/RXhJ2Rnbxm)
17+
Feel free to check out other cool repositories of the Codame IT Solutions [here](https://github.com/codameio)
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Invitation to the GitHub Community Organization
2+
description: I would like to be part of the awesome community
3+
title: "Please invite me to the GitHub Community Organization"
4+
labels: [invite me]
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: input
21+
id: youremail
22+
attributes:
23+
label: Email (if applicable)
24+
placeholder: Insert your Email.
25+
validations:
26+
required: false
27+
- type: textarea
28+
id: briefcontext
29+
attributes:
30+
label: Additional Context
31+
description: Where did you meet Codame IT Solutions? What do you like about this community? Why do you want to join?
32+
validations:
33+
required: true
34+
- type: markdown
35+
attributes:
36+
value: |
37+
You can also join our Discord community [here](https://discord.gg/RXhJ2Rnbxm)
38+
Feel free to check out other cool repositories of the Codame IT Solutions [here](https://github.com/codameio)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Open Source Project Review
2+
description: Please review my project on a livestream
3+
title: "[REVIEW] <project name here>"
4+
labels: [opensource, livestream, admin check]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: "Your project doesn't have to be hosted at GitHub, it can also be on GitLab or other VCS"
9+
- type: input
10+
id: link
11+
attributes:
12+
label: Project link
13+
placeholder: https://github.com/<your-username>/<project-name>
14+
validations:
15+
required: true
16+
- type: markdown
17+
attributes:
18+
value: |
19+
You can also join our Discord community [here](https://discord.gg/RXhJ2Rnbxm)
20+
Feel free to check out other cool repositories of the Codame IT Solutions [here](https://github.com/codameio)
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Other
2+
description: Use this for any other issues. PLEASE do not create blank issues
3+
title: "[OTHER]"
4+
labels: [triage]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: "# Other issue"
9+
- type: textarea
10+
id: issuedescription
11+
attributes:
12+
label: What would you like to share?
13+
description: Provide a clear and concise explanation of your issue.
14+
validations:
15+
required: true
16+
- type: textarea
17+
id: extrainfo
18+
attributes:
19+
label: Additional information
20+
description: Is there anything else we should know about this issue?
21+
validations:
22+
required: false
23+
- type: markdown
24+
attributes:
25+
value: |
26+
You can also join our Discord community [here](https://discord.gg/RXhJ2Rnbxm)
27+
Feel free to check out other cool repositories of the Codame IT Solutions [here](https://github.com/codameio)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Portfolio Review
2+
description: Please review my Portfolio on a livestream
3+
title: "[REVIEW]"
4+
labels: [portfolio, livestream]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: "**Please ensure that you don't have any personal details in your Portfolio that you don't want to share publicly.**"
9+
- type: input
10+
id: link
11+
attributes:
12+
label: Portfolio link
13+
placeholder: "e.g.: https://<your-username>.github.io/portfolio"
14+
validations:
15+
required: true
16+
- type: markdown
17+
attributes:
18+
value: |
19+
You can also join our Discord community [here](https://discord.gg/RXhJ2Rnbxm)
20+
Feel free to check out other cool repositories of the Codame IT Solutions [here](https://github.com/codameio)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Resume Review
2+
description: Please review my resume on a live stream
3+
title: "[REVIEW]"
4+
labels: [resume review, livestream]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: "**Remove all personal data, otherwise, the resume will be deleted**"
9+
- type: input
10+
id: link
11+
attributes:
12+
label: Resume link
13+
placeholder: "e.g.: https://drive.google.com/file/d/<file-id>/view"
14+
validations:
15+
required: true
16+
- type: markdown
17+
attributes:
18+
value: |
19+
You can also join our Discord community [here](https://discord.gg/RXhJ2Rnbxm)
20+
Feel free to check out other cool repositories of the Codame IT Solutions [here](https://github.com/codameio)

.github/workflows/invitation.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Invite User to Organization
2+
3+
on:
4+
issues:
5+
types: [labeled]
6+
7+
jobs:
8+
automate_invite:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v3
13+
14+
- name: Get issue details
15+
id: issue
16+
run: echo "ISSUE_USER=${{ github.event.issue.user.login }}" >> $GITHUB_ENV
17+
18+
- name: Send Organization Invitation
19+
run: |
20+
echo "Inviting user: $ISSUE_USER"
21+
RESPONSE=$(curl -s -o response.json -w "%{http_code}" -X PUT \
22+
-H "Authorization: token ${{ secrets.INVITE_TOKEN }}" \
23+
-H "Accept: application/vnd.github.v3+json" \
24+
"https://api.github.com/orgs/codameio/memberships/$ISSUE_USER" \
25+
-d '{"role":"member"}')
26+
27+
echo "GitHub API Response: $(cat response.json)"
28+
if [[ "$RESPONSE" -ne 200 && "$RESPONSE" -ne 201 ]]; then
29+
echo "Failed to send invitation"
30+
exit 1
31+
fi
32+
33+
- name: Verify invitation status
34+
run: |
35+
echo "Checking if the user has been invited..."
36+
RESPONSE=$(curl -s -H "Authorization: token ${{ secrets.INVITE_TOKEN }}" \
37+
"https://api.github.com/orgs/codameio/invitations")
38+
echo "GitHub API Response: $RESPONSE"
39+
40+
- name: Post message and close the issue
41+
run: |
42+
ISSUE_NUMBER=${{ github.event.issue.number }}
43+
44+
curl -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
45+
-H "Accept: application/vnd.github.v3+json" \
46+
-d "{\"body\": \"The invitation has been sent to @$ISSUE_USER to join the GitHub Organization. If you don't see it, please check your email or visit https://github.com/orgs/codameio/invitations.\"}" \
47+
"https://api.github.com/repos/${{ github.repository }}/issues/$ISSUE_NUMBER/comments"
48+
49+
curl -X PATCH -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
50+
-H "Accept: application/vnd.github.v3+json" \
51+
-d '{"state": "closed"}' \
52+
"https://api.github.com/repos/${{ github.repository }}/issues/$ISSUE_NUMBER"

0 commit comments

Comments
 (0)