Skip to content

Commit

Permalink
chore: setup v2 legacy releases
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-bompart committed Aug 26, 2024
1 parent 19cabeb commit c1bcc38
Show file tree
Hide file tree
Showing 18 changed files with 22 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'Dependency Review'

on:
pull_request:
branches: ['master']
branches: ['v2']

permissions:
contents: read
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/masterbot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Master Robot
on:
push:
branches:
- master
- 'prerelease/**'
- v2
jobs:
build:
name: 'Build'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/package-lock-root-fail.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: 'package-lock.json root validator'

on:
push:
branches: [master]
branches: [v2]
paths:
- '**/package-lock.json'
- '!utils/atomic-storybook/package-lock.json'
- '!package-lock.json'
pull_request:
branches: [master]
branches: [v2]
paths:
- '**/package-lock.json'
- '!utils/atomic-storybook/package-lock.json'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/package-lock-root-success.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ name: 'package-lock.json root validator'

on:
push:
branches: [master]
branches: [v2]
paths-ignore:
- '**/package-lock.json'
- '!package-lock.json'
pull_request:
branches: [master]
branches: [v2]
paths-ignore:
- '**/package-lock.json'
- '!package-lock.json'
Expand Down
2 changes: 1 addition & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
]
}
},
"defaultBase": "master",
"defaultBase": "v2",
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"useInferencePlugins": false
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"scripts": {
"postinstall": "husky install && patch-package && npx playwright install",
"reset:install": "git checkout origin/master package-lock.json && npm i",
"reset:install": "git checkout origin/v2 package-lock.json && npm i",
"clean:install": "git clean -xfd && npm run reset:install",
"dev:atomic": "concurrently \"npm run -w @coveo/headless dev\" \"npm run -w @coveo/atomic start\"",
"build": "nx run-many --target=build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export interface InitializationOptions {
*
* For example: `https://orgid.admin.org.coveo.com`
*
* The [getOrganizationEndpoints](https://github.com/coveo/ui-kit/blob/master/packages/headless/src/api/platform-client.ts) helper function can be useful to create the appropriate object.
* The [getOrganizationEndpoints](https://github.com/coveo/ui-kit/blob/v2/packages/headless/src/api/platform-client.ts) helper function can be useful to create the appropriate object.
*
* We recommend using this option, since it has resiliency benefits and simplifies the overall configuration for multi-region deployments.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/atomic/cypress/e2e/pager.cypress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ describe('Pager Test Suites', () => {
describe('Should allow customization of', () => {
const iconTypes = ['previous', 'next'];
const testCustomIcon =
'https://raw.githubusercontent.com/coveo/ui-kit/master/packages/atomic/src/images/arrow-top-rounded.svg';
'https://raw.githubusercontent.com/coveo/ui-kit/v2/packages/atomic/src/images/arrow-top-rounded.svg';

beforeEach(() => {
cy.intercept({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ export const CustomIcon: Story = {
tags: ['commerce'],
args: {
'attributes-previous-button-icon':
'https://raw.githubusercontent.com/coveo/ui-kit/master/packages/atomic/src/images/arrow-top-rounded.svg',
'https://raw.githubusercontent.com/coveo/ui-kit/v2/packages/atomic/src/images/arrow-top-rounded.svg',
'attributes-next-button-icon':
'https://raw.githubusercontent.com/coveo/ui-kit/master/packages/atomic/src/images/arrow-top-rounded.svg',
'https://raw.githubusercontent.com/coveo/ui-kit/v2/packages/atomic/src/images/arrow-top-rounded.svg',
},
play: async (context) => {
await play(context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ test.describe('with numberOfPages=-5', () => {

test.describe('should allow custom icons', () => {
const customIcon =
'https://raw.githubusercontent.com/coveo/ui-kit/master/packages/atomic/src/images/arrow-top-rounded.svg';
'https://raw.githubusercontent.com/coveo/ui-kit/v2/packages/atomic/src/images/arrow-top-rounded.svg';

test.beforeEach(async ({pager}) => {
await pager.load({story: 'custom-icon'});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
* @ProductContext() private product!: Product;
* ```
*
* For more information and examples, view the [Utilities section](https://github.com/coveo/ui-kit/tree/master/packages/atomic#utilities) of the Coveo Atomic README.
* For more information and examples, view the [Utilities section](https://github.com/coveo/ui-kit/tree/v2/packages/atomic#utilities) of the Coveo Atomic README.
*/
export function ProductContext(opts: {folded: boolean} = {folded: false}) {
return ItemContext({parentName: 'atomic-product', folded: opts.folded});
Expand Down
2 changes: 1 addition & 1 deletion packages/headless-react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
## Learn more

- Checkout our [Documentation](https://docs.coveo.com/en/headless/latest/usage/headless-server-side-rendering/)
- Refer to [samples/headless-ssr](https://github.com/coveo/ui-kit/tree/master/packages/samples/headless-ssr/) for examples.
- Refer to [samples/headless-ssr](https://github.com/coveo/ui-kit/tree/v2/packages/samples/headless-ssr/) for examples.
- All exports from `@coveo/headless/ssr` are also available from under `@coveo/headless-react/ssr` as convenience.
4 changes: 2 additions & 2 deletions packages/headless/src/app/engine-configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {CoveoFramework} from '../utils/version';
*
* For example: `https://orgid.org.coveo.com`
*
* The [getOrganizationEndpoints](https://github.com/coveo/ui-kit/blob/master/packages/headless/src/api/platform-client.ts) helper function can be useful to create the appropriate object.
* The [getOrganizationEndpoints](https://github.com/coveo/ui-kit/blob/v2/packages/headless/src/api/platform-client.ts) helper function can be useful to create the appropriate object.
*/
export interface CoreEngineOrganizationEndpoints {
/**
Expand Down Expand Up @@ -83,7 +83,7 @@ export interface EngineConfiguration<
*
* For example: `https://orgid.org.coveo.com`
*
* The [getOrganizationEndpoints](https://github.com/coveo/ui-kit/blob/master/packages/headless/src/api/platform-client.ts) helper function can be useful to create the appropriate object.
* The [getOrganizationEndpoints](https://github.com/coveo/ui-kit/blob/v2/packages/headless/src/api/platform-client.ts) helper function can be useful to create the appropriate object.
*
* We recommend using this option, since it has resiliency benefits and simplifies the overall configuration for multi-region deployments. See [Organization endpoints](https://docs.coveo.com/en/mcc80216).
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import successTemplate from './success.html';
* The `QuanticFeedbackModal` component overlays a message modal on top of the current app window, the modal contains a form that allows the user to give feedback.
*
* Under the hood, the component relies on a [`lightningModal`](https://developer.salesforce.com/docs/component-library/bundle/lightning-modal/documentation) component.
* For an example of how to use the `QuanticFeedbackModal` component, see the [`quanticSmartSnippet`](https://github.com/coveo/ui-kit/blob/master/packages/quantic/force-app/main/default/lwc/quanticSmartSnippet/quanticSmartSnippet.js) implementation.
* For an example of how to use the `QuanticFeedbackModal` component, see the [`quanticSmartSnippet`](https://github.com/coveo/ui-kit/blob/v2/packages/quantic/force-app/main/default/lwc/quanticSmartSnippet/quanticSmartSnippet.js) implementation.
*
* @category Search
* @category Insight Panel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import successTemplate from './templates/success.html';
* The `QuanticFeedbackModalQna` component overlays a message modal on top of the current app window, the modal contains a form that allows the user to give feedback on a CRGA response.
*
* Under the hood, the component relies on a [`lightningModal`](https://developer.salesforce.com/docs/component-library/bundle/lightning-modal/documentation) component.
* For an example of how to use the `QuanticFeedbackModalQna` component, see the [`quanticGeneratedAnswer`](https://github.com/coveo/ui-kit/blob/master/packages/quantic/force-app/main/default/lwc/quanticGeneratedAnswer/quanticGeneratedAnswer.js) implementation.
* For an example of how to use the `QuanticFeedbackModalQna` component, see the [`quanticGeneratedAnswer`](https://github.com/coveo/ui-kit/blob/v2/packages/quantic/force-app/main/default/lwc/quanticGeneratedAnswer/quanticGeneratedAnswer.js) implementation.
*
* @category Search
* @category Insight Panel
Expand Down
2 changes: 1 addition & 1 deletion scripts/reports/bundle-size/time-series.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const branch = process.env.GIT_BRANCH;
const fileName = 'bundle-size-time-series.csv';

function isMasterBranch() {
return branch === 'origin/master';
return branch === 'origin/v2';
}

function dataFileExists() {
Expand Down
2 changes: 1 addition & 1 deletion utils/release/common/constants.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {fileURLToPath} from 'node:url';
export const REPO_HOST = 'https://github.com';
export const REPO_OWNER = 'coveo';
export const REPO_NAME = 'ui-kit';
export const REPO_MAIN_BRANCH = 'master';
export const REPO_MAIN_BRANCH = 'v2';
export const REPO_FS_ROOT = resolve(
dirname(fileURLToPath(import.meta.url)),
'..',
Expand Down
2 changes: 1 addition & 1 deletion utils/release/lock-master.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
REPO_OWNER,
} from './common/constants.mjs';

const RELEASE_FREEZE_ID = 215874;
const RELEASE_FREEZE_ID = 1510095;

export const limitWriteAccessToBot = () => changeBranchRestrictions(true);

Expand Down

0 comments on commit c1bcc38

Please sign in to comment.