Skip to content

Commit 5acc0d4

Browse files
committed
feat: task 1
1 parent 1bdd21a commit 5acc0d4

10 files changed

Lines changed: 991 additions & 0 deletions

File tree

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @cumbucadev/cumbuca-s-core-team @cumbucadev/cumbuca-s-maintainers

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: [cumbucadev]

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: github-actions
9+
directory: /
10+
schedule:
11+
interval: weekly
12+
time: "03:00"
13+
open-pull-requests-limit: 10
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Create Task 1 Issue
2+
3+
on:
4+
fork:
5+
workflow_dispatch:
6+
inputs:
7+
username:
8+
description: 'GitHub username to personalize the issue'
9+
required: true
10+
default: 'your_github_username'
11+
12+
permissions:
13+
issues: write
14+
15+
jobs:
16+
create_issue:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v6
22+
23+
- name: Set up GitHub user
24+
id: get_user
25+
run: |
26+
echo "USERNAME=$(jq -r .sender.login $GITHUB_EVENT_PATH)" >> $GITHUB_ENV
27+
28+
- name: Create a personalized issue file
29+
id: create_file
30+
run: |
31+
USERNAME=${{ env.USERNAME }}
32+
TEMPLATE_PATH="../gitcaos/.github/workflows/template_task_1.md"
33+
ISSUE_FILE="../gitcaos/.github/workflows/issue_temp.md"
34+
35+
echo "Username is: $USERNAME"
36+
37+
# Check if USERNAME is defined
38+
if [ -z "$USERNAME" ]; then
39+
echo "USERNAME is not defined."
40+
exit 1
41+
fi
42+
43+
# Remove temp file if it already exists
44+
if [ -f "$ISSUE_FILE" ]; then
45+
echo "Removing existing file: $ISSUE_FILE"
46+
rm $ISSUE_FILE
47+
fi
48+
49+
# Replace placeholder with actual username
50+
sed "s/your_github_username/${USERNAME}/g" $TEMPLATE_PATH > $ISSUE_FILE
51+
52+
# Check if the file was created
53+
if [ -f "$ISSUE_FILE" ]; then
54+
echo "$ISSUE_FILE created successfully."
55+
else
56+
echo "$ISSUE_FILE was not created."
57+
exit 1
58+
fi
59+
60+
- name: Create welcome issue
61+
uses: peter-evans/create-issue-from-file@v6
62+
with:
63+
title: "Task 1: Create file: `${{ env.USERNAME }}.txt`"
64+
content-filepath: ../gitcaos/.github/workflows/issue_temp.md
65+
labels: 'solo-practice, task-1'
66+
assignees: ${{ env.USERNAME }}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Create file: `your_github_username.txt`
2+
3+
Welcome to Git Chaos 🔥! We’re excited to have you here and can’t wait to see your
4+
first contribution. Let’s get you started with a simple task:
5+
6+
## Step 1: Create your folder
7+
8+
- Inside the `chaos/task_1` folder, create a new folder using your GitHub username:
9+
10+
```plain
11+
chaos/task_1/@your_github_username
12+
````
13+
14+
## Step 2: Create the file `your_github_username.txt`
15+
16+
* Now, inside the folder you just created, add a file with the same name as your
17+
GitHub username, plus the `.txt` extension:
18+
19+
```plain
20+
your_github_username.txt
21+
```
22+
23+
Your file path should look like this:
24+
25+
```plain
26+
chaos/task_1/@your_github_username/your_github_username.txt
27+
```
28+
29+
## Step 3: Add some content
30+
31+
* Open the file using any text editor you like (VS Code, Notepad, etc.)
32+
* Write a greeting on the first line and a goodbye on the second line. For example:
33+
34+
```plain
35+
Hello!
36+
Goodbye!
37+
```
38+
39+
## Step 4: Save your file
40+
41+
* After writing your message, don’t forget to **save** the file so your changes are
42+
kept.
43+
44+
Example: You can check how your file should look here:
45+
[camilamaia.txt](https://github.com/cumbucadev/git-chaos/blob/main/chaos/task_1/%40camilamaia/camilamaia.txt)
46+
47+
If you need help, feel free to ask in the comments. The community is here to help!
48+
49+
Let’s go 🚀

0 commit comments

Comments
 (0)