hunk.code_window:     paths-ignore:
         - README.md
         - .github/**
         - '!.github/workflows/nx.yml'
     pull_request:
     merge_group:
       branches:
         - master
         - v[0-9]+.[0-9]+.x-staging
  
hunk.labels: keep keep keep add keep keep keep keep keep
hunk.after_edit:       - '!.github/actions/build-rust/action.yml'
         - '!.github/actions/setup-node/action.yml'
  
hunk.file_path: .github/workflows/nx.yml
hunk.type: add
file: import { filterByFilterList } from '@affine/component/page-list';
  import type { Collection } from '@affine/env/filter';
  import type { PageMeta } from '@blocksuite/store';
  
  export const filterPage = (collection: Collection, page: PageMeta) => {
    if (collection.excludeList?.includes(page.id)) {
      return false;
    }
    if (collection.allowList?.includes(page.id)) {
      return true;
    }
    return filterByFilterList(collection.filterList, {
      'Is Favourited': !!page.favorite,
      Created: page.createDate,
      Updated: page.updatedDate ?? page.createDate,
      Tags: page.tags,
    });
  };
  