Skip to content

Instantly share code, notes, and snippets.

#include <qlogging.h>
#include <QDebug>
#include <QMetaClassInfo>
#include <QObject>
#include <QString>
#include <QStringList>
#include <iostream>
#include "serialize.h"
cmake_minimum_required(VERSION 3.15)
if (NOT(CMAKE_SCRIPT_MODE_FILE AND NOT CMAKE_PARENT_LIST_FILE))
message(FATAL_ERROR "UpdateSources.cmake must be run in script mode")
return()
endif()
set(_script_file "${CMAKE_CURRENT_LIST_FILE}")
get_filename_component(_root "${_script_file}" ABSOLUTE) # _root/cmake/UpdateSources.cmake
get_filename_component(_root "${_root}" DIRECTORY) # _root/cmake/
#!/usr/bin/env python3
import argparse
import difflib
import pathlib
import re
import sys
from collections import defaultdict
from dataclasses import dataclass, field
from enum import Enum
REPO="Prismlauncher"
OWNER="Prismlauncher"
PRS=$(
gh api graphql -f query='
query($repo: String!, $owner: String!, $endCursor: String) {
repository(name: $repo, owner: $owner) {
pullRequests(first: 100, after: $endCursor, states: [OPEN], labels: ["blocked"]) {
nodes {
number
bodyText