diff --git a/.github/workflows/auto-create-pr.yaml b/.github/workflows/auto-create-pr.yaml deleted file mode 100644 index b04553a7..00000000 --- a/.github/workflows/auto-create-pr.yaml +++ /dev/null @@ -1,33 +0,0 @@ -name: Auto Create Pull Request - -on: - push: - branches: - - $(git branch --show-current) - -jobs: - create_pull_request: - runs-on: ubuntu-latest - - steps: - - 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" - }' diff --git a/.github/workflows/auto-create-pr.yml b/.github/workflows/auto-create-pr.yml new file mode 100644 index 00000000..f28a9161 --- /dev/null +++ b/.github/workflows/auto-create-pr.yml @@ -0,0 +1,22 @@ +name: Create Pull Request + +on: + push: + branches: + - '*' + +jobs: + create-pr: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v2 + + - name: Create Pull Request + 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' 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 @@ + + +
+ + + + + +