From c37f4e6b86a47b05b972d42f1933eaacd009fa19 Mon Sep 17 00:00:00 2001 From: Ngo Quang Thang Date: Sun, 1 Oct 2023 11:35:51 +0700 Subject: [PATCH 1/3] Add my learning component (temporary) --- frontend/my-app/src/routes/MyLearning.svelte | 185 +++++++++++++++++++ 1 file changed, 185 insertions(+) create mode 100644 frontend/my-app/src/routes/MyLearning.svelte diff --git a/frontend/my-app/src/routes/MyLearning.svelte b/frontend/my-app/src/routes/MyLearning.svelte new file mode 100644 index 00000000..83d09d16 --- /dev/null +++ b/frontend/my-app/src/routes/MyLearning.svelte @@ -0,0 +1,185 @@ + + + + + + +
+
+
+
+ + Card Img + +
+
Card title
+

Name

+ +
+
+
+
+ {percent}% complete +
+
+
+
+
+
+ + Card Img + +
+
Card title
+

Name

+ +
+
+
+
+ {percent}% complete +
+
+
+
+
+
+ + Card Img + +
+
Card title
+

Name

+ +
+
+
+
+ {percent}% complete +
+
+
+
+
+
+ + From ead6aeee86bbe83b7a70eef29968ec8c9d5e8001 Mon Sep 17 00:00:00 2001 From: Ngo Quang Thang Date: Sun, 1 Oct 2023 11:41:36 +0700 Subject: [PATCH 2/3] Adjust github workflows.yaml --- .github/workflows/auto-create-pr.yaml | 33 +++++++++------------------ 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/.github/workflows/auto-create-pr.yaml b/.github/workflows/auto-create-pr.yaml index b04553a7..f28a9161 100644 --- a/.github/workflows/auto-create-pr.yaml +++ b/.github/workflows/auto-create-pr.yaml @@ -1,33 +1,22 @@ -name: Auto Create Pull Request +name: Create Pull Request on: push: branches: - - $(git branch --show-current) + - '*' jobs: - create_pull_request: + create-pr: runs-on: ubuntu-latest - steps: - - name: Checkout code + - name: Checkout Code uses: actions/checkout@v2 - name: Create Pull Request - run: | - # Get the current branch name - CURRENT_BRANCH=$(git branch --show-current) - - # Set the token for API access - TOKEN=${{ secrets.GITHUB_TOKEN }} - - # Create a new pull request - curl -X POST \ - -H "Authorization: token $TOKEN" \ - -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/${{ github.repository }}/pulls \ - -d '{ - "title": "Auto-generated PR from '$CURRENT_BRANCH' to develop", - "head": "'$CURRENT_BRANCH'", - "base": "main" - }' + uses: peter-evans/create-pull-request@v3 + with: + title: 'Automated PR from ${{ github.ref }}' + branch: ${{ github.ref }} + base: 'main' # Change this to the target branch + body: 'Automatically created PR from a GitHub Action.' + labels: 'automated-pr' From 1de17a36a8fc930686a9a4e10f4db1b19065ebce Mon Sep 17 00:00:00 2001 From: Ngo Quang Thang Date: Sun, 1 Oct 2023 11:42:09 +0700 Subject: [PATCH 3/3] Rename file --- .github/workflows/{auto-create-pr.yaml => auto-create-pr.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{auto-create-pr.yaml => auto-create-pr.yml} (100%) diff --git a/.github/workflows/auto-create-pr.yaml b/.github/workflows/auto-create-pr.yml similarity index 100% rename from .github/workflows/auto-create-pr.yaml rename to .github/workflows/auto-create-pr.yml