]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: update branch references
authorEvan You <yyx990803@gmail.com>
Thu, 12 May 2022 00:44:57 +0000 (08:44 +0800)
committerEvan You <yyx990803@gmail.com>
Thu, 12 May 2022 00:45:06 +0000 (08:45 +0800)
.github/contributing.md
packages/vue/examples/__tests__/commits.mock.ts
packages/vue/examples/__tests__/commits.spec.ts
packages/vue/examples/classic/commits.html
packages/vue/examples/composition/commits.html

index c3d8a7b795499b4190978b239065412582e47556..5b1a2cc4568fa6d22b73bd961ecdb66349de2596 100644 (file)
@@ -17,7 +17,7 @@ Hi! I'm really excited that you are interested in contributing to Vue.js. Before
 
 ## Pull Request Guidelines
 
-- Checkout a topic branch from a base branch, e.g. `master`, and merge back against that branch.
+- Checkout a topic branch from a base branch, e.g. `main`, and merge back against that branch.
 
 - If adding a new feature:
 
index 4b2d21c10bf3993c0e4e6219acfdbb8543c55d61..8bcb8d8f97bfe2e5485836eacf07b7bd92baea5f 100644 (file)
@@ -1,5 +1,5 @@
 export default {
-  master: [
+  main: [
     {
       sha: 'd1527fbee422c7170e56845e55b49c4fd6de72a7',
       node_id:
@@ -273,7 +273,7 @@ export default {
       ]
     }
   ],
-  sync: [
+  'v2-compat': [
     {
       sha: 'ecf4da822eea97f5db5fa769d39f994755384a4b',
       node_id:
index 2190fb0d93ffb0710873ad1199e1a49a1f7f8826..52e2fda755f89b1711ad8e2873e1cedbdffaee9d 100644 (file)
@@ -22,7 +22,7 @@ describe('e2e: commits', () => {
           status: 200,
           contentType: 'application/json',
           headers: { 'Access-Control-Allow-Origin': '*' },
-          body: JSON.stringify(mocks[match[1] as 'master' | 'sync'])
+          body: JSON.stringify(mocks[match[1] as 'main' | 'v2-compat'])
         })
       }
     })
@@ -31,16 +31,16 @@ describe('e2e: commits', () => {
     await page().waitForSelector('li')
     expect(await count('input')).toBe(2)
     expect(await count('label')).toBe(2)
-    expect(await text('label[for="master"]')).toBe('master')
-    expect(await text('label[for="sync"]')).toBe('sync')
-    expect(await isChecked('#master')).toBe(true)
-    expect(await isChecked('#sync')).toBe(false)
-    expect(await text('p')).toBe('vuejs/vue@master')
+    expect(await text('label[for="main"]')).toBe('main')
+    expect(await text('label[for="v2-compat"]')).toBe('v2-compat')
+    expect(await isChecked('#main')).toBe(true)
+    expect(await isChecked('#v2-compat')).toBe(false)
+    expect(await text('p')).toBe('vuejs/core@main')
     expect(await count('li')).toBe(3)
     expect(await count('li .commit')).toBe(3)
     expect(await count('li .message')).toBe(3)
-    await click('#sync')
-    expect(await text('p')).toBe('vuejs/vue@sync')
+    await click('#v2-compat')
+    expect(await text('p')).toBe('vuejs/core@v2-compat')
     expect(await count('li')).toBe(3)
     expect(await count('li .commit')).toBe(3)
     expect(await count('li .message')).toBe(3)
index 8803009bc538079c762ff5bdd58b4abc8edc9a13..811f0edc2589656f40beb6c56a640bda169690a3 100644 (file)
@@ -10,7 +10,7 @@
       v-model="currentBranch">
     <label :for="branch">{{ branch }}</label>
   </template>
-  <p>vuejs/vue@{{ currentBranch }}</p>
+  <p>vuejs/core@{{ currentBranch }}</p>
   <ul>
     <li v-for="{ html_url, sha, author, commit } in commits">
       <a :href="html_url" target="_blank" class="commit">{{ sha.slice(0, 7) }}</a>
@@ -26,8 +26,8 @@ const API_URL = `https://api.github.com/repos/vuejs/core/commits?per_page=3&sha=
 
 Vue.createApp({
   data: () => ({
-    branches: ['master', 'sync'],
-    currentBranch: 'master',
+    branches: ['main', 'v2-compat'],
+    currentBranch: 'main',
     commits: null
   }),
 
index 6009237b7a18696add97e90c7824d821f52f5147..b094214179f2c969b5db0a229aa145e3a7cf70e8 100644 (file)
@@ -10,7 +10,7 @@
       v-model="currentBranch">
     <label :for="branch">{{ branch }}</label>
   </template>
-  <p>vuejs/vue@{{ currentBranch }}</p>
+  <p>vuejs/core@{{ currentBranch }}</p>
   <ul>
     <li v-for="{ html_url, sha, author, commit } in commits">
       <a :href="html_url" target="_blank" class="commit">{{ sha.slice(0, 7) }}</a>
@@ -34,7 +34,7 @@ const formatDate = v => v.replace(/T|Z/g, ' ')
 
 createApp({
   setup() {
-    const currentBranch = ref('master')
+    const currentBranch = ref('main')
     const commits = ref(null)
 
     watchEffect(() => {
@@ -47,7 +47,7 @@ createApp({
     })
 
     return {
-      branches: ['master', 'sync'],
+      branches: ['main', 'v2-compat'],
       currentBranch,
       commits,
       truncate,