Skip to content

Commit 64c1e3b

Browse files
committed
feat: task 1
1 parent 1bdd21a commit 64c1e3b

10 files changed

Lines changed: 977 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="../git-chaos/.github/workflows/template_task_1.md"
33+
ISSUE_FILE="../git-chaos/.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: ../git-chaos/.github/workflows/issue_temp.md
65+
labels: 'solo-practice, task-1'
66+
assignees: ${{ env.USERNAME }}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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 the file
7+
8+
- Inside the `chaos/task_1` folder, create a file using your GitHub username:
9+
10+
```plain
11+
chaos/task_1/your_github_username.txt
12+
```
13+
14+
## Step 2: Add some content
15+
16+
* Open the file using any text editor you like (VS Code, Notepad, etc.)
17+
* Write a greeting on the first line and a goodbye on the second line. For example:
18+
19+
```plain
20+
Hello!
21+
Goodbye!
22+
```
23+
24+
## Step 3: Save your file
25+
26+
* After writing your message, don’t forget to **save** the file so your changes are
27+
kept.
28+
29+
Example: You can check how your file should look here: [camilamaia.txt][camilamaia.txt]
30+
31+
If you need help, feel free to ask in the comments. The community is here to help!
32+
33+
Let’s go 🚀
34+
35+
[camilamaia.txt]: (https://github.com/cumbucadev/git-chaos/blob/main/chaos/task_1/camilamaia.txt

0 commit comments

Comments
 (0)