## 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:
export default {
- master: [
+ main: [
{
sha: 'd1527fbee422c7170e56845e55b49c4fd6de72a7',
node_id:
]
}
],
- sync: [
+ 'v2-compat': [
{
sha: 'ecf4da822eea97f5db5fa769d39f994755384a4b',
node_id:
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'])
})
}
})
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)
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>
Vue.createApp({
data: () => ({
- branches: ['master', 'sync'],
- currentBranch: 'master',
+ branches: ['main', 'v2-compat'],
+ currentBranch: 'main',
commits: null
}),
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>
createApp({
setup() {
- const currentBranch = ref('master')
+ const currentBranch = ref('main')
const commits = ref(null)
watchEffect(() => {
})
return {
- branches: ['master', 'sync'],
+ branches: ['main', 'v2-compat'],
currentBranch,
commits,
truncate,