Repository: boyter/scc Branch: master Commit: cc8311ea9fee Files: 1050 Total size: 11.9 MB Directory structure: gitextract_j2nq6hjf/ ├── .devcontainer/ │ └── devcontainer.json ├── .gitattributes ├── .github/ │ ├── FUNDING.yml │ ├── ISSUE_TEMPLATE/ │ │ └── bug_report.md │ └── workflows/ │ ├── codeql-analysis.yml │ ├── docker-publish.yml │ └── go.yml ├── .gitignore ├── .goreleaser.yml ├── .ignore ├── .sccignore ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── Dockerfile ├── LANGUAGES.md ├── LICENSE ├── README.md ├── SCC-OUTPUT-REPORT.html ├── benchmark.sh ├── benchmark_to_chart.py ├── examples/ │ ├── complexity/ │ │ ├── complexity.cpp │ │ └── complexity.java │ ├── countas/ │ │ ├── test.jsp │ │ └── test.new │ ├── duplicates/ │ │ ├── 1.java │ │ ├── 10.java │ │ ├── 11.java │ │ ├── 12.java │ │ ├── 13.java │ │ ├── 14.java │ │ ├── 15.java │ │ ├── 16.java │ │ ├── 17.java │ │ ├── 18.java │ │ ├── 19.java │ │ ├── 2.java │ │ ├── 20.java │ │ ├── 3.java │ │ ├── 4.java │ │ ├── 5.java │ │ ├── 6.java │ │ ├── 7.java │ │ ├── 8.java │ │ └── 9.java │ ├── generated/ │ │ ├── test.cs │ │ └── test.h │ ├── issue114/ │ │ ├── .gitignore │ │ ├── .ignore │ │ ├── .travis.yml │ │ ├── java │ │ ├── license │ │ └── makefile │ ├── issue120/ │ │ ├── test │ │ └── test.java │ ├── issue152/ │ │ └── example.black.css │ ├── issue214/ │ │ ├── ббббббббббббббббббббббббббббббббб.md │ │ ├── ѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬ.md │ │ └── 中文中文中文中文中文中文中文中文中文中文中文中文中文中文中文中文.md │ ├── issue246.py │ ├── issue260/ │ │ └── test.c │ ├── issue323/ │ │ ├── a.php │ │ └── b.php │ ├── issue339/ │ │ ├── matlab.m │ │ └── objectivec.m │ ├── issue345/ │ │ └── filename.cc │ ├── issue379/ │ │ └── filename.py │ ├── issue552/ │ │ └── test.txt │ ├── issue564/ │ │ ├── a/ │ │ │ └── level1/ │ │ │ └── level2/ │ │ │ └── test.py │ │ ├── b/ │ │ │ └── c/ │ │ │ └── level2/ │ │ │ └── test.py │ │ ├── level1/ │ │ │ ├── level2/ │ │ │ │ └── test.py │ │ │ └── test.go │ │ └── test.go │ ├── issue610/ │ │ └── issue610.ts │ ├── language/ │ │ ├── .bash_login │ │ ├── .cshrc │ │ ├── .dockerignore │ │ ├── .ignore │ │ ├── .kshrc │ │ ├── .tcshrc │ │ ├── .zshrc │ │ ├── Amber.ab │ │ ├── ArkTs.ets │ │ ├── Blueprint.blp │ │ ├── Build.csx │ │ ├── CMakeLists.txt │ │ ├── Dockerfile │ │ ├── FSharp.fs │ │ ├── GNUMakefile │ │ ├── Gemfile │ │ ├── HassIQApp.mc │ │ ├── MLIR.mlir │ │ ├── POML.poml │ │ ├── PostScript.ps │ │ ├── Rakefile │ │ ├── Sally.yarn │ │ ├── TOML.toml │ │ ├── TOON.toon │ │ ├── abnf.abnf │ │ ├── alchemist.crn │ │ ├── algol68.a68 │ │ ├── apex.apex │ │ ├── arturo.art │ │ ├── astro.astro │ │ ├── barber_solutions.als │ │ ├── bean.beancount │ │ ├── bicep.bicep │ │ ├── bitbucket-pipelines.yml │ │ ├── boo.boo │ │ ├── bosque.bsq │ │ ├── bru.bru │ │ ├── c3.c3 │ │ ├── cairo.cairo │ │ ├── capnproto.capnp │ │ ├── chapel.chpl │ │ ├── circom.circom │ │ ├── clojure.cljc │ │ ├── cloudformation.json │ │ ├── cloudformation.yml │ │ ├── component.templ │ │ ├── cuda.cu │ │ ├── cypher.cypher │ │ ├── d2.d2 │ │ ├── daml.daml │ │ ├── docker.nu │ │ ├── dot.gv │ │ ├── elixirtemplate.eex │ │ ├── elm.elm │ │ ├── emit.emit │ │ ├── factor.factor │ │ ├── flow9.flow │ │ ├── fsl.fsl │ │ ├── fxml.fxml │ │ ├── gleam.gleam │ │ ├── go.go │ │ ├── godot.tscn │ │ ├── goplus.gop │ │ ├── graphql.graphql │ │ ├── gremlin.gremlin │ │ ├── gwion.gw │ │ ├── haml.haml │ │ ├── hare.ha │ │ ├── haskell.hs │ │ ├── hcl.hcl │ │ ├── ini.ini │ │ ├── javascript.js │ │ ├── jcl.jcl │ │ ├── jq.jq │ │ ├── jsonc.jsonc │ │ ├── jsonnet.jsonnet │ │ ├── kitchen-sink.json5 │ │ ├── koto.koto │ │ ├── lalrpop.lalrpop │ │ ├── license │ │ ├── linear_solve.fut │ │ ├── livescript.ls │ │ ├── llvmir.ll │ │ ├── lua.lua │ │ ├── luau.luau │ │ ├── luna.luna │ │ ├── main.cj │ │ ├── makefile │ │ ├── metal.metal │ │ ├── mojo.mojo │ │ ├── moonbit.mbt │ │ ├── nature.n │ │ ├── nawk.awk │ │ ├── perl.pl │ │ ├── pkl.pkl │ │ ├── plain.txt │ │ ├── python.py │ │ ├── qasm.qasm │ │ ├── qsharp.qs │ │ ├── racket.rkt │ │ ├── raml.raml │ │ ├── rebol.reb │ │ ├── redscript.reds │ │ ├── rscript.r │ │ ├── rtf.rtf │ │ ├── scallop.scl │ │ ├── seed7.sd7 │ │ ├── slang.slang │ │ ├── slint.slint │ │ ├── smalltalk.cs.st │ │ ├── snakefile.smk │ │ ├── stan.stan │ │ ├── syntax.wren │ │ ├── systemd.service │ │ ├── tact.tact │ │ ├── teal.teal │ │ ├── tera.tera │ │ ├── test.ch │ │ ├── test.dm │ │ ├── test.java │ │ ├── test.prg │ │ ├── test.sieve │ │ ├── test.tf │ │ ├── test.tofu │ │ ├── textile.textile │ │ ├── ttcn.ttcn │ │ ├── typescript.ts │ │ ├── typespec.tsp │ │ ├── typst.typ │ │ ├── up.up │ │ ├── vala.vala │ │ ├── version.rc │ │ ├── vim.vim │ │ ├── wenyan.wy │ │ ├── wsdl.wsdl │ │ ├── xhtml.xhtml │ │ ├── xmake.lua │ │ ├── xmlschema.xsd │ │ ├── yaml.yml │ │ ├── zig.zig │ │ └── zokrates.zok │ ├── long/ │ │ ├── test.feature │ │ ├── test.ftl │ │ ├── test.jsp │ │ ├── test.mxml │ │ ├── test.rdl │ │ ├── test.vcl │ │ └── test.xslt │ ├── minified/ │ │ ├── 0-941d61979b9396d94f06.js │ │ ├── 1-fa6e7d2ffea9ee90c8d8.js │ │ ├── app-5cddf2000f4491a89a40.js │ │ ├── component---src-pages-index-tsx-65151e9f2f564e3fe49c.js │ │ └── webpack-runtime-c6e0a1eee0c3fa087a21.js │ ├── nolines.py │ ├── oneline.py │ ├── onenewline.py │ ├── performance_tests/ │ │ ├── create_folders_with_files.py │ │ └── create_performance_test.py │ ├── remap/ │ │ ├── java.java │ │ └── unknown │ ├── shared_extension/ │ │ ├── coq/ │ │ │ └── Qabs.v │ │ ├── verilog/ │ │ │ └── button_debounce.v │ │ └── vlang/ │ │ └── users.v │ ├── symlink/ │ │ └── test.py │ ├── threenewline.py │ ├── twolines.py │ └── twonewline.py ├── go.mod ├── go.sum ├── languages.json ├── main.go ├── main_test.go ├── mcp.go ├── packages/ │ ├── aur/ │ │ └── PKGBUILD │ └── chocolatey/ │ ├── ReadMe.md │ ├── scc.nuspec │ └── tools/ │ ├── LICENSE.txt │ ├── VERIFICATION.txt │ ├── chocolateyinstall.ps1 │ └── chocolateyuninstall.ps1 ├── processor/ │ ├── bloom.go │ ├── cocomo.go │ ├── cocomo_test.go │ ├── constants.go │ ├── detector.go │ ├── detector_test.go │ ├── file.go │ ├── file_test.go │ ├── filereader.go │ ├── formatters.go │ ├── formatters_test.go │ ├── helpers.go │ ├── helpers_test.go │ ├── locomo.go │ ├── locomo_test.go │ ├── processor.go │ ├── processor_test.go │ ├── result.go │ ├── similar_flags.go │ ├── similar_flags_test.go │ ├── structs.go │ ├── structs_test.go │ ├── trace.go │ ├── trace_test.go │ ├── workers.go │ ├── workers_regression_test.go │ ├── workers_test.go │ └── workers_tokei_test.go ├── scripts/ │ ├── include.go │ └── languages.tmpl ├── test-all.sh └── vendor/ ├── github.com/ │ ├── agnivade/ │ │ └── levenshtein/ │ │ ├── .gitignore │ │ ├── License.txt │ │ ├── Makefile │ │ ├── README.md │ │ └── levenshtein.go │ ├── bahlo/ │ │ └── generic-list-go/ │ │ ├── LICENSE │ │ ├── README.md │ │ └── list.go │ ├── boyter/ │ │ ├── gocodewalker/ │ │ │ ├── .gitignore │ │ │ ├── .goreleaser.yml │ │ │ ├── .ignore │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── dir_suffix.go │ │ │ ├── file.go │ │ │ ├── gitmodule.go │ │ │ ├── go-gitignore/ │ │ │ │ ├── LICENSE │ │ │ │ ├── README.md │ │ │ │ ├── cache.go │ │ │ │ ├── doc.go │ │ │ │ ├── error.go │ │ │ │ ├── errors.go │ │ │ │ ├── exclude.go │ │ │ │ ├── gitignore.go │ │ │ │ ├── lexer.go │ │ │ │ ├── match.go │ │ │ │ ├── parser.go │ │ │ │ ├── pattern.go │ │ │ │ ├── position.go │ │ │ │ ├── repository.go │ │ │ │ ├── rune.go │ │ │ │ ├── token.go │ │ │ │ ├── tokenset.go │ │ │ │ └── tokentype.go │ │ │ ├── hidden.go │ │ │ └── hidden_windows.go │ │ └── simplecache/ │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── README.md │ │ └── simplecache.go │ ├── buger/ │ │ └── jsonparser/ │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── Dockerfile │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── bytes.go │ │ ├── bytes_safe.go │ │ ├── bytes_unsafe.go │ │ ├── escape.go │ │ ├── fuzz.go │ │ ├── oss-fuzz-build.sh │ │ └── parser.go │ ├── clipperhouse/ │ │ └── uax29/ │ │ └── v2/ │ │ ├── LICENSE │ │ ├── graphemes/ │ │ │ ├── README.md │ │ │ ├── iterator.go │ │ │ ├── reader.go │ │ │ ├── splitfunc.go │ │ │ └── trie.go │ │ └── internal/ │ │ └── iterators/ │ │ └── iterator.go │ ├── danwakefield/ │ │ └── fnmatch/ │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── README.md │ │ └── fnmatch.go │ ├── google/ │ │ └── uuid/ │ │ ├── CHANGELOG.md │ │ ├── CONTRIBUTING.md │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dce.go │ │ ├── doc.go │ │ ├── hash.go │ │ ├── marshal.go │ │ ├── node.go │ │ ├── node_js.go │ │ ├── node_net.go │ │ ├── null.go │ │ ├── sql.go │ │ ├── time.go │ │ ├── util.go │ │ ├── uuid.go │ │ ├── version1.go │ │ ├── version4.go │ │ ├── version6.go │ │ └── version7.go │ ├── inconshreveable/ │ │ └── mousetrap/ │ │ ├── LICENSE │ │ ├── README.md │ │ ├── trap_others.go │ │ └── trap_windows.go │ ├── mailru/ │ │ └── easyjson/ │ │ ├── LICENSE │ │ ├── buffer/ │ │ │ └── pool.go │ │ └── jwriter/ │ │ └── writer.go │ ├── mark3labs/ │ │ └── mcp-go/ │ │ ├── LICENSE │ │ ├── mcp/ │ │ │ ├── consts.go │ │ │ ├── errors.go │ │ │ ├── prompts.go │ │ │ ├── resources.go │ │ │ ├── tasks.go │ │ │ ├── tools.go │ │ │ ├── typed_tools.go │ │ │ ├── types.go │ │ │ └── utils.go │ │ ├── server/ │ │ │ ├── completion.go │ │ │ ├── constants.go │ │ │ ├── ctx.go │ │ │ ├── elicitation.go │ │ │ ├── errors.go │ │ │ ├── hooks.go │ │ │ ├── http_transport_options.go │ │ │ ├── inprocess_session.go │ │ │ ├── request_handler.go │ │ │ ├── roots.go │ │ │ ├── sampling.go │ │ │ ├── server.go │ │ │ ├── session.go │ │ │ ├── sse.go │ │ │ ├── stdio.go │ │ │ ├── streamable_http.go │ │ │ └── task_hooks.go │ │ └── util/ │ │ └── logger.go │ ├── mattn/ │ │ ├── go-colorable/ │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── colorable_appengine.go │ │ │ ├── colorable_others.go │ │ │ ├── colorable_windows.go │ │ │ ├── go.test.sh │ │ │ └── noncolorable.go │ │ ├── go-isatty/ │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── doc.go │ │ │ ├── go.test.sh │ │ │ ├── isatty_bsd.go │ │ │ ├── isatty_others.go │ │ │ ├── isatty_plan9.go │ │ │ ├── isatty_solaris.go │ │ │ ├── isatty_tcgets.go │ │ │ └── isatty_windows.go │ │ └── go-runewidth/ │ │ ├── LICENSE │ │ ├── README.md │ │ ├── benchstat.txt │ │ ├── new.txt │ │ ├── old.txt │ │ ├── runewidth.go │ │ ├── runewidth_appengine.go │ │ ├── runewidth_js.go │ │ ├── runewidth_posix.go │ │ ├── runewidth_table.go │ │ └── runewidth_windows.go │ ├── modern-go/ │ │ └── concurrent/ │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── executor.go │ │ ├── go_above_19.go │ │ ├── go_below_19.go │ │ ├── log.go │ │ ├── test.sh │ │ └── unbounded_executor.go │ ├── rs/ │ │ └── zerolog/ │ │ ├── .gitignore │ │ ├── CNAME │ │ ├── LICENSE │ │ ├── README.md │ │ ├── _config.yml │ │ ├── array.go │ │ ├── console.go │ │ ├── context.go │ │ ├── ctx.go │ │ ├── encoder.go │ │ ├── encoder_cbor.go │ │ ├── encoder_json.go │ │ ├── event.go │ │ ├── fields.go │ │ ├── globals.go │ │ ├── go112.go │ │ ├── hook.go │ │ ├── internal/ │ │ │ ├── cbor/ │ │ │ │ ├── README.md │ │ │ │ ├── base.go │ │ │ │ ├── cbor.go │ │ │ │ ├── decode_stream.go │ │ │ │ ├── string.go │ │ │ │ ├── time.go │ │ │ │ └── types.go │ │ │ └── json/ │ │ │ ├── base.go │ │ │ ├── bytes.go │ │ │ ├── string.go │ │ │ ├── time.go │ │ │ └── types.go │ │ ├── log/ │ │ │ └── log.go │ │ ├── log.go │ │ ├── not_go112.go │ │ ├── sampler.go │ │ ├── syslog.go │ │ └── writer.go │ ├── spf13/ │ │ ├── cast/ │ │ │ ├── .gitignore │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── cast.go │ │ │ ├── caste.go │ │ │ └── timeformattype_string.go │ │ ├── cobra/ │ │ │ ├── .gitignore │ │ │ ├── .golangci.yml │ │ │ ├── .mailmap │ │ │ ├── CONDUCT.md │ │ │ ├── CONTRIBUTING.md │ │ │ ├── LICENSE.txt │ │ │ ├── MAINTAINERS │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── SECURITY.md │ │ │ ├── active_help.go │ │ │ ├── args.go │ │ │ ├── bash_completions.go │ │ │ ├── bash_completionsV2.go │ │ │ ├── cobra.go │ │ │ ├── command.go │ │ │ ├── command_notwin.go │ │ │ ├── command_win.go │ │ │ ├── completions.go │ │ │ ├── fish_completions.go │ │ │ ├── flag_groups.go │ │ │ ├── powershell_completions.go │ │ │ ├── shell_completions.go │ │ │ └── zsh_completions.go │ │ └── pflag/ │ │ ├── .editorconfig │ │ ├── .gitignore │ │ ├── .golangci.yaml │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── bool.go │ │ ├── bool_func.go │ │ ├── bool_slice.go │ │ ├── bytes.go │ │ ├── count.go │ │ ├── duration.go │ │ ├── duration_slice.go │ │ ├── errors.go │ │ ├── flag.go │ │ ├── float32.go │ │ ├── float32_slice.go │ │ ├── float64.go │ │ ├── float64_slice.go │ │ ├── func.go │ │ ├── golangflag.go │ │ ├── int.go │ │ ├── int16.go │ │ ├── int32.go │ │ ├── int32_slice.go │ │ ├── int64.go │ │ ├── int64_slice.go │ │ ├── int8.go │ │ ├── int_slice.go │ │ ├── ip.go │ │ ├── ip_slice.go │ │ ├── ipmask.go │ │ ├── ipnet.go │ │ ├── ipnet_slice.go │ │ ├── string.go │ │ ├── string_array.go │ │ ├── string_slice.go │ │ ├── string_to_int.go │ │ ├── string_to_int64.go │ │ ├── string_to_string.go │ │ ├── text.go │ │ ├── time.go │ │ ├── uint.go │ │ ├── uint16.go │ │ ├── uint32.go │ │ ├── uint64.go │ │ ├── uint8.go │ │ └── uint_slice.go │ └── yosida95/ │ └── uritemplate/ │ └── v3/ │ ├── LICENSE │ ├── README.rst │ ├── compile.go │ ├── equals.go │ ├── error.go │ ├── escape.go │ ├── expression.go │ ├── machine.go │ ├── match.go │ ├── parse.go │ ├── prog.go │ ├── uritemplate.go │ └── value.go ├── go.yaml.in/ │ └── yaml/ │ └── v2/ │ ├── .travis.yml │ ├── LICENSE │ ├── LICENSE.libyaml │ ├── NOTICE │ ├── README.md │ ├── apic.go │ ├── decode.go │ ├── emitterc.go │ ├── encode.go │ ├── parserc.go │ ├── readerc.go │ ├── resolve.go │ ├── scannerc.go │ ├── sorter.go │ ├── writerc.go │ ├── yaml.go │ ├── yamlh.go │ └── yamlprivateh.go ├── golang.org/ │ └── x/ │ ├── crypto/ │ │ ├── LICENSE │ │ ├── PATENTS │ │ └── blake2b/ │ │ ├── blake2b.go │ │ ├── blake2bAVX2_amd64.go │ │ ├── blake2bAVX2_amd64.s │ │ ├── blake2b_amd64.s │ │ ├── blake2b_generic.go │ │ ├── blake2b_ref.go │ │ ├── blake2x.go │ │ ├── go125.go │ │ └── register.go │ ├── sync/ │ │ ├── LICENSE │ │ ├── PATENTS │ │ └── errgroup/ │ │ └── errgroup.go │ ├── sys/ │ │ ├── LICENSE │ │ ├── PATENTS │ │ ├── cpu/ │ │ │ ├── asm_aix_ppc64.s │ │ │ ├── asm_darwin_x86_gc.s │ │ │ ├── byteorder.go │ │ │ ├── cpu.go │ │ │ ├── cpu_aix.go │ │ │ ├── cpu_arm.go │ │ │ ├── cpu_arm64.go │ │ │ ├── cpu_arm64.s │ │ │ ├── cpu_darwin_x86.go │ │ │ ├── cpu_gc_arm64.go │ │ │ ├── cpu_gc_s390x.go │ │ │ ├── cpu_gc_x86.go │ │ │ ├── cpu_gc_x86.s │ │ │ ├── cpu_gccgo_arm64.go │ │ │ ├── cpu_gccgo_s390x.go │ │ │ ├── cpu_gccgo_x86.c │ │ │ ├── cpu_gccgo_x86.go │ │ │ ├── cpu_linux.go │ │ │ ├── cpu_linux_arm.go │ │ │ ├── cpu_linux_arm64.go │ │ │ ├── cpu_linux_loong64.go │ │ │ ├── cpu_linux_mips64x.go │ │ │ ├── cpu_linux_noinit.go │ │ │ ├── cpu_linux_ppc64x.go │ │ │ ├── cpu_linux_riscv64.go │ │ │ ├── cpu_linux_s390x.go │ │ │ ├── cpu_loong64.go │ │ │ ├── cpu_loong64.s │ │ │ ├── cpu_mips64x.go │ │ │ ├── cpu_mipsx.go │ │ │ ├── cpu_netbsd_arm64.go │ │ │ ├── cpu_openbsd_arm64.go │ │ │ ├── cpu_openbsd_arm64.s │ │ │ ├── cpu_other_arm.go │ │ │ ├── cpu_other_arm64.go │ │ │ ├── cpu_other_mips64x.go │ │ │ ├── cpu_other_ppc64x.go │ │ │ ├── cpu_other_riscv64.go │ │ │ ├── cpu_other_x86.go │ │ │ ├── cpu_ppc64x.go │ │ │ ├── cpu_riscv64.go │ │ │ ├── cpu_s390x.go │ │ │ ├── cpu_s390x.s │ │ │ ├── cpu_wasm.go │ │ │ ├── cpu_x86.go │ │ │ ├── cpu_zos.go │ │ │ ├── cpu_zos_s390x.go │ │ │ ├── endian_big.go │ │ │ ├── endian_little.go │ │ │ ├── hwcap_linux.go │ │ │ ├── parse.go │ │ │ ├── proc_cpuinfo_linux.go │ │ │ ├── runtime_auxv.go │ │ │ ├── runtime_auxv_go121.go │ │ │ ├── syscall_aix_gccgo.go │ │ │ ├── syscall_aix_ppc64_gc.go │ │ │ └── syscall_darwin_x86_gc.go │ │ └── unix/ │ │ ├── .gitignore │ │ ├── README.md │ │ ├── affinity_linux.go │ │ ├── aliases.go │ │ ├── asm_aix_ppc64.s │ │ ├── asm_bsd_386.s │ │ ├── asm_bsd_amd64.s │ │ ├── asm_bsd_arm.s │ │ ├── asm_bsd_arm64.s │ │ ├── asm_bsd_ppc64.s │ │ ├── asm_bsd_riscv64.s │ │ ├── asm_linux_386.s │ │ ├── asm_linux_amd64.s │ │ ├── asm_linux_arm.s │ │ ├── asm_linux_arm64.s │ │ ├── asm_linux_loong64.s │ │ ├── asm_linux_mips64x.s │ │ ├── asm_linux_mipsx.s │ │ ├── asm_linux_ppc64x.s │ │ ├── asm_linux_riscv64.s │ │ ├── asm_linux_s390x.s │ │ ├── asm_openbsd_mips64.s │ │ ├── asm_solaris_amd64.s │ │ ├── asm_zos_s390x.s │ │ ├── auxv.go │ │ ├── auxv_unsupported.go │ │ ├── bluetooth_linux.go │ │ ├── bpxsvc_zos.go │ │ ├── bpxsvc_zos.s │ │ ├── cap_freebsd.go │ │ ├── constants.go │ │ ├── dev_aix_ppc.go │ │ ├── dev_aix_ppc64.go │ │ ├── dev_darwin.go │ │ ├── dev_dragonfly.go │ │ ├── dev_freebsd.go │ │ ├── dev_linux.go │ │ ├── dev_netbsd.go │ │ ├── dev_openbsd.go │ │ ├── dev_zos.go │ │ ├── dirent.go │ │ ├── endian_big.go │ │ ├── endian_little.go │ │ ├── env_unix.go │ │ ├── fcntl.go │ │ ├── fcntl_darwin.go │ │ ├── fcntl_linux_32bit.go │ │ ├── fdset.go │ │ ├── gccgo.go │ │ ├── gccgo_c.c │ │ ├── gccgo_linux_amd64.go │ │ ├── ifreq_linux.go │ │ ├── ioctl_linux.go │ │ ├── ioctl_signed.go │ │ ├── ioctl_unsigned.go │ │ ├── ioctl_zos.go │ │ ├── mkall.sh │ │ ├── mkerrors.sh │ │ ├── mmap_nomremap.go │ │ ├── mremap.go │ │ ├── pagesize_unix.go │ │ ├── pledge_openbsd.go │ │ ├── ptrace_darwin.go │ │ ├── ptrace_ios.go │ │ ├── race.go │ │ ├── race0.go │ │ ├── readdirent_getdents.go │ │ ├── readdirent_getdirentries.go │ │ ├── sockcmsg_dragonfly.go │ │ ├── sockcmsg_linux.go │ │ ├── sockcmsg_unix.go │ │ ├── sockcmsg_unix_other.go │ │ ├── sockcmsg_zos.go │ │ ├── symaddr_zos_s390x.s │ │ ├── syscall.go │ │ ├── syscall_aix.go │ │ ├── syscall_aix_ppc.go │ │ ├── syscall_aix_ppc64.go │ │ ├── syscall_bsd.go │ │ ├── syscall_darwin.go │ │ ├── syscall_darwin_amd64.go │ │ ├── syscall_darwin_arm64.go │ │ ├── syscall_darwin_libSystem.go │ │ ├── syscall_dragonfly.go │ │ ├── syscall_dragonfly_amd64.go │ │ ├── syscall_freebsd.go │ │ ├── syscall_freebsd_386.go │ │ ├── syscall_freebsd_amd64.go │ │ ├── syscall_freebsd_arm.go │ │ ├── syscall_freebsd_arm64.go │ │ ├── syscall_freebsd_riscv64.go │ │ ├── syscall_hurd.go │ │ ├── syscall_hurd_386.go │ │ ├── syscall_illumos.go │ │ ├── syscall_linux.go │ │ ├── syscall_linux_386.go │ │ ├── syscall_linux_alarm.go │ │ ├── syscall_linux_amd64.go │ │ ├── syscall_linux_amd64_gc.go │ │ ├── syscall_linux_arm.go │ │ ├── syscall_linux_arm64.go │ │ ├── syscall_linux_gc.go │ │ ├── syscall_linux_gc_386.go │ │ ├── syscall_linux_gc_arm.go │ │ ├── syscall_linux_gccgo_386.go │ │ ├── syscall_linux_gccgo_arm.go │ │ ├── syscall_linux_loong64.go │ │ ├── syscall_linux_mips64x.go │ │ ├── syscall_linux_mipsx.go │ │ ├── syscall_linux_ppc.go │ │ ├── syscall_linux_ppc64x.go │ │ ├── syscall_linux_riscv64.go │ │ ├── syscall_linux_s390x.go │ │ ├── syscall_linux_sparc64.go │ │ ├── syscall_netbsd.go │ │ ├── syscall_netbsd_386.go │ │ ├── syscall_netbsd_amd64.go │ │ ├── syscall_netbsd_arm.go │ │ ├── syscall_netbsd_arm64.go │ │ ├── syscall_openbsd.go │ │ ├── syscall_openbsd_386.go │ │ ├── syscall_openbsd_amd64.go │ │ ├── syscall_openbsd_arm.go │ │ ├── syscall_openbsd_arm64.go │ │ ├── syscall_openbsd_libc.go │ │ ├── syscall_openbsd_mips64.go │ │ ├── syscall_openbsd_ppc64.go │ │ ├── syscall_openbsd_riscv64.go │ │ ├── syscall_solaris.go │ │ ├── syscall_solaris_amd64.go │ │ ├── syscall_unix.go │ │ ├── syscall_unix_gc.go │ │ ├── syscall_unix_gc_ppc64x.go │ │ ├── syscall_zos_s390x.go │ │ ├── sysvshm_linux.go │ │ ├── sysvshm_unix.go │ │ ├── sysvshm_unix_other.go │ │ ├── timestruct.go │ │ ├── unveil_openbsd.go │ │ ├── vgetrandom_linux.go │ │ ├── vgetrandom_unsupported.go │ │ ├── xattr_bsd.go │ │ ├── zerrors_aix_ppc.go │ │ ├── zerrors_aix_ppc64.go │ │ ├── zerrors_darwin_amd64.go │ │ ├── zerrors_darwin_arm64.go │ │ ├── zerrors_dragonfly_amd64.go │ │ ├── zerrors_freebsd_386.go │ │ ├── zerrors_freebsd_amd64.go │ │ ├── zerrors_freebsd_arm.go │ │ ├── zerrors_freebsd_arm64.go │ │ ├── zerrors_freebsd_riscv64.go │ │ ├── zerrors_linux.go │ │ ├── zerrors_linux_386.go │ │ ├── zerrors_linux_amd64.go │ │ ├── zerrors_linux_arm.go │ │ ├── zerrors_linux_arm64.go │ │ ├── zerrors_linux_loong64.go │ │ ├── zerrors_linux_mips.go │ │ ├── zerrors_linux_mips64.go │ │ ├── zerrors_linux_mips64le.go │ │ ├── zerrors_linux_mipsle.go │ │ ├── zerrors_linux_ppc.go │ │ ├── zerrors_linux_ppc64.go │ │ ├── zerrors_linux_ppc64le.go │ │ ├── zerrors_linux_riscv64.go │ │ ├── zerrors_linux_s390x.go │ │ ├── zerrors_linux_sparc64.go │ │ ├── zerrors_netbsd_386.go │ │ ├── zerrors_netbsd_amd64.go │ │ ├── zerrors_netbsd_arm.go │ │ ├── zerrors_netbsd_arm64.go │ │ ├── zerrors_openbsd_386.go │ │ ├── zerrors_openbsd_amd64.go │ │ ├── zerrors_openbsd_arm.go │ │ ├── zerrors_openbsd_arm64.go │ │ ├── zerrors_openbsd_mips64.go │ │ ├── zerrors_openbsd_ppc64.go │ │ ├── zerrors_openbsd_riscv64.go │ │ ├── zerrors_solaris_amd64.go │ │ ├── zerrors_zos_s390x.go │ │ ├── zptrace_armnn_linux.go │ │ ├── zptrace_linux_arm64.go │ │ ├── zptrace_mipsnn_linux.go │ │ ├── zptrace_mipsnnle_linux.go │ │ ├── zptrace_x86_linux.go │ │ ├── zsymaddr_zos_s390x.s │ │ ├── zsyscall_aix_ppc.go │ │ ├── zsyscall_aix_ppc64.go │ │ ├── zsyscall_aix_ppc64_gc.go │ │ ├── zsyscall_aix_ppc64_gccgo.go │ │ ├── zsyscall_darwin_amd64.go │ │ ├── zsyscall_darwin_amd64.s │ │ ├── zsyscall_darwin_arm64.go │ │ ├── zsyscall_darwin_arm64.s │ │ ├── zsyscall_dragonfly_amd64.go │ │ ├── zsyscall_freebsd_386.go │ │ ├── zsyscall_freebsd_amd64.go │ │ ├── zsyscall_freebsd_arm.go │ │ ├── zsyscall_freebsd_arm64.go │ │ ├── zsyscall_freebsd_riscv64.go │ │ ├── zsyscall_illumos_amd64.go │ │ ├── zsyscall_linux.go │ │ ├── zsyscall_linux_386.go │ │ ├── zsyscall_linux_amd64.go │ │ ├── zsyscall_linux_arm.go │ │ ├── zsyscall_linux_arm64.go │ │ ├── zsyscall_linux_loong64.go │ │ ├── zsyscall_linux_mips.go │ │ ├── zsyscall_linux_mips64.go │ │ ├── zsyscall_linux_mips64le.go │ │ ├── zsyscall_linux_mipsle.go │ │ ├── zsyscall_linux_ppc.go │ │ ├── zsyscall_linux_ppc64.go │ │ ├── zsyscall_linux_ppc64le.go │ │ ├── zsyscall_linux_riscv64.go │ │ ├── zsyscall_linux_s390x.go │ │ ├── zsyscall_linux_sparc64.go │ │ ├── zsyscall_netbsd_386.go │ │ ├── zsyscall_netbsd_amd64.go │ │ ├── zsyscall_netbsd_arm.go │ │ ├── zsyscall_netbsd_arm64.go │ │ ├── zsyscall_openbsd_386.go │ │ ├── zsyscall_openbsd_386.s │ │ ├── zsyscall_openbsd_amd64.go │ │ ├── zsyscall_openbsd_amd64.s │ │ ├── zsyscall_openbsd_arm.go │ │ ├── zsyscall_openbsd_arm.s │ │ ├── zsyscall_openbsd_arm64.go │ │ ├── zsyscall_openbsd_arm64.s │ │ ├── zsyscall_openbsd_mips64.go │ │ ├── zsyscall_openbsd_mips64.s │ │ ├── zsyscall_openbsd_ppc64.go │ │ ├── zsyscall_openbsd_ppc64.s │ │ ├── zsyscall_openbsd_riscv64.go │ │ ├── zsyscall_openbsd_riscv64.s │ │ ├── zsyscall_solaris_amd64.go │ │ ├── zsyscall_zos_s390x.go │ │ ├── zsysctl_openbsd_386.go │ │ ├── zsysctl_openbsd_amd64.go │ │ ├── zsysctl_openbsd_arm.go │ │ ├── zsysctl_openbsd_arm64.go │ │ ├── zsysctl_openbsd_mips64.go │ │ ├── zsysctl_openbsd_ppc64.go │ │ ├── zsysctl_openbsd_riscv64.go │ │ ├── zsysnum_darwin_amd64.go │ │ ├── zsysnum_darwin_arm64.go │ │ ├── zsysnum_dragonfly_amd64.go │ │ ├── zsysnum_freebsd_386.go │ │ ├── zsysnum_freebsd_amd64.go │ │ ├── zsysnum_freebsd_arm.go │ │ ├── zsysnum_freebsd_arm64.go │ │ ├── zsysnum_freebsd_riscv64.go │ │ ├── zsysnum_linux_386.go │ │ ├── zsysnum_linux_amd64.go │ │ ├── zsysnum_linux_arm.go │ │ ├── zsysnum_linux_arm64.go │ │ ├── zsysnum_linux_loong64.go │ │ ├── zsysnum_linux_mips.go │ │ ├── zsysnum_linux_mips64.go │ │ ├── zsysnum_linux_mips64le.go │ │ ├── zsysnum_linux_mipsle.go │ │ ├── zsysnum_linux_ppc.go │ │ ├── zsysnum_linux_ppc64.go │ │ ├── zsysnum_linux_ppc64le.go │ │ ├── zsysnum_linux_riscv64.go │ │ ├── zsysnum_linux_s390x.go │ │ ├── zsysnum_linux_sparc64.go │ │ ├── zsysnum_netbsd_386.go │ │ ├── zsysnum_netbsd_amd64.go │ │ ├── zsysnum_netbsd_arm.go │ │ ├── zsysnum_netbsd_arm64.go │ │ ├── zsysnum_openbsd_386.go │ │ ├── zsysnum_openbsd_amd64.go │ │ ├── zsysnum_openbsd_arm.go │ │ ├── zsysnum_openbsd_arm64.go │ │ ├── zsysnum_openbsd_mips64.go │ │ ├── zsysnum_openbsd_ppc64.go │ │ ├── zsysnum_openbsd_riscv64.go │ │ ├── zsysnum_zos_s390x.go │ │ ├── ztypes_aix_ppc.go │ │ ├── ztypes_aix_ppc64.go │ │ ├── ztypes_darwin_amd64.go │ │ ├── ztypes_darwin_arm64.go │ │ ├── ztypes_dragonfly_amd64.go │ │ ├── ztypes_freebsd_386.go │ │ ├── ztypes_freebsd_amd64.go │ │ ├── ztypes_freebsd_arm.go │ │ ├── ztypes_freebsd_arm64.go │ │ ├── ztypes_freebsd_riscv64.go │ │ ├── ztypes_linux.go │ │ ├── ztypes_linux_386.go │ │ ├── ztypes_linux_amd64.go │ │ ├── ztypes_linux_arm.go │ │ ├── ztypes_linux_arm64.go │ │ ├── ztypes_linux_loong64.go │ │ ├── ztypes_linux_mips.go │ │ ├── ztypes_linux_mips64.go │ │ ├── ztypes_linux_mips64le.go │ │ ├── ztypes_linux_mipsle.go │ │ ├── ztypes_linux_ppc.go │ │ ├── ztypes_linux_ppc64.go │ │ ├── ztypes_linux_ppc64le.go │ │ ├── ztypes_linux_riscv64.go │ │ ├── ztypes_linux_s390x.go │ │ ├── ztypes_linux_sparc64.go │ │ ├── ztypes_netbsd_386.go │ │ ├── ztypes_netbsd_amd64.go │ │ ├── ztypes_netbsd_arm.go │ │ ├── ztypes_netbsd_arm64.go │ │ ├── ztypes_openbsd_386.go │ │ ├── ztypes_openbsd_amd64.go │ │ ├── ztypes_openbsd_arm.go │ │ ├── ztypes_openbsd_arm64.go │ │ ├── ztypes_openbsd_mips64.go │ │ ├── ztypes_openbsd_ppc64.go │ │ ├── ztypes_openbsd_riscv64.go │ │ ├── ztypes_solaris_amd64.go │ │ └── ztypes_zos_s390x.go │ └── text/ │ ├── LICENSE │ ├── PATENTS │ ├── feature/ │ │ └── plural/ │ │ ├── common.go │ │ ├── message.go │ │ ├── plural.go │ │ └── tables.go │ ├── internal/ │ │ ├── catmsg/ │ │ │ ├── catmsg.go │ │ │ ├── codec.go │ │ │ └── varint.go │ │ ├── format/ │ │ │ ├── format.go │ │ │ └── parser.go │ │ ├── internal.go │ │ ├── language/ │ │ │ ├── common.go │ │ │ ├── compact/ │ │ │ │ ├── compact.go │ │ │ │ ├── language.go │ │ │ │ ├── parents.go │ │ │ │ ├── tables.go │ │ │ │ └── tags.go │ │ │ ├── compact.go │ │ │ ├── compose.go │ │ │ ├── coverage.go │ │ │ ├── language.go │ │ │ ├── lookup.go │ │ │ ├── match.go │ │ │ ├── parse.go │ │ │ ├── tables.go │ │ │ └── tags.go │ │ ├── match.go │ │ ├── number/ │ │ │ ├── common.go │ │ │ ├── decimal.go │ │ │ ├── format.go │ │ │ ├── number.go │ │ │ ├── pattern.go │ │ │ ├── roundingmode_string.go │ │ │ └── tables.go │ │ ├── stringset/ │ │ │ └── set.go │ │ └── tag/ │ │ └── tag.go │ ├── language/ │ │ ├── coverage.go │ │ ├── doc.go │ │ ├── language.go │ │ ├── match.go │ │ ├── parse.go │ │ ├── tables.go │ │ └── tags.go │ └── message/ │ ├── catalog/ │ │ ├── catalog.go │ │ ├── dict.go │ │ ├── go19.go │ │ └── gopre19.go │ ├── catalog.go │ ├── doc.go │ ├── format.go │ ├── message.go │ └── print.go ├── gopkg.in/ │ └── yaml.v3/ │ ├── LICENSE │ ├── NOTICE │ ├── README.md │ ├── apic.go │ ├── decode.go │ ├── emitterc.go │ ├── encode.go │ ├── parserc.go │ ├── readerc.go │ ├── resolve.go │ ├── scannerc.go │ ├── sorter.go │ ├── writerc.go │ ├── yaml.go │ ├── yamlh.go │ └── yamlprivateh.go └── modules.txt ================================================ FILE CONTENTS ================================================ ================================================ FILE: .devcontainer/devcontainer.json ================================================ { "name": "Go", "image": "mcr.microsoft.com/devcontainers/go:1.25", "customizations": { "codespaces": { "openFiles": [ "CODE_OF_CONDUCT.md", "CONTRIBUTING.md", "README.md", "languages.json" ] }, "vscode": { "extensions": ["golang.go"], "settings": { "go.gopath": "/go" } } }, "remoteUser": "vscode" } ================================================ FILE: .gitattributes ================================================ .sccignore linguist-language=Ignore-List ================================================ FILE: .github/FUNDING.yml ================================================ # These are supported funding model platforms github: boyter ================================================ FILE: .github/ISSUE_TEMPLATE/bug_report.md ================================================ --- name: Bug report about: Create a report to help us improve title: '' labels: '' assignees: '' --- **Describe the bug** A clear and concise description of what the bug is. **To Reproduce** 1. Tell us how you were using `scc` either as command line or library. 2. If command line please list the arguments. If library please supply code to demonstrate the issue. 3. If the issue is a miscount or some such please link or supply a file which demonstrates the issue. **Expected behavior** A clear and concise description of what you expected to happen. **Desktop (please complete the following information):** - OS: [e.g. macOS, Windows, Linux] - Version [e.g. 22] ================================================ FILE: .github/workflows/codeql-analysis.yml ================================================ name: "Code scanning - action" on: push: branches: [master, ] pull_request: # The branches below must be a subset of the branches above branches: [master] schedule: - cron: '0 22 * * 0' jobs: CodeQL-Build: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v5 with: # We must fetch at least the immediate parents so that if this is # a pull request then we can checkout the head. fetch-depth: 2 # If this run was triggered by a pull request event, then checkout # the head of the pull request instead of the merge commit. - run: git checkout HEAD if: ${{ github.event_name == 'pull_request' }} # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v4 # Override language selection by uncommenting this and choosing your languages # with: # languages: go, javascript, csharp, python, cpp, java # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild uses: github/codeql-action/autobuild@v4 # ℹ️ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines # and modify them (or add more) to build your code if your project # uses a compiled language #- run: | # make bootstrap # make release - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v4 ================================================ FILE: .github/workflows/docker-publish.yml ================================================ name: Docker # This workflow uses actions that are not certified by GitHub. # They are provided by a third-party and are governed by # separate terms of service, privacy policy, and support # documentation. on: #schedule: # - cron: '36 1 * * *' push: branches: [ "master" ] # Publish semver tags as releases. tags: [ 'v*.*.*' ] pull_request: branches: [ "master" ] env: # Use docker.io for Docker Hub if empty REGISTRY: ghcr.io # github.repository as / IMAGE_NAME: ${{ github.repository }} jobs: build: runs-on: ubuntu-latest permissions: contents: read packages: write # This is used to complete the identity challenge # with sigstore/fulcio when running outside of PRs. id-token: write steps: - name: Checkout repository uses: actions/checkout@v4 # Install the cosign tool except on PR # https://github.com/sigstore/cosign-installer - name: Install cosign if: github.event_name != 'pull_request' uses: sigstore/cosign-installer@v3.10.0 with: cosign-release: 'v2.6.0' # Set up BuildKit Docker container builder to be able to build # multi-platform images and export cache # https://github.com/docker/setup-buildx-action - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3.11.1 # Login against a Docker registry except on PR # https://github.com/docker/login-action - name: Log into registry ${{ env.REGISTRY }} if: github.event_name != 'pull_request' uses: docker/login-action@v3.6.0 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} # Extract metadata (tags, labels) for Docker # https://github.com/docker/metadata-action - name: Extract Docker metadata id: meta uses: docker/metadata-action@v5.8.0 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} # Build and push Docker image with Buildx (don't push on PR) # https://github.com/docker/build-push-action - name: Build and push Docker image id: build-and-push uses: docker/build-push-action@v6.18.0 env: DOCKER_BUILD_RECORD_UPLOAD: false with: context: . platforms: linux/amd64,linux/arm64 push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} # Sign the resulting Docker image digest except on PRs. # This will only write to the public Rekor transparency log when the Docker # repository is public to avoid leaking data. If you would like to publish # transparency data even for private images, pass --force to cosign below. # https://github.com/sigstore/cosign - name: Sign the published Docker image if: ${{ github.event_name != 'pull_request' }} env: # https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable TAGS: ${{ steps.meta.outputs.tags }} DIGEST: ${{ steps.build-and-push.outputs.digest }} # This step uses the identity token to provision an ephemeral certificate # against the sigstore community Fulcio instance. run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST} ================================================ FILE: .github/workflows/go.yml ================================================ name: Go on: push: branches: [ master ] pull_request: branches: [ master ] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 - name: Set up Go uses: actions/setup-go@v6 with: go-version-file: './go.mod' - name: Build run: go build -v ./... - name: Windows Build Test run: | GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" GOOS=windows GOARCH=386 go build -ldflags="-s -w" GOOS=windows GOARCH=arm64 go build -ldflags="-s -w" - name: Darwin Build Test run: | GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" GOOS=darwin GOARCH=arm64 go build -ldflags="-s -w" - name: Linux Build Test run: | GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" GOOS=linux GOARCH=386 go build -ldflags="-s -w" GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" GOOS=linux GOARCH=riscv64 go build -ldflags="-s -w" GOOS=linux GOARCH=loong64 go build -ldflags="-s -w" - name: Test run: go test -v ./... - name: Test Race run: go test -race -v ./... ================================================ FILE: .gitignore ================================================ # Binaries for programs and plugins *.exe *.dll *.so *.dylib # Test binary, build with `go test -c` *.test scc # Output of the go coverage tool, specifically when used with LiteIDE *.out # Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736 .glide/ # IDE .idea/ *.code-workspace .vscode/ # Performance tests examples/performance_tests/0 examples/performance_tests/1 examples/performance_tests/2 examples/performance_tests/3 examples/performance_tests/4 examples/performance_tests/5 examples/performance_tests/6 examples/performance_tests/7 examples/performance_tests/8 # Ignore test ignored.xml gitignorefile.txt # macOS .DS_Store dist/ ================================================ FILE: .goreleaser.yml ================================================ # This is an example .goreleaser.yml file with some sensible defaults. # Make sure to check the documentation at https://goreleaser.com before: hooks: # You may remove this if you don't use go modules. - go mod tidy # you may remove this if you don't need go generate - go generate ./... builds: - env: - CGO_ENABLED=0 goos: - linux - windows - darwin archives: - format: tar.gz # this name template makes the OS and Arch compatible with the results of uname. name_template: >- {{ .ProjectName }}_ {{- title .Os }}_ {{- if eq .Arch "amd64" }}x86_64 {{- else if eq .Arch "386" }}i386 {{- else }}{{ .Arch }}{{ end }} {{- if .Arm }}v{{ .Arm }}{{ end }} # use zip for windows archives format_overrides: - goos: windows format: zip checksum: name_template: 'checksums.txt' snapshot: name_template: "{{ incpatch .Version }}-next" changelog: sort: asc filters: exclude: - '^docs:' - '^test:' # The lines beneath this are called `modelines`. See `:help modeline` # Feel free to remove those if you don't want/use them. # yaml-language-server: $schema=https://goreleaser.com/static/schema.json # vim: set ts=2 sw=2 tw=0 fo=cnqoj ================================================ FILE: .ignore ================================================ vendor/ ignorefile.txt ================================================ FILE: .sccignore ================================================ examples .github dist ================================================ FILE: CODE_OF_CONDUCT.md ================================================ Do as Bill and Ted and be excellent to each other. ================================================ FILE: CONTRIBUTING.md ================================================ ## How to contribute to sloc cloc and code (scc) #### **Did you find a bug?** * **Ensure the bug was not already reported** by searching on GitHub under [Issues](https://github.com/boyter/scc/issues). * If you're unable to find an open issue addressing the problem, [open a new one](https://github.com/boyter/scc/issues/new). Be sure to include a **title and clear description**, as much relevant information as possible, and a **code sample** or an **executable test case** demonstrating the expected behavior that is not occurring. #### **Did you write a patch that fixes a bug?** * Open a new GitHub pull request with the patch. * Ensure the PR description clearly describes the problem and solution. Include the relevant issue number if applicable. * Before submitting, please specify that you explicitly licence your contribution under MIT licence. #### **Always remember** * Do as Bill and Ted and be excellent to each other. Thanks! ================================================ FILE: Dockerfile ================================================ FROM golang:1.25.2-alpine3.22 AS scc-get ENV GOOS=linux \ GOARCH=amd64 \ CGO_ENABLED=0 ARG VERSION=v3.4.0 COPY . /scc WORKDIR /scc RUN go build -ldflags="-s -w" -o /bin/scc FROM alpine:3.22 COPY --from=scc-get /bin/scc /bin/scc CMD ["/bin/scc"] ================================================ FILE: LANGUAGES.md ================================================ ``` ABAP (abap) ABNF (abnf) ActionScript (as) Ada (ada,adb,ads,pad) Agda (agda) Alchemist (crn) Alex (x) Algol 68 (a68) Alloy (als) Amber (ab) Android Interface Definition Language (aidl) Apex (apex,trigger) APL (apl,aplf,apln,aplc,dyalog) AppleScript (applescript) ArkTs (ets) Arturo (art) AsciiDoc (adoc) ASP (asa,asp) ASP.NET (asax,ascx,asmx,aspx,master,sitemap,webinfo) Assembly (s,asm) Astro (astro) ATS (dats,sats,ats,hats) Autoconf (in) AutoHotKey (ahk) Avro (avdl,avpr,avsc) AWK (awk) bait (bt) BASH (bash,bash_login,bash_logout,bash_profile,bashrc,.bash_login,.bash_logout,.bash_profile,.bashrc) Basic (bas) Batch (bat,btm,cmd) Bazel (bzl,build.bazel,build,workspace) Bean (bean,beancount) Bicep (bicep) Bitbake (bb,bbappend,bbclass) Bitbucket Pipeline (bitbucket-pipelines.yml) Blade template (blade.php) Blueprint (blp) Boo (boo) Bosque (bsq) Brainfuck (bf) Bru (bru) BuildStream (bst) C (c,ec,pgc) C Header (h) C Shell (csh,.cshrc) C# (cs,csx) C++ (cc,cpp,cxx,c++,pcc,ino,ccm,cppm,cxxm,c++m,mxx) C++ Header (hh,hpp,hxx,inl,ipp,ixx) C3 (c3) Cabal (cabal) Cairo (cairo) Cangjie (cj) Cap'n Proto (capnp) Cassius (cassius) Ceylon (ceylon) Chapel (chpl) Circom (circom) Clipper (prg,ch) Clojure (clj,cljc) ClojureScript (cljs) Closure Template (soy) CloudFormation (JSON) (json) CloudFormation (YAML) (yaml,yml) CMake (cmake,cmakelists.txt) COBOL (cob,cbl,ccp,cobol,cpy) CodeQL (ql,qll) CoffeeScript (coffee) Cogent (cogent) ColdFusion (cfm) ColdFusion CFScript (cfc) Coq (v) Creole (creole) Crystal (cr) CSS (css) CSV (csv) Cuda (cu) Cypher (cypher,cql) Cython (pyx,pxi,pxd) D (d) D2 (d2) DAML (daml) Dart (dart) Device Tree (dts,dtsi) Dhall (dhall) DM (dm) Docker ignore (.dockerignore) Dockerfile (dockerfile,dockerfile) Document Type Definition (dtd) DOT (dot,gv) Elixir (ex,exs) Elixir Template (eex) Elm (elm) Emacs Dev Env (ede) Emacs Lisp (el) EmiT (emit) Erlang (erl,hrl) Expect (exp) Extensible Stylesheet Language Transformations (xslt,xsl) F# (fs,fsi,fsx,fsscript) F* (fst) Factor (factor) Fennel (fnl) FIDL (fidl) Fish (fish) Flow9 (flow) Forth (4th,forth,fr,frt,fth,f83,fb,fpm,e4,rx,ft) FORTRAN Legacy (f,for,ftn,f77,pfo) Fortran Modern (f03,f08,f90,f95) Fragment Shader File (fsh) Freemarker Template (ftl) FSL (fsl) Futhark (fut) FXML (fxml) Game Maker Language (gml) Game Maker Project (yyp) GDScript (gd) Gemfile (gemfile) Gherkin Specification (feature) gitignore (.gitignore) Gleam (gleam) GLSL (vert,tesc,tese,geom,frag,comp,glsl) GN (gn,gni) Go (go) Go Template (tmpl,gohtml,gotxt) Go+ (gop) Godot Scene (tscn) Gradle (gradle) GraphQL (graphql) Gremlin (gremlin) Groovy (groovy,grt,gtpl,gvy) Gwion (gw) HAML (haml) Hamlet (hamlet) Handlebars (hbs,handlebars) Happy (y,ly) Hare (ha) Haskell (hs) Haxe (hx) HCL (hcl) HEEx (heex) HEX (hex) hoon (hoon) HTML (html,htm) IDL (idl,webidl,widl) Idris (idr,lidr) ignore (.ignore) INI (ini) Intel HEX (ihex) Isabelle (thy) Jade (jade) JAI (jai) Janet (janet) Java (java) JavaScript (js,cjs,mjs) JavaServer Pages (jsp) JCL (jcl,jcls) Jenkins Buildfile (jenkinsfile) Jinja (jinja,j2,jinja2) jq (jq) JSON (json) JSON5 (json5) JSONC (jsonc) JSONL (jsonl) Jsonnet (jsonnet,libsonnet) JSX (jsx) Julia (jl) Julius (julius) Jupyter (ipynb,jpynb) Just (justfile) K (k) Korn Shell (ksh,.kshrc) Kotlin (kt,kts) Koto (koto) LALRPOP (lalrpop) LaTeX (tex) LD Script (lds) Lean (lean,hlean) LESS (less) LEX (l) License (license,licence,copying,copying3,unlicense,unlicence,license-apache,licence-apache,license-mit,licence-mit,copyright) Lisp (lisp,lsp) LiveScript (ls) LLVM IR (ll) LOLCODE (lol,lols) Lua (lua) Luau (luau) Lucius (lucius) Luna (luna) m4 (m4) Macromedia eXtensible Markup Language (mxml) Madlang (mad) Makefile (makefile,mak,mk,bp,makefile,gnumakefile) Mako (mako,mao) Markdown (md,markdown) MATLAB (m) Max (maxpat) MDX (mdx) Meson (meson.build,meson_options.txt) Metal (metal) MLIR (mlir) Modula3 (m3,mg,ig,i3) Module-Definition (def) Mog (mog) Mojo (mojo) Monkey C (mc) Moonbit (mbt) MQL Header (mqh) MQL4 (mq4) MQL5 (mq5) MSBuild (csproj,vbproj,fsproj,vcproj,vcxproj,vcxproj.filters,ilproj,myapp,props,rdlc,resx,settings,sln,targets) MUMPS (mps) Mustache (mustache) Nature (n) Nial (ndf) Nim (nim) Nix (nix) Nushell (nu) nuspec (nuspec) Objective C (m) Objective C++ (mm) OCaml (ml,mli) Odin (odin) Opalang (opa) OpenQASM (qasm) OpenTofu (tofu) Org (org) Oz (oz) Pascal (pas) Patch (patch) Perl (pl,plx,pm) Phoenix LiveView (heex,leex) PHP (php) Picat (pi) PKGBUILD (pkgbuild) Pkl (pkl) PL/SQL (fnc,pkb,pks,prc,trg,vw) Plain Text (text,txt) Polly (polly) POML (poml) Pony (pony) PostScript (ps) Powershell (ps1,psm1) Processing (pde) Prolog (p,pro) Properties File (properties) Protocol Buffers (proto) PRQL (prql) PSL Assertion (psl) Puppet (pp) PureScript (purs) Python (py,pyw,pyi) Q# (qs) QCL (qcl) QML (qml) R (r) Racket (rkt) Rakefile (rake,rakefile) Raku (raku,rakumod,rakutest,rakudoc,t) RAML (raml,rml) Razor (cshtml,razor) ReasonML (re,rei) Rebol (reb) Redscript (reds) Report Definition Language (rdl) ReScript (res,resi) ReStructuredText (rst) Rich Text Format (rtf) Robot Framework (robot) Ruby (rb) Ruby HTML (rhtml,erb) Rust (rs) SAS (sas) Sass (sass,scss) Scala (sc,scala) Scallop (scl) Scheme (scm,ss) Scons (csig,sconstruct,sconscript) sed (sed) Seed7 (sd7,s7i) Shell (sh,.tcshrc) Sieve (sieve) SKILL (il) Slang (slang) Slint (slint) Smalltalk (cs.st,pck.st) Smarty Template (tpl) Snakemake (smk,rules,snakefile) SNOBOL (sno) Softbridge Basic (sbl) Solidity (sol) SPDX (spdx) Specman e (e) Spice Netlist (ckt) SPL (spl) SQL (sql,dml,ddl,dql) SRecode Template (srt) Stan (stan) Standard ML (SML) (sml) Stata (do,ado) Stylus (styl) Svelte (svelte) SVG (svg) Swift (swift) Swig (i) Systemd (automount,device,link,mount,path,scope,service,slice,socket,swap,target,timer) SystemVerilog (sv,svh) Tact (tact) TaskPaper (taskpaper) TCL (tcl) Teal (teal) Templ (templ) TemplateToolkit (tt,tt2) Tera (tera) Terraform (tf,tfvars,tf.json) TeX (tex,sty) Textile (textile) Thrift (thrift) TL (tl) TOML (toml) TOON (toon) Treetop (treetop,tt) TTCN-3 (ttcn,ttcn3,ttcnpp) Twig Template (twig) TypeScript (ts,tsx,cts,mts) TypeScript Typings (d.ts) TypeSpec (tsp) Typst (typ) Unreal Script (uc,uci,upkg) Up (up) Ur/Web (ur,urs) Ur/Web Project (urp) V (v) Vala (vala) Varnish Configuration (vcl) Verilog (vg,vh,v) Verilog Args File (irunargs,xrunargs) Vertex Shader File (vsh) VHDL (vhd,vhdl) Vim Script (vim,vimrc,gvimrc,_vimrc,.vimrc,_gvimrc,.gvimrc,vimrc,gvimrc) Visual Basic (vb) Visual Basic for Applications (cls) Vue (vue) W.I.S.E. Jobfile (fgmj) Web Services Description Language (wsdl) WebGPU Shading Language (wgsl) wenyan (wy) Windows Resource-Definition Script (rc) Wolfram (nb,wl) Wren (wren) XAML (xaml) Xcode Config (xcconfig) XHTML (xhtml,xhtm,xht) XMake (xmake.lua,xpack.lua) XML (xml) XML Schema (xsd) Xtend (xtend) YAML (yaml,yml) Yarn (yarn) Zig (zig) ZoKrates (zok) Zsh (zsh,zshenv,zlogin,zlogout,zprofile,zshrc,.zshenv,.zlogin,.zlogout,.zprofile,.zshrc) ``` ================================================ FILE: LICENSE ================================================ MIT License Copyright (c) 2021 Ben Boyter Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: README.md ================================================ # Sloc Cloc and Code (scc) ![SCC illustration](./scc.jpg) A tool similar to cloc, sloccount and tokei. For counting the lines of code, blank lines, comment lines, and physical lines of source code in many programming languages. Goal is to be the fastest code counter possible, but also perform COCOMO calculation like sloccount, LOCOMO estimation for LLM-based development costs, estimate code complexity similar to cyclomatic complexity calculators and produce unique lines of code or DRYness metrics. In short one tool to rule them all. Also it has a very short name which is easy to type `scc`. If you don't like sloc cloc and code feel free to use the name `Succinct Code Counter`. [![Go](https://github.com/boyter/scc/actions/workflows/go.yml/badge.svg)](https://github.com/boyter/scc/actions/workflows/go.yml) [![Go Report Card](https://goreportcard.com/badge/github.com/boyter/scc)](https://goreportcard.com/report/github.com/boyter/scc) [![Coverage Status](https://coveralls.io/repos/github/boyter/scc/badge.svg?branch=master)](https://coveralls.io/github/boyter/scc?branch=master) [![Scc Count Badge](https://sloc.xyz/github/boyter/scc/)](https://github.com/boyter/scc/) ![Scc count downloads](https://img.shields.io/github/downloads/boyter/scc/total?label=downloads%20%28GH%29) [![Mentioned in Awesome Go](https://awesome.re/mentioned-badge.svg)](https://github.com/avelino/awesome-go) Licensed under MIT licence. ## Table of Contents - [Install](#install) - [Background](#background) - [Pitch](#pitch) - [Usage](#usage) - [Complexity Estimates](#complexity-estimates) - [Unique Lines of Code (ULOC)](#unique-lines-of-code-uloc) - [COCOMO](#cocomo) - [LOCOMO](#locomo) - [Output Formats](#output-formats) - [Performance](#performance) - [Development](#development) - [MCP Server Mode](#mcp-server-mode) - [Adding/Modifying Languages](#addingmodifying-languages) - [Issues](#issues) - [Badges](#badges) - [Language Support](LANGUAGES.md) - [Citation](#citation) ### scc for Teams & Enterprise While scc will always be a free and tool for individual developers, companies and businesses, we are exploring an enhanced version designed for teams and businesses. scc Enterprise will build on the core scc engine to provide historical analysis, team-level dashboards, and policy enforcement to help engineering leaders track code health, manage technical debt, and forecast project costs. We are currently gathering interest for a private beta. If you want to visualize your codebase's evolution, integrate quality gates into your CI/CD pipeline, and get a big-picture view across all your projects, sign up for the early access list [here](https://docs.google.com/forms/d/e/1FAIpQLScIBKy3y2m0rKu89L67qwe26Xyn9Scu0gW-HQX9lC0qEAx9nQ/viewform) ### Install #### Go Install You can install `scc` by using the standard go toolchain. To install the latest stable version of scc: `go install github.com/boyter/scc/v3@latest` To install a development version: `go install github.com/boyter/scc/v3@master` Note that `scc` needs go version >= 1.25. #### Snap A [snap install](https://snapcraft.io/scc) exists thanks to [Ricardo](https://feliciano.tech/). `$ sudo snap install scc` *NB* Snap installed applications cannot run outside of `/home` so you may encounter issues if you use snap and attempt to run outside this directory. #### Homebrew Or if you have [Homebrew](https://brew.sh/) installed `$ brew install scc` #### Fedora Fedora Linux users can use a [COPR repository](https://copr.fedorainfracloud.org/coprs/lihaohong/scc/): `$ sudo dnf copr enable lihaohong/scc && sudo dnf install scc` #### MacPorts On macOS, you can also install via [MacPorts](https://www.macports.org) `$ sudo port install scc` #### Scoop Or if you are using [Scoop](https://scoop.sh/) on Windows `$ scoop install scc` #### Chocolatey Or if you are using [Chocolatey](https://chocolatey.org/) on Windows `$ choco install scc` #### WinGet Or if you are using [WinGet](https://github.com/microsoft/winget-cli) on Windows `winget install --id benboyter.scc --source winget` #### FreeBSD On FreeBSD, scc is available as a package `$ pkg install scc` Or, if you prefer to build from source, you can use the ports tree `$ cd /usr/ports/devel/scc && make install clean` ### Run in Docker Go to the directory you want to run scc from. Run the command below to run the latest release of scc on your current working directory: ```bash docker run --rm -it -v "$PWD:/pwd" ghcr.io/boyter/scc:master scc /pwd ``` #### Manual Binaries for Windows, GNU/Linux and macOS for both i386 and x86_64 machines are available from the [releases](https://github.com/boyter/scc/releases) page. #### GitLab #### Other If you would like to assist with getting `scc` added into apt/chocolatey/etc... please submit a PR or at least raise an issue with instructions. ### Background Read all about how it came to be along with performance benchmarks, - - - - - Some reviews of `scc` - - - Setting up `scc` in GitLab - A talk given at the first GopherCon AU about `scc` (press S to see speaker notes) - - For performance see the [Performance](https://github.com/boyter/scc#performance) section Other similar projects, - [SLOCCount](https://www.dwheeler.com/sloccount/) the original sloc counter - [cloc](https://github.com/AlDanial/cloc), inspired by SLOCCount; implemented in Perl for portability - [gocloc](https://github.com/hhatto/gocloc) a sloc counter in Go inspired by tokei - [loc](https://github.com/cgag/loc) rust implementation similar to tokei but often faster - [loccount](https://gitlab.com/esr/loccount) Go implementation written and maintained by ESR - [polyglot](https://github.com/vmchale/polyglot) ATS sloc counter - [tokei](https://github.com/XAMPPRocky/tokei) fast, accurate and written in rust - [sloc](https://github.com/flosse/sloc) coffeescript code counter - [stto](https://github.com/mainak55512/stto) new Go code counter with a focus on performance Interesting reading about other code counting projects tokei, loc, polyglot and loccount - - - - Further reading about processing files on the disk performance - Using `scc` to process 40 TB of files from GitHub/Bitbucket/GitLab - ### Pitch Why use `scc`? - It is very fast and gets faster the more CPU you throw at it - Accurate - Works very well across multiple platforms without slowdown (Windows, Linux, macOS) - Large language support - Can ignore duplicate files - Has complexity estimations - You need to tell the difference between Coq and Verilog in the same directory - cloc yaml output support so potentially a drop in replacement for some users - Can identify or ignore minified files - Able to identify many #! files ADVANCED! - Can ignore large files by lines or bytes - Can calculate the ULOC or unique lines of code by file, language or project - Supports multiple output formats for integration, CSV, SQL, JSON, HTML and more Why not use `scc`? - You don't like Go for some reason - It cannot count D source with different nested multi-line comments correctly ### Differences There are some important differences between `scc` and other tools that are out there. Here are a few important ones for you to consider. Blank lines inside comments are counted as comments. While the line is technically blank the decision was made that once in a comment everything there should be considered a comment until that comment is ended. As such the following, ```c /* blank lines follow */ ``` Would be counted as 4 lines of comments. This is noticeable when comparing scc's output to other tools on large repositories. `scc` is able to count verbatim strings correctly. For example in C# the following, ```C# private const string BasePath = @"a:\"; // The below is returned to the user as a version private const string Version = "1.0.0"; ``` Because of the prefixed @ this string ends at the trailing " by ignoring the escape character \ and as such should be counted as 2 code lines and 1 comment. Some tools are unable to deal with this and instead count up to the "1.0.0" as a string which can cause the middle comment to be counted as code rather than a comment. `scc` will also tell you the number of bytes it has processed (for most output formats) allowing you to estimate the cost of running some static analysis tools. ### Usage Command line usage of `scc` is designed to be as simple as possible. Full details can be found in `scc --help` or `scc -h`. Note that the below reflects the state of master not a release, as such features listed below may be missing from your installation. ```text Sloc, Cloc and Code. Count lines of code in a directory with complexity estimation. Version 3.5.0 (beta) Ben Boyter + Contributors Usage: scc [flags] [files or directories] Flags: --avg-wage int average wage value used for basic COCOMO calculation (default 56286) --binary disable binary file detection --by-file display output for every file -m, --character calculate max and mean characters per line --ci enable CI output settings where stdout is ASCII --cocomo-project-type string change COCOMO model type [organic, semi-detached, embedded, "custom,1,1,1,1"] (default "organic") --count-as string count extension as language [e.g. jsp:htm,chead:"C Header" maps extension jsp to html and chead to C Header] --count-ignore set to allow .gitignore and .ignore files to be counted --currency-symbol string set currency symbol (default "$") --debug enable debug output --directory-walker-job-workers int controls the maximum number of workers which will walk the directory tree (default 8) -a, --dryness calculate the DRYness of the project (implies --uloc) --eaf float the effort adjustment factor derived from the cost drivers (1.0 if rated nominal) (default 1) --exclude-dir strings directories to exclude (default [.git,.hg,.svn]) -x, --exclude-ext strings ignore file extensions (overrides include-ext) [comma separated list: e.g. go,java,js] -n, --exclude-file strings ignore files with matching names (default [package-lock.json,Cargo.lock,yarn.lock,pubspec.lock,Podfile.lock,pnpm-lock.yaml]) --file-gc-count int number of files to parse before turning the GC on (default 10000) --file-list-queue-size int the size of the queue of files found and ready to be read into memory (default 8) --file-process-job-workers int number of goroutine workers that process files collecting stats (default 8) --file-summary-job-queue-size int the size of the queue used to hold processed file statistics before formatting (default 8) -f, --format string set output format [tabular, wide, json, json2, csv, csv-stream, cloc-yaml, html, html-table, sql, sql-insert, openmetrics] (default "tabular") --format-multi string have multiple format output overriding --format [e.g. tabular:stdout,csv:file.csv,json:file.json] --gen identify generated files --generated-markers strings string markers in head of generated files (default [do not edit,]) -h, --help help for scc -i, --include-ext strings limit to file extensions [comma separated list: e.g. go,java,js] --include-symlinks if set will count symlink files -l, --languages print supported languages and extensions --large-byte-count int number of bytes a file can contain before being removed from output (default 1000000) --large-line-count int number of lines a file can contain before being removed from output (default 40000) --locomo enable LOCOMO (LLM Output COst MOdel) cost estimation --locomo-config string LOCOMO power-user config "tokensPerLine,inputPerLine,complexityWeight,iterations,iterationWeight" --locomo-cycles float override estimated LLM iteration cycles (default: calculated from complexity) --locomo-input-price float LOCOMO cost per 1M input tokens in dollars (overrides preset) --locomo-output-price float LOCOMO cost per 1M output tokens in dollars (overrides preset) --locomo-preset string LOCOMO model preset [large, medium, small, local] (default "medium") --locomo-review float human review minutes per line of code for LOCOMO estimate (default 0.01) --locomo-tps float LOCOMO output tokens per second (overrides preset) --cost-comparison show both COCOMO and LOCOMO estimates side by side --min identify minified files -z, --min-gen identify minified or generated files --min-gen-line-length int number of bytes per average line for file to be considered minified or generated (default 255) --mcp start as an MCP (Model Context Protocol) server over stdio --no-cocomo remove COCOMO calculation output -c, --no-complexity skip calculation of code complexity -d, --no-duplicates remove duplicate files from stats and output --no-gen ignore generated files in output (implies --gen) --no-gitignore disables .gitignore file logic --no-gitmodule disables .gitmodules file logic --no-hborder remove horizontal borders between sections --no-ignore disables .ignore file logic --no-large ignore files over certain byte and line size set by large-line-count and large-byte-count --no-min ignore minified files in output (implies --min) --no-min-gen ignore minified or generated files in output (implies --min-gen) --no-scc-ignore disables .sccignore file logic --no-size remove size calculation output -M, --not-match stringArray ignore files and directories matching regular expression -o, --output string output filename (default stdout) --overhead float set the overhead multiplier for corporate overhead (facilities, equipment, accounting, etc.) (default 2.4) -p, --percent include percentage values in output --remap-all string inspect every file and remap by checking for a string and remapping the language [e.g. "-*- C++ -*-":"C Header"] --remap-unknown string inspect files of unknown type and remap by checking for a string and remapping the language [e.g. "-*- C++ -*-":"C Header"] --size-unit string set size unit [si, binary, mixed, xkcd-kb, xkcd-kelly, xkcd-imaginary, xkcd-intel, xkcd-drive, xkcd-bakers] (default "si") --sloccount-format print a more SLOCCount like COCOMO calculation -s, --sort string column to sort by [files, name, lines, blanks, code, comments, complexity] (default "files") --sql-project string use supplied name as the project identifier for the current run. Only valid with the --format sql or sql-insert option -t, --trace enable trace output (not recommended when processing multiple files) -u, --uloc calculate the number of unique lines of code (ULOC) for the project -v, --verbose verbose output --version version for scc -w, --wide wider output with additional statistics (implies --complexity) ``` Output should look something like the below for the redis project ```text $ scc redis ─────────────────────────────────────────────────────────────────────────────── Language Files Lines Blanks Comments Code Complexity ─────────────────────────────────────────────────────────────────────────────── C 437 267,353 31,103 45,998 190,252 48,269 JSON 406 25,392 4 0 25,388 0 C Header 288 48,831 5,648 11,302 31,881 3,097 TCL 215 66,943 7,330 4,651 54,962 3,816 Shell 75 1,626 239 343 1,044 185 Python 34 4,802 694 498 3,610 621 Markdown 26 4,647 1,226 0 3,421 0 Autoconf 22 11,732 1,124 1,420 9,188 1,016 Lua 20 525 69 71 385 89 Makefile 20 1,956 368 170 1,418 85 YAML 20 2,696 147 53 2,496 0 MSBuild 11 1,995 2 0 1,993 160 Plain Text 10 1,773 313 0 1,460 0 Ruby 9 817 73 105 639 123 C++ 8 546 85 43 418 43 HTML 5 9,658 2,928 12 6,718 0 License 3 90 17 0 73 0 CMake 2 298 49 5 244 12 CSS 2 107 16 0 91 0 Systemd 2 80 6 0 74 0 BASH 1 143 16 5 122 38 Batch 1 28 2 0 26 3 C++ Header 1 9 1 3 5 0 Extensible Styleshe… 1 10 0 0 10 0 JavaScript 1 31 1 0 30 5 Module-Definition 1 11,375 2,116 0 9,259 167 SVG 1 1 0 0 1 0 Smarty Template 1 44 1 0 43 5 m4 1 951 218 64 669 0 ─────────────────────────────────────────────────────────────────────────────── Total 1,624 464,459 53,796 64,743 345,920 57,734 ─────────────────────────────────────────────────────────────────────────────── Estimated Cost to Develop (organic) $12,517,562 Estimated Schedule Effort (organic) 35.93 months Estimated People Required (organic) 30.95 ─────────────────────────────────────────────────────────────────────────────── Processed 16601962 bytes, 16.602 megabytes (SI) ─────────────────────────────────────────────────────────────────────────────── ``` Note that you don't have to specify the directory you want to run against. Running `scc` will assume you want to run against the current directory. You can also run against multiple files or directories `scc directory1 directory2 file1 file2` with the results aggregated in the output. Since `scc` writes to standard output, there are many ways to easily share the results. For example, using [netcat](https://manpages.org/nc) and [one of many pastebins](https://paste.c-net.org/) gives a public URL: ```bash $ scc | nc paste.c-net.org 9999 https://paste.c-net.org/Example ``` ### Ignore Files `scc` mostly supports .ignore files inside directories that it scans. This is similar to how ripgrep, ag and tokei work. .ignore files are 100% the same as .gitignore files with the same syntax, and as such `scc` will ignore files and directories listed in them. You can add .ignore files to ignore things like vendored dependency checked in files and such. The idea is allowing you to add a file or folder to git and have ignored in the count. It also supports its own ignore file `.sccignore` if you want `scc` to ignore things while having ripgrep, ag, tokei and others support them. ### Interesting Use Cases Used inside Intel Nemu Hypervisor to track code changes between revisions Appears to also be used inside both It also is used to count code and guess language types in which makes it one of the most frequently run code counters in the world. You can also hook scc into your gitlab pipeline Used by the following products and services, - [GitHub CodeQL](https://github.com/boyter/scc/pull/317) - The CodeQL engine uses `scc` for line counting - [JetBrains Qodana](https://github.com/JetBrains/qodana-cli) - The Qodana CLI leverages `scc` as a command-line helper for code analysis - [Scaleway](https://twitter.com/Scaleway/status/1488087029476995074?s=20&t=N2-z6O-ISDdDzULg4o4uVQ) - Cloud provider using `scc` - [Linux Foundation LFX Insights](https://docs.linuxfoundation.org/lfx/insights/v3-beta-version-current/getting-started/landing-page/cocomo-cost-estimation-simplified) - COCOMO cost estimation - [OpenEMS](https://openems.io/) ### Features `scc` uses a small state machine in order to determine what state the code is when it reaches a newline `\n`. As such it is aware of and able to count - Single Line Comments - Multi Line Comments - Strings - Multi Line Strings - Blank lines Because of this it is able to accurately determine if a comment is in a string or is actually a comment. It also attempts to count the complexity of code. This is done by checking for branching operations in the code. For example, each of the following `for if switch while else || && != ==` if encountered in Java would increment that files complexity by one. ### Complexity Estimates Let's take a minute to discuss the complexity estimate itself. The complexity estimate is really just a number that is only comparable to files in the same language. It should not be used to compare languages directly without weighting them. The reason for this is that its calculated by looking for branch and loop statements in the code and incrementing a counter for that file. Because some languages don't have loops and instead use recursion they can have a lower complexity count. Does this mean they are less complex? Probably not, but the tool cannot see this because it does not build an AST of the code as it only scans through it. Generally though the complexity there is to help estimate between projects written in the same language, or for finding the most complex file in a project `scc --by-file -s complexity` which can be useful when you are estimating on how hard something is to maintain, or when looking for those files that should probably be refactored. As for how it works. It's my own definition, but tries to be an approximation of cyclomatic complexity although done only on a file level. The reason it's an approximation is that it's calculated almost for free from a CPU point of view (since its a cheap lookup when counting), whereas a real cyclomatic complexity count would need to parse the code. It gives a reasonable guess in practice though even if it fails to identify recursive methods. The goal was never for it to be exact. In short when scc is looking through what it has identified as code if it notices what are usually branch conditions it will increment a counter. The conditions it looks for are compiled into the code and you can get an idea for them by looking at the JSON inside the repository. See for an example of what it's looking at for a file that's Java. The increment happens for each of the matching conditions and produces the number you see. ### Unique Lines of Code (ULOC) ULOC stands for Unique Lines of Code and represents the unique lines across languages, files and the project itself. This idea was taken from where the calculation is presented using standard Unix tools `sort -u *.h *.c | wc -l`. This metric is there to assist with the estimation of complexity within the project. Quoting the source > In my opinion, the number this produces should be a better estimate of the complexity of a project. Compared to SLOC, not only are blank lines discounted, but so are close-brace lines and other repetitive code such as common includes. On the other hand, ULOC counts comments, which require just as much maintenance as the code around them does, while avoiding inflating the result with license headers which appear in every file, for example. You can obtain the ULOC by supplying the `-u` or `--uloc` argument to `scc`. It has a corresponding metric `DRYness %` which is the percentage of ULOC to CLOC or `DRYness = ULOC / SLOC`. The higher the number the more DRY (don't repeat yourself) the project can be considered. In general a higher value here is a better as it indicates less duplicated code. The DRYness metric was taken from a comment by minimax To obtain the DRYness metric you can use the `-a` or `--dryness` argument to `scc`, which will implicitly set `--uloc`. Note that there is a performance penalty when calculating the ULOC metrics which can double the runtime. Running the uloc and DRYness calculations against C code a clone of redis produces an output as follows. ```bash $ scc -a -i c redis ─────────────────────────────────────────────────────────────────────────────── Language Files Lines Blanks Comments Code Complexity ─────────────────────────────────────────────────────────────────────────────── C 437 267,353 31,103 45,998 190,252 48,269 (ULOC) 149892 ─────────────────────────────────────────────────────────────────────────────── Total 437 267,353 31,103 45,998 190,252 48,269 ─────────────────────────────────────────────────────────────────────────────── Unique Lines of Code (ULOC) 149892 DRYness % 0.56 ─────────────────────────────────────────────────────────────────────────────── Estimated Cost to Develop (organic) $6,681,762 Estimated Schedule Effort (organic) 28.31 months Estimated People Required (organic) 20.97 ─────────────────────────────────────────────────────────────────────────────── Processed 9390815 bytes, 9.391 megabytes (SI) ─────────────────────────────────────────────────────────────────────────────── ``` Further reading about the ULOC calculation can be found at Interpreting Dryness, - 75% (High Density): Very terse, expressive code. Every line counts. (Example: Clojure, Haskell) - 60% - 70% (Standard): A healthy balance of logic and structural ceremony. (Example: Java, Python) - < 55% (High Boilerplate): High repetition. Likely due to mandatory error handling, auto-generated code, or verbose configuration. (Example: C#, CSS) See for more details. ### COCOMO The COCOMO statistics displayed at the bottom of any command line run can be configured as needed. ```text Estimated Cost to Develop (organic) $664,081 Estimated Schedule Effort (organic) 11.772217 months Estimated People Required (organic) 5.011633 ``` To change the COCOMO parameters, you can either use one of the default COCOMO models. ```text scc --cocomo-project-type organic scc --cocomo-project-type semi-detached scc --cocomo-project-type embedded ``` You can also supply your own parameters if you are familiar with COCOMO as follows, ```text scc --cocomo-project-type "custom,1,1,1,1" ``` See below for details about how the model choices, and the parameters they use. Organic – A software project is said to be an organic type if the team size required is adequately small, the problem is well understood and has been solved in the past and also the team members have a nominal experience regarding the problem. `scc --cocomo-project-type "organic,2.4,1.05,2.5,0.38"` Semi-detached – A software project is said to be a Semi-detached type if the vital characteristics such as team-size, experience, knowledge of the various programming environment lie in between that of organic and Embedded. The projects classified as Semi-Detached are comparatively less familiar and difficult to develop compared to the organic ones and require more experience and better guidance and creativity. Eg: Compilers or different Embedded Systems can be considered of Semi-Detached type. `scc --cocomo-project-type "semi-detached,3.0,1.12,2.5,0.35"` Embedded – A software project with requiring the highest level of complexity, creativity, and experience requirement fall under this category. Such software requires a larger team size than the other two models and also the developers need to be sufficiently experienced and creative to develop such complex models. `scc --cocomo-project-type "embedded,3.6,1.20,2.5,0.32"` ### LOCOMO LOCOMO (LLM Output COst MOdel) estimates the cost to regenerate a codebase using a large language model. It is the LLM-era counterpart to COCOMO — a rough ballpark estimator, not a project planning tool. Note: LOCOMO was developed as part of `scc` and is not an industry-standard model. Unlike COCOMO, which is based on decades of empirical research by Barry Boehm, LOCOMO is an experimental heuristic designed to give a useful order-of-magnitude estimate for LLM-assisted development costs. Treat its output as a conversation starter, not a definitive answer. **Important distinction:** LOCOMO estimates the cost to **regenerate** known code — essentially "given this exact codebase, how much would it cost to have an LLM produce it?" This is fundamentally different from the cost to **create** something from scratch, which involves exploration, architectural decisions, dead ends, debugging, and iteration that can cost orders of magnitude more. COCOMO estimates the human *creation* cost; LOCOMO estimates the LLM *regeneration* cost. They answer different questions. LOCOMO is opt-in. Enable it with `--locomo` or use `--cost-comparison` to display both COCOMO and LOCOMO side by side. ``` $ scc --locomo . ... LOCOMO LLM Cost Estimate (medium) Tokens Required (in/out) 3.0M / 0.7M Cost to Generate $20 Estimated Cycles 2.1 Generation Time (serial) 3.9 hours Human Review Time 5.9 hours Disclaimer: rough ballpark for regenerating code using a LLM. Does not account for context reuse, test generation, or heavy debugging. ``` #### How it works LOCOMO uses SLOC and complexity data that `scc` already computes. The model works per-file and aggregates: 1. **Output tokens** — each line of code maps to ~10 LLM output tokens (configurable). 2. **Input tokens** — estimated prompting cost, scaled by code complexity. More complex code (higher branch density) requires more detailed prompts. Scales to prevent runaway estimates. 3. **Iteration factor** — LLMs rarely produce correct code on the first try. A retry multiplier scales with complexity, also scales. 4. **Dollar cost** — input and output tokens multiplied by per-token pricing. 5. **Generation time** — total serial output tokens divided by tokens-per-second throughput. 6. **Human review time** — estimated per-line overhead for planning, review, testing, and integration. #### Model presets Presets are tier-based rather than tied to specific models, so they don't go stale as models are retired or renamed. Use `--locomo-preset` to select a tier: | Preset | Represents | Input $/1M | Output $/1M | TPS | |--------|-----------|-----------|-------------|-----| | `large` | Frontier models (Opus, GPT-5.3, Gemini 3.1 Pro, etc.) | 10.00 | 30.00 | 30 | | `medium` (default) | Balanced models (Sonnet, Gemini Flash, etc.) | 3.00 | 15.00 | 50 | | `small` | Fast/cheap models (Haiku, GPT-4o-mini, etc.) | 0.50 | 2.00 | 100 | | `local` | Self-hosted models (Llama, Mistral, Qwen etc.) | 0.00 | 0.00 | 15 | For `local`, cost is $0 but generation time is still reported to capture the compute/time investment. Preset pricing reflects approximate tier rates as of early 2026 and can be overridden with explicit flags. ``` scc --locomo --locomo-preset large . scc --locomo --locomo-preset local . ``` #### Overriding preset values You can override individual preset values for pricing or throughput: ``` scc --locomo --locomo-input-price 1.0 --locomo-output-price 5.0 . scc --locomo --locomo-tps 100 . ``` #### Human review time The `--locomo-review` flag controls estimated human review minutes per line of code (default: 0.01, i.e. 0.6 seconds per line). This is intentionally optimistic and assumes light oversight. For mission-critical, security-sensitive, or complex algorithmic code you should increase this: ``` scc --locomo --locomo-review 0.05 . scc --locomo --locomo-review 0.1 . ``` #### Power-user configuration The five internal model parameters can be overridden with a single comma-separated config string: ``` scc --locomo --locomo-config "tokensPerLine,inputPerLine,complexityWeight,iterations,iterationWeight" ``` The defaults are `"10,20,5,1.5,2"`. Here is what each parameter controls: | Position | Name | Default | Description | |----------|------|---------|-------------| | 1 | tokensPerLine | 10 | Average LLM output tokens per line of code | | 2 | inputPerLine | 20 | Base LLM input (prompt) tokens per output line | | 3 | complexityWeight | 5 | How much complexity density scales input tokens: `inputFactor = 1 + sqrt(density) * weight` | | 4 | iterations | 1.5 | Base iteration/retry cycles before complexity adjustment | | 5 | iterationWeight | 2 | How much complexity density adds extra cycles: `cycles = iterations + sqrt(density) * weight` | The iteration factor (cycles) scales both input and output tokens — it represents how many generation attempts the LLM needs. Simple code (~0.05 complexity density) produces ~1.9 cycles; complex code (~0.3 density) produces ~2.6 cycles. Use `--locomo-cycles` to override this with a fixed value. For example, to model a cheaper/faster LLM that needs fewer tokens but more retries: ``` scc --locomo --locomo-config "8,15,3,2.0,1.5" ``` #### Comparing COCOMO and LOCOMO Use `--cost-comparison` to show both estimates side by side. This enables COCOMO (if it was disabled) and LOCOMO together: ``` scc --cost-comparison . ``` #### What LOCOMO does not account for LOCOMO is a rough estimator with known limitations: - **No context reuse.** Real LLM-assisted development shares context across files. The per-file model overestimates input tokens for large projects with shared patterns. - **Boilerplate vs algorithmic code.** A 500-line CRUD controller and a 500-line compression algorithm have very different real costs, but the model only differentiates them via complexity density. - **Code that LLMs can't write well.** Complex concurrency, platform-specific edge cases, and security-critical crypto need human authoring, not just review. - **No test generation cost.** The model estimates source code generation only, not test suites. - **Pricing changes.** LLM pricing drops rapidly. Preset defaults will become stale — use explicit price flags for current estimates. #### All LOCOMO flags | Flag | Default | Description | |------|---------|-------------| | `--locomo` | false | Enable LOCOMO output | | `--cost-comparison` | false | Show COCOMO + LOCOMO side by side | | `--locomo-preset` | medium | Model tier preset for pricing and throughput | | `--locomo-input-price` | (preset) | Override: cost per 1M input tokens ($) | | `--locomo-output-price` | (preset) | Override: cost per 1M output tokens ($) | | `--locomo-tps` | (preset) | Override: output tokens per second | | `--locomo-review` | 0.01 | Human review minutes per line of code | | `--locomo-cycles` | (calculated) | Override estimated LLM iteration cycles | | `--locomo-config` | 10,20,5,1.5,2 | Power-user config: tokensPerLine, inputPerLine, complexityWeight, iterations, iterationWeight | ### Large File Detection You can have `scc` exclude large files from the output. The option to do so is `--no-large` which by default will exclude files over 1,000,000 bytes or 40,000 lines. You can control the size of either value using `--large-byte-count` or `--large-line-count`. For example to exclude files over 1,000 lines and 50kb you could use the following, `scc --no-large --large-byte-count 50000 --large-line-count 1000` ### Minified/Generated File Detection You can have `scc` identify and optionally remove files identified as being minified or generated from the output. You can do so by enabling the `-z` flag like so `scc -z` which will identify any file with an average line byte size >= 255 (by default) as being minified. Minified files appear like so in the output. ```text $ scc --no-cocomo -z ./examples/minified/jquery-3.1.1.min.js ─────────────────────────────────────────────────────────────────────────────── Language Files Lines Blanks Comments Code Complexity ─────────────────────────────────────────────────────────────────────────────── JavaScript (min) 1 4 0 1 3 17 ─────────────────────────────────────────────────────────────────────────────── Total 1 4 0 1 3 17 ─────────────────────────────────────────────────────────────────────────────── Processed 86709 bytes, 0.087 megabytes (SI) ─────────────────────────────────────────────────────────────────────────────── ``` Minified files are indicated with the text `(min)` after the language name. Generated files are indicated with the text `(gen)` after the language name. You can control the average line byte size using `--min-gen-line-length` such as `scc -z --min-gen-line-length 1`. Please note you need `-z` as modifying this value does not imply minified detection. You can exclude minified files from the count totally using the flag `--no-min-gen`. Files which match the minified check will be excluded from the output. ### Remapping Some files may not have an extension. They will be checked to see if they are a #! file. If they are then the language will be remapped to the correct language. Otherwise, it will not process. However, you may have the situation where you want to remap such files based on a string inside it. To do so you can use `--remap-unknown` ```bash scc --remap-unknown "-*- C++ -*-":"C Header" ``` The above will inspect any file with no extension looking for the string `-*- C++ -*-` and if found remap the file to be counted using the C Header rules. You can have multiple remap rules if required, ```bash scc --remap-unknown "-*- C++ -*-":"C Header","other":"Java" ``` There is also the `--remap-all` parameter which will remap all files. Note that in all cases if the remap rule does not apply normal #! rules will apply. ### Output Formats By default `scc` will output to the console. However, you can produce output in other formats if you require. The different options are `tabular, wide, json, csv, csv-stream, cloc-yaml, html, html-table, sql, sql-insert, openmetrics`. Note that you can write `scc` output to disk using the `-o, --output` option. This allows you to specify a file to write your output to. For example `scc -f html -o output.html` will run `scc` against the current directory, and output the results in html to the file `output.html`. You can also write to multiple output files, or multiple types to stdout if you want using the `--format-multi` option. This is most useful when working in CI/CD systems where you want HTML reports as an artifact while also displaying the counts in stdout. ```bash scc --format-multi "tabular:stdout,html:output.html,csv:output.csv" ``` The above will run against the current directory, outputting to standard output the default output, as well as writing to output.html and output.csv with the appropriate formats. #### Tabular This is the default output format when scc is run. #### Wide Wide produces some additional information which is the complexity/lines metric. This can be useful when trying to identify the most complex file inside a project based on the complexity estimate. #### JSON JSON produces JSON output. Mostly designed to allow `scc` to feed into other programs. Note that this format will give you the byte size of every file `scc` reads allowing you to get a breakdown of the number of bytes processed. #### CSV CSV as an option is good for importing into a spreadsheet for analysis. Note that this format will give you the byte size of every file `scc` reads allowing you to get a breakdown of the number of bytes processed. Also note that CSV respects `--by-file` and as such will return a summary by default. #### CSV-Stream csv-stream is an option useful for processing very large repositories where you are likely to run into memory issues. It's output format is 100% the same as CSV. Note that you should not use this with the `format-multi` option as it will always print to standard output, and because of how it works will negate the memory saving it normally gains. savings that this option provides. Note that there is no sort applied with this option. #### cloc-yaml Is a drop in replacement for cloc using its yaml output option. This is quite often used for passing into other build systems and can help with replacing cloc if required. ```text $ scc -f cloc-yml processor # https://github.com/boyter/scc/ header: url: https://github.com/boyter/scc/ version: 2.11.0 elapsed_seconds: 0.008 n_files: 21 n_lines: 6562 files_per_second: 2625 lines_per_second: 820250 Go: name: Go code: 5186 comment: 273 blank: 1103 nFiles: 21 SUM: code: 5186 comment: 273 blank: 1103 nFiles: 21 $ cloc --yaml processor 21 text files. 21 unique files. 0 files ignored. --- # http://cloc.sourceforge.net header : cloc_url : http://cloc.sourceforge.net cloc_version : 1.60 elapsed_seconds : 0.196972846984863 n_files : 21 n_lines : 6562 files_per_second : 106.613679608407 lines_per_second : 33314.2364566841 Go: nFiles: 21 blank: 1137 comment: 606 code: 4819 SUM: blank: 1137 code: 4819 comment: 606 nFiles: 21 ``` #### HTML and HTML-TABLE The HTML output options produce a minimal html report using a table that is either standalone `html` or as just a table `html-table` which can be injected into your own HTML pages. The only difference between the two is that the `html` option includes html head and body tags with minimal styling. The markup is designed to allow your own custom styles to be applied. An example report [is here to view](SCC-OUTPUT-REPORT.html). Note that the HTML options follow the command line options, so you can use `scc --by-file -f html` to produce a report with every file and not just the summary. Note that this format if it has the `--by-file` option will give you the byte size of every file `scc` reads allowing you to get a breakdown of the number of bytes processed. #### SQL and SQL-Insert The SQL output format "mostly" compatible with cloc's SQL output format While all queries on the cloc documentation should work as expected, you will not be able to append output from `scc` and `cloc` into the same database. This is because the table format is slightly different to account for scc including complexity counts and bytes. The difference between `sql` and `sql-insert` is that `sql` will include table creation while the latter will only have the insert commands. Usage is 100% the same as any other `scc` command but sql output will always contain per file details. You can compute totals yourself using SQL, however COCOMO calculations will appear against the metadata table as the columns `estimated_cost` `estimated_schedule_months` and `estimated_people`. The below will run scc against the current directory, name the output as the project scc and then pipe the output to sqlite to put into the database code.db ```bash scc --format sql --sql-project scc . | sqlite3 code.db ``` Assuming you then wanted to append another project ```bash scc --format sql-insert --sql-project redis . | sqlite3 code.db ``` You could then run SQL against the database, ```bash sqlite3 code.db 'select project,file,max(nCode) as nL from t group by project order by nL desc;' ``` See the cloc documentation for more examples. #### OpenMetrics [OpenMetrics](https://openmetrics.io/) is a metric reporting format specification extending the Prometheus exposition text format. The produced output is natively supported by [Prometheus](https://prometheus.io/) and [GitLab CI](https://docs.gitlab.com/ee/ci/testing/metrics_reports.html) Note that OpenMetrics respects `--by-file` and as such will return a summary by default. The output includes a metadata header containing definitions of the returned metrics: ```text # TYPE scc_files count # HELP scc_files Number of sourcecode files. # TYPE scc_lines count # UNIT scc_lines lines # HELP scc_lines Number of lines. # TYPE scc_code count # HELP scc_code Number of lines of actual code. # TYPE scc_comments count # HELP scc_comments Number of comments. # TYPE scc_blanks count # HELP scc_blanks Number of blank lines. # TYPE scc_complexity count # HELP scc_complexity Code complexity. # TYPE scc_bytes count # UNIT scc_bytes bytes # HELP scc_bytes Size in bytes. ``` The header is followed by the metric data in either language summary form: ```text scc_files{language="Go"} 1 scc_lines{language="Go"} 1000 scc_code{language="Go"} 1000 scc_comments{language="Go"} 1000 scc_blanks{language="Go"} 1000 scc_complexity{language="Go"} 1000 scc_bytes{language="Go"} 1000 ``` or, if `--by-file` is present, in per file form: ```text scc_lines{language="Go",file="./bbbb.go"} 1000 scc_code{language="Go",file="./bbbb.go"} 1000 scc_comments{language="Go",file="./bbbb.go"} 1000 scc_blanks{language="Go",file="./bbbb.go"} 1000 scc_complexity{language="Go",file="./bbbb.go"} 1000 scc_bytes{language="Go",file="./bbbb.go"} 1000 ``` ### Performance Generally `scc` will the fastest code counter compared to any I am aware of and have compared against. The below comparisons are taken from the fastest alternative counters. See `Other similar projects` above to see all of the other code counters compared against. It is designed to scale to as many CPU's cores as you can provide. However, if you want greater performance and you have RAM to spare you can disable the garbage collector like the following on Linux `GOGC=-1 scc .` which should speed things up considerably. For some repositories turning off the code complexity calculation via `-c` can reduce runtime as well. Benchmarks are run on fresh 32 Core CPU Optimised Vultr Ocean Virtual Machine 2026/03/05 all done using [hyperfine](https://github.com/sharkdp/hyperfine). See to see how the benchmarks are run. #### Valkey ```shell Benchmark 1: scc valkey Time (mean ± σ): 27.7 ms ± 2.1 ms [User: 175.7 ms, System: 87.0 ms] Range (min … max): 23.1 ms … 32.1 ms 96 runs Benchmark 2: scc -c valkey Time (mean ± σ): 23.0 ms ± 1.5 ms [User: 131.7 ms, System: 84.0 ms] Range (min … max): 19.5 ms … 31.4 ms 130 runs Benchmark 3: tokei valkey Time (mean ± σ): 74.0 ms ± 13.0 ms [User: 394.2 ms, System: 245.1 ms] Range (min … max): 49.1 ms … 92.5 ms 37 runs Benchmark 4: polyglot valkey Time (mean ± σ): 41.1 ms ± 1.2 ms [User: 54.2 ms, System: 103.3 ms] Range (min … max): 37.5 ms … 47.0 ms 69 runs Summary scc -c valkey ran 1.20 ± 0.12 times faster than scc valkey 1.78 ± 0.13 times faster than polyglot valkey 3.21 ± 0.61 times faster than tokei valkey ``` #### CPython ```shell Benchmark 1: scc cpython Time (mean ± σ): 80.8 ms ± 2.6 ms [User: 751.1 ms, System: 265.6 ms] Range (min … max): 75.7 ms … 87.4 ms 36 runs Benchmark 2: scc -c cpython Time (mean ± σ): 70.5 ms ± 2.4 ms [User: 592.6 ms, System: 254.7 ms] Range (min … max): 66.2 ms … 77.6 ms 40 runs Benchmark 3: tokei cpython Time (mean ± σ): 450.2 ms ± 36.1 ms [User: 1822.0 ms, System: 1246.9 ms] Range (min … max): 378.6 ms … 491.2 ms 10 runs Benchmark 4: polyglot cpython Time (mean ± σ): 149.9 ms ± 5.8 ms [User: 199.2 ms, System: 326.2 ms] Range (min … max): 138.3 ms … 164.1 ms 19 runs Summary scc -c cpython ran 1.15 ± 0.05 times faster than scc cpython 2.13 ± 0.11 times faster than polyglot cpython 6.39 ± 0.56 times faster than tokei cpython ``` #### Linux Kernel ```shell Benchmark 1: scc linux Time (mean ± σ): 907.2 ms ± 17.1 ms [User: 13764.7 ms, System: 2957.0 ms] Range (min … max): 878.2 ms … 925.0 ms 10 runs Benchmark 2: scc -c linux Time (mean ± σ): 842.5 ms ± 17.2 ms [User: 9363.3 ms, System: 2977.0 ms] Range (min … max): 819.4 ms … 874.0 ms 10 runs Benchmark 3: tokei linux Time (mean ± σ): 1.422 s ± 0.089 s [User: 13.292 s, System: 9.582 s] Range (min … max): 1.176 s … 1.471 s 10 runs Benchmark 4: polyglot linux Time (mean ± σ): 1.862 s ± 0.046 s [User: 3.802 s, System: 3.543 s] Range (min … max): 1.800 s … 1.935 s 10 runs Summary scc -c linux ran 1.08 ± 0.03 times faster than scc linux 1.69 ± 0.11 times faster than tokei linux 2.21 ± 0.07 times faster than polyglot linux ``` #### Sourcegraph Sourcegraph has gone dark since I last ran these benchmarks hence using a clone taken before this occured. The reason for this is to track what appears to be a performance regression in tokei. ```shell Benchmark 1: scc sourcegraph Time (mean ± σ): 108.2 ms ± 3.5 ms [User: 559.4 ms, System: 323.6 ms] Range (min … max): 100.5 ms … 115.9 ms 26 runs Benchmark 2: scc -c sourcegraph Time (mean ± σ): 99.7 ms ± 4.2 ms [User: 503.1 ms, System: 316.8 ms] Range (min … max): 91.4 ms … 109.4 ms 29 runs Benchmark 3: tokei sourcegraph Time (mean ± σ): 21.359 s ± 1.025 s [User: 57.252 s, System: 411.480 s] Range (min … max): 19.371 s … 22.741 s 10 runs Benchmark 4: polyglot sourcegraph Time (mean ± σ): 135.1 ms ± 5.0 ms [User: 198.6 ms, System: 543.7 ms] Range (min … max): 126.0 ms … 144.8 ms 21 runs Summary scc -c sourcegraph ran 1.08 ± 0.06 times faster than scc sourcegraph 1.36 ± 0.08 times faster than polyglot sourcegraph 214.26 ± 13.64 times faster than tokei sourcegraph ``` If you enable duplicate detection expect performance to fall by about 20% in `scc`. Performance is tracked for some releases and presented below. [![scc perfromance on Linux kernel](./performance-over-time.png)] The decrease in performance from the 3.3.0 release was due to accurate .gitignore, .ignore and .gitmodule support. Current work is focussed on resolving this. ### CI/CD Support Some CI/CD systems which will remain nameless do not work very well with the box-lines used by `scc`. To support those systems better there is an option `--ci` which will change the default output to ASCII only. ```text $ scc --ci main.go ------------------------------------------------------------------------------- Language Files Lines Blanks Comments Code Complexity ------------------------------------------------------------------------------- Go 1 272 7 6 259 4 ------------------------------------------------------------------------------- Total 1 272 7 6 259 4 ------------------------------------------------------------------------------- Estimated Cost to Develop $6,539 Estimated Schedule Effort 2.268839 months Estimated People Required 0.341437 ------------------------------------------------------------------------------- Processed 5674 bytes, 0.006 megabytes (SI) ------------------------------------------------------------------------------- ``` The `--format-multi` option is especially useful in CI/CD where you want to get multiple output formats useful for storage or reporting. ### Development If you want to hack away feel free! PR's are accepted. Some things to keep in mind. If you want to change a language definition you need to update `languages.json` and then run `go generate` which will convert it into the `processor/constants.go` file. For all other changes ensure you run all tests before submitting. You can do so using `go test ./...`. However, for maximum coverage please run `test-all.sh` which will run `gofmt`, unit tests, race detector and then all of the integration tests. All of those must pass to ensure a stable release. ### API Support The core part of `scc` which is the counting engine is exposed publicly to be integrated into other Go applications. See for an example of how to do this. It also powers all of the code calculations displayed in such as making it one of the more used code counters in the world. However as a quick start consider the following, Note that you must pass in the number of bytes in the content in order to ensure it is counted! ```go package main import ( "fmt" "io/ioutil" "github.com/boyter/scc/v3/processor" ) type statsProcessor struct{} func (p *statsProcessor) ProcessLine(job *processor.FileJob, currentLine int64, lineType processor.LineType) bool { switch lineType { case processor.LINE_BLANK: fmt.Println(currentLine, "lineType", "BLANK") case processor.LINE_CODE: fmt.Println(currentLine, "lineType", "CODE") case processor.LINE_COMMENT: fmt.Println(currentLine, "lineType", "COMMENT") } return true } func main() { bts, _ := ioutil.ReadFile("somefile.go") t := &statsProcessor{} filejob := &processor.FileJob{ Filename: "test.go", Language: "Go", Content: bts, Callback: t, Bytes: int64(len(bts)), } processor.ProcessConstants() // Required to load the language information and need only be done once processor.CountStats(filejob) } ``` #### Per-Byte Content Classification For library consumers who need finer granularity than per-line classification, `scc` supports opt-in per-byte content classification. When enabled, `CountStats` populates a byte slice classifying every byte in the file as code, comment, string, or blank. This is useful for stripping comments from source files, extracting only comments, or building syntax-aware tools without reimplementing language parsing. To enable it, set `ClassifyContent: true` on the `FileJob` before calling `CountStats`. When disabled (the default), there is zero performance impact. ```go package main import ( "fmt" "os" "github.com/boyter/scc/v3/processor" ) func main() { processor.ProcessConstants() bts, _ := os.ReadFile("main.go") filejob := &processor.FileJob{ Filename: "main.go", Language: "Go", Content: bts, Bytes: int64(len(bts)), ClassifyContent: true, // Enable per-byte classification } processor.CountStats(filejob) // ContentByteType has one entry per byte with values: // processor.ByteTypeBlank (0) - blank lines / leading whitespace // processor.ByteTypeCode (1) - code // processor.ByteTypeComment (2) - comments (including docstrings) // processor.ByteTypeString (3) - string literals // Example: extract only code, replacing everything else with spaces codeOnly := filejob.FilterContentByType(processor.ByteTypeCode) fmt.Println(string(codeOnly)) // Example: extract only comments commentsOnly := filejob.FilterContentByType(processor.ByteTypeComment) fmt.Println(string(commentsOnly)) // Example: keep both code and strings, strip comments noComments := filejob.FilterContentByType(processor.ByteTypeCode, processor.ByteTypeString) fmt.Println(string(noComments)) } ``` `FilterContentByType` returns a copy of the content with non-matching bytes replaced by spaces. Newlines are always preserved regardless of type, so the output maintains the same line structure as the original file. It returns `nil` if classification was not enabled. Note that at syntax marker boundaries (e.g., `//`, `/*`, `"`), the first byte of the marker may be classified as the preceding state. This is a 1-byte approximation that is acceptable for content filtering use cases. ### MCP Server Mode `scc` can run as an [MCP (Model Context Protocol)](https://modelcontextprotocol.io/) server over stdio, allowing LLM tools like Claude Desktop, Claude Code, Cursor, and others to use it as a code analysis tool. ```shell scc --mcp ``` #### Claude Code Configuration Run in your terminal for the current project: ```shell claude mcp add scc -- scc --mcp ``` Or globally for all projects: ```shell claude mcp add scc --scope user -- scc --mcp ``` Alternatively, add to your `.mcp.json`: ```json { "mcpServers": { "scc": { "command": "scc", "args": ["--mcp"] } } } ``` #### Claude Desktop Configuration Add to your `claude_desktop_config.json`: ```json { "mcpServers": { "scc": { "command": "/path/to/scc", "args": ["--mcp"] } } } ``` #### Exposed Tools The MCP server exposes one tool: **`analyze`** — Count lines of code, comments, blanks and estimate complexity for a project directory or file. | Parameter | Type | Required | Description | |---|---|---|---| | `path` | string | no | Directory or file path to analyze. Defaults to current directory. | | `sort` | string | no | Column to sort by: `files`, `name`, `lines`, `blanks`, `code`, `comments`, `complexity`, `bytes`. Default: `files`. | | `by_file` | boolean | no | If true, return per-file results instead of per-language summary. | | `include_ext` | string | no | Comma-separated file extensions to include (e.g. `go,java,js`). | | `exclude_ext` | string | no | Comma-separated file extensions to exclude (e.g. `json,xml`). | | `no_duplicates` | boolean | no | Remove duplicate files from stats. | | `no_min_gen` | boolean | no | Ignore minified or generated files. | | `locomo` | boolean | no | Include LOCOMO (LLM cost) estimation in results. | | `locomo_preset` | string | no | LOCOMO model preset: `large`, `medium`, `small`, `local`. Default: `medium`. | Results are returned as JSON with per-language breakdown (files, lines, code, comments, blanks, complexity, bytes), totals, and COCOMO cost/schedule estimates. When `locomo` is enabled, LOCOMO estimates (token counts, cost, generation time, review hours) are also included. ### Adding/Modifying Languages To add or modify a language you will need to edit the `languages.json` file in the root of the project, and then run `go generate` to build it into the application. You can then `go install` or `go build` as normal to produce the binary with your modifications. ### Issues Its possible that you may see the counts vary between runs. This usually means one of two things. Either something is changing or locking the files under scc, or that you are hitting ulimit restrictions. To change the ulimit see the following links. - - - - - To help identify this issue run scc like so `scc -v .` and look for the message `too many open files` in the output. If it is there you can rectify it by setting your ulimit to a higher value. ### Low Memory If you are running `scc` in a low memory environment < 512 MB of RAM you may need to set `--file-gc-count` to a lower value such as `0` to force the garbage collector to be on at all times. A sign that this is required will be `scc` crashing with panic errors. ### Tests scc is pretty well tested with many unit, integration and benchmarks to ensure that it is fast and complete. ### Package Packaging as of version v3.1.0 is done through ### Containers Note if you plan to run `scc` in Alpine containers you will need to build with CGO_ENABLED=0. See the below Dockerfile as an example on how to achieve this based on this issue ```Dockerfile FROM golang as scc-get ENV GOOS=linux \ GOARCH=amd64 \ CGO_ENABLED=0 ARG VERSION RUN git clone --branch $VERSION --depth 1 https://github.com/boyter/scc WORKDIR /go/scc RUN go build -ldflags="-s -w" FROM alpine COPY --from=scc-get /go/scc/scc /bin/ ENTRYPOINT ["scc"] ``` ### Badges You can use `scc` to provide badges on your github/bitbucket/gitlab/sr.ht open repositories. For example, [![Scc Count Badge](https://sloc.xyz/github/boyter/scc/)](https://github.com/boyter/scc/) The format to do so is, An example of the badge for `scc` is included below, and is used on this page. ```Markdown [![Scc Count Badge](https://sloc.xyz/github/boyter/scc/)](https://github.com/boyter/scc/) ``` By default the badge will show the repo's lines count. You can also specify for it to show a different category, by using the `?category=` query string. Valid values include `code, blanks, lines, comments, cocomo, effort` and examples of the appearance are included below. [![Scc Count Badge](https://sloc.xyz/github/boyter/scc/?category=code)](https://github.com/boyter/scc/) [![Scc Count Badge](https://sloc.xyz/github/boyter/scc/?category=blanks)](https://github.com/boyter/scc/) [![Scc Count Badge](https://sloc.xyz/github/boyter/scc/?category=lines)](https://github.com/boyter/scc/) [![Scc Count Badge](https://sloc.xyz/github/boyter/scc/?category=comments)](https://github.com/boyter/scc/) [![Scc Count Badge](https://sloc.xyz/github/boyter/scc/?category=cocomo)](https://github.com/boyter/scc/) [![Scc Count Badge](https://sloc.xyz/github/boyter/scc/?category=effort)](https://github.com/boyter/scc/) For `cocomo` you can also set the `avg-wage` value similar to `scc` itself. For example, Note that the avg-wage value must be a positive integer otherwise it will revert back to the default value of 56286. You can also configure the look and feel of the badge using the following parameters, - ?lower=true will lower the title text, so "Total lines" would be "total lines" The below can control the colours of shadows, fonts and badges. Colors can be specified as either hex codes or named colors (similar to shields.io): - ?font-color=fff - ?font-shadow-color=010101 - ?top-shadow-accent-color=bbb - ?title-bg-color=555 - ?badge-bg-color=4c1 ##### Named Colors For convenience, you can use named colors instead of hex codes. The following named colors are supported: **Shields.io colors:** `brightgreen`, `green`, `yellowgreen`, `yellow`, `orange`, `red`, `blue`, `lightgrey`, `blueviolet` **Semantic aliases:** `success`, `important`, `critical`, `informational`, `inactive` **CSS colors:** `white`, `black`, `silver`, `gray`, `maroon`, `purple`, `fuchsia`, `lime`, `olive`, `navy`, `teal`, `aqua`, `cyan`, `magenta`, `pink`, `coral`, `salmon`, `gold`, `khaki`, `violet`, `indigo`, `crimson`, `turquoise`, `tan`, `brown`, and many more standard CSS color names. For example, instead of `?badge-bg-color=007ec6` you can use `?badge-bg-color=blue`. An example of using some of these parameters to produce an admittedly ugly result [![Scc Count Badge](https://sloc.xyz/github/boyter/scc?font-color=ff0000&badge-bg-color=0000ff&lower=true)](https://github.com/boyter/scc/) An example using named colors for as a slightly nicer result [![Scc Count Badge](https://sloc.xyz/github/boyter/scc?title-bg-color=navy&badge-bg-color=blue&font-color=white)](https://github.com/boyter/scc/) *NB* it may not work for VERY large repositories (has been tested on Apache hadoop/spark without issue). You can find the source code for badges in the repository at #### A example for each supported provider - Github - - sr.ht - - Bitbucket - - Gitlab - ### Languages List of supported languages. The master version of `scc` supports 322 languages at last count. Note that this is always assumed that you built from master, and it might trail behind what is actually supported. To see what your version of `scc` supports run `scc --languages` [Click here to view all languages supported by master](LANGUAGES.md) ### Citation Please use the following bibtex entry to cite scc in a publication:
@software{scc,
  author       = {Ben Boyter},
  title        = {scc: v3.5.0},
  month        = ...,
  year         = ...,
  publisher    = {...},
  version      = {v3.5.0},
  doi          = {...},
  url          = {...}
}
You may need to check the release page to find the correct year and month for the release you are using. ### Release Checklist - Update version - Push code with release number - Tag off - Release via goreleaser - Update dockerfile ================================================ FILE: SCC-OUTPUT-REPORT.html ================================================ scc html output
Language Files Lines Blank Comment Code Complexity Bytes Uloc
Go 32 26344 1679 584 24081 1856 530745 7733
processor/constants.go 14075 1 2 14072 0 220906 2160
processor/workers_test.go 1914 338 64 1512 369 41856 672
processor/formatters_test.go 1835 166 4 1665 181 43740 501
processor/formatters.go 1559 207 32 1320 167 47400 833
processor/workers.go 872 128 92 652 217 26349 507
processor/processor.go 704 151 123 430 85 20885 469
main_test.go 694 54 15 625 179 16612 390
cmd/badges/main.go 615 82 30 503 73 17363 437
main.go 542 17 10 515 24 13082 339
processor/detector_test.go 420 94 3 323 109 7784 162
cmd/badges/main_test.go 304 8 9 287 13 7909 177
processor/locomo_test.go 272 37 18 217 68 7503 131
processor/workers_tokei_test.go 249 37 2 210 40 4027 125
processor/structs.go 238 25 24 189 25 7196 167
processor/detector.go 232 42 33 157 54 6304 152
processor/file_test.go 213 50 1 162 37 4585 97
processor/workers_regression_test.go 212 42 5 165 42 4015 105
processor/similar_flags_test.go 176 5 1 170 5 3105 78
processor/locomo.go 160 25 22 113 17 5311 117
processor/file.go 153 23 16 114 43 3527 94
processor/processor_test.go 151 36 1 114 21 2573 66
processor/structs_test.go 145 14 1 130 16 3323 96
processor/trace_test.go 117 13 0 104 15 2771 80
processor/trace.go 96 15 8 73 9 1957 58
scripts/include.go 92 19 5 68 19 2140 64
processor/similar_flags.go 89 9 14 66 11 2400 67
processor/filereader.go 54 10 10 34 5 1353 39
processor/cocomo.go 43 6 18 19 0 2209 35
processor/bloom.go 37 7 12 18 2 1062 29
processor/cocomo_test.go 37 8 4 25 6 686 23
processor/helpers_test.go 26 6 1 19 4 434 18
processor/helpers.go 18 4 4 10 0 378 14
Total 32 26344 1679 584 24081 1856 530745 7733
Estimated Cost to Develop (organic) $762,699
Estimated Schedule Effort (organic) 12.41 months
Estimated People Required (organic) 5.46
================================================ FILE: benchmark.sh ================================================ #!/bin/bash # Assumes we need to install everything from scratch on a box for benchmarking # Also assumes we have copied the ./examples/performance_tests/create_performance_test.py file to where this is run apt update apt install --assume-yes build-essential unzip tmux htop rm ./*.zip rm ./*.gz install_scc_zip() { local version=$1 local url=$2 wget "$url" local file=$(basename "$url") unzip "$file" mv scc /usr/local/bin/scc${version} rm "$file" } install_scc_tar() { local version=$1 local url=$2 wget "$url" local file=$(basename "$url") tar zxvf "$file" mv scc /usr/local/bin/scc${version} rm "$file" } # v1.x zip releases ZIP_VERSIONS=( "1.0.0 https://github.com/boyter/scc/releases/download/v1.0.0/scc-1.0.0-x86_64-unknown-linux.zip" "1.1.0 https://github.com/boyter/scc/releases/download/v1.1.0/scc-1.1.0-x86_64-unknown-linux.zip" "1.2.0 https://github.com/boyter/scc/releases/download/v1.2.0/scc-1.2.0-x86_64-unknown-linux.zip" "1.3.0 https://github.com/boyter/scc/releases/download/untagged-928286b8064e2cf6dd35/scc-1.3.0-x86_64-unknown-linux.zip" "1.4.0 https://github.com/boyter/scc/releases/download/v1.4.0/scc-1.4.0-x86_64-unknown-linux.zip" "1.5.0 https://github.com/boyter/scc/releases/download/v1.5.0/scc-1.5.0-x86_64-unknown-linux.zip" "1.6.0 https://github.com/boyter/scc/releases/download/v1.6.0/scc-1.6.0-x86_64-unknown-linux.zip" "1.7.0 https://github.com/boyter/scc/releases/download/v1.7.0/scc-1.7.0-x86_64-unknown-linux.zip" "1.8.0 https://github.com/boyter/scc/releases/download/v1.8.0/scc-1.8.0-x86_64-unknown-linux.zip" "1.9.0 https://github.com/boyter/scc/releases/download/v1.9.0/scc-1.9.0-x86_64-unknown-linux.zip" "1.10.0 https://github.com/boyter/scc/releases/download/v1.10.0/scc-1.0.0-x86_64-unknown-linux.zip" "1.11.0 https://github.com/boyter/scc/releases/download/v1.11.0/scc-1.11.0-x86_64-unknown-linux.zip" "1.12.0 https://github.com/boyter/scc/releases/download/v1.12.0/scc-1.12.0-x86_64-unknown-linux.zip" "1.12.1 https://github.com/boyter/scc/releases/download/v1.12.1/scc-1.12.1-x86_64-unknown-linux.zip" ) # v2.x zip releases ZIP_VERSIONS+=( "2.0.0 https://github.com/boyter/scc/releases/download/v2.0.0/scc-2.0.0-x86_64-unknown-linux.zip" "2.1.0 https://github.com/boyter/scc/releases/download/v2.1.0/scc-2.1.0-x86_64-unknown-linux.zip" "2.2.0 https://github.com/boyter/scc/releases/download/v2.2.0/scc-2.2.0-x86_64-unknown-linux.zip" "2.3.0 https://github.com/boyter/scc/releases/download/v2.3.0/scc-2.3.0-x86_64-unknown-linux.zip" "2.4.0 https://github.com/boyter/scc/releases/download/v2.4.0/scc-2.4.0-x86_64-unknown-linux.zip" "2.5.0 https://github.com/boyter/scc/releases/download/v2.5.0/scc-2.5.0-x86_64-unknown-linux.zip" "2.6.0 https://github.com/boyter/scc/releases/download/v2.6.0/scc-2.6.0-x86_64-unknown-linux.zip" "2.7.0 https://github.com/boyter/scc/releases/download/v2.7.0/scc-2.7.0-x86_64-unknown-linux.zip" "2.8.0 https://github.com/boyter/scc/releases/download/v2.8.0/scc-2.8.0-x86_64-unknown-linux.zip" "2.9.0 https://github.com/boyter/scc/releases/download/v2.9.0/scc-2.9.0-x86_64-unknown-linux.zip" "2.9.1 https://github.com/boyter/scc/releases/download/v2.9.1/scc-2.9.1-x86_64-unknown-linux.zip" "2.10.0 https://github.com/boyter/scc/releases/download/v2.10.0/scc-2.10.0-x86_64-unknown-linux.zip" "2.11.0 https://github.com/boyter/scc/releases/download/v2.11.0/scc-2.11.0-x86_64-unknown-linux.zip" "2.12.0 https://github.com/boyter/scc/releases/download/v2.12.0/scc-2.12.0-x86_64-unknown-linux.zip" "2.13.0 https://github.com/boyter/scc/releases/download/v2.13.0/scc-2.13.0-x86_64-unknown-linux.zip" ) # v3.0.0 is a zip ZIP_VERSIONS+=( "3.0.0 https://github.com/boyter/scc/releases/download/v3.0.0/scc-3.0.0-x86_64-unknown-linux.zip" ) # v3.1.0 has a versioned tar name TAR_VERSIONS=( "3.1.0 https://github.com/boyter/scc/releases/download/v3.1.0/scc_3.1.0_Linux_x86_64.tar.gz" ) # v3.2.0+ use the generic tar name GENERIC_TAR_VERSIONS=(3.2.0 3.3.0 3.3.2 3.3.3 3.3.4 3.4.0 3.5.0 3.6.0 3.7.0) # Install all zip versions for entry in "${ZIP_VERSIONS[@]}"; do version=${entry%% *} url=${entry#* } install_scc_zip "$version" "$url" done # Install versioned tar for entry in "${TAR_VERSIONS[@]}"; do version=${entry%% *} url=${entry#* } install_scc_tar "$version" "$url" done # Install generic-named tar versions for version in "${GENERIC_TAR_VERSIONS[@]}"; do install_scc_tar "$version" "https://github.com/boyter/scc/releases/download/v${version}/scc_Linux_x86_64.tar.gz" done # Make the latest version available as just 'scc' cp /usr/local/bin/scc${GENERIC_TAR_VERSIONS[-1]} /usr/local/bin/scc # Collect all scc version names for hyperfine ALL_VERSIONS=() for entry in "${ZIP_VERSIONS[@]}"; do ALL_VERSIONS+=("${entry%% *}") done for entry in "${TAR_VERSIONS[@]}"; do ALL_VERSIONS+=("${entry%% *}") done for v in "${GENERIC_TAR_VERSIONS[@]}"; do ALL_VERSIONS+=("$v") done build_hyperfine_args() { local target=$1 local args=() for v in "${ALL_VERSIONS[@]}"; do args+=("scc${v} ${target}") done printf "'%s' " "${args[@]}" } # Now setup comparison applications starting with hyperfine which we compare against wget https://github.com/sharkdp/hyperfine/releases/download/v1.18.0/hyperfine-v1.18.0-x86_64-unknown-linux-musl.tar.gz tar zxvf hyperfine-v1.18.0-x86_64-unknown-linux-musl.tar.gz mv hyperfine-v1.18.0-x86_64-unknown-linux-musl/hyperfine /usr/local/bin/hyperfine chmod +x /usr/local/bin/hyperfine # Now the comparison applications wget https://github.com/XAMPPRocky/tokei/releases/download/v12.1.2/tokei-x86_64-unknown-linux-musl.tar.gz tar zxvf tokei-x86_64-unknown-linux-musl.tar.gz chmod +x ./tokei mv ./tokei /usr/local/bin/ wget https://github.com/vmchale/polyglot/releases/download/0.5.29/poly-x86_64-unknown-linux-gcc-9 mv poly-x86_64-unknown-linux-gcc-9 /usr/local/bin/polyglot chmod +x /usr/local/bin/polyglot # Now setup all of the benchmarks # Clone the stuff we want to test rm -rf valkey rm -rf cpython rm -rf linux rm -rf sourcegraph git clone --depth=1 https://github.com/valkey-io/valkey.git git clone --depth=1 https://github.com/python/cpython.git git clone --depth=1 https://github.com/torvalds/linux.git git clone --depth=1 https://github.com/SINTEF/sourcegraph.git echo "Running regression benchmark" eval hyperfine --export-json benchmark_regression.json $(build_hyperfine_args linux) > benchmark_regression.txt echo "Generating chart" python3 benchmark_to_chart.py benchmark_regression.json "scc performance linux kernel" > benchmark_chart.html # Benchmark against everything echo "Running valkey benchmark" hyperfine 'scc valkey' 'scc -c valkey' 'tokei valkey' 'polyglot valkey' > benchmark_valkey.txt echo "Running cpython benchmark" hyperfine 'scc cpython' 'scc -c cpython' 'tokei cpython' 'polyglot cpython' > benchmark_cpython.txt echo "Running sourcegraph benchmark" hyperfine 'scc sourcegraph' 'scc -c sourcegraph' 'tokei sourcegraph' 'polyglot sourcegraph' > benchmark_sourcegraph.txt echo "Running linux benchmark" hyperfine 'scc linux' 'scc -c linux' 'tokei linux' 'polyglot linux' > benchmark_linux.txt echo "All done!" ================================================ FILE: benchmark_to_chart.py ================================================ #!/usr/bin/env python3 """Convert hyperfine JSON output from benchmark.sh into a Google Charts HTML page.""" import json import re import sys def extract_version(command): """Extract version from a command like 'scc3.4.0 linux'.""" m = re.match(r'scc(\d+\.\d+\.\d+)', command) return m.group(1) if m else command def main(): if len(sys.argv) < 2: print(f"Usage: {sys.argv[0]} benchmark_regression.json [title]") sys.exit(1) json_file = sys.argv[1] title = sys.argv[2] if len(sys.argv) > 2 else "scc performance linux kernel" with open(json_file) as f: data = json.load(f) rows = [] for result in data["results"]: version = extract_version(result["command"]) mean = result["mean"] rows.append(f" ['{version}', {mean:.3f}]") chart_data = ",\n".join(rows) html = f"""
""" print(html) if __name__ == "__main__": main() ================================================ FILE: examples/complexity/complexity.cpp ================================================ // 4 Complexity #include int main() { int i = 0; while(1) { std::cin >> i; if(i == 0) { return 0; } switch(i) { case 1: std::cout << "one\n"; break; case 2: std::cout << "two\n"; break; case 3: std::cout << "three\n"; default: std::cout << "try again\n"; } } } ================================================ FILE: examples/complexity/complexity.java ================================================ printf(" /* "); for (i = 0; i < 100; i++) { a += i; } printf(" */ "); ================================================ FILE: examples/countas/test.jsp ================================================ this should be counted as HTML using countas rules ================================================ FILE: examples/countas/test.new ================================================ this should be counted as java using the countas rules ================================================ FILE: examples/duplicates/1.java ================================================ package com.boyter.SpellingCorrector; import java.util.*; import java.util.stream.Stream; /** * A simple spell checker based on a few implementations such as the infamous Peter Noving spell checker and * the like. Attempts to be highly performing by never changing the first character since we can assume that the * user got that correct. */ public class SpellingCorrector implements ISpellingCorrector { // word to count map - how may times a word is present - or a weight attached to a word private Map dictionary = null; public SpellingCorrector(int lruCount) { this.dictionary = Collections.synchronizedMap(new LruCache<>(lruCount)); } @Override public void putWord(String word) { word = word.toLowerCase(); if (dictionary.containsKey(word)) { dictionary.put(word, (dictionary.get(word) + 1)); } else { dictionary.put(word, 1); } } @Override public String correct(String word) { if (word == null || word.trim().isEmpty()) { return word; } word = word.toLowerCase(); // If the word exists in our dictionary then return if (dictionary.containsKey(word)) { return word; } Map possibleMatches = new HashMap<>(); List closeEdits = wordEdits(word); for (String closeEdit: closeEdits) { if (dictionary.containsKey(closeEdit)) { possibleMatches.put(closeEdit, this.dictionary.get(closeEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // Ok we did't find anything, so lets run the edits function on the previous results and use those // this gives us results which are 2 characters away from whatever was entered List furtherEdits = new ArrayList<>(); for(String closeEdit: closeEdits) { furtherEdits.addAll(this.wordEdits(closeEdit)); } for (String futherEdit: furtherEdits) { if (dictionary.containsKey(futherEdit)) { possibleMatches.put(futherEdit, this.dictionary.get(futherEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // If unable to find something better return the same string return word; } @Override public boolean containsWord(String word) { if (dictionary.containsKey(word)) { return true; } return false; } /** * Return a list of strings which are words similar to our one which could potentially be misspellings * Abuse the fact that a char can be used as an integer * Assume that they got the first letter correct for all edits to cut on CPU burn time */ private List wordEdits(String word) { List closeWords = new ArrayList(); for (int i = 1; i < word.length() + 1; i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they forgot to type a letter? Try adding one StringBuilder sb = new StringBuilder(word); sb.insert(i, character); closeWords.add(sb.toString()); } } for (int i = 1; i < word.length(); i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they mistyped a single letter? Try replacing them all StringBuilder sb = new StringBuilder(word); sb.setCharAt(i, character); closeWords.add(sb.toString()); // Maybe they added an extra letter? Try deleting one sb = new StringBuilder(word); sb.deleteCharAt(i); closeWords.add(sb.toString()); } } return closeWords; } /** * Sorts a map by value taken from * http://stackoverflow.com/questions/109383/sort-a-mapkey-value-by-values-java */ public static > Map sortByValue( Map map ) { Map result = new LinkedHashMap<>(); Stream> st = map.entrySet().stream(); st.sorted( Map.Entry.comparingByValue() ).forEachOrdered( e -> result.put(e.getKey(), e.getValue()) ); return result; } /** * A very simple LRU cache implementation that can be used for random data types. */ public class LruCache extends LinkedHashMap { private final int maxEntries; public LruCache(final int maxEntries) { super(maxEntries + 1, 1.0f, true); this.maxEntries = maxEntries; } @Override protected boolean removeEldestEntry(final Map.Entry eldest) { return super.size() > maxEntries; } } } ================================================ FILE: examples/duplicates/10.java ================================================ package com.boyter.SpellingCorrector; import java.util.*; import java.util.stream.Stream; /** * A simple spell checker based on a few implementations such as the infamous Peter Noving spell checker and * the like. Attempts to be highly performing by never changing the first character since we can assume that the * user got that correct. */ public class SpellingCorrector implements ISpellingCorrector { // word to count map - how may times a word is present - or a weight attached to a word private Map dictionary = null; public SpellingCorrector(int lruCount) { this.dictionary = Collections.synchronizedMap(new LruCache<>(lruCount)); } @Override public void putWord(String word) { word = word.toLowerCase(); if (dictionary.containsKey(word)) { dictionary.put(word, (dictionary.get(word) + 1)); } else { dictionary.put(word, 1); } } @Override public String correct(String word) { if (word == null || word.trim().isEmpty()) { return word; } word = word.toLowerCase(); // If the word exists in our dictionary then return if (dictionary.containsKey(word)) { return word; } Map possibleMatches = new HashMap<>(); List closeEdits = wordEdits(word); for (String closeEdit: closeEdits) { if (dictionary.containsKey(closeEdit)) { possibleMatches.put(closeEdit, this.dictionary.get(closeEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // Ok we did't find anything, so lets run the edits function on the previous results and use those // this gives us results which are 2 characters away from whatever was entered List furtherEdits = new ArrayList<>(); for(String closeEdit: closeEdits) { furtherEdits.addAll(this.wordEdits(closeEdit)); } for (String futherEdit: furtherEdits) { if (dictionary.containsKey(futherEdit)) { possibleMatches.put(futherEdit, this.dictionary.get(futherEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // If unable to find something better return the same string return word; } @Override public boolean containsWord(String word) { if (dictionary.containsKey(word)) { return true; } return false; } /** * Return a list of strings which are words similar to our one which could potentially be misspellings * Abuse the fact that a char can be used as an integer * Assume that they got the first letter correct for all edits to cut on CPU burn time */ private List wordEdits(String word) { List closeWords = new ArrayList(); for (int i = 1; i < word.length() + 1; i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they forgot to type a letter? Try adding one StringBuilder sb = new StringBuilder(word); sb.insert(i, character); closeWords.add(sb.toString()); } } for (int i = 1; i < word.length(); i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they mistyped a single letter? Try replacing them all StringBuilder sb = new StringBuilder(word); sb.setCharAt(i, character); closeWords.add(sb.toString()); // Maybe they added an extra letter? Try deleting one sb = new StringBuilder(word); sb.deleteCharAt(i); closeWords.add(sb.toString()); } } return closeWords; } /** * Sorts a map by value taken from * http://stackoverflow.com/questions/109383/sort-a-mapkey-value-by-values-java */ public static > Map sortByValue( Map map ) { Map result = new LinkedHashMap<>(); Stream> st = map.entrySet().stream(); st.sorted( Map.Entry.comparingByValue() ).forEachOrdered( e -> result.put(e.getKey(), e.getValue()) ); return result; } /** * A very simple LRU cache implementation that can be used for random data types. */ public class LruCache extends LinkedHashMap { private final int maxEntries; public LruCache(final int maxEntries) { super(maxEntries + 1, 1.0f, true); this.maxEntries = maxEntries; } @Override protected boolean removeEldestEntry(final Map.Entry eldest) { return super.size() > maxEntries; } } } ================================================ FILE: examples/duplicates/11.java ================================================ package com.boyter.SpellingCorrector; import java.util.*; import java.util.stream.Stream; /** * A simple spell checker based on a few implementations such as the infamous Peter Noving spell checker and * the like. Attempts to be highly performing by never changing the first character since we can assume that the * user got that correct. */ public class SpellingCorrector implements ISpellingCorrector { // word to count map - how may times a word is present - or a weight attached to a word private Map dictionary = null; public SpellingCorrector(int lruCount) { this.dictionary = Collections.synchronizedMap(new LruCache<>(lruCount)); } @Override public void putWord(String word) { word = word.toLowerCase(); if (dictionary.containsKey(word)) { dictionary.put(word, (dictionary.get(word) + 1)); } else { dictionary.put(word, 1); } } @Override public String correct(String word) { if (word == null || word.trim().isEmpty()) { return word; } word = word.toLowerCase(); // If the word exists in our dictionary then return if (dictionary.containsKey(word)) { return word; } Map possibleMatches = new HashMap<>(); List closeEdits = wordEdits(word); for (String closeEdit: closeEdits) { if (dictionary.containsKey(closeEdit)) { possibleMatches.put(closeEdit, this.dictionary.get(closeEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // Ok we did't find anything, so lets run the edits function on the previous results and use those // this gives us results which are 2 characters away from whatever was entered List furtherEdits = new ArrayList<>(); for(String closeEdit: closeEdits) { furtherEdits.addAll(this.wordEdits(closeEdit)); } for (String futherEdit: furtherEdits) { if (dictionary.containsKey(futherEdit)) { possibleMatches.put(futherEdit, this.dictionary.get(futherEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // If unable to find something better return the same string return word; } @Override public boolean containsWord(String word) { if (dictionary.containsKey(word)) { return true; } return false; } /** * Return a list of strings which are words similar to our one which could potentially be misspellings * Abuse the fact that a char can be used as an integer * Assume that they got the first letter correct for all edits to cut on CPU burn time */ private List wordEdits(String word) { List closeWords = new ArrayList(); for (int i = 1; i < word.length() + 1; i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they forgot to type a letter? Try adding one StringBuilder sb = new StringBuilder(word); sb.insert(i, character); closeWords.add(sb.toString()); } } for (int i = 1; i < word.length(); i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they mistyped a single letter? Try replacing them all StringBuilder sb = new StringBuilder(word); sb.setCharAt(i, character); closeWords.add(sb.toString()); // Maybe they added an extra letter? Try deleting one sb = new StringBuilder(word); sb.deleteCharAt(i); closeWords.add(sb.toString()); } } return closeWords; } /** * Sorts a map by value taken from * http://stackoverflow.com/questions/109383/sort-a-mapkey-value-by-values-java */ public static > Map sortByValue( Map map ) { Map result = new LinkedHashMap<>(); Stream> st = map.entrySet().stream(); st.sorted( Map.Entry.comparingByValue() ).forEachOrdered( e -> result.put(e.getKey(), e.getValue()) ); return result; } /** * A very simple LRU cache implementation that can be used for random data types. */ public class LruCache extends LinkedHashMap { private final int maxEntries; public LruCache(final int maxEntries) { super(maxEntries + 1, 1.0f, true); this.maxEntries = maxEntries; } @Override protected boolean removeEldestEntry(final Map.Entry eldest) { return super.size() > maxEntries; } } } ================================================ FILE: examples/duplicates/12.java ================================================ package com.boyter.SpellingCorrector; import java.util.*; import java.util.stream.Stream; /** * A simple spell checker based on a few implementations such as the infamous Peter Noving spell checker and * the like. Attempts to be highly performing by never changing the first character since we can assume that the * user got that correct. */ public class SpellingCorrector implements ISpellingCorrector { // word to count map - how may times a word is present - or a weight attached to a word private Map dictionary = null; public SpellingCorrector(int lruCount) { this.dictionary = Collections.synchronizedMap(new LruCache<>(lruCount)); } @Override public void putWord(String word) { word = word.toLowerCase(); if (dictionary.containsKey(word)) { dictionary.put(word, (dictionary.get(word) + 1)); } else { dictionary.put(word, 1); } } @Override public String correct(String word) { if (word == null || word.trim().isEmpty()) { return word; } word = word.toLowerCase(); // If the word exists in our dictionary then return if (dictionary.containsKey(word)) { return word; } Map possibleMatches = new HashMap<>(); List closeEdits = wordEdits(word); for (String closeEdit: closeEdits) { if (dictionary.containsKey(closeEdit)) { possibleMatches.put(closeEdit, this.dictionary.get(closeEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // Ok we did't find anything, so lets run the edits function on the previous results and use those // this gives us results which are 2 characters away from whatever was entered List furtherEdits = new ArrayList<>(); for(String closeEdit: closeEdits) { furtherEdits.addAll(this.wordEdits(closeEdit)); } for (String futherEdit: furtherEdits) { if (dictionary.containsKey(futherEdit)) { possibleMatches.put(futherEdit, this.dictionary.get(futherEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // If unable to find something better return the same string return word; } @Override public boolean containsWord(String word) { if (dictionary.containsKey(word)) { return true; } return false; } /** * Return a list of strings which are words similar to our one which could potentially be misspellings * Abuse the fact that a char can be used as an integer * Assume that they got the first letter correct for all edits to cut on CPU burn time */ private List wordEdits(String word) { List closeWords = new ArrayList(); for (int i = 1; i < word.length() + 1; i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they forgot to type a letter? Try adding one StringBuilder sb = new StringBuilder(word); sb.insert(i, character); closeWords.add(sb.toString()); } } for (int i = 1; i < word.length(); i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they mistyped a single letter? Try replacing them all StringBuilder sb = new StringBuilder(word); sb.setCharAt(i, character); closeWords.add(sb.toString()); // Maybe they added an extra letter? Try deleting one sb = new StringBuilder(word); sb.deleteCharAt(i); closeWords.add(sb.toString()); } } return closeWords; } /** * Sorts a map by value taken from * http://stackoverflow.com/questions/109383/sort-a-mapkey-value-by-values-java */ public static > Map sortByValue( Map map ) { Map result = new LinkedHashMap<>(); Stream> st = map.entrySet().stream(); st.sorted( Map.Entry.comparingByValue() ).forEachOrdered( e -> result.put(e.getKey(), e.getValue()) ); return result; } /** * A very simple LRU cache implementation that can be used for random data types. */ public class LruCache extends LinkedHashMap { private final int maxEntries; public LruCache(final int maxEntries) { super(maxEntries + 1, 1.0f, true); this.maxEntries = maxEntries; } @Override protected boolean removeEldestEntry(final Map.Entry eldest) { return super.size() > maxEntries; } } } ================================================ FILE: examples/duplicates/13.java ================================================ package com.boyter.SpellingCorrector; import java.util.*; import java.util.stream.Stream; /** * A simple spell checker based on a few implementations such as the infamous Peter Noving spell checker and * the like. Attempts to be highly performing by never changing the first character since we can assume that the * user got that correct. */ public class SpellingCorrector implements ISpellingCorrector { // word to count map - how may times a word is present - or a weight attached to a word private Map dictionary = null; public SpellingCorrector(int lruCount) { this.dictionary = Collections.synchronizedMap(new LruCache<>(lruCount)); } @Override public void putWord(String word) { word = word.toLowerCase(); if (dictionary.containsKey(word)) { dictionary.put(word, (dictionary.get(word) + 1)); } else { dictionary.put(word, 1); } } @Override public String correct(String word) { if (word == null || word.trim().isEmpty()) { return word; } word = word.toLowerCase(); // If the word exists in our dictionary then return if (dictionary.containsKey(word)) { return word; } Map possibleMatches = new HashMap<>(); List closeEdits = wordEdits(word); for (String closeEdit: closeEdits) { if (dictionary.containsKey(closeEdit)) { possibleMatches.put(closeEdit, this.dictionary.get(closeEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // Ok we did't find anything, so lets run the edits function on the previous results and use those // this gives us results which are 2 characters away from whatever was entered List furtherEdits = new ArrayList<>(); for(String closeEdit: closeEdits) { furtherEdits.addAll(this.wordEdits(closeEdit)); } for (String futherEdit: furtherEdits) { if (dictionary.containsKey(futherEdit)) { possibleMatches.put(futherEdit, this.dictionary.get(futherEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // If unable to find something better return the same string return word; } @Override public boolean containsWord(String word) { if (dictionary.containsKey(word)) { return true; } return false; } /** * Return a list of strings which are words similar to our one which could potentially be misspellings * Abuse the fact that a char can be used as an integer * Assume that they got the first letter correct for all edits to cut on CPU burn time */ private List wordEdits(String word) { List closeWords = new ArrayList(); for (int i = 1; i < word.length() + 1; i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they forgot to type a letter? Try adding one StringBuilder sb = new StringBuilder(word); sb.insert(i, character); closeWords.add(sb.toString()); } } for (int i = 1; i < word.length(); i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they mistyped a single letter? Try replacing them all StringBuilder sb = new StringBuilder(word); sb.setCharAt(i, character); closeWords.add(sb.toString()); // Maybe they added an extra letter? Try deleting one sb = new StringBuilder(word); sb.deleteCharAt(i); closeWords.add(sb.toString()); } } return closeWords; } /** * Sorts a map by value taken from * http://stackoverflow.com/questions/109383/sort-a-mapkey-value-by-values-java */ public static > Map sortByValue( Map map ) { Map result = new LinkedHashMap<>(); Stream> st = map.entrySet().stream(); st.sorted( Map.Entry.comparingByValue() ).forEachOrdered( e -> result.put(e.getKey(), e.getValue()) ); return result; } /** * A very simple LRU cache implementation that can be used for random data types. */ public class LruCache extends LinkedHashMap { private final int maxEntries; public LruCache(final int maxEntries) { super(maxEntries + 1, 1.0f, true); this.maxEntries = maxEntries; } @Override protected boolean removeEldestEntry(final Map.Entry eldest) { return super.size() > maxEntries; } } } ================================================ FILE: examples/duplicates/14.java ================================================ package com.boyter.SpellingCorrector; import java.util.*; import java.util.stream.Stream; /** * A simple spell checker based on a few implementations such as the infamous Peter Noving spell checker and * the like. Attempts to be highly performing by never changing the first character since we can assume that the * user got that correct. */ public class SpellingCorrector implements ISpellingCorrector { // word to count map - how may times a word is present - or a weight attached to a word private Map dictionary = null; public SpellingCorrector(int lruCount) { this.dictionary = Collections.synchronizedMap(new LruCache<>(lruCount)); } @Override public void putWord(String word) { word = word.toLowerCase(); if (dictionary.containsKey(word)) { dictionary.put(word, (dictionary.get(word) + 1)); } else { dictionary.put(word, 1); } } @Override public String correct(String word) { if (word == null || word.trim().isEmpty()) { return word; } word = word.toLowerCase(); // If the word exists in our dictionary then return if (dictionary.containsKey(word)) { return word; } Map possibleMatches = new HashMap<>(); List closeEdits = wordEdits(word); for (String closeEdit: closeEdits) { if (dictionary.containsKey(closeEdit)) { possibleMatches.put(closeEdit, this.dictionary.get(closeEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // Ok we did't find anything, so lets run the edits function on the previous results and use those // this gives us results which are 2 characters away from whatever was entered List furtherEdits = new ArrayList<>(); for(String closeEdit: closeEdits) { furtherEdits.addAll(this.wordEdits(closeEdit)); } for (String futherEdit: furtherEdits) { if (dictionary.containsKey(futherEdit)) { possibleMatches.put(futherEdit, this.dictionary.get(futherEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // If unable to find something better return the same string return word; } @Override public boolean containsWord(String word) { if (dictionary.containsKey(word)) { return true; } return false; } /** * Return a list of strings which are words similar to our one which could potentially be misspellings * Abuse the fact that a char can be used as an integer * Assume that they got the first letter correct for all edits to cut on CPU burn time */ private List wordEdits(String word) { List closeWords = new ArrayList(); for (int i = 1; i < word.length() + 1; i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they forgot to type a letter? Try adding one StringBuilder sb = new StringBuilder(word); sb.insert(i, character); closeWords.add(sb.toString()); } } for (int i = 1; i < word.length(); i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they mistyped a single letter? Try replacing them all StringBuilder sb = new StringBuilder(word); sb.setCharAt(i, character); closeWords.add(sb.toString()); // Maybe they added an extra letter? Try deleting one sb = new StringBuilder(word); sb.deleteCharAt(i); closeWords.add(sb.toString()); } } return closeWords; } /** * Sorts a map by value taken from * http://stackoverflow.com/questions/109383/sort-a-mapkey-value-by-values-java */ public static > Map sortByValue( Map map ) { Map result = new LinkedHashMap<>(); Stream> st = map.entrySet().stream(); st.sorted( Map.Entry.comparingByValue() ).forEachOrdered( e -> result.put(e.getKey(), e.getValue()) ); return result; } /** * A very simple LRU cache implementation that can be used for random data types. */ public class LruCache extends LinkedHashMap { private final int maxEntries; public LruCache(final int maxEntries) { super(maxEntries + 1, 1.0f, true); this.maxEntries = maxEntries; } @Override protected boolean removeEldestEntry(final Map.Entry eldest) { return super.size() > maxEntries; } } } ================================================ FILE: examples/duplicates/15.java ================================================ package com.boyter.SpellingCorrector; import java.util.*; import java.util.stream.Stream; /** * A simple spell checker based on a few implementations such as the infamous Peter Noving spell checker and * the like. Attempts to be highly performing by never changing the first character since we can assume that the * user got that correct. */ public class SpellingCorrector implements ISpellingCorrector { // word to count map - how may times a word is present - or a weight attached to a word private Map dictionary = null; public SpellingCorrector(int lruCount) { this.dictionary = Collections.synchronizedMap(new LruCache<>(lruCount)); } @Override public void putWord(String word) { word = word.toLowerCase(); if (dictionary.containsKey(word)) { dictionary.put(word, (dictionary.get(word) + 1)); } else { dictionary.put(word, 1); } } @Override public String correct(String word) { if (word == null || word.trim().isEmpty()) { return word; } word = word.toLowerCase(); // If the word exists in our dictionary then return if (dictionary.containsKey(word)) { return word; } Map possibleMatches = new HashMap<>(); List closeEdits = wordEdits(word); for (String closeEdit: closeEdits) { if (dictionary.containsKey(closeEdit)) { possibleMatches.put(closeEdit, this.dictionary.get(closeEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // Ok we did't find anything, so lets run the edits function on the previous results and use those // this gives us results which are 2 characters away from whatever was entered List furtherEdits = new ArrayList<>(); for(String closeEdit: closeEdits) { furtherEdits.addAll(this.wordEdits(closeEdit)); } for (String futherEdit: furtherEdits) { if (dictionary.containsKey(futherEdit)) { possibleMatches.put(futherEdit, this.dictionary.get(futherEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // If unable to find something better return the same string return word; } @Override public boolean containsWord(String word) { if (dictionary.containsKey(word)) { return true; } return false; } /** * Return a list of strings which are words similar to our one which could potentially be misspellings * Abuse the fact that a char can be used as an integer * Assume that they got the first letter correct for all edits to cut on CPU burn time */ private List wordEdits(String word) { List closeWords = new ArrayList(); for (int i = 1; i < word.length() + 1; i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they forgot to type a letter? Try adding one StringBuilder sb = new StringBuilder(word); sb.insert(i, character); closeWords.add(sb.toString()); } } for (int i = 1; i < word.length(); i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they mistyped a single letter? Try replacing them all StringBuilder sb = new StringBuilder(word); sb.setCharAt(i, character); closeWords.add(sb.toString()); // Maybe they added an extra letter? Try deleting one sb = new StringBuilder(word); sb.deleteCharAt(i); closeWords.add(sb.toString()); } } return closeWords; } /** * Sorts a map by value taken from * http://stackoverflow.com/questions/109383/sort-a-mapkey-value-by-values-java */ public static > Map sortByValue( Map map ) { Map result = new LinkedHashMap<>(); Stream> st = map.entrySet().stream(); st.sorted( Map.Entry.comparingByValue() ).forEachOrdered( e -> result.put(e.getKey(), e.getValue()) ); return result; } /** * A very simple LRU cache implementation that can be used for random data types. */ public class LruCache extends LinkedHashMap { private final int maxEntries; public LruCache(final int maxEntries) { super(maxEntries + 1, 1.0f, true); this.maxEntries = maxEntries; } @Override protected boolean removeEldestEntry(final Map.Entry eldest) { return super.size() > maxEntries; } } } ================================================ FILE: examples/duplicates/16.java ================================================ package com.boyter.SpellingCorrector; import java.util.*; import java.util.stream.Stream; /** * A simple spell checker based on a few implementations such as the infamous Peter Noving spell checker and * the like. Attempts to be highly performing by never changing the first character since we can assume that the * user got that correct. */ public class SpellingCorrector implements ISpellingCorrector { // word to count map - how may times a word is present - or a weight attached to a word private Map dictionary = null; public SpellingCorrector(int lruCount) { this.dictionary = Collections.synchronizedMap(new LruCache<>(lruCount)); } @Override public void putWord(String word) { word = word.toLowerCase(); if (dictionary.containsKey(word)) { dictionary.put(word, (dictionary.get(word) + 1)); } else { dictionary.put(word, 1); } } @Override public String correct(String word) { if (word == null || word.trim().isEmpty()) { return word; } word = word.toLowerCase(); // If the word exists in our dictionary then return if (dictionary.containsKey(word)) { return word; } Map possibleMatches = new HashMap<>(); List closeEdits = wordEdits(word); for (String closeEdit: closeEdits) { if (dictionary.containsKey(closeEdit)) { possibleMatches.put(closeEdit, this.dictionary.get(closeEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // Ok we did't find anything, so lets run the edits function on the previous results and use those // this gives us results which are 2 characters away from whatever was entered List furtherEdits = new ArrayList<>(); for(String closeEdit: closeEdits) { furtherEdits.addAll(this.wordEdits(closeEdit)); } for (String futherEdit: furtherEdits) { if (dictionary.containsKey(futherEdit)) { possibleMatches.put(futherEdit, this.dictionary.get(futherEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // If unable to find something better return the same string return word; } @Override public boolean containsWord(String word) { if (dictionary.containsKey(word)) { return true; } return false; } /** * Return a list of strings which are words similar to our one which could potentially be misspellings * Abuse the fact that a char can be used as an integer * Assume that they got the first letter correct for all edits to cut on CPU burn time */ private List wordEdits(String word) { List closeWords = new ArrayList(); for (int i = 1; i < word.length() + 1; i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they forgot to type a letter? Try adding one StringBuilder sb = new StringBuilder(word); sb.insert(i, character); closeWords.add(sb.toString()); } } for (int i = 1; i < word.length(); i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they mistyped a single letter? Try replacing them all StringBuilder sb = new StringBuilder(word); sb.setCharAt(i, character); closeWords.add(sb.toString()); // Maybe they added an extra letter? Try deleting one sb = new StringBuilder(word); sb.deleteCharAt(i); closeWords.add(sb.toString()); } } return closeWords; } /** * Sorts a map by value taken from * http://stackoverflow.com/questions/109383/sort-a-mapkey-value-by-values-java */ public static > Map sortByValue( Map map ) { Map result = new LinkedHashMap<>(); Stream> st = map.entrySet().stream(); st.sorted( Map.Entry.comparingByValue() ).forEachOrdered( e -> result.put(e.getKey(), e.getValue()) ); return result; } /** * A very simple LRU cache implementation that can be used for random data types. */ public class LruCache extends LinkedHashMap { private final int maxEntries; public LruCache(final int maxEntries) { super(maxEntries + 1, 1.0f, true); this.maxEntries = maxEntries; } @Override protected boolean removeEldestEntry(final Map.Entry eldest) { return super.size() > maxEntries; } } } ================================================ FILE: examples/duplicates/17.java ================================================ package com.boyter.SpellingCorrector; import java.util.*; import java.util.stream.Stream; /** * A simple spell checker based on a few implementations such as the infamous Peter Noving spell checker and * the like. Attempts to be highly performing by never changing the first character since we can assume that the * user got that correct. */ public class SpellingCorrector implements ISpellingCorrector { // word to count map - how may times a word is present - or a weight attached to a word private Map dictionary = null; public SpellingCorrector(int lruCount) { this.dictionary = Collections.synchronizedMap(new LruCache<>(lruCount)); } @Override public void putWord(String word) { word = word.toLowerCase(); if (dictionary.containsKey(word)) { dictionary.put(word, (dictionary.get(word) + 1)); } else { dictionary.put(word, 1); } } @Override public String correct(String word) { if (word == null || word.trim().isEmpty()) { return word; } word = word.toLowerCase(); // If the word exists in our dictionary then return if (dictionary.containsKey(word)) { return word; } Map possibleMatches = new HashMap<>(); List closeEdits = wordEdits(word); for (String closeEdit: closeEdits) { if (dictionary.containsKey(closeEdit)) { possibleMatches.put(closeEdit, this.dictionary.get(closeEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // Ok we did't find anything, so lets run the edits function on the previous results and use those // this gives us results which are 2 characters away from whatever was entered List furtherEdits = new ArrayList<>(); for(String closeEdit: closeEdits) { furtherEdits.addAll(this.wordEdits(closeEdit)); } for (String futherEdit: furtherEdits) { if (dictionary.containsKey(futherEdit)) { possibleMatches.put(futherEdit, this.dictionary.get(futherEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // If unable to find something better return the same string return word; } @Override public boolean containsWord(String word) { if (dictionary.containsKey(word)) { return true; } return false; } /** * Return a list of strings which are words similar to our one which could potentially be misspellings * Abuse the fact that a char can be used as an integer * Assume that they got the first letter correct for all edits to cut on CPU burn time */ private List wordEdits(String word) { List closeWords = new ArrayList(); for (int i = 1; i < word.length() + 1; i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they forgot to type a letter? Try adding one StringBuilder sb = new StringBuilder(word); sb.insert(i, character); closeWords.add(sb.toString()); } } for (int i = 1; i < word.length(); i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they mistyped a single letter? Try replacing them all StringBuilder sb = new StringBuilder(word); sb.setCharAt(i, character); closeWords.add(sb.toString()); // Maybe they added an extra letter? Try deleting one sb = new StringBuilder(word); sb.deleteCharAt(i); closeWords.add(sb.toString()); } } return closeWords; } /** * Sorts a map by value taken from * http://stackoverflow.com/questions/109383/sort-a-mapkey-value-by-values-java */ public static > Map sortByValue( Map map ) { Map result = new LinkedHashMap<>(); Stream> st = map.entrySet().stream(); st.sorted( Map.Entry.comparingByValue() ).forEachOrdered( e -> result.put(e.getKey(), e.getValue()) ); return result; } /** * A very simple LRU cache implementation that can be used for random data types. */ public class LruCache extends LinkedHashMap { private final int maxEntries; public LruCache(final int maxEntries) { super(maxEntries + 1, 1.0f, true); this.maxEntries = maxEntries; } @Override protected boolean removeEldestEntry(final Map.Entry eldest) { return super.size() > maxEntries; } } } ================================================ FILE: examples/duplicates/18.java ================================================ package com.boyter.SpellingCorrector; import java.util.*; import java.util.stream.Stream; /** * A simple spell checker based on a few implementations such as the infamous Peter Noving spell checker and * the like. Attempts to be highly performing by never changing the first character since we can assume that the * user got that correct. */ public class SpellingCorrector implements ISpellingCorrector { // word to count map - how may times a word is present - or a weight attached to a word private Map dictionary = null; public SpellingCorrector(int lruCount) { this.dictionary = Collections.synchronizedMap(new LruCache<>(lruCount)); } @Override public void putWord(String word) { word = word.toLowerCase(); if (dictionary.containsKey(word)) { dictionary.put(word, (dictionary.get(word) + 1)); } else { dictionary.put(word, 1); } } @Override public String correct(String word) { if (word == null || word.trim().isEmpty()) { return word; } word = word.toLowerCase(); // If the word exists in our dictionary then return if (dictionary.containsKey(word)) { return word; } Map possibleMatches = new HashMap<>(); List closeEdits = wordEdits(word); for (String closeEdit: closeEdits) { if (dictionary.containsKey(closeEdit)) { possibleMatches.put(closeEdit, this.dictionary.get(closeEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // Ok we did't find anything, so lets run the edits function on the previous results and use those // this gives us results which are 2 characters away from whatever was entered List furtherEdits = new ArrayList<>(); for(String closeEdit: closeEdits) { furtherEdits.addAll(this.wordEdits(closeEdit)); } for (String futherEdit: furtherEdits) { if (dictionary.containsKey(futherEdit)) { possibleMatches.put(futherEdit, this.dictionary.get(futherEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // If unable to find something better return the same string return word; } @Override public boolean containsWord(String word) { if (dictionary.containsKey(word)) { return true; } return false; } /** * Return a list of strings which are words similar to our one which could potentially be misspellings * Abuse the fact that a char can be used as an integer * Assume that they got the first letter correct for all edits to cut on CPU burn time */ private List wordEdits(String word) { List closeWords = new ArrayList(); for (int i = 1; i < word.length() + 1; i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they forgot to type a letter? Try adding one StringBuilder sb = new StringBuilder(word); sb.insert(i, character); closeWords.add(sb.toString()); } } for (int i = 1; i < word.length(); i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they mistyped a single letter? Try replacing them all StringBuilder sb = new StringBuilder(word); sb.setCharAt(i, character); closeWords.add(sb.toString()); // Maybe they added an extra letter? Try deleting one sb = new StringBuilder(word); sb.deleteCharAt(i); closeWords.add(sb.toString()); } } return closeWords; } /** * Sorts a map by value taken from * http://stackoverflow.com/questions/109383/sort-a-mapkey-value-by-values-java */ public static > Map sortByValue( Map map ) { Map result = new LinkedHashMap<>(); Stream> st = map.entrySet().stream(); st.sorted( Map.Entry.comparingByValue() ).forEachOrdered( e -> result.put(e.getKey(), e.getValue()) ); return result; } /** * A very simple LRU cache implementation that can be used for random data types. */ public class LruCache extends LinkedHashMap { private final int maxEntries; public LruCache(final int maxEntries) { super(maxEntries + 1, 1.0f, true); this.maxEntries = maxEntries; } @Override protected boolean removeEldestEntry(final Map.Entry eldest) { return super.size() > maxEntries; } } } ================================================ FILE: examples/duplicates/19.java ================================================ package com.boyter.SpellingCorrector; import java.util.*; import java.util.stream.Stream; /** * A simple spell checker based on a few implementations such as the infamous Peter Noving spell checker and * the like. Attempts to be highly performing by never changing the first character since we can assume that the * user got that correct. */ public class SpellingCorrector implements ISpellingCorrector { // word to count map - how may times a word is present - or a weight attached to a word private Map dictionary = null; public SpellingCorrector(int lruCount) { this.dictionary = Collections.synchronizedMap(new LruCache<>(lruCount)); } @Override public void putWord(String word) { word = word.toLowerCase(); if (dictionary.containsKey(word)) { dictionary.put(word, (dictionary.get(word) + 1)); } else { dictionary.put(word, 1); } } @Override public String correct(String word) { if (word == null || word.trim().isEmpty()) { return word; } word = word.toLowerCase(); // If the word exists in our dictionary then return if (dictionary.containsKey(word)) { return word; } Map possibleMatches = new HashMap<>(); List closeEdits = wordEdits(word); for (String closeEdit: closeEdits) { if (dictionary.containsKey(closeEdit)) { possibleMatches.put(closeEdit, this.dictionary.get(closeEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // Ok we did't find anything, so lets run the edits function on the previous results and use those // this gives us results which are 2 characters away from whatever was entered List furtherEdits = new ArrayList<>(); for(String closeEdit: closeEdits) { furtherEdits.addAll(this.wordEdits(closeEdit)); } for (String futherEdit: furtherEdits) { if (dictionary.containsKey(futherEdit)) { possibleMatches.put(futherEdit, this.dictionary.get(futherEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // If unable to find something better return the same string return word; } @Override public boolean containsWord(String word) { if (dictionary.containsKey(word)) { return true; } return false; } /** * Return a list of strings which are words similar to our one which could potentially be misspellings * Abuse the fact that a char can be used as an integer * Assume that they got the first letter correct for all edits to cut on CPU burn time */ private List wordEdits(String word) { List closeWords = new ArrayList(); for (int i = 1; i < word.length() + 1; i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they forgot to type a letter? Try adding one StringBuilder sb = new StringBuilder(word); sb.insert(i, character); closeWords.add(sb.toString()); } } for (int i = 1; i < word.length(); i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they mistyped a single letter? Try replacing them all StringBuilder sb = new StringBuilder(word); sb.setCharAt(i, character); closeWords.add(sb.toString()); // Maybe they added an extra letter? Try deleting one sb = new StringBuilder(word); sb.deleteCharAt(i); closeWords.add(sb.toString()); } } return closeWords; } /** * Sorts a map by value taken from * http://stackoverflow.com/questions/109383/sort-a-mapkey-value-by-values-java */ public static > Map sortByValue( Map map ) { Map result = new LinkedHashMap<>(); Stream> st = map.entrySet().stream(); st.sorted( Map.Entry.comparingByValue() ).forEachOrdered( e -> result.put(e.getKey(), e.getValue()) ); return result; } /** * A very simple LRU cache implementation that can be used for random data types. */ public class LruCache extends LinkedHashMap { private final int maxEntries; public LruCache(final int maxEntries) { super(maxEntries + 1, 1.0f, true); this.maxEntries = maxEntries; } @Override protected boolean removeEldestEntry(final Map.Entry eldest) { return super.size() > maxEntries; } } } ================================================ FILE: examples/duplicates/2.java ================================================ package com.boyter.SpellingCorrector; import java.util.*; import java.util.stream.Stream; /** * A simple spell checker based on a few implementations such as the infamous Peter Noving spell checker and * the like. Attempts to be highly performing by never changing the first character since we can assume that the * user got that correct. */ public class SpellingCorrector implements ISpellingCorrector { // word to count map - how may times a word is present - or a weight attached to a word private Map dictionary = null; public SpellingCorrector(int lruCount) { this.dictionary = Collections.synchronizedMap(new LruCache<>(lruCount)); } @Override public void putWord(String word) { word = word.toLowerCase(); if (dictionary.containsKey(word)) { dictionary.put(word, (dictionary.get(word) + 1)); } else { dictionary.put(word, 1); } } @Override public String correct(String word) { if (word == null || word.trim().isEmpty()) { return word; } word = word.toLowerCase(); // If the word exists in our dictionary then return if (dictionary.containsKey(word)) { return word; } Map possibleMatches = new HashMap<>(); List closeEdits = wordEdits(word); for (String closeEdit: closeEdits) { if (dictionary.containsKey(closeEdit)) { possibleMatches.put(closeEdit, this.dictionary.get(closeEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // Ok we did't find anything, so lets run the edits function on the previous results and use those // this gives us results which are 2 characters away from whatever was entered List furtherEdits = new ArrayList<>(); for(String closeEdit: closeEdits) { furtherEdits.addAll(this.wordEdits(closeEdit)); } for (String futherEdit: furtherEdits) { if (dictionary.containsKey(futherEdit)) { possibleMatches.put(futherEdit, this.dictionary.get(futherEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // If unable to find something better return the same string return word; } @Override public boolean containsWord(String word) { if (dictionary.containsKey(word)) { return true; } return false; } /** * Return a list of strings which are words similar to our one which could potentially be misspellings * Abuse the fact that a char can be used as an integer * Assume that they got the first letter correct for all edits to cut on CPU burn time */ private List wordEdits(String word) { List closeWords = new ArrayList(); for (int i = 1; i < word.length() + 1; i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they forgot to type a letter? Try adding one StringBuilder sb = new StringBuilder(word); sb.insert(i, character); closeWords.add(sb.toString()); } } for (int i = 1; i < word.length(); i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they mistyped a single letter? Try replacing them all StringBuilder sb = new StringBuilder(word); sb.setCharAt(i, character); closeWords.add(sb.toString()); // Maybe they added an extra letter? Try deleting one sb = new StringBuilder(word); sb.deleteCharAt(i); closeWords.add(sb.toString()); } } return closeWords; } /** * Sorts a map by value taken from * http://stackoverflow.com/questions/109383/sort-a-mapkey-value-by-values-java */ public static > Map sortByValue( Map map ) { Map result = new LinkedHashMap<>(); Stream> st = map.entrySet().stream(); st.sorted( Map.Entry.comparingByValue() ).forEachOrdered( e -> result.put(e.getKey(), e.getValue()) ); return result; } /** * A very simple LRU cache implementation that can be used for random data types. */ public class LruCache extends LinkedHashMap { private final int maxEntries; public LruCache(final int maxEntries) { super(maxEntries + 1, 1.0f, true); this.maxEntries = maxEntries; } @Override protected boolean removeEldestEntry(final Map.Entry eldest) { return super.size() > maxEntries; } } } ================================================ FILE: examples/duplicates/20.java ================================================ package com.boyter.SpellingCorrector; import java.util.*; import java.util.stream.Stream; /** * A simple spell checker based on a few implementations such as the infamous Peter Noving spell checker and * the like. Attempts to be highly performing by never changing the first character since we can assume that the * user got that correct. */ public class SpellingCorrector implements ISpellingCorrector { // word to count map - how may times a word is present - or a weight attached to a word private Map dictionary = null; public SpellingCorrector(int lruCount) { this.dictionary = Collections.synchronizedMap(new LruCache<>(lruCount)); } @Override public void putWord(String word) { word = word.toLowerCase(); if (dictionary.containsKey(word)) { dictionary.put(word, (dictionary.get(word) + 1)); } else { dictionary.put(word, 1); } } @Override public String correct(String word) { if (word == null || word.trim().isEmpty()) { return word; } word = word.toLowerCase(); // If the word exists in our dictionary then return if (dictionary.containsKey(word)) { return word; } Map possibleMatches = new HashMap<>(); List closeEdits = wordEdits(word); for (String closeEdit: closeEdits) { if (dictionary.containsKey(closeEdit)) { possibleMatches.put(closeEdit, this.dictionary.get(closeEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // Ok we did't find anything, so lets run the edits function on the previous results and use those // this gives us results which are 2 characters away from whatever was entered List furtherEdits = new ArrayList<>(); for(String closeEdit: closeEdits) { furtherEdits.addAll(this.wordEdits(closeEdit)); } for (String futherEdit: furtherEdits) { if (dictionary.containsKey(futherEdit)) { possibleMatches.put(futherEdit, this.dictionary.get(futherEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // If unable to find something better return the same string return word; } @Override public boolean containsWord(String word) { if (dictionary.containsKey(word)) { return true; } return false; } /** * Return a list of strings which are words similar to our one which could potentially be misspellings * Abuse the fact that a char can be used as an integer * Assume that they got the first letter correct for all edits to cut on CPU burn time */ private List wordEdits(String word) { List closeWords = new ArrayList(); for (int i = 1; i < word.length() + 1; i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they forgot to type a letter? Try adding one StringBuilder sb = new StringBuilder(word); sb.insert(i, character); closeWords.add(sb.toString()); } } for (int i = 1; i < word.length(); i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they mistyped a single letter? Try replacing them all StringBuilder sb = new StringBuilder(word); sb.setCharAt(i, character); closeWords.add(sb.toString()); // Maybe they added an extra letter? Try deleting one sb = new StringBuilder(word); sb.deleteCharAt(i); closeWords.add(sb.toString()); } } return closeWords; } /** * Sorts a map by value taken from * http://stackoverflow.com/questions/109383/sort-a-mapkey-value-by-values-java */ public static > Map sortByValue( Map map ) { Map result = new LinkedHashMap<>(); Stream> st = map.entrySet().stream(); st.sorted( Map.Entry.comparingByValue() ).forEachOrdered( e -> result.put(e.getKey(), e.getValue()) ); return result; } /** * A very simple LRU cache implementation that can be used for random data types. */ public class LruCache extends LinkedHashMap { private final int maxEntries; public LruCache(final int maxEntries) { super(maxEntries + 1, 1.0f, true); this.maxEntries = maxEntries; } @Override protected boolean removeEldestEntry(final Map.Entry eldest) { return super.size() > maxEntries; } } } ================================================ FILE: examples/duplicates/3.java ================================================ package com.boyter.SpellingCorrector; import java.util.*; import java.util.stream.Stream; /** * A simple spell checker based on a few implementations such as the infamous Peter Noving spell checker and * the like. Attempts to be highly performing by never changing the first character since we can assume that the * user got that correct. */ public class SpellingCorrector implements ISpellingCorrector { // word to count map - how may times a word is present - or a weight attached to a word private Map dictionary = null; public SpellingCorrector(int lruCount) { this.dictionary = Collections.synchronizedMap(new LruCache<>(lruCount)); } @Override public void putWord(String word) { word = word.toLowerCase(); if (dictionary.containsKey(word)) { dictionary.put(word, (dictionary.get(word) + 1)); } else { dictionary.put(word, 1); } } @Override public String correct(String word) { if (word == null || word.trim().isEmpty()) { return word; } word = word.toLowerCase(); // If the word exists in our dictionary then return if (dictionary.containsKey(word)) { return word; } Map possibleMatches = new HashMap<>(); List closeEdits = wordEdits(word); for (String closeEdit: closeEdits) { if (dictionary.containsKey(closeEdit)) { possibleMatches.put(closeEdit, this.dictionary.get(closeEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // Ok we did't find anything, so lets run the edits function on the previous results and use those // this gives us results which are 2 characters away from whatever was entered List furtherEdits = new ArrayList<>(); for(String closeEdit: closeEdits) { furtherEdits.addAll(this.wordEdits(closeEdit)); } for (String futherEdit: furtherEdits) { if (dictionary.containsKey(futherEdit)) { possibleMatches.put(futherEdit, this.dictionary.get(futherEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // If unable to find something better return the same string return word; } @Override public boolean containsWord(String word) { if (dictionary.containsKey(word)) { return true; } return false; } /** * Return a list of strings which are words similar to our one which could potentially be misspellings * Abuse the fact that a char can be used as an integer * Assume that they got the first letter correct for all edits to cut on CPU burn time */ private List wordEdits(String word) { List closeWords = new ArrayList(); for (int i = 1; i < word.length() + 1; i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they forgot to type a letter? Try adding one StringBuilder sb = new StringBuilder(word); sb.insert(i, character); closeWords.add(sb.toString()); } } for (int i = 1; i < word.length(); i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they mistyped a single letter? Try replacing them all StringBuilder sb = new StringBuilder(word); sb.setCharAt(i, character); closeWords.add(sb.toString()); // Maybe they added an extra letter? Try deleting one sb = new StringBuilder(word); sb.deleteCharAt(i); closeWords.add(sb.toString()); } } return closeWords; } /** * Sorts a map by value taken from * http://stackoverflow.com/questions/109383/sort-a-mapkey-value-by-values-java */ public static > Map sortByValue( Map map ) { Map result = new LinkedHashMap<>(); Stream> st = map.entrySet().stream(); st.sorted( Map.Entry.comparingByValue() ).forEachOrdered( e -> result.put(e.getKey(), e.getValue()) ); return result; } /** * A very simple LRU cache implementation that can be used for random data types. */ public class LruCache extends LinkedHashMap { private final int maxEntries; public LruCache(final int maxEntries) { super(maxEntries + 1, 1.0f, true); this.maxEntries = maxEntries; } @Override protected boolean removeEldestEntry(final Map.Entry eldest) { return super.size() > maxEntries; } } } ================================================ FILE: examples/duplicates/4.java ================================================ package com.boyter.SpellingCorrector; import java.util.*; import java.util.stream.Stream; /** * A simple spell checker based on a few implementations such as the infamous Peter Noving spell checker and * the like. Attempts to be highly performing by never changing the first character since we can assume that the * user got that correct. */ public class SpellingCorrector implements ISpellingCorrector { // word to count map - how may times a word is present - or a weight attached to a word private Map dictionary = null; public SpellingCorrector(int lruCount) { this.dictionary = Collections.synchronizedMap(new LruCache<>(lruCount)); } @Override public void putWord(String word) { word = word.toLowerCase(); if (dictionary.containsKey(word)) { dictionary.put(word, (dictionary.get(word) + 1)); } else { dictionary.put(word, 1); } } @Override public String correct(String word) { if (word == null || word.trim().isEmpty()) { return word; } word = word.toLowerCase(); // If the word exists in our dictionary then return if (dictionary.containsKey(word)) { return word; } Map possibleMatches = new HashMap<>(); List closeEdits = wordEdits(word); for (String closeEdit: closeEdits) { if (dictionary.containsKey(closeEdit)) { possibleMatches.put(closeEdit, this.dictionary.get(closeEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // Ok we did't find anything, so lets run the edits function on the previous results and use those // this gives us results which are 2 characters away from whatever was entered List furtherEdits = new ArrayList<>(); for(String closeEdit: closeEdits) { furtherEdits.addAll(this.wordEdits(closeEdit)); } for (String futherEdit: furtherEdits) { if (dictionary.containsKey(futherEdit)) { possibleMatches.put(futherEdit, this.dictionary.get(futherEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // If unable to find something better return the same string return word; } @Override public boolean containsWord(String word) { if (dictionary.containsKey(word)) { return true; } return false; } /** * Return a list of strings which are words similar to our one which could potentially be misspellings * Abuse the fact that a char can be used as an integer * Assume that they got the first letter correct for all edits to cut on CPU burn time */ private List wordEdits(String word) { List closeWords = new ArrayList(); for (int i = 1; i < word.length() + 1; i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they forgot to type a letter? Try adding one StringBuilder sb = new StringBuilder(word); sb.insert(i, character); closeWords.add(sb.toString()); } } for (int i = 1; i < word.length(); i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they mistyped a single letter? Try replacing them all StringBuilder sb = new StringBuilder(word); sb.setCharAt(i, character); closeWords.add(sb.toString()); // Maybe they added an extra letter? Try deleting one sb = new StringBuilder(word); sb.deleteCharAt(i); closeWords.add(sb.toString()); } } return closeWords; } /** * Sorts a map by value taken from * http://stackoverflow.com/questions/109383/sort-a-mapkey-value-by-values-java */ public static > Map sortByValue( Map map ) { Map result = new LinkedHashMap<>(); Stream> st = map.entrySet().stream(); st.sorted( Map.Entry.comparingByValue() ).forEachOrdered( e -> result.put(e.getKey(), e.getValue()) ); return result; } /** * A very simple LRU cache implementation that can be used for random data types. */ public class LruCache extends LinkedHashMap { private final int maxEntries; public LruCache(final int maxEntries) { super(maxEntries + 1, 1.0f, true); this.maxEntries = maxEntries; } @Override protected boolean removeEldestEntry(final Map.Entry eldest) { return super.size() > maxEntries; } } } ================================================ FILE: examples/duplicates/5.java ================================================ package com.boyter.SpellingCorrector; import java.util.*; import java.util.stream.Stream; /** * A simple spell checker based on a few implementations such as the infamous Peter Noving spell checker and * the like. Attempts to be highly performing by never changing the first character since we can assume that the * user got that correct. */ public class SpellingCorrector implements ISpellingCorrector { // word to count map - how may times a word is present - or a weight attached to a word private Map dictionary = null; public SpellingCorrector(int lruCount) { this.dictionary = Collections.synchronizedMap(new LruCache<>(lruCount)); } @Override public void putWord(String word) { word = word.toLowerCase(); if (dictionary.containsKey(word)) { dictionary.put(word, (dictionary.get(word) + 1)); } else { dictionary.put(word, 1); } } @Override public String correct(String word) { if (word == null || word.trim().isEmpty()) { return word; } word = word.toLowerCase(); // If the word exists in our dictionary then return if (dictionary.containsKey(word)) { return word; } Map possibleMatches = new HashMap<>(); List closeEdits = wordEdits(word); for (String closeEdit: closeEdits) { if (dictionary.containsKey(closeEdit)) { possibleMatches.put(closeEdit, this.dictionary.get(closeEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // Ok we did't find anything, so lets run the edits function on the previous results and use those // this gives us results which are 2 characters away from whatever was entered List furtherEdits = new ArrayList<>(); for(String closeEdit: closeEdits) { furtherEdits.addAll(this.wordEdits(closeEdit)); } for (String futherEdit: furtherEdits) { if (dictionary.containsKey(futherEdit)) { possibleMatches.put(futherEdit, this.dictionary.get(futherEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // If unable to find something better return the same string return word; } @Override public boolean containsWord(String word) { if (dictionary.containsKey(word)) { return true; } return false; } /** * Return a list of strings which are words similar to our one which could potentially be misspellings * Abuse the fact that a char can be used as an integer * Assume that they got the first letter correct for all edits to cut on CPU burn time */ private List wordEdits(String word) { List closeWords = new ArrayList(); for (int i = 1; i < word.length() + 1; i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they forgot to type a letter? Try adding one StringBuilder sb = new StringBuilder(word); sb.insert(i, character); closeWords.add(sb.toString()); } } for (int i = 1; i < word.length(); i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they mistyped a single letter? Try replacing them all StringBuilder sb = new StringBuilder(word); sb.setCharAt(i, character); closeWords.add(sb.toString()); // Maybe they added an extra letter? Try deleting one sb = new StringBuilder(word); sb.deleteCharAt(i); closeWords.add(sb.toString()); } } return closeWords; } /** * Sorts a map by value taken from * http://stackoverflow.com/questions/109383/sort-a-mapkey-value-by-values-java */ public static > Map sortByValue( Map map ) { Map result = new LinkedHashMap<>(); Stream> st = map.entrySet().stream(); st.sorted( Map.Entry.comparingByValue() ).forEachOrdered( e -> result.put(e.getKey(), e.getValue()) ); return result; } /** * A very simple LRU cache implementation that can be used for random data types. */ public class LruCache extends LinkedHashMap { private final int maxEntries; public LruCache(final int maxEntries) { super(maxEntries + 1, 1.0f, true); this.maxEntries = maxEntries; } @Override protected boolean removeEldestEntry(final Map.Entry eldest) { return super.size() > maxEntries; } } } ================================================ FILE: examples/duplicates/6.java ================================================ package com.boyter.SpellingCorrector; import java.util.*; import java.util.stream.Stream; /** * A simple spell checker based on a few implementations such as the infamous Peter Noving spell checker and * the like. Attempts to be highly performing by never changing the first character since we can assume that the * user got that correct. */ public class SpellingCorrector implements ISpellingCorrector { // word to count map - how may times a word is present - or a weight attached to a word private Map dictionary = null; public SpellingCorrector(int lruCount) { this.dictionary = Collections.synchronizedMap(new LruCache<>(lruCount)); } @Override public void putWord(String word) { word = word.toLowerCase(); if (dictionary.containsKey(word)) { dictionary.put(word, (dictionary.get(word) + 1)); } else { dictionary.put(word, 1); } } @Override public String correct(String word) { if (word == null || word.trim().isEmpty()) { return word; } word = word.toLowerCase(); // If the word exists in our dictionary then return if (dictionary.containsKey(word)) { return word; } Map possibleMatches = new HashMap<>(); List closeEdits = wordEdits(word); for (String closeEdit: closeEdits) { if (dictionary.containsKey(closeEdit)) { possibleMatches.put(closeEdit, this.dictionary.get(closeEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // Ok we did't find anything, so lets run the edits function on the previous results and use those // this gives us results which are 2 characters away from whatever was entered List furtherEdits = new ArrayList<>(); for(String closeEdit: closeEdits) { furtherEdits.addAll(this.wordEdits(closeEdit)); } for (String futherEdit: furtherEdits) { if (dictionary.containsKey(futherEdit)) { possibleMatches.put(futherEdit, this.dictionary.get(futherEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // If unable to find something better return the same string return word; } @Override public boolean containsWord(String word) { if (dictionary.containsKey(word)) { return true; } return false; } /** * Return a list of strings which are words similar to our one which could potentially be misspellings * Abuse the fact that a char can be used as an integer * Assume that they got the first letter correct for all edits to cut on CPU burn time */ private List wordEdits(String word) { List closeWords = new ArrayList(); for (int i = 1; i < word.length() + 1; i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they forgot to type a letter? Try adding one StringBuilder sb = new StringBuilder(word); sb.insert(i, character); closeWords.add(sb.toString()); } } for (int i = 1; i < word.length(); i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they mistyped a single letter? Try replacing them all StringBuilder sb = new StringBuilder(word); sb.setCharAt(i, character); closeWords.add(sb.toString()); // Maybe they added an extra letter? Try deleting one sb = new StringBuilder(word); sb.deleteCharAt(i); closeWords.add(sb.toString()); } } return closeWords; } /** * Sorts a map by value taken from * http://stackoverflow.com/questions/109383/sort-a-mapkey-value-by-values-java */ public static > Map sortByValue( Map map ) { Map result = new LinkedHashMap<>(); Stream> st = map.entrySet().stream(); st.sorted( Map.Entry.comparingByValue() ).forEachOrdered( e -> result.put(e.getKey(), e.getValue()) ); return result; } /** * A very simple LRU cache implementation that can be used for random data types. */ public class LruCache extends LinkedHashMap { private final int maxEntries; public LruCache(final int maxEntries) { super(maxEntries + 1, 1.0f, true); this.maxEntries = maxEntries; } @Override protected boolean removeEldestEntry(final Map.Entry eldest) { return super.size() > maxEntries; } } } ================================================ FILE: examples/duplicates/7.java ================================================ package com.boyter.SpellingCorrector; import java.util.*; import java.util.stream.Stream; /** * A simple spell checker based on a few implementations such as the infamous Peter Noving spell checker and * the like. Attempts to be highly performing by never changing the first character since we can assume that the * user got that correct. */ public class SpellingCorrector implements ISpellingCorrector { // word to count map - how may times a word is present - or a weight attached to a word private Map dictionary = null; public SpellingCorrector(int lruCount) { this.dictionary = Collections.synchronizedMap(new LruCache<>(lruCount)); } @Override public void putWord(String word) { word = word.toLowerCase(); if (dictionary.containsKey(word)) { dictionary.put(word, (dictionary.get(word) + 1)); } else { dictionary.put(word, 1); } } @Override public String correct(String word) { if (word == null || word.trim().isEmpty()) { return word; } word = word.toLowerCase(); // If the word exists in our dictionary then return if (dictionary.containsKey(word)) { return word; } Map possibleMatches = new HashMap<>(); List closeEdits = wordEdits(word); for (String closeEdit: closeEdits) { if (dictionary.containsKey(closeEdit)) { possibleMatches.put(closeEdit, this.dictionary.get(closeEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // Ok we did't find anything, so lets run the edits function on the previous results and use those // this gives us results which are 2 characters away from whatever was entered List furtherEdits = new ArrayList<>(); for(String closeEdit: closeEdits) { furtherEdits.addAll(this.wordEdits(closeEdit)); } for (String futherEdit: furtherEdits) { if (dictionary.containsKey(futherEdit)) { possibleMatches.put(futherEdit, this.dictionary.get(futherEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // If unable to find something better return the same string return word; } @Override public boolean containsWord(String word) { if (dictionary.containsKey(word)) { return true; } return false; } /** * Return a list of strings which are words similar to our one which could potentially be misspellings * Abuse the fact that a char can be used as an integer * Assume that they got the first letter correct for all edits to cut on CPU burn time */ private List wordEdits(String word) { List closeWords = new ArrayList(); for (int i = 1; i < word.length() + 1; i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they forgot to type a letter? Try adding one StringBuilder sb = new StringBuilder(word); sb.insert(i, character); closeWords.add(sb.toString()); } } for (int i = 1; i < word.length(); i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they mistyped a single letter? Try replacing them all StringBuilder sb = new StringBuilder(word); sb.setCharAt(i, character); closeWords.add(sb.toString()); // Maybe they added an extra letter? Try deleting one sb = new StringBuilder(word); sb.deleteCharAt(i); closeWords.add(sb.toString()); } } return closeWords; } /** * Sorts a map by value taken from * http://stackoverflow.com/questions/109383/sort-a-mapkey-value-by-values-java */ public static > Map sortByValue( Map map ) { Map result = new LinkedHashMap<>(); Stream> st = map.entrySet().stream(); st.sorted( Map.Entry.comparingByValue() ).forEachOrdered( e -> result.put(e.getKey(), e.getValue()) ); return result; } /** * A very simple LRU cache implementation that can be used for random data types. */ public class LruCache extends LinkedHashMap { private final int maxEntries; public LruCache(final int maxEntries) { super(maxEntries + 1, 1.0f, true); this.maxEntries = maxEntries; } @Override protected boolean removeEldestEntry(final Map.Entry eldest) { return super.size() > maxEntries; } } } ================================================ FILE: examples/duplicates/8.java ================================================ package com.boyter.SpellingCorrector; import java.util.*; import java.util.stream.Stream; /** * A simple spell checker based on a few implementations such as the infamous Peter Noving spell checker and * the like. Attempts to be highly performing by never changing the first character since we can assume that the * user got that correct. */ public class SpellingCorrector implements ISpellingCorrector { // word to count map - how may times a word is present - or a weight attached to a word private Map dictionary = null; public SpellingCorrector(int lruCount) { this.dictionary = Collections.synchronizedMap(new LruCache<>(lruCount)); } @Override public void putWord(String word) { word = word.toLowerCase(); if (dictionary.containsKey(word)) { dictionary.put(word, (dictionary.get(word) + 1)); } else { dictionary.put(word, 1); } } @Override public String correct(String word) { if (word == null || word.trim().isEmpty()) { return word; } word = word.toLowerCase(); // If the word exists in our dictionary then return if (dictionary.containsKey(word)) { return word; } Map possibleMatches = new HashMap<>(); List closeEdits = wordEdits(word); for (String closeEdit: closeEdits) { if (dictionary.containsKey(closeEdit)) { possibleMatches.put(closeEdit, this.dictionary.get(closeEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // Ok we did't find anything, so lets run the edits function on the previous results and use those // this gives us results which are 2 characters away from whatever was entered List furtherEdits = new ArrayList<>(); for(String closeEdit: closeEdits) { furtherEdits.addAll(this.wordEdits(closeEdit)); } for (String futherEdit: furtherEdits) { if (dictionary.containsKey(futherEdit)) { possibleMatches.put(futherEdit, this.dictionary.get(futherEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // If unable to find something better return the same string return word; } @Override public boolean containsWord(String word) { if (dictionary.containsKey(word)) { return true; } return false; } /** * Return a list of strings which are words similar to our one which could potentially be misspellings * Abuse the fact that a char can be used as an integer * Assume that they got the first letter correct for all edits to cut on CPU burn time */ private List wordEdits(String word) { List closeWords = new ArrayList(); for (int i = 1; i < word.length() + 1; i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they forgot to type a letter? Try adding one StringBuilder sb = new StringBuilder(word); sb.insert(i, character); closeWords.add(sb.toString()); } } for (int i = 1; i < word.length(); i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they mistyped a single letter? Try replacing them all StringBuilder sb = new StringBuilder(word); sb.setCharAt(i, character); closeWords.add(sb.toString()); // Maybe they added an extra letter? Try deleting one sb = new StringBuilder(word); sb.deleteCharAt(i); closeWords.add(sb.toString()); } } return closeWords; } /** * Sorts a map by value taken from * http://stackoverflow.com/questions/109383/sort-a-mapkey-value-by-values-java */ public static > Map sortByValue( Map map ) { Map result = new LinkedHashMap<>(); Stream> st = map.entrySet().stream(); st.sorted( Map.Entry.comparingByValue() ).forEachOrdered( e -> result.put(e.getKey(), e.getValue()) ); return result; } /** * A very simple LRU cache implementation that can be used for random data types. */ public class LruCache extends LinkedHashMap { private final int maxEntries; public LruCache(final int maxEntries) { super(maxEntries + 1, 1.0f, true); this.maxEntries = maxEntries; } @Override protected boolean removeEldestEntry(final Map.Entry eldest) { return super.size() > maxEntries; } } } ================================================ FILE: examples/duplicates/9.java ================================================ package com.boyter.SpellingCorrector; import java.util.*; import java.util.stream.Stream; /** * A simple spell checker based on a few implementations such as the infamous Peter Noving spell checker and * the like. Attempts to be highly performing by never changing the first character since we can assume that the * user got that correct. */ public class SpellingCorrector implements ISpellingCorrector { // word to count map - how may times a word is present - or a weight attached to a word private Map dictionary = null; public SpellingCorrector(int lruCount) { this.dictionary = Collections.synchronizedMap(new LruCache<>(lruCount)); } @Override public void putWord(String word) { word = word.toLowerCase(); if (dictionary.containsKey(word)) { dictionary.put(word, (dictionary.get(word) + 1)); } else { dictionary.put(word, 1); } } @Override public String correct(String word) { if (word == null || word.trim().isEmpty()) { return word; } word = word.toLowerCase(); // If the word exists in our dictionary then return if (dictionary.containsKey(word)) { return word; } Map possibleMatches = new HashMap<>(); List closeEdits = wordEdits(word); for (String closeEdit: closeEdits) { if (dictionary.containsKey(closeEdit)) { possibleMatches.put(closeEdit, this.dictionary.get(closeEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // Ok we did't find anything, so lets run the edits function on the previous results and use those // this gives us results which are 2 characters away from whatever was entered List furtherEdits = new ArrayList<>(); for(String closeEdit: closeEdits) { furtherEdits.addAll(this.wordEdits(closeEdit)); } for (String futherEdit: furtherEdits) { if (dictionary.containsKey(futherEdit)) { possibleMatches.put(futherEdit, this.dictionary.get(futherEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // If unable to find something better return the same string return word; } @Override public boolean containsWord(String word) { if (dictionary.containsKey(word)) { return true; } return false; } /** * Return a list of strings which are words similar to our one which could potentially be misspellings * Abuse the fact that a char can be used as an integer * Assume that they got the first letter correct for all edits to cut on CPU burn time */ private List wordEdits(String word) { List closeWords = new ArrayList(); for (int i = 1; i < word.length() + 1; i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they forgot to type a letter? Try adding one StringBuilder sb = new StringBuilder(word); sb.insert(i, character); closeWords.add(sb.toString()); } } for (int i = 1; i < word.length(); i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they mistyped a single letter? Try replacing them all StringBuilder sb = new StringBuilder(word); sb.setCharAt(i, character); closeWords.add(sb.toString()); // Maybe they added an extra letter? Try deleting one sb = new StringBuilder(word); sb.deleteCharAt(i); closeWords.add(sb.toString()); } } return closeWords; } /** * Sorts a map by value taken from * http://stackoverflow.com/questions/109383/sort-a-mapkey-value-by-values-java */ public static > Map sortByValue( Map map ) { Map result = new LinkedHashMap<>(); Stream> st = map.entrySet().stream(); st.sorted( Map.Entry.comparingByValue() ).forEachOrdered( e -> result.put(e.getKey(), e.getValue()) ); return result; } /** * A very simple LRU cache implementation that can be used for random data types. */ public class LruCache extends LinkedHashMap { private final int maxEntries; public LruCache(final int maxEntries) { super(maxEntries + 1, 1.0f, true); this.maxEntries = maxEntries; } @Override protected boolean removeEldestEntry(final Map.Entry eldest) { return super.size() > maxEntries; } } } ================================================ FILE: examples/generated/test.cs ================================================ // /* BlamLib: .NET SDK for the Blam Engine See license\BlamLib\BlamLib for specific license information */ using System; using System.Collections.Generic; using System.Text; namespace BlamLib.CheApe { /// /// CheApe project file interface /// [IO.Class((int)IO.TagGroups.Enumerated.CheApeProject, 1)] public sealed class Project : IO.FileManageable, IDisposable { #region Interface /// /// Game specific implementation interface for CheApe projects /// public interface Interface { /// /// Create a new project file and object /// /// Path to the project file /// Read to use Project object Project Create(string file); /// /// Open an existing project file /// /// Path to the project file /// Project using data loaded from Project Open(string file); /// /// Save an existing project /// /// If not null, then it saves the project to this file and updates the project settings /// Project object in question void Save(string save_as, Project project); /// /// Close an existing project /// /// Should we save the project data before closing? /// Project object in question void Close(bool save, Project project); }; public static Interface GetInterface(BlamVersion v) { if ((v & BlamVersion.Halo1) != 0) return new Blam.Halo1.CheApe.Project.Interface(); #if !NO_HALO2 else if ((v & BlamVersion.Halo2) != 0) return new Blam.Halo2.CheApe.Project.Interface(); #endif throw new Debug.Exceptions.UnreachableException(v); } #endregion internal ProjectState OwnerState = null; internal Project(BlamVersion v, string file_name) { engine = v; fileName = file_name; folder = System.IO.Path.GetDirectoryName(file_name) + "\\"; } /// /// Call after Project object is no longer in use /// public void Dispose() { OwnerState.Dispose(); } #region Engine BlamVersion engine; /// /// /// public BlamVersion Engine { get { return engine; } } #endregion #region FileName string fileName = string.Empty; /// /// The absolute file path of this project /// public string FileName { get { return fileName; } internal set { fileName = value; } } #endregion #region Folder string folder = string.Empty; /// /// The absolute path to the folder the project file is located in /// public string Folder { get { return folder; } } #endregion #region Files List files = new List(); /// /// Files referenced by this project /// public List Files { get { return files; } } #endregion #region Manifest files /// /// All embedded files should be added at runtime, we should NEVER /// have to stream these to the project file /// List embeddedFiles = new List(); /// /// Add a manifest file /// /// Type name path to the file /// File name (with extension) public void AddEmbedded(string path, string name) { embeddedFiles.Add(System.IO.Path.Combine(path, name)); } /// /// Remove an existing manifest file /// /// Type name path to the file /// File name (with extension) public void RemoveEmbedded(string path, string name) { embeddedFiles.Remove(System.IO.Path.Combine(path, name)); } #endregion /// /// Determines if is capable of being added to the project /// /// Path to the file in question /// If this is not a valid file this holds the reason, otherwise null /// True if a valid file, false otherwise public bool ValidFile(string path, out string reason) { reason = null; if(!path.Contains(folder)) { reason = string.Format("'{0}' isn't in this project's immediate directory.", path); } else if (files.Contains(System.IO.Path.GetFileName(path))) reason = string.Format("'{0}' already exists in the project.", path); else if (embeddedFiles.Contains(System.IO.Path.GetFileName(path))) reason = string.Format("'{0}' already exists in the project (Embedded).", path); else return true; return false; } /// /// Add the file to the project /// /// Name of the file we want to add to the project /// Should we create the file on the disk first? /// Name of the file relative to the actual project file public string Add(string path, bool create) { if(!path.Contains(folder)) throw new Debug.ExceptionLog("Files for this project must be in it's immediate directory: '{0}'", folder); if(create) { if (!System.IO.Directory.Exists(System.IO.Path.GetDirectoryName(path))) System.IO.Directory.CreateDirectory(System.IO.Path.GetDirectoryName(path)); if (!System.IO.File.Exists(path)) System.IO.File.Create(path).Close(); CheApe.Import.WriteBlankDocument(path, OwnerState.Definition.Engine); } files.Add(System.IO.Path.GetFileName(path)); return files[files.Count-1]; } /// /// Remove the file named from the project /// /// Name of the file we want to remove from the project /// Should we delete the file from disk too? /// Does nothing if doesn't exist public void Remove(string path, bool delete) { bool result = files.Remove(path); if (result && delete) { path = System.IO.Path.Combine(folder, path); if(System.IO.File.Exists(path)) System.IO.File.Delete(path); } } /// /// Remove the file located at in /// /// Index of the path we want to remove from the project /// Should we delete the file from disk too? /// DEBUG ONLY: Exceptions if is out of bounds public void Remove(int path_index, bool delete) { Debug.Assert.If(path_index >= 0 && path_index < files.Count, "Path index was out of range: [{0} !{1}]", files.Count, path_index); string path = System.IO.Path.Combine(folder, files[path_index]); files.RemoveAt(path_index); if (delete) System.IO.File.Delete(path); } static void ShowMessageInForm(System.Windows.Forms.Form owner_form, string msg) { if (owner_form != null) { owner_form.BeginInvoke(new Action( () => System.Windows.Forms.MessageBox.Show(owner_form, msg) )); } else System.Windows.Forms.MessageBox.Show(msg); } static void ShowMessageInForm(System.Windows.Forms.Form owner_form, string caption, string fmt, params object[] args) { string msg = string.Format(fmt, args); if (owner_form != null) { owner_form.BeginInvoke(new Action( () => System.Windows.Forms.MessageBox.Show(owner_form, msg, caption) )); } else System.Windows.Forms.MessageBox.Show(msg, caption); } bool imported = false; // have we even ran one import yet? /// /// Import the project files /// /// public void Import(System.Windows.Forms.Form owner_form) { const string k_error = "A parsing error (in {0}) has been encountered, please check the debug.log file.{1}"; OwnerState.Importer.Reset(); bool is_embedded = true; string dbg_name = "BORK BORK BORK!"; try { foreach (string f in embeddedFiles) { string path = System.IO.Path.GetDirectoryName(f) + "\\"; string name = System.IO.Path.GetFileName(f); OwnerState.Importer.ProcessFile(OwnerState, path, dbg_name = name); } is_embedded = false; foreach (string path in files) OwnerState.Importer.ProcessFile(OwnerState, folder + (dbg_name = path)); }catch(Debug.ExceptionLog) { ShowMessageInForm(owner_form, dbg_name, k_error, "CheApe", is_embedded ? " (Embedded)" : ""); return; }catch(System.Exception ex) { ShowMessageInForm(owner_form, dbg_name, k_error, ".NET", is_embedded ? " (Embedded)" : ""); Debug.LogFile.WriteLine("CheApe: .NET parsing error in {0}.{1}{2}", dbg_name, Program.NewLine, ex); return; } imported = true; } /// /// Build the whole project /// /// /// Should we re-import the project files first? public void Build(System.Windows.Forms.Form owner_form, bool reimport) { if (imported && reimport) OwnerState.Compiler.Reset(); if(!imported || reimport) Import(owner_form); // owner_form should be allowed to be null as the last time I checked MSBOX's implementation in Reflector, // its code just calls GetActiveWindow() when [owner] is null try { OwnerState.Compiler.Write(folder, fileName); } catch (Debug.ExceptionLog) { ShowMessageInForm(owner_form, fileName, "A compiler error has been encountered, please check the debug.log file"); return; } ShowMessageInForm(owner_form, "Build Finished!"); } /// /// Build the whole project /// /// If calling from a GUI, this should be an instance, or null /// Re-imports all project files public void Build(object param) { Build(param as System.Windows.Forms.Form, true); } #region IStreamable Members public override void Read(IO.EndianReader s) { BlamVersion ver = (BlamVersion)s.ReadUInt16(); // HACK: this is a hack if (ver == BlamVersion.Halo1) ver = BlamVersion.Halo1_CE; Debug.Assert.If(ver == engine, "Engine version mismatch: expected {0}, but got {1}", engine, ver); s.Seek(2, System.IO.SeekOrigin.Current); #region FileNames int file_count = s.ReadInt32(); for (int x = 0; x < file_count; x++) files.Add(s.ReadCString()); #endregion } public override void Write(IO.EndianWriter s) { s.Write((ushort)engine); s.Write(ushort.MinValue); #region FileNames s.Write(files.Count); foreach (string str in files) s.Write(str, true); #endregion } #endregion }; /// /// Game specific implementation base class for CheApe project states /// internal abstract class ProjectState : IDisposable { #region Engine BlamVersion engine; /// /// /// public BlamVersion Engine { get { return engine; } } #endregion #region Definition protected XmlInterface definition; /// /// CheApe definition data /// public XmlInterface Definition { get { return definition; } } #endregion #region Project protected Project project; /// /// CheApe project /// public Project Project { get { return project; } } #endregion #region Compiler protected Compiler compiler; /// /// CheApe compiler implementations /// public Compiler Compiler { get { return compiler; } } #endregion #region ImportedBlocks protected Dictionary importedBlocks = new Dictionary(); /// /// /// public Dictionary ImportedBlocks { get { return importedBlocks; } } #endregion #region Importer protected Import importer; /// /// CheApe xml definition implementation /// public Import Importer { get { return importer; } } #endregion internal Scripting.XmlInterface scriptingInterface = null; protected ProjectState(BlamVersion engine, Project proj) { this.engine = engine; Managers.GameManager.Namespace nspace; Managers.GameManager.Platform plat; // Get the namespace of the engine we're using Managers.GameManager.FromBlamVersion(engine, out nspace, out plat); // Read the CheApe engine definition data we need for importing definition = new XmlInterface(engine); definition.Read(Managers.GameManager.GetRelativePath(nspace), "CheApe.xml"); InitializeTypeIndicies(); proj.OwnerState = this; project = proj; Managers.BlamDefinition gd = Program.GetManager(engine); (gd as Managers.IScriptingController).ScriptingCacheOpen(engine); scriptingInterface = gd[engine].GetResource(Managers.BlamDefinition.ResourceScripts); } public void Dispose() { compiler.Dispose(); if (scriptingInterface != null) { scriptingInterface = null; Managers.BlamDefinition gd = Program.GetManager(this.engine); (gd as Managers.IScriptingController).ScriptingCacheClose(this.engine); } } #region Type Indicies internal int kTypeIndexPad = -1; internal int kTypeIndexSkip = -1; internal int kTypeIndexArrayStart = -1; internal int kTypeIndexArrayEnd = -1; internal int kTypeIndexTerminator = -1; protected void InitializeTypeIndicies() { kTypeIndexPad = definition.GetTypeIndex("Pad"); kTypeIndexSkip = definition.GetTypeIndex("Skip"); kTypeIndexArrayStart = definition.GetTypeIndex("ArrayStart"); kTypeIndexArrayEnd = definition.GetTypeIndex("ArrayEnd"); kTypeIndexTerminator = definition.GetTypeIndex("Terminator"); } #endregion /// /// Get the size of a single tag field based on it's enumeration index /// /// /// public int GetFieldSize(int type_index) { if (type_index == kTypeIndexArrayStart || type_index == kTypeIndexArrayEnd || type_index == kTypeIndexTerminator) return 0; else return definition.FieldTypes[type_index].SizeOf; } }; } ================================================ FILE: examples/generated/test.h ================================================ /* DO NOT EDIT THIS FILE. It has been auto-edited by fixincludes from: "/tmp/ndk-andrewhsieh/build/toolchain/prefix/sysroot/usr/include/linux/a.out.h" This had to be done to correct non-standard usages in the original, manufacturer supplied header file. */ /**************************************************************************** **************************************************************************** *** *** This header was automatically generated from a Linux kernel header *** of the same name, to make information necessary for userspace to *** call into the kernel available to libc. It contains only constants, *** structures, and macros generated from the original header, and thus, *** contains no copyrightable information. *** *** To edit the content of this header, modify the corresponding *** source file (e.g. under external/kernel-headers/original/) then *** run bionic/libc/kernel/tools/update_all.py *** *** Any manual change here will be lost the next time this script will *** be run. You've been warned! *** **************************************************************************** ****************************************************************************/ #ifndef _UAPI__A_OUT_GNU_H__ #define _UAPI__A_OUT_GNU_H__ #define __GNU_EXEC_MACROS__ #ifndef __STRUCT_EXEC_OVERRIDE__ /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #include #endif #ifndef __ASSEMBLY__ enum machine_type { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #ifdef M_OLDSUN2 M__OLDSUN2 = M_OLDSUN2, #else M_OLDSUN2 = 0, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #endif #ifdef M_68010 M__68010 = M_68010, #else /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ M_68010 = 1, #endif #ifdef M_68020 M__68020 = M_68020, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #else M_68020 = 2, #endif #ifdef M_SPARC /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ M__SPARC = M_SPARC, #else M_SPARC = 3, #endif /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ M_386 = 100, M_MIPS1 = 151, M_MIPS2 = 152 }; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #ifndef N_MAGIC #define N_MAGIC(exec) ((exec).a_info & 0xffff) #endif #define N_MACHTYPE(exec) ((enum machine_type)(((exec).a_info >> 16) & 0xff)) /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define N_FLAGS(exec) (((exec).a_info >> 24) & 0xff) #define N_SET_INFO(exec, magic, type, flags) ((exec).a_info = ((magic) & 0xffff) | (((int)(type) & 0xff) << 16) | (((flags) & 0xff) << 24)) #define N_SET_MAGIC(exec, magic) ((exec).a_info = (((exec).a_info & 0xffff0000) | ((magic) & 0xffff))) #define N_SET_MACHTYPE(exec, machtype) ((exec).a_info = ((exec).a_info&0xff00ffff) | ((((int)(machtype))&0xff) << 16)) /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define N_SET_FLAGS(exec, flags) ((exec).a_info = ((exec).a_info&0x00ffffff) | (((flags) & 0xff) << 24)) #define OMAGIC 0407 #define NMAGIC 0410 #define ZMAGIC 0413 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define QMAGIC 0314 #define CMAGIC 0421 #ifndef N_BADMAG #define N_BADMAG(x) (N_MAGIC(x) != OMAGIC && N_MAGIC(x) != NMAGIC && N_MAGIC(x) != ZMAGIC && N_MAGIC(x) != QMAGIC) /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #endif #define _N_HDROFF(x) (1024 - sizeof (struct exec)) #ifndef N_TXTOFF #define N_TXTOFF(x) (N_MAGIC(x) == ZMAGIC ? _N_HDROFF((x)) + sizeof (struct exec) : (N_MAGIC(x) == QMAGIC ? 0 : sizeof (struct exec))) /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #endif #ifndef N_DATOFF #define N_DATOFF(x) (N_TXTOFF(x) + (x).a_text) #endif /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #ifndef N_TRELOFF #define N_TRELOFF(x) (N_DATOFF(x) + (x).a_data) #endif #ifndef N_DRELOFF /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define N_DRELOFF(x) (N_TRELOFF(x) + N_TRSIZE(x)) #endif #ifndef N_SYMOFF #define N_SYMOFF(x) (N_DRELOFF(x) + N_DRSIZE(x)) /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #endif #ifndef N_STROFF #define N_STROFF(x) (N_SYMOFF(x) + N_SYMSIZE(x)) #endif /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #ifndef N_TXTADDR #define N_TXTADDR(x) (N_MAGIC(x) == QMAGIC ? PAGE_SIZE : 0) #endif #if defined(vax) || defined(hp300) || defined(pyr) /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define SEGMENT_SIZE page_size #endif #ifdef sony #define SEGMENT_SIZE 0x2000 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #endif #ifdef is68k #define SEGMENT_SIZE 0x20000 #endif /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #if defined(m68k) && defined(PORTAR) #define PAGE_SIZE 0x400 #define SEGMENT_SIZE PAGE_SIZE #endif /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #ifdef __linux__ #include #if defined(__i386__) || defined(__mc68000__) #define SEGMENT_SIZE 1024 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #else #ifndef SEGMENT_SIZE #define SEGMENT_SIZE getpagesize() #endif /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #endif #endif #define _N_SEGMENT_ROUND(x) ALIGN(x, SEGMENT_SIZE) #define _N_TXTENDADDR(x) (N_TXTADDR(x)+(x).a_text) /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #ifndef N_DATADDR #define N_DATADDR(x) (N_MAGIC(x)==OMAGIC? (_N_TXTENDADDR(x)) : (_N_SEGMENT_ROUND (_N_TXTENDADDR(x)))) #endif #ifndef N_BSSADDR /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define N_BSSADDR(x) (N_DATADDR(x) + (x).a_data) #endif #ifndef N_NLIST_DECLARED struct nlist { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ union { char *n_name; struct nlist *n_next; long n_strx; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ } n_un; unsigned char n_type; char n_other; short n_desc; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ unsigned long n_value; }; #endif #ifndef N_UNDF /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define N_UNDF 0 #endif #ifndef N_ABS #define N_ABS 2 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #endif #ifndef N_TEXT #define N_TEXT 4 #endif /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #ifndef N_DATA #define N_DATA 6 #endif #ifndef N_BSS /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define N_BSS 8 #endif #ifndef N_FN #define N_FN 15 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #endif #ifndef N_EXT #define N_EXT 1 #endif /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #ifndef N_TYPE #define N_TYPE 036 #endif #ifndef N_STAB /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define N_STAB 0340 #endif #define N_INDR 0xa #define N_SETA 0x14 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define N_SETT 0x16 #define N_SETD 0x18 #define N_SETB 0x1A #define N_SETV 0x1C /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #ifndef N_RELOCATION_INFO_DECLARED struct relocation_info { int r_address; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ unsigned int r_symbolnum:24; unsigned int r_pcrel:1; unsigned int r_length:2; unsigned int r_extern:1; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #ifdef NS32K unsigned r_bsr:1; unsigned r_disp:1; unsigned r_pad:2; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #else unsigned int r_pad:4; #endif }; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #endif #endif #endif ================================================ FILE: examples/issue114/.gitignore ================================================ this should be counted as gitignore ================================================ FILE: examples/issue114/.ignore ================================================ this should be counted as .ignore ================================================ FILE: examples/issue114/.travis.yml ================================================ this should be a yml file ================================================ FILE: examples/issue114/java ================================================ This file is not java ================================================ FILE: examples/issue114/license ================================================ this should be counted as license ================================================ FILE: examples/issue114/makefile ================================================ this should be counted as a makefile ================================================ FILE: examples/issue120/test ================================================ #!/usr/bin/env perl print "Hello, World\n"; ================================================ FILE: examples/issue120/test.java ================================================ this is a java file ================================================ FILE: examples/issue152/example.black.css ================================================ this is just to force a css match ================================================ FILE: examples/issue214/ббббббббббббббббббббббббббббббббб.md ================================================ ================================================ FILE: examples/issue214/ѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬѬ.md ================================================ ================================================ FILE: examples/issue214/中文中文中文中文中文中文中文中文中文中文中文中文中文中文中文中文.md ================================================ ================================================ FILE: examples/issue246.py ================================================ #!/usr/bin/env python3 """ Docstrings containing an apostrophe (') are handled incorrectly The line above is counted as code despite being in the middle of a docstring. The end of docstring flag seems to be changed to an apostrophe, which means the next line will not exit the docstring. """ # Code containing single quotes will exit the docstring, # but presuming the quotes are balanced the second # quote will put us in string scanning mode. if __name__ == '__main__': print('Hello, World!') # Not counted as a comment # ^ Not counted as a blank line # Break out of string scanner with unbalanced single quote: ' exit(0) ================================================ FILE: examples/issue260/test.c ================================================ ================================================ FILE: examples/issue323/a.php ================================================ = 1 fprintf('%s: resuming by loading epoch %d\n', mfilename, start) ; [net, state, stats] = loadState(modelPath(start)) ; else state = [] ; end for epoch=start+1:opts.numEpochs % Set the random seed based on the epoch and opts.randomSeed. % This is important for reproducibility, including when training % is restarted from a checkpoint. rng(epoch + opts.randomSeed) ; prepareGPUs(opts, epoch == start+1) ; % Train for one epoch. params = opts ; params.epoch = epoch ; params.learningRate = opts.learningRate(min(epoch, numel(opts.learningRate))) ; params.train = opts.train(randperm(numel(opts.train))) ; % shuffle params.val = opts.val(randperm(numel(opts.val))) ; params.imdb = imdb ; params.getBatch = getBatch ; if numel(opts.gpus) <= 1 [net, state] = processEpoch(net, state, params, 'train',opts) ; [net, state] = processEpoch(net, state, params, 'val',opts) ; if ~evaluateMode saveState(modelPath(epoch), net, state) ; end lastStats = state.stats ; else spmd [net, state] = processEpoch(net, state, params, 'train',opts) ; [net, state] = processEpoch(net, state, params, 'val',opts) ; if labindex == 1 && ~evaluateMode saveState(modelPath(epoch), net, state) ; end lastStats = state.stats ; end lastStats = accumulateStats(lastStats) ; end stats.train(epoch) = lastStats.train ; stats.val(epoch) = lastStats.val ; clear lastStats ; saveStats(modelPath(epoch), stats) ; if opts.plotStatistics switchFigure(1) ; clf ; plots = setdiff(... cat(2,... fieldnames(stats.train)', ... fieldnames(stats.val)'), {'num', 'time'}) ; for p = plots p = char(p) ; values = zeros(0, epoch) ; leg = {} ; for f = {'train', 'val'} f = char(f) ; if isfield(stats.(f), p) tmp = [stats.(f).(p)] ; values(end+1,:) = tmp(1,:)' ; leg{end+1} = f ; end end subplot(1,numel(plots),find(strcmp(p,plots))) ; plot(1:epoch, values','o-') ; xlabel('epoch') ; title(p) ; legend(leg{:}) ; grid on ; end drawnow ; print(1, modelFigPath, '-dpdf') ; end end % With multiple GPUs, return one copy if isa(net, 'Composite'), net = net{1} ; end % ------------------------------------------------------------------------- function [net, state] = processEpoch(net, state, params, mode,opts) % ------------------------------------------------------------------------- % Note that net is not strictly needed as an output argument as net % is a handle class. However, this fixes some aliasing issue in the % spmd caller. % initialize with momentum 0 if isempty(state) || isempty(state.momentum) state.r = num2cell(zeros(1, numel(net.params))) ; state.momentum = num2cell(zeros(1, numel(net.params))) ; end % move CNN to GPU as needed numGpus = numel(params.gpus) ; if numGpus >= 1 net.move('gpu') ; state.momentum = cellfun(@gpuArray, state.momentum, 'uniformoutput', false) ; %state.r = cellfun(@gpuArray, state.r, 'uniformoutput', false) ; end if numGpus > 1 parserv = ParameterServer(params.parameterServer) ; net.setParameterServer(parserv) ; else parserv = [] ; end % profile if params.profile if numGpus <= 1 profile clear ; profile on ; else mpiprofile reset ; mpiprofile on ; end end num = 0 ; epoch = params.epoch ; subset = params.(mode) ; adjustTime = 0 ; stats.num = 0 ; % return something even if subset = [] stats.time = 0 ; start = tic ; for t=1:params.batchSize:numel(subset) fprintf('%s: epoch %02d: %3d/%3d:', mode, epoch, ... fix((t-1)/params.batchSize)+1, ceil(numel(subset)/params.batchSize)) ; batchSize = min(params.batchSize, numel(subset) - t + 1) ; for s=1:params.numSubBatches % get this image batch and prefetch the next batchStart = t + (labindex-1) + (s-1) * numlabs ; batchEnd = min(t+params.batchSize-1, numel(subset)) ; batch = subset(batchStart : params.numSubBatches * numlabs : batchEnd) ; num = num + numel(batch) ; if numel(batch) == 0, continue ; end opts.epoch = params.epoch; inputs = params.getBatch(params.imdb, batch,opts) ; %------------zzd %if(opts.epoch>10) % net.params(net.getParamIndex('lof')).learningRate = 1e-4; % net.params(net.getParamIndex('lob')).learningRate = 2e-4; %end if params.prefetch if s == params.numSubBatches batchStart = t + (labindex-1) + params.batchSize ; batchEnd = min(t+2*params.batchSize-1, numel(subset)) ; else batchStart = batchStart + numlabs ; end nextBatch = subset(batchStart : params.numSubBatches * numlabs : batchEnd) ; params.getBatch(params.imdb, nextBatch,opts) ; end if strcmp(mode, 'train') net.mode = 'normal' ; net.accumulateParamDers = (s ~= 1) ; net.eval(inputs, params.derOutputs, 'holdOn', s < params.numSubBatches) ; else net.mode = 'test' ; net.eval(inputs) ; end end % Accumulate gradient. if strcmp(mode, 'train') if ~isempty(parserv), parserv.sync() ; end state = accumulateGradients(net, state, params, batchSize, parserv) ; end % Get statistics. time = toc(start) + adjustTime ; batchTime = time - stats.time ; stats.num = num ; stats.time = time ; stats = params.extractStatsFn(stats,net) ; currentSpeed = batchSize / batchTime ; averageSpeed = (t + batchSize - 1) / time ; if t == 3*params.batchSize + 1 % compensate for the first three iterations, which are outliers adjustTime = 4*batchTime - time ; stats.time = time + adjustTime ; end fprintf(' %.1f (%.1f) Hz', averageSpeed, currentSpeed) ; for f = setdiff(fieldnames(stats)', {'num', 'time'}) f = char(f) ; fprintf(' %s: %.3f', f, stats.(f)) ; end fprintf('\n') ; end % Save back to state. state.stats.(mode) = stats ; if params.profile if numGpus <= 1 state.prof.(mode) = profile('info') ; profile off ; else state.prof.(mode) = mpiprofile('info'); mpiprofile off ; end end if ~params.saveMomentum state.momentum = [] ; else state.momentum = cellfun(@gather, state.momentum, 'uniformoutput', false) ; end net.reset() ; net.move('cpu') ; % ------------------------------------------------------------------------- function state = accumulateGradients(net, state, params, batchSize, parserv) % ------------------------------------------------------------------------- numGpus = numel(params.gpus) ; otherGpus = setdiff(1:numGpus, labindex) ; for p=1:numel(net.params) if ~isempty(parserv) parDer = parserv.pullWithIndex(p) ; else parDer = net.params(p).der ; %parDer(parDer>params.constraint) = params.constraint; %parDer(parDer<-params.constraint) = -params.constraint; end switch net.params(p).trainMethod case 'average' % mainly for batch normalization thisLR = net.params(p).learningRate ; net.params(p).value = vl_taccum(... 1 - thisLR, net.params(p).value, ... (thisLR/batchSize/net.params(p).fanout), parDer) ; case 'gradient' thisDecay = params.weightDecay * net.params(p).weightDecay ; thisLR = params.learningRate * net.params(p).learningRate ; if thisLR>0 || thisDecay>0 % Normalize gradient and incorporate weight decay. parDer = vl_taccum(1/batchSize, parDer, ... thisDecay, net.params(p).value) ; % Update momentum. state.momentum{p} = vl_taccum(... params.momentum, state.momentum{p}, ... -1, parDer) ; % Nesterov update (aka one step ahead). if params.nesterovUpdate delta = vl_taccum(... params.momentum, state.momentum{p}, ... -1, parDer) ; else delta = state.momentum{p} ; end % Update parameters. net.params(p).value = vl_taccum(... 1, net.params(p).value, thisLR, delta) ; end case 'rmsprop' opts = params; thisDecay = opts.weightDecay * net.params(p).weightDecay ; thisLR = opts.learningRate * net.params(p).learningRate ; state.r{p} = (1 - opts.gamma) * (net.params(p).der).^2 + opts.gamma * state.r{p}; der_constraint = (1 / batchSize) * net.params(p).der./ (sqrt(state.r{p})+1e-8); der_constraint(der_constraint>opts.constraint) = opts.constraint; der_constraint(der_constraint<-opts.constraint) = -opts.constraint; state.momentum{p} = opts.momentum * state.momentum{p} ... - thisDecay * net.params(p).value ... - der_constraint ; net.params(p).value = net.params(p).value + thisLR * state.momentum{p} ; otherwise error('Unknown training method ''%s'' for parameter ''%s''.', ... net.params(p).trainMethod, ... net.params(p).name) ; end end % ------------------------------------------------------------------------- function stats = accumulateStats(stats_) % ------------------------------------------------------------------------- for s = {'train', 'val'} s = char(s) ; total = 0 ; % initialize stats structure with same fields and same order as % stats_{1} stats__ = stats_{1} ; names = fieldnames(stats__.(s))' ; values = zeros(1, numel(names)) ; fields = cat(1, names, num2cell(values)) ; stats.(s) = struct(fields{:}) ; for g = 1:numel(stats_) stats__ = stats_{g} ; num__ = stats__.(s).num ; total = total + num__ ; for f = setdiff(fieldnames(stats__.(s))', 'num') f = char(f) ; stats.(s).(f) = stats.(s).(f) + stats__.(s).(f) * num__ ; if g == numel(stats_) stats.(s).(f) = stats.(s).(f) / total ; end end end stats.(s).num = total ; end % ------------------------------------------------------------------------- function stats = extractStats(stats, net) % ------------------------------------------------------------------------- sel = find(cellfun(@(x) isa(x,'dagnn.Loss'), {net.layers.block})) ; for i = 1:numel(sel) stats.(net.layers(sel(i)).outputs{1}) = net.layers(sel(i)).block.average ; end % ------------------------------------------------------------------------- function saveState(fileName, net_, state) % ------------------------------------------------------------------------- net = net_.saveobj() ; state.r = []; save(fileName, 'net', 'state') ; % ------------------------------------------------------------------------- function saveStats(fileName, stats) % ------------------------------------------------------------------------- if exist(fileName) save(fileName, 'stats', '-append') ; else save(fileName, 'stats') ; end % ------------------------------------------------------------------------- function [net, state, stats] = loadState(fileName) % ------------------------------------------------------------------------- load(fileName, 'net', 'state', 'stats') ; net = dagnn.DagNN.loadobj(net) ; if isempty(whos('stats')) error('Epoch ''%s'' was only partially saved. Delete this file and try again.', ... fileName) ; end % ------------------------------------------------------------------------- function epoch = findLastCheckpoint(modelDir) % ------------------------------------------------------------------------- list = dir(fullfile(modelDir, 'net-epoch-*.mat')) ; tokens = regexp({list.name}, 'net-epoch-([\d]+).mat', 'tokens') ; epoch = cellfun(@(x) sscanf(x{1}{1}, '%d'), tokens) ; epoch = max([epoch 0]) ; % ------------------------------------------------------------------------- function switchFigure(n) % ------------------------------------------------------------------------- if get(0,'CurrentFigure') ~= n try set(0,'CurrentFigure',n) ; catch figure(n) ; end end % ------------------------------------------------------------------------- function clearMex() % ------------------------------------------------------------------------- clear vl_tmove vl_imreadjpeg ; % ------------------------------------------------------------------------- function prepareGPUs(opts, cold) % ------------------------------------------------------------------------- numGpus = numel(opts.gpus) ; if numGpus > 1 % check parallel pool integrity as it could have timed out pool = gcp('nocreate') ; if ~isempty(pool) && pool.NumWorkers ~= numGpus delete(pool) ; end pool = gcp('nocreate') ; if isempty(pool) parpool('local', numGpus) ; cold = true ; end end if numGpus >= 1 && cold fprintf('%s: resetting GPU\n', mfilename) clearMex() ; if numGpus == 1 gpuDevice(opts.gpus) else spmd clearMex() ; gpuDevice(opts.gpus(labindex)) end end end ================================================ FILE: examples/issue339/objectivec.m ================================================ // // SGRtmpSession.m // SGLivingPublisher // // Created by iossinger on 16/6/16. // Copyright © 2016年 iossinger. All rights reserved. // #import "SGRtmpSession.h" #import "SGStreamSession.h" #import "SGRtmpTypes.h" #import "NSString+URL.h" #import "NSMutableData+Buffer.h" #import "SGRtmpConfig.h" static const size_t kRTMPSignatureSize = 1536; @interface SGRtmpSession() { //两个线程,一个负责组装数据,一个负责发送数据 dispatch_queue_t _packetQueue; dispatch_queue_t _sendQueue; int _outChunkSize; int _inChunkSize; int _streamID; int _numOfInvokes; } @property (nonatomic,strong) SGStreamSession *session; @property (nonatomic, copy) NSString *url; @property (nonatomic,assign) SGRtmpSessionStatus rtmpStatus; @property (nonatomic,strong) NSMutableData *handshake; @property (nonatomic,strong) NSMutableDictionary *preChunk; @property (nonatomic,strong) NSMutableDictionary *trackedCommands; @end @implementation SGRtmpSession - (void)dealloc{ NSLog(@"%s",__func__); [self sendDeleteStream]; self.url = nil; self.delegate = nil; self.session.delegate = nil; self.session = nil; _packetQueue = nil; _sendQueue = nil; _rtmpStatus = SGRtmpSessionStatusNone; _numOfInvokes = 0; [_preChunk removeAllObjects]; [_trackedCommands removeAllObjects]; _config = nil; } - (NSMutableDictionary *)trackedCommands{ if (_trackedCommands == nil) { _trackedCommands = [NSMutableDictionary dictionary]; } return _trackedCommands; } - (NSMutableDictionary *)preChunk{ if (_preChunk == nil) { _preChunk = [NSMutableDictionary dictionary]; } return _preChunk; } - (SGStreamSession *)session{ if (_session == nil) { _session = [[SGStreamSession alloc] init]; _session.delegate = self; } return _session; } - (void)setUrl:(NSString *)url{ _url = url; NSLog(@"scheme:%@",url.scheme); NSLog(@"host:%@",url.host); NSLog(@"app:%@",url.app); NSLog(@"playPath:%@",url.playPath); NSLog(@"port:%zd",url.port); } - (void)setRtmpStatus:(SGRtmpSessionStatus)rtmpStatus{ _rtmpStatus = rtmpStatus; NSLog(@"rtmpStatus-----%zd",rtmpStatus); if ([self.delegate respondsToSelector:@selector(rtmpSession:didChangeStatus:)]) { [self.delegate rtmpSession:self didChangeStatus:_rtmpStatus]; } } - (instancetype)init{ if (self = [super init]) { _rtmpStatus = SGRtmpSessionStatusNone; _packetQueue = dispatch_queue_create("packet", 0); _sendQueue = dispatch_queue_create("send", 0); _outChunkSize = 128; _inChunkSize = 128; } return self; } - (void)setConfig:(SGRtmpConfig *)config{ _config = config; self.url = config.url; } - (void)connect{ [self.session connectToServer:self.url.host port:self.url.port]; } - (void)disConnect{ [self reset]; [self.session disConnect]; } - (void)reset{ self.handshake = nil; self.preChunk = nil; self.trackedCommands = nil; _streamID = 0; _numOfInvokes = 0; _outChunkSize = 128; _inChunkSize = 128; self.rtmpStatus = SGRtmpSessionStatusNone; } #pragma mark -------delegate--------- - (void)streamSession:(SGStreamSession *)session didChangeStatus:(SGStreamStatus)streamStatus{ if (streamStatus & NSStreamEventHasBytesAvailable) {//收到数据 [self didReceivedata]; return;//return } if (streamStatus & NSStreamEventHasSpaceAvailable){ //可以写数据 if (_rtmpStatus == SGRtmpSessionStatusConnected) { [self handshake0]; } return;//return } if ((streamStatus & NSStreamEventOpenCompleted) && _rtmpStatus < SGRtmpSessionStatusConnected) { self.rtmpStatus = SGRtmpSessionStatusConnected; } if (streamStatus & NSStreamEventErrorOccurred) { self.rtmpStatus = SGRtmpSessionStatusError; } if (streamStatus & NSStreamEventEndEncountered) { self.rtmpStatus = SGRtmpSessionStatusNotConnected; } } - (void)handshake0{ self.rtmpStatus = SGRtmpSessionStatusHandshake0; //c0 char c0Byte = 0x03; NSData *c0 = [NSData dataWithBytes:&c0Byte length:1]; [self writeData:c0]; //c1 uint8_t *c1Bytes = (uint8_t *)malloc(kRTMPSignatureSize); memset(c1Bytes, 0, 4 + 4); NSData *c1 = [NSData dataWithBytes:c1Bytes length:kRTMPSignatureSize]; free(c1Bytes); [self writeData:c1]; } - (void)handshake1{ self.rtmpStatus = SGRtmpSessionStatusHandshake2; NSData *s1 = [self.handshake subdataWithRange:NSMakeRange(0, kRTMPSignatureSize)]; //c2 uint8_t *s1Bytes = (uint8_t *)s1.bytes; memset(s1Bytes + 4, 0, 4); NSData *c2 = [NSData dataWithBytes:s1Bytes length:s1.length]; [self writeData:c2]; } //验证过 - (void)sendConnectPacket{ NSLog(@"sendConnectPacket"); // AMF格式 RTMPChunk_0 metadata = {0}; metadata.msg_stream_id = SGStreamIDInvoke; metadata.msg_type_id = SGMSGTypeID_INVOKE; NSString *url; NSMutableData *buff = [NSMutableData data]; if (_url.port > 0) { url = [NSString stringWithFormat:@"%@://%@:%zd/%@",_url.scheme,_url.host,_url.port,_url.app]; }else{ url = [NSString stringWithFormat:@"%@://%@/%@",_url.scheme,_url.host,_url.app]; } [buff appendString:@"connect"]; [buff appendDouble:++_numOfInvokes]; self.trackedCommands[@(_numOfInvokes)] = @"connect"; [buff appendByte:kAMFObject]; [buff putKey:@"app" stringValue:_url.app]; [buff putKey:@"type" stringValue:@"nonprivate"]; [buff putKey:@"tcUrl" stringValue:url]; [buff putKey:@"fpad" boolValue:NO];//是否使用代理 [buff putKey:@"capabilities" doubleValue:15.]; [buff putKey:@"audioCodecs" doubleValue:10.]; [buff putKey:@"videoCodecs" doubleValue:7.]; [buff putKey:@"videoFunction" doubleValue:1.]; [buff appendByte16:0]; [buff appendByte:kAMFObjectEnd]; metadata.msg_length.data = (int)buff.length; [self sendPacket:buff :metadata]; } - (void)sendPacket:(NSData *)data :(RTMPChunk_0)metadata{ SGFrame *frame = [[SGFrame alloc] init]; frame.data = data; frame.timestamp = metadata.timestamp.data; frame.msgLength = metadata.msg_length.data; frame.msgTypeId = metadata.msg_type_id;//消息类型 frame.msgStreamId = metadata.msg_stream_id;//消息流id [self sendBuffer:frame]; } /** * Chunk Basic Header: HeaderType+ChannelID组成 1个字节 * >HeaderType(前两bit): 00->12字节 01->8字节 * >ChannelID(后6个bit): 02->Ping和ByteRead通道 03->Invoke通道 connect() publish()和自己写的NetConnection.Call() 04->Audio和Vidio通道 * * 12字节举例 * Chunk Message Header:timestamp + message_length+message_typ + msg_stream_id * message_typ :type为1,2,3,5,6的时候是协议控制消息 * * type为4的时候表示 User Control Messages [Event_type + Event_Data] Event_type有Stream Begin,Stream End... * * type为8,音频数据 * * type为9,视频数据 * * type为18 元数据消息[AMF0] * * type为20 命令消息 Command Message(RPC Message) * 例如connect, createStream, publish, play, pause on the peer * * * */ - (void)sendBuffer:(SGFrame *)frame{ dispatch_sync(_packetQueue, ^{ uint64_t ts = frame.timestamp; int streamId = frame.msgStreamId; NSLog(@"streamId------%d",streamId); NSNumber *preTimestamp = self.preChunk[@(streamId)]; uint8_t *chunk; int offset = 0; if (preTimestamp == nil) {//第一帧,音频或者视频 chunk = malloc(12); chunk[0] = RTMP_CHUNK_TYPE_0/*0x00*/ | (streamId & 0x1F); //前两个字节 00 表示12字节 offset += 1; memcpy(chunk+offset, [NSMutableData be24:(uint32_t)ts], 3); offset += 3;//时间戳3个字节 memcpy(chunk+offset, [NSMutableData be24:frame.msgLength], 3); offset += 3;//消息长度3个字节 int msgTypeId = frame.msgTypeId;//一个字节的消息类型 memcpy(chunk+offset, &msgTypeId, 1); offset += 1; memcpy(chunk+offset, (uint8_t *)&(_streamID), sizeof(_streamID)); offset += sizeof(_streamID); }else{//不是第一帧 chunk = malloc(8); chunk[0] = RTMP_CHUNK_TYPE_1/*0x40*/ | (streamId & 0x1F);//前两个字节01表示8字节 offset += 1; char *temp = [NSMutableData be24:(uint32_t)(ts - preTimestamp.integerValue)]; memcpy(chunk+offset, temp, 3); offset += 3; memcpy(chunk+offset, [NSMutableData be24:frame.msgLength], 3); offset += 3; int msgTypeId = frame.msgTypeId; memcpy(chunk+offset, &msgTypeId, 1); offset += 1; } self.preChunk[@(streamId)] = @(ts); uint8_t *bufferData = (uint8_t *)frame.data.bytes; uint8_t *outp = (uint8_t *)malloc(frame.data.length + 64); memcpy(outp, chunk, offset); free(chunk); NSUInteger total = frame.data.length; NSInteger step = MIN(total, _outChunkSize); memcpy(outp+offset, bufferData, step); offset += step; total -= step; bufferData += step; while (total > 0) { step = MIN(total, _outChunkSize); bufferData[-1] = RTMP_CHUNK_TYPE_3/*0xC0*/ | (streamId & 0x1F);//11表示一个字节,直接跳过这个字节; memcpy(outp+offset, bufferData - 1, step + 1); offset += step + 1; total -= step; bufferData += step; } NSData *tosend = [NSData dataWithBytes:outp length:offset]; free(outp); [self writeData:tosend]; }); } //接收到数据 - (void)didReceivedata{ NSData *data = [self.session readData]; if (self.rtmpStatus >= SGRtmpSessionStatusConnected && self.rtmpStatus < SGRtmpSessionStatusHandshakeComplete) { [self.handshake appendData:data]; } NSLog(@"%zd",data.length); //handshke 可能情况: 1.按照官方文档c0,c1,c2 // 2.一起发3073个字节 // 3.先发一部分,再发一部分,每部分大小不确定,总数3073正确 switch (_rtmpStatus) { case SGRtmpSessionStatusHandshake0:{ uint8_t s0; [data getBytes:&s0 length:1]; if (s0 == 0x03) {//s0 self.rtmpStatus = SGRtmpSessionStatusHandshake1; if (data.length > 1) {//后面还有数据,但不确定长度 data = [data subdataWithRange:NSMakeRange(1, data.length -1)]; self.handshake = data.mutableCopy; }else{ break; } }else{ NSLog(@"握手失败"); break; } } case SGRtmpSessionStatusHandshake1:{ if (self.handshake.length >= kRTMPSignatureSize) {//s1 [self handshake1]; if (self.handshake.length > kRTMPSignatureSize) {//> NSData *subData = [self.handshake subdataWithRange:NSMakeRange(kRTMPSignatureSize, self.handshake.length - kRTMPSignatureSize)]; self.handshake = subData.mutableCopy; }else{// = self.handshake = [NSMutableData data]; break; } }else{// < break; } } case SGRtmpSessionStatusHandshake2:{//s2 if (data.length >= kRTMPSignatureSize) { NSLog(@"握手完成"); self.rtmpStatus = SGRtmpSessionStatusHandshakeComplete; [self sendConnectPacket]; } break; } default: [self parseData:data]; break; } } - (void)parseData:(NSData *)data{ if (data.length == 0) { return; } uint8_t *buffer = (uint8_t *)data.bytes; NSUInteger total = data.length; while (total > 0) { int headType = (buffer[0] & 0xC0) >> 6;//取出前两个字节 buffer++; total --; if (total <= 0) { break; } switch (headType) { case RTMP_HEADER_TYPE_FULL:{ RTMPChunk_0 chunk; memcpy(&chunk, buffer, sizeof(RTMPChunk_0)); chunk.msg_length.data = [NSMutableData getByte24:(uint8_t *)&chunk.msg_length]; buffer += sizeof(RTMPChunk_0); total -= sizeof(RTMPChunk_0); BOOL isSuccess = [self handleMeesage:buffer :chunk.msg_type_id]; if (!isSuccess) { total = 0;break; } buffer += chunk.msg_length.data; total -= chunk.msg_length.data; } break; case RTMP_HEADER_TYPE_NO_MSG_STREAM_ID:{ RTMPChunk_1 chunk; memcpy(&chunk, buffer, sizeof(RTMPChunk_1)); buffer += sizeof(RTMPChunk_1); total -= sizeof(RTMPChunk_1); chunk.msg_length.data = [NSMutableData getByte24:(uint8_t *)&chunk.msg_length]; BOOL isSuccess = [self handleMeesage:buffer :chunk.msg_type_id]; if (!isSuccess) { total = 0;break; } buffer += chunk.msg_length.data; total -= chunk.msg_length.data; } break; case RTMP_HEADER_TYPE_TIMESTAMP:{ RTMPChunk_2 chunk; memcpy(&chunk, buffer, sizeof(RTMPChunk_2)); buffer += sizeof(RTMPChunk_2) + MIN(total, _inChunkSize); total -= sizeof(RTMPChunk_2) + MIN(total, _inChunkSize); } break; case RTMP_HEADER_TYPE_ONLY:{ buffer += MIN(total, _inChunkSize); total -= MIN(total, _inChunkSize); } break; default: return; } } } - (BOOL)handleMeesage:(uint8_t *)p :(uint8_t)msgTypeId{ BOOL handleSuccess = YES; switch(msgTypeId) { case SGMSGTypeID_BYTES_READ: { } break; case SGMSGTypeID_CHUNK_SIZE: { unsigned long newChunkSize = [NSMutableData getByte32:p];//get_be32(p); NSLog(@"change incoming chunk size from %d to: %zu", _inChunkSize, newChunkSize); _inChunkSize = (int)newChunkSize; } break; case SGMSGTypeID_PING: { NSLog(@"received ping, sending pong."); [self sendPong]; } break; case SGMSGTypeID_SERVER_WINDOW: { NSLog(@"received server window size: %d\n", [NSMutableData getByte32:p]); } break; case SGMSGTypeID_PEER_BW: { NSLog(@"received peer bandwidth limit: %d type: %d\n", [NSMutableData getByte32:p], p[4]); } break; case SGMSGTypeID_INVOKE: { NSLog(@"Received invoke"); [self handleInvoke:p];//handleInvoke } break; case SGMSGTypeID_VIDEO: { NSLog(@"received video"); } break; case SGMSGTypeID_AUDIO: { NSLog(@"received audio"); } break; case SGMSGTypeID_METADATA: { NSLog(@"received metadata"); } break; case SGMSGTypeID_NOTIFY: { NSLog(@"received notify"); } break; default: { NSLog(@"received unknown packet type: 0x%02X", msgTypeId); handleSuccess = NO; } break; } return handleSuccess; } - (void)sendPong{ dispatch_sync(_packetQueue, ^{ int streamId = 0; NSMutableData *data = [NSMutableData data]; [data appendByte:2]; [data appendByte24:0]; [data appendByte24:6]; [data appendByte:SGMSGTypeID_PING]; [data appendBytes:(uint8_t*)&streamId length:sizeof(int32_t)]; [data appendByte16:7]; [data appendByte16:0]; [data appendByte16:0]; [self writeData:data]; }); } - (void)handleInvoke:(uint8_t *)p{ int buflen = 0; NSString *command = [NSMutableData getString:p :&buflen]; NSLog(@"received invoke %@\n", command); int pktId = (int)[NSMutableData getDouble:p + 11]; NSLog(@"pktId: %d\n", pktId); NSString *trackedCommand = self.trackedCommands[@(pktId)] ; if ([command isEqualToString:@"_result"]) { NSLog(@"tracked command: %@\n", trackedCommand); if ([trackedCommand isEqualToString:@"connect"]) { [self sendReleaseStream]; [self sendFCPublish]; [self sendCreateStream]; self.rtmpStatus = SGRtmpSessionStatusFCPublish; } else if ([trackedCommand isEqualToString:@"createStream"]) { if (p[10] || p[19] != 0x05 || p[20]) { NSLog(@"RTMP: Unexpected reply on connect()\n"); } else { _streamID = [NSMutableData getDouble:p+21]; } [self sendPublish]; self.rtmpStatus = SGRtmpSessionStatusReady; } } else if ([command isEqualToString:@"onStatus"]) {//parseStatusCode NSString *code = [self parseStatusCode:p + 3 + command.length]; NSLog(@"code : %@", code); if ([code isEqualToString:@"NetStream.Publish.Start"]) { // [self sendHeaderPacket];//貌似不发这一句,也可以 //重新设定了chunksize大小 [self sendSetChunkSize:getpagesize()];//16K //sendSetBufferTime(0);//设定时间 self.rtmpStatus = SGRtmpSessionStatusSessionStarted; } } } - (NSString *)parseStatusCode:(uint8_t *)p{ NSMutableDictionary *props = [NSMutableDictionary dictionary]; // skip over the packet id p += sizeof(double) + 1; //keep reading until we find an AMF Object bool foundObject = false; while (!foundObject) { if (p[0] == AMF_DATA_TYPE_OBJECT) { p += 1; foundObject = true; continue; } else { p += [self amfPrimitiveObjectSize:p]; } } // read the properties of the object uint16_t nameLen, valLen; char propName[128], propVal[128]; do { nameLen = [NSMutableData getByte16:p];//get_be16(p); p += sizeof(nameLen); strncpy(propName, (char*)p, nameLen); propName[nameLen] = '\0'; p += nameLen; NSString *key = [NSString stringWithUTF8String:propName]; NSLog(@"key----%@",key); if (p[0] == AMF_DATA_TYPE_STRING) { valLen = [NSMutableData getByte16:p+1];//get_be16(p+1); p += sizeof(valLen) + 1; strncpy(propVal, (char*)p, valLen); propVal[valLen] = '\0'; p += valLen; NSString *value = [NSString stringWithUTF8String:propVal]; props[key] = value; } else { // treat non-string property values as empty p += [self amfPrimitiveObjectSize:p]; props[key] = @""; } } while ([NSMutableData getByte24:p] != AMF_DATA_TYPE_OBJECT_END); //p = start; return props[@"code"] ; } - (int)amfPrimitiveObjectSize:(uint8_t *)p{//amf原始对象 switch(p[0]) { case AMF_DATA_TYPE_NUMBER: return 9; case AMF_DATA_TYPE_BOOL: return 2; case AMF_DATA_TYPE_NULL: return 1; case AMF_DATA_TYPE_STRING: return 3 + [NSMutableData getByte16:p]; case AMF_DATA_TYPE_LONG_STRING: return 5 + [NSMutableData getByte32:p]; } return -1; // not a primitive, likely an object } - (void)sendHeaderPacket{ RTMPChunk_0 metadata = {0}; NSMutableData *buffer =[NSMutableData data]; [buffer appendString:@"@setDataFrame"]; [buffer appendString:@"onMetaData"]; [buffer appendByte:kAMFObject]; [buffer putKey:@"width" doubleValue:self.config.width]; [buffer putKey:@"height" doubleValue:self.config.height]; [buffer putKey:@"displaywidth" doubleValue:self.config.width]; [buffer putKey:@"displayheight" doubleValue:self.config.height]; [buffer putKey:@"framewidth" doubleValue:self.config.width]; [buffer putKey:@"frameheight" doubleValue:self.config.height]; [buffer putKey:@"videodatarate" doubleValue:self.config.videoBitrate / 1024.]; [buffer putKey:@"videoframerate" doubleValue:1.0 / self.config.frameDuration]; [buffer putKey:@"videocodecid" stringValue:@"avc1"]; [buffer putStringValue:@"trackinfo"]; [buffer appendByte:kAMFStrictArray]; [buffer appendByte32:2]; // Audio stream metadata [buffer appendByte:kAMFObject]; [buffer putKey:@"type" stringValue:@"audio"]; NSString *desc = [NSString stringWithFormat:@"{AACFrame: codec:AAC, channels:%d, frequency:%f, samplesPerFrame:1024, objectType:LC}",self.config.stereo+1,self.config.audioSampleRate]; [buffer putKey:@"description" stringValue:desc]; [buffer putKey:@"timescale" doubleValue:1000.]; [buffer putStringValue:@"sampledescription"]; [buffer appendByte:kAMFStrictArray]; [buffer appendByte32:1]; [buffer appendByte:kAMFObject]; [buffer putKey:@"sampletype" stringValue:@"mpeg4-generic"]; [buffer appendByte:0]; [buffer appendByte:0]; [buffer appendByte:kAMFObjectEnd]; [buffer putKey:@"language" stringValue:@"eng"]; [buffer appendByte:0]; [buffer appendByte:0]; [buffer appendByte:kAMFObjectEnd]; // Video stream metadata [buffer appendByte:kAMFObject]; [buffer putKey:@"type" stringValue:@"video"]; [buffer putKey:@"timescale" doubleValue:1000.]; [buffer putKey:@"language" stringValue:@"eng"]; [buffer putStringValue:@"sampledescription"]; [buffer appendByte:kAMFStrictArray]; [buffer appendByte32:1]; [buffer appendByte:kAMFObject]; [buffer putKey:@"sampletype" stringValue:@"H264"]; [buffer appendByte:0]; [buffer appendByte:0]; [buffer appendByte:kAMFObjectEnd]; [buffer appendByte:0]; [buffer appendByte:0]; [buffer appendByte:kAMFObjectEnd]; [buffer appendByte16:0]; [buffer appendByte:kAMFObjectEnd]; [buffer putKey:@"audiodatarate" doubleValue:131152. / 1024.]; [buffer putKey:@"audiosamplerate" doubleValue:self.config.audioSampleRate]; [buffer putKey:@"audiosamplesize" doubleValue:16]; [buffer putKey:@"audiochannels" doubleValue:self.config.stereo + 1]; [buffer putKey:@"audiocodecid" stringValue:@"mp4a"]; [buffer appendByte:0]; [buffer appendByte:kAMFObjectEnd]; metadata.msg_type_id = FLV_TAG_TYPE_META; metadata.msg_stream_id = SGStreamIDAudio; metadata.msg_length.data = (int)buffer.length; metadata.timestamp.data = 0; [self sendPacket:buffer :metadata]; } //验证过 - (void)sendSetChunkSize:(int32_t)newChunkSize{ dispatch_sync(_packetQueue, ^{ int streamId = 0; NSMutableData *data = [NSMutableData data]; [data appendByte:2]; [data appendByte24:0]; [data appendByte24:4]; [data appendByte:SGMSGTypeID_CHUNK_SIZE]; [data appendBytes:(uint8_t*)&streamId length:sizeof(int32_t)]; [data appendByte32:newChunkSize]; [self writeData:data]; //这里重新赋值了 16384 _outChunkSize = newChunkSize; }); } - (void)sendSetBufferTime:(int)milliseconds{ dispatch_sync(_packetQueue, ^{ int streamId = 0; NSMutableData *data = [NSMutableData data]; [data appendByte:2]; [data appendByte24:0]; [data appendByte24:10]; [data appendByte:SGMSGTypeID_PING]; [data appendBytes:(uint8_t*)&streamId length:sizeof(int32_t)]; [data appendByte16:3]; [data appendByte32:_streamID]; [data appendByte32:milliseconds]; [self writeData:data]; }); } - (void)sendPublish{ RTMPChunk_0 metadata = {0}; metadata.msg_stream_id = SGStreamIDAudio; metadata.msg_type_id = SGMSGTypeID_INVOKE; NSMutableData *buff = [NSMutableData data]; [buff appendString:@"publish"]; [buff appendDouble:++_numOfInvokes]; self.trackedCommands[@(_numOfInvokes)] = @"publish"; [buff appendByte:kAMFNull]; [buff appendString:_url.playPath]; [buff appendString:@"live"]; metadata.msg_length.data = (int)buff.length; [self sendPacket:buff :metadata]; } - (void)sendCreateStream{ RTMPChunk_0 metadata = {0}; metadata.msg_stream_id = SGStreamIDInvoke; metadata.msg_type_id = SGMSGTypeID_INVOKE; NSMutableData *buff = [NSMutableData data]; [buff appendString:@"createStream"]; self.trackedCommands[@(++_numOfInvokes)] = @"createStream"; [buff appendDouble:_numOfInvokes]; [buff appendByte:kAMFNull]; metadata.msg_length.data = (int)buff.length; [self sendPacket:buff :metadata]; } //未调用 - (void)sendFCUnpublish{ // RTMPChunk_0 metadata = {0}; // metadata.msg_stream_id = SGStreamIDInvoke; // metadata.msg_type_id = SGMSGTypeID_INVOKE; // // NSMutableData *buff = [NSMutableData data]; // [buff appendString:@"FCUnublish"]; // [buff appendDouble:(++_numOfInvokes)]; // self.trackedCommands[@(_numOfInvokes)] = @"FCUnublish"; // [buff appendByte:kAMFNull]; // [buff appendString:_url.playPath]; // metadata.msg_length.data = (int)buff.length; // // [self sendPacket:buff :metadata]; } - (void)sendFCPublish{ RTMPChunk_0 metadata = {0}; metadata.msg_stream_id = SGStreamIDInvoke; metadata.msg_type_id = SGMSGTypeID_NOTIFY; NSMutableData *buff = [NSMutableData data]; [buff appendString:@"FCPublish"]; [buff appendDouble:(++_numOfInvokes)]; self.trackedCommands[@(_numOfInvokes)] = @"FCPublish"; [buff appendByte:kAMFNull]; [buff appendString:_url.playPath]; metadata.msg_length.data = (int)buff.length; [self sendPacket:buff :metadata]; } - (void)sendDeleteStream{ RTMPChunk_0 metadata = {0}; metadata.msg_stream_id = SGStreamIDInvoke; metadata.msg_type_id = SGMSGTypeID_INVOKE; NSMutableData *buff = [NSMutableData data]; [buff appendString:@"deleteStream"]; [buff appendDouble:++_numOfInvokes]; self.trackedCommands[@(_numOfInvokes)] = @"deleteStream"; [buff appendByte:kAMFNull]; [buff appendDouble:_streamID]; metadata.msg_length.data = (int)buff.length; [self sendPacket:buff :metadata]; } - (void)sendReleaseStream{ RTMPChunk_0 metadata = {0}; metadata.msg_stream_id = SGStreamIDInvoke; metadata.msg_type_id = SGMSGTypeID_NOTIFY; NSMutableData *buff = [NSMutableData data]; [buff appendString:@"releaseStream"]; [buff appendDouble:++_numOfInvokes]; self.trackedCommands[@(_numOfInvokes)] = @"releaseStream"; [buff appendByte:kAMFNull]; [buff appendString:_url.playPath]; metadata.msg_length.data = (int)buff.length; [self sendPacket:buff :metadata]; } - (void)writeData:(NSData *)data{ if (data.length == 0) { return; } [self.session writeData:data]; } @end ================================================ FILE: examples/issue345/filename.cc ================================================ bool MyFunction() { func("double\\escaped\\string\\"); // comment } ================================================ FILE: examples/issue379/filename.py ================================================ a = '' # equals to 'test' b = 'test''' # comment for i in range(10): print(i) ================================================ FILE: examples/issue552/test.txt ================================================ - line 1 - line 2 ================================================ FILE: examples/issue564/a/level1/level2/test.py ================================================ print("test for issue 564") ================================================ FILE: examples/issue564/b/c/level2/test.py ================================================ print("test for issue 564") ================================================ FILE: examples/issue564/level1/level2/test.py ================================================ print("test for issue 564") ================================================ FILE: examples/issue564/level1/test.go ================================================ package main func main() {} ================================================ FILE: examples/issue564/test.go ================================================ package main func main() {} ================================================ FILE: examples/issue610/issue610.ts ================================================ const url = `/foo/bar/*`; function getUrl(path?: string): string { return path ?? url; } function getUrl2() { return url; } // test for issue 610 */ /* 11 lins, 2 comments, 2 blanks, 7 codes, 1 complexity */ ================================================ FILE: examples/language/.bash_login ================================================ .bash_login ================================================ FILE: examples/language/.cshrc ================================================ .cshrc ================================================ FILE: examples/language/.dockerignore ================================================ # ignore .git and .cache folders .git .cache ================================================ FILE: examples/language/.ignore ================================================ .ignore ================================================ FILE: examples/language/.kshrc ================================================ .kshrc ================================================ FILE: examples/language/.tcshrc ================================================ .tcshrc ================================================ FILE: examples/language/.zshrc ================================================ .zshrc ================================================ FILE: examples/language/Amber.ab ================================================ #!/usr/bin/env amber import { date_format_posix, date_now, } from "std/date" fun collatz(num: Int): [Int]? { if num <= 0 { // num must not be zero fail 1 } let res = [num] while num > 1 { if num%2 == 0 { num /= 2 res += [num] } else { num *= 3 num += 1 res += [num] } } return res } fun print_array(ref arr: [Int]): Text { let res = "[" for i, e in arr { res += e as Text if i != len(arr)-1 { res += ", " } } res += "]" return res } main { echo "start: {date_format_posix(date_now())?}\n" for i in 0..=20 { let c = collatz(i) failed(code) { echo "{i}: error {code}, collatz for {i} does not exist" continue } echo "{i}: {print_array(c)}" } echo "\nend: {date_format_posix(date_now())?}" } ================================================ FILE: examples/language/ArkTs.ets ================================================ import appRouter from '@ohos.router'; import { AppConstants } from '../common/constants/AppConstants'; import { InfoListComponent } from '../view/InfoListComponent'; /** * Main Screen component. */ @Entry @Component struct MainScreen { private pageTitleRes: Resource = $r('app.string.main_title'); // set the title aboutToAppear() { if (appRouter.getParams()) { this.pageTitleRes = appRouter.getParams()[AppConstants.KEY_MAIN_SCREEN_DATA] as Resource; } } build() { Column() { Image($r('app.media.logo')) .width('80') .height('80') .borderRadius('50') .margin({ top: 100 }) Column() { Button('Sign in') .width(300) .height(42) .borderRadius(50) .fontColor('#0078D4') .backgroundColor('#F0F0F0') Button('Try it now!') .width(300) .height(42) .borderRadius(50) .fontColor('#000000') .backgroundColor('transparent') .border({ width: 1, color: "#000000" }) .margin({ top: 20 }) .onClick(() => { appRouter.pushUrl({ url: AppConstants.HOME_PAGE }); console.log('Clicked!'); }) } .justifyContent(FlexAlign.Center) .width('100%') .position({ x: 0, y: '70%' }) } .width('100%') .height(AppConstants.MAIN_COLUMN_HEIGHT_PERCENT) .backgroundColor('#FFFFF0') } } ================================================ FILE: examples/language/Blueprint.blp ================================================ using Gtk 4.0; Gtk.Label { /* multiline-comment */ label: _("Test"); // single-line comment visible: true; // single-line comment 2 } /* multiline-commen 2 */ ================================================ FILE: examples/language/Build.csx ================================================ #load "nuget:Dotnet.Build, 0.7.1" #load "nuget:dotnet-steps, 0.0.1" #load "nuget:github-changelog, 0.1.5" #load "Choco.csx" #load "BuildContext.csx" using static ReleaseManagement; using static ChangeLog; using static FileUtils; using System.Xml.Linq; [StepDescription("Runs all tests.")] Step test = () => RunTests(); [StepDescription("Creates all NuGet packages and the release zip for GitHub releases")] Step pack = () => { CreateGitHubReleaseAsset(); CreateNuGetPackages(); CreateChocoPackage(); CreateGlobalToolPackage(); }; [DefaultStep] AsyncStep release = async () => { test(); pack(); await PublishRelease(); }; await StepRunner.Execute(Args); private void CreateGitHubReleaseAsset() { DotNet.Publish(dotnetScriptProjectFolder, publishArtifactsFolder, "netcoreapp2.1"); Zip(publishArchiveFolder, pathToGitHubReleaseAsset); } private void CreateChocoPackage() { if (BuildEnvironment.IsWindows) { Choco.Pack(dotnetScriptProjectFolder, publishArtifactsFolder, chocolateyArtifactsFolder); } else { Logger.Log("The choco package is only built on Windows"); } } private void CreateGlobalToolPackage() { using (var globalToolBuildFolder = new DisposableFolder()) { Copy(solutionFolder, globalToolBuildFolder.Path); PatchPackAsTool(globalToolBuildFolder.Path); PatchPackageId(globalToolBuildFolder.Path, GlobalToolPackageId); PatchContent(globalToolBuildFolder.Path); Command.Execute("dotnet", $"pack --configuration release --output {nuGetArtifactsFolder}", Path.Combine(globalToolBuildFolder.Path, "Dotnet.Script")); } } private void CreateNuGetPackages() { Command.Execute("dotnet", $"pack --configuration release --output {nuGetArtifactsFolder}", dotnetScriptProjectFolder); Command.Execute("dotnet", $"pack --configuration release --output {nuGetArtifactsFolder}", dotnetScriptCoreProjectFolder); Command.Execute("dotnet", $"pack --configuration release --output {nuGetArtifactsFolder}", dotnetScriptDependencyModelProjectFolder); Command.Execute("dotnet", $"pack --configuration release --output {nuGetArtifactsFolder}", dotnetScriptDependencyModelNuGetProjectFolder); } private void RunTests() { DotNet.Test(testProjectFolder); if (BuildEnvironment.IsWindows) { DotNet.Test(testDesktopProjectFolder); } } private async Task PublishRelease() { if (!BuildEnvironment.IsWindows) { Logger.Log("Pushing a release can only be done from Windows because of Chocolatey"); return; } if (!BuildEnvironment.IsSecure) { Logger.Log("Pushing a new release can only be done in a secure build environment"); return; } await CreateReleaseNotes(); if (Git.Default.IsTagCommit()) { Git.Default.RequireCleanWorkingTree(); await ReleaseManagerFor(owner, projectName, BuildEnvironment.GitHubAccessToken) .CreateRelease(Git.Default.GetLatestTag(), pathToReleaseNotes, new[] { new ZipReleaseAsset(pathToGitHubReleaseAsset) }); NuGet.TryPush(nuGetArtifactsFolder); Choco.TryPush(chocolateyArtifactsFolder, BuildEnvironment.ChocolateyApiKey); } } private async Task CreateReleaseNotes() { Logger.Log("Creating release notes"); var generator = ChangeLogFrom(owner, projectName, BuildEnvironment.GitHubAccessToken).SinceLatestTag(); if (!Git.Default.IsTagCommit()) { generator = generator.IncludeUnreleased(); } await generator.Generate(pathToReleaseNotes); } private void PatchPackAsTool(string solutionFolder) { var pathToDotnetScriptProject = Path.Combine(solutionFolder, "Dotnet.Script", "Dotnet.Script.csproj"); var projectFile = XDocument.Load(pathToDotnetScriptProject); var packAsToolElement = projectFile.Descendants("PackAsTool").Single(); packAsToolElement.Value = "true"; projectFile.Save(pathToDotnetScriptProject); } private void PatchPackageId(string solutionFolder, string packageId) { var pathToDotnetScriptProject = Path.Combine(solutionFolder, "Dotnet.Script", "Dotnet.Script.csproj"); var projectFile = XDocument.Load(pathToDotnetScriptProject); var packAsToolElement = projectFile.Descendants("PackageId").Single(); packAsToolElement.Value = packageId; projectFile.Save(pathToDotnetScriptProject); } private void PatchContent(string solutionFolder) { var pathToDotnetScriptProject = Path.Combine(solutionFolder, "Dotnet.Script", "Dotnet.Script.csproj"); var projectFile = XDocument.Load(pathToDotnetScriptProject); var contentElements = projectFile.Descendants("Content").ToArray(); foreach (var contentElement in contentElements) { contentElement.Remove(); } projectFile.Save(pathToDotnetScriptProject); } ================================================ FILE: examples/language/CMakeLists.txt ================================================ cmake_minimum_required(VERSION 3.20) project(test_project) # project name set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) if (${CMAKE_CXX_COMPILER_ID} MATCHES "Clang" OR ${CMAKE_CXX_COMPILER_ID} MATCHES "GNU" #[[GCC]]) add_compile_options(-Wall -Wextra) endif() #[[ Set special flags when we are using clang toolchain ]] if(${CMAKE_CXX_COMPILER_ID} STREQUAL Clang) if(${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER "15.0.0" ) add_compile_definitions(HAS_CLANG_SOURCE_LOCATION) endif() endif() include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include") add_executable(test_project main.cpp helper.cpp) include(CheckIPOSupported) check_ipo_supported(RESULT ipo_supported OUTPUT output) if(ipo_supported) set_property(TARGET test_project PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE) else() message(WARNING "IPO is not supported: ${output}") endif() ================================================ FILE: examples/language/Dockerfile ================================================ this is a dockerfile ================================================ FILE: examples/language/FSharp.fs ================================================ match someBool with | true -> "yah" | false -> "nope" ================================================ FILE: examples/language/GNUMakefile ================================================ gnumakefile ================================================ FILE: examples/language/Gemfile ================================================ This is a gemfile ================================================ FILE: examples/language/HassIQApp.mc ================================================ using Toybox.Application; using Toybox.Time; class HassIQApp extends Application.AppBase { var state = new HassIQState(); var view; var delegate; function initialize() { AppBase.initialize(); } function onStart(state) { onSettingsChanged(); self.state.load(getProperty("state")); self.state.setToken(getProperty("token")); self.state.setRefreshToken(getProperty("refresh_token")); var expireValue = getProperty("expire_time"); if (expireValue != null) { self.state.setExpireTime(new Time.Moment(expireValue)); } var selected = getProperty("selected"); if (selected != null) { for (var i=0; i, %arg1: memref<2xf32>) { %c2 = arith.constant 2 : index %c0 = arith.constant 0 : index %c1 = arith.constant 1 : index %cst = arith.constant 1.000000e+00 : f32 %cst_0 = arith.constant 2.000000e+00 : f32 scf.for %arg2 = %c0 to %c2 step %c1 { %0 = memref.load %arg0[%arg2] : memref<2xf32> %1 = arith.addf %0, %cst : f32 memref.store %1, %arg0[%arg2] : memref<2xf32> // CHECK: 2, 2 %2 = memref.load %arg1[%arg2] : memref<2xf32> %3 = arith.addf %1, %cst_0 : f32 memref.store %3, %arg1[%arg2] : memref<2xf32> // CHECK-NEXT: 4, 4 } return } // External declarations. func.func private @printF32(%arg0: f32) func.func private @printComma() func.func private @printNewline() func.func @main() { %c2 = arith.constant 2 : index %c0 = arith.constant 0 : index %c1 = arith.constant 1 : index %cst = arith.constant 1.000000e+00 : f32 %cst_0 = arith.constant 2.000000e+00 : f32 %a = memref.alloc() : memref<2xf32> %b = memref.alloc() : memref<2xf32> scf.for %i = %c0 to %c2 step %c1 { memref.store %cst, %a[%i] : memref<2xf32> memref.store %cst, %b[%i] : memref<2xf32> } call @simple_add1_add2_test(%a, %b) : (memref<2xf32>, memref<2xf32>) -> () %l0 = memref.load %a[%c0] : memref<2xf32> call @printF32(%l0) : (f32) -> () call @printComma() : () -> () %l1 = memref.load %a[%c1] : memref<2xf32> call @printF32(%l1) : (f32) -> () call @printNewline() : () -> () %l2 = memref.load %b[%c0] : memref<2xf32> call @printF32(%l2) : (f32) -> () call @printComma() : () -> () %l3 = memref.load %b[%c1] : memref<2xf32> call @printF32(%l3) : (f32) -> () call @printNewline() : () -> () memref.dealloc %a : memref<2xf32> memref.dealloc %b : memref<2xf32> return } ================================================ FILE: examples/language/POML.poml ================================================ You are a patient compiler engineer explaining concepts to programmers. Explain how a compiler performs automatic vectorization optimization using the provided image as a reference. Diagram of compiler automatic vectorization Keep the explanation concise and clear while ensuring accuracy, and make sure the output does not exceed 2000 words. ================================================ FILE: examples/language/PostScript.ps ================================================ %!PS % an example from https://github.com/bwipp/postscriptbarcode/blob/master/contrib/development/emit_c_style_array.ps (%stderr) (w) file /f exch def f (Version: ) writestring f version writestring f (\n) writestring f (Size: ) writestring f size 10 ( ) cvrs writestring f (\n) writestring f (ECC: ) writestring f eclevel writestring f (\n) writestring f (Mask: ) writestring f bestmaskval 2 tobin writestring f (\n) writestring 0 1 size 1 sub { /y exch def 0 1 size 1 sub { /x exch def f pixs y size mul x add get 0 eq {(0)}{(1)} ifelse writestring f (,) writestring } for f (\n) writestring } for f closefile ================================================ FILE: examples/language/Rakefile ================================================ This is a rakefile ================================================ FILE: examples/language/Sally.yarn ================================================ <> Player: Hey, Sally. #line:794945 Sally: Oh! Hi. #line:2dc39b Sally: You snuck up on me. #line:34de2f Sally: Don't do that. #line:dcc2bc <> Player: Hey. #line:a8e70c Sally: Hi. #line:305cde <> <> [[Anything exciting happen on your watch?|Sally.Watch]] #line:5d7a7c <> <> [[Sorry about the console.|Sally.Sorry]] #line:0a7e39 <> [[See you later.|Sally.Exit]] #line:0facf7 <= ($max - 2)>> I would like a horse please. <> <> <> Just a drink thanks. <> <> Drat, I can't afford anything. <> ================================================ FILE: examples/language/TOML.toml ================================================ # testing title = "TOML examples" int_value = 42 float_value = 3.1415 is_active = true created_at = 2025-12-12T00:00:00+09:00 multiline_string = """ これは 複数行の 文字列です。 """ colors = ["red", "green", "blue"] # arrays [[servers]] name = "alpha" ip = "192.168.1.1" [[servers]] name = "beta" ip = "192.168.1.2" [database] server = "127.0.1.1" ports = [ 8001, 8002, 8003 ] connection_max = 5000 enabled = true # nested [owner] name = "scc" dob = 2000-07-01T12:00:00Z [owner.contact] address = "test" phone = "+xx-xxx-xxx-xxxx" ================================================ FILE: examples/language/TOON.toon ================================================ "C++": complexitychecks[13]: "for ",for(,"if ",if(,"switch ",switch(,"while ",while(,"else ","|| ","&& ","!= ","== " extensions[11]: cc,cpp,cxx,c++,pcc,ino,ccm,cppm,cxxm,c++m,mxx line_comment[1]: // multi_line[1]: - [2]: /*,*/ quotes[1]{end,start}: "\"","\"" "C++ Header": complexitychecks[13]: "for ",for(,"if ",if(,"switch ",switch(,"while ",while(,"else ","|| ","&& ","!= ","== " extensions[6]: hh,hpp,hxx,inl,ipp,ixx line_comment[1]: // multi_line[1]: - [2]: /*,*/ quotes[1]{end,start}: "\"","\"" Go: complexitychecks[12]: "go ","for ",for(,"if ",if(,"switch ","select ","else ","|| ","&& ","!= ","== " extensions[1]: go line_comment[1]: // multi_line[1]: - [2]: /*,*/ quotes[2]: - end: "\"" start: "\"" - end: ` ignoreEscape: true start: ` Python: complexitychecks[24]: "for ",for(,"while ",while(,"if ",if(,"elif ",elif(,"else ","else:","match ",match(,"try ","try:","except ","except:","finally ","finally:","with ",with (,"and ",and(,"or ",or( extensions[3]: py,pyw,pyi line_comment[1]: # multi_line[0]: quotes[10]: - end: "\"" start: "\"" - end: ' start: ' - ignoreEscape: true end: ' start: r' - ignoreEscape: true end: "\"" start: "r\"" - docString: true end: "\"\"\"" start: "\"\"\"" - docString: true end: ''' start: ''' - docString: true ignoreEscape: true end: "\"\"\"" start: "r\"\"\"" - docString: true ignoreEscape: true end: ''' start: r''' - docString: true end: "\"\"\"" start: "f\"\"\"" - docString: true end: ''' start: f''' shebangs[3]: python,python2,python3 ================================================ FILE: examples/language/abnf.abnf ================================================ postal-address = name-part street zip-part name-part = *(personal-part SP) last-name [SP suffix] CRLF name-part =/ personal-part CRLF personal-part = first-name / (initial ".") first-name = *ALPHA initial = ALPHA last-name = *ALPHA suffix = ("Jr." / "Sr." / 1*("I" / "V" / "X")) street = [apt SP] house-num SP street-name CRLF apt = 1*4DIGIT house-num = 1*8(DIGIT / ALPHA) street-name = 1*VCHAR zip-part = town-name "," SP state 1*2SP zip-code CRLF town-name = 1*(ALPHA / SP) state = 2ALPHA zip-code = 5DIGIT ["-" 4DIGIT] ================================================ FILE: examples/language/alchemist.crn ================================================ _ -> readk + In_n readk -> init0 + In_k init0 + k -> r + t + init0 init0 + 0k -> init1 init1 + t -> k + init1 init1 + 0t + r + n -> i + loop0 loop0 + 0n -> Out_r loop0 + n -> i + loop1 loop1 + k -> r + t + loop1 loop1 + 0k -> loop2 loop2 + t -> k + loop2 loop2 + 0t -> loop3 loop3 + 0i -> loop4 loop3 + i -> loop5 loop4 + t -> i + loop4 loop4 + 0t -> loop3 loop5 + r -> t + loop3 loop5 + 0r -> loop6 loop6 + t -> i + r + loop6 loop6 + 0t -> i + loop0 ================================================ FILE: examples/language/algol68.a68 ================================================ BEGIN # Algol-68 prime number sieve, functional style # PROC error = (STRING s) VOID: (print(( newline, " error: ", s, newline)); GOTO stop); PROC one to = (INT n) LIST: (PROC f = (INT m,n) LIST: (m>n | NIL | cons(m, f(m+1,n))); f(1,n)); MODE LIST = REF NODE; MODE NODE = STRUCT (INT h, LIST t); PROC cons = (INT n, LIST l) LIST: HEAP NODE := (n,l); PROC hd = (LIST l) INT: ( l IS NIL | error("hd NIL"); SKIP | h OF l ); PROC tl = (LIST l) LIST: ( l IS NIL | error("tl NIL"); SKIP | t OF l ); PROC show = (LIST l) VOID: ( l ISNT NIL | print((" ",whole(hd(l),0))); show(tl(l))); PROC filter = (PROC (INT) BOOL p, LIST l) LIST: IF l IS NIL THEN NIL ELIF p(hd(l)) THEN cons(hd(l), filter(p,tl(l))) ELSE filter(p, tl(l)) FI; PROC sieve = (LIST l) LIST: IF l IS NIL THEN NIL ELSE PROC not multiple = (INT n) BOOL: n MOD hd(l) ~= 0; cons(hd(l), sieve( filter( not multiple, tl(l) ))) FI; PROC primes = (INT n) LIST: sieve( tl( one to(n) )); show( primes(100) ) END ================================================ FILE: examples/language/apex.apex ================================================ /** * Example Apex class demonstrating language features * for scc code counting validation */ public class AccountHandler { // Single line comment private static final String DEFAULT_STATUS = 'Active'; public static List getActiveAccounts() { List accounts = [SELECT Id, Name FROM Account WHERE Status__c = :DEFAULT_STATUS]; if (accounts.isEmpty()) { return new List(); } for (Account acc : accounts) { if (acc.Name != null && acc.Name.length() > 0) { System.debug('Processing: ' + acc.Name); } } return accounts; } public static void processAccount(Account acc) { try { update acc; } catch (DmlException e) { System.debug('Error: ' + e.getMessage()); } finally { System.debug('Processing complete'); } } /* * Multi-line comment block * demonstrating block comments */ public static Integer calculateTotal(List values) { Integer total = 0; Integer i = 0; while (i < values.size()) { total += values[i]; i++; } return total; } } ================================================ FILE: examples/language/arturo.art ================================================ ; this is a comment ; this is another comment ;--------------------------------- ; VARIABLES & VALUES ;--------------------------------- ; numbers a1: 2 a2: 3.14 a3: to :complex [1 2.0] ; 1.0+2.0i ; strings c1: "this is a string" c2: { this is a multiline string that is indentation-agnostic } c3: {: this is a verbatim multiline string which will remain exactly as the original :} ; characters ch: `c` ; blocks/arrays d: [1 2 3] ; dictionaries e: #[ name: "John" surname: "Doe" age: 34 likes: [pizza spaghetti] ] ; yes, functions are values too f: function [x][ 2 * x ] ; colors - right, you can directly define them as well! g1: #red g2: #0077BF ; dates h: now ; 2021-05-03T17:10:48+02:00 ; logical values i1: true i2: false i3: maybe ;--------------------------------- ; BASIC OPERATORS ;--------------------------------- ; simple arithmetic 1 + 1 ; => 2 8 - 1 ; => 7 4.2 - 1.1 ; => 3.1 10 * 2 ; => 20 35 / 4 ; => 8 35 // 4 ; => 8.75 2 ^ 5 ; => 32 5 % 3 ; => 2 ; bitwise operators and 3 5 ; => 1 or 3 5 ; => 7 xor 3 5 ; => 6 ; pre-defined constants pi ; => 3.141592653589793 epsilon ; => 2.718281828459045 null ; => null true ; => true false ; => false ;--------------------------------- ; COMPARISON OPERATORS ;--------------------------------- ; equality 1 = 1 ; => true 2 = 1 ; => false ; inequality 1 <> 1 ; => false 2 <> 1 ; => true ; more comparisons 1 < 10 ; => true 1 =< 10 ; => true 10 =< 10 ; => true 1 > 10 ; => false 1 >= 10 ; => false 11 >= 10 ; => true ;--------------------------------- ; CONDITIONALS ;--------------------------------- ; logical operators and? true true ; => true and? true false ; => false or? true false ; => true or? false false ; => false and? [1=2][2<3] ; => false ; (the second block will not be evaluated) ; simple if statements if 2 > 1 [ print "yes!"] ; yes! if 3 <> 2 -> print "true!" ; true! ; if/else statements ; note it's 'if?' not 'if' if? 2 > 3 -> print "2 is greater than 3" else -> print "2 is not greater than 3" ; 2 is not greater than 3 ; switch statements switch 2 > 3 -> print "2 is greater than 3" -> print "2 is not greater than 3" ; 2 is not greater than 3 a: (2 > 3)?["yes"]["no"] ; a: "no" a: (2 > 3)? -> "yes" -> "no" ; a: "no" (exactly the same as above) ; case/when statements case [1] when? [>2] -> print "1 is greater than 2. what?!" when? [<0] -> print "1 is less than 0. nope..." else -> print "here we are!" ; here we are! ;--------------------------------- ; LOOPS ;--------------------------------- ; with `loop` arr: [1 4 5 3] loop arr 'x [ print ["x =" x] ] ; x = 1 ; x = 4 ; x = 5 ; x = 3 ; with loop and custom index loop.with:'i arr 'x [ print ["item at position" i "=>" x] ] ; item at position 0 => 1 ; item at position 1 => 4 ; item at position 2 => 5 ; item at position 3 => 3 ; using ranges loop 1..3 'x -> ; since it's a single statement print x ; there's no need for [block] notation ; we can wrap it up using the `->` syntactic sugar loop `a`..`c` 'ch -> print ch ; a ; b ; c ; picking multiple items loop 1..10 [x y] -> print ["x =" x ", y =" y] ; x = 1 , y = 2 ; x = 3 , y = 4 ; x = 5 , y = 6 ; x = 7 , y = 8 ; x = 9 , y = 10 ; looping through a dictionary dict: #[name: "John", surname: "Doe", age: 34] loop dict [key value][ print [key "->" value] ] ; name -> John ; surname -> Doe ; age -> 34 ; while loops i: new 0 while [i<3][ print ["i =" i] inc 'i ] ; i = 0 ; i = 1 ; i = 2 ;--------------------------------- ; STRINGS ;--------------------------------- ; case a: "tHis Is a stRinG" print upper a ; THIS IS A STRING print lower a ; this is a string print capitalize a ; THis Is a stRinG ; concatenation a: "Hello " ++ "World!" ; a: "Hello World!" ; strings as an array split "hello" ; => [h e l l o] split.words "hello world" ; => [hello world] print first "hello" ; h print last "hello" ; o ; conversion to :string 123 ; => "123" to :integer "123" ; => 123 ; joining strings together join ["hello" "world"] ; => "helloworld" join.with:"-" ["hello" "world"] ; => "hello-world" ; string interpolation x: 2 print ~"x = |x|" ; x = 2 ; interpolation with `print` print ["x =" x] ; x = 2 ; (`print` works by calculating the given block ; and joining the different values as strings ; with a single space between them) ; templates print render.template { <||= switch x=2 [ ||> Yes, x = 2 <||][||> No, x is not 2 <||]||> } ; Yes, x = 2 ; matching prefix? "hello" "he" ; => true suffix? "hello" "he" ; => false contains? "hello" "ll" ; => true contains? "hello" "he" ; => true contains? "hello" "x" ; => false in? "ll" "hello" ; => true in? "x" "hello" ; => false ;--------------------------------- ; BLOCKS ;--------------------------------- ; calculate a block arr: [1 1+1 1+1+1] @arr ; => [1 2 3] ; execute a block sth: [print "Hello world"] ; this is perfectly valid, ; could contain *anything* ; and will not be executed... do sth ; Hello world ; (...until we tell it to) ; array indexing arr: ["zero" "one" "two" "three"] print first arr ; zero print arr\0 ; zero print last arr ; three print arr\3 ; three x: 2 print get arr x ; two print arr\[x] ; two ; setting an array element arr\0: "nada" set arr 2 "dos" print arr ; nada one dos three ; adding elements to an array arr: new [] 'arr ++ "one" 'arr ++ "two" print arr ; one two ; remove elements from an array arr: new ["one" "two" "three" "four"] 'arr -- "two" ; arr: ["one" "three" "four"] remove 'arr .index 0 ; arr: ["three" "four"] ; getting the size of an array arr: ["one" 2 "three" 4] print size arr ; 4 ; getting a slice of an array print slice ["one" "two" "three" "four"] 0 1 ; one two ; check if array contains a specific element print contains? arr "one" ; true print contains? arr "five" ; false ; sorting array arr: [1 5 3 2 4] sort arr ; => [1 2 3 4 5] sort.descending arr ; => [5 4 3 2 1] ; mapping values map 1..10 [x][2*x] ; => [2 4 6 8 10 12 14 16 18 20] map 1..10 'x -> 2*x ; same as above map 1..10 => [2*&] ; same as above map 1..10 => [2*] ; same as above ; selecting/filtering array values select 1..10 [x][odd? x] ; => [1 3 5 7 9] select 1..10 => odd? ; same as above filter 1..10 => odd? ; => [2 4 6 8 10] ; (now, we leave out all odd numbers - ; while select keeps them) ; misc operations arr: ["one" 2 "three" 4] reverse arr ; => [4 "three" 2 "one"] shuffle arr ; => [2 4 "three" "one"] unique [1 2 3 2 3 1] ; => [1 2 3] permutate [1 2 3] ; => [[1 2 3] [1 3 2] [3 1 2] [2 1 3] [2 3 1] [3 2 1]] take 1..10 3 ; => [1 2 3] repeat [1 2] 3 ; => [1 2 1 2 1 2] ;--------------------------------- ; FUNCTIONS ;--------------------------------- ; declaring a function f: function [x][ 2*x ] f: function [x]-> 2*x ; same as above f: $[x]->2*x ; same as above (only using the `$` alias ; for the `function`... function) ; calling a function f 10 ; => 20 ; returning a value g: function [x][ if x < 2 -> return 0 res: 0 loop 0..x 'z [ res: res + z ] return res ] ;--------------------------------- ; CUSTOM TYPES ;--------------------------------- ; defining a custom type define :person [ ; with custom post-construction initializer init: method [name, surname, age][ this\name: capitalize name this\surname: surname this\age: age ] ; custom print function string: method [][ render "NAME: |this\name|, SURNAME: |this\surname|, AGE: |this\age|" ] ; custom comparison operator compare: sortable 'age ; create a method for our custom type sayHello: method [][ print ["Hello" this\name] ] ] ; create new objects of our custom type a: to :person ["John" "Doe" 34]! ; let's create 2 "Person"s b: to :person ["jane" "Doe" 33]! ; and another one ; call inner method a\sayHello ; Hello John b\sayHello ; Hello Jane ; access object fields print ["The first person's name is:" a\name] ; The first person's name is: John print ["The second person's name is:" b\name] ; The second person's name is: Jane ; changing object fields a\name: "Bob" a\sayHello ; Hello Bob ; verifying object type print type a ; :person print is? :person a ; true ; printing objects print a ; NAME: John, SURNAME: Doe, AGE: 34 ; sorting user objects (using custom comparator) sort @[a b] ; Jane..., John... sort.descending @[a b] ; John..., Jane... ================================================ FILE: examples/language/astro.astro ================================================

Here are a few facts about me:

  • My name is {identity.firstName}.
  • I live in {identity.country} and I work as a {identity.occupation}.
  • {identity.hobbies.length >= 2 &&
  • Two of my hobbies are: {identity.hobbies[0]} and {identity.hobbies[1]}
  • }

My skills are:

    {skills.map((skill) =>
  • {skill}
  • )}
================================================ FILE: examples/language/barber_solutions.als ================================================ /* * Solutions to barber.als. * Uncomment them one at a time and execute the command. */ /* * (a) Use the analyzer to show that the model is indeed inconsistent, * at least for villages of small sizes. */ /* sig Man {shaves: set Man} one sig Barber extends Man {} */ /* * (b) Some feminists have noted that the paradox disappears if the existence * of women is acknowledged. Make a new version of the model that * classifies villagers into men (who need to be shaved) and women (who * don't), and show that there is now a solution. */ /* abstract sig Person {shaves: set Man} sig Man, Woman extends Person{} one sig Barber in Person {} // must be 'in' not 'extends': */ /* * (c) A more drastic solution, noted by Edsger Dijkstra, is to allow the * possibility of there being no barber. Modify the original model * accordingly, and show that there is now a solution. */ /* sig Man {shaves: set Man} lone sig Barber extends Man {} */ /* * (d) Finally, make a variant of the original model that allows for multiple * barbers. Show that there is again a solution. */ /* sig Man {shaves: set Man} some sig Barber extends Man {} */ fact { Barber.shaves = {m: Man | m not in m.shaves} } run { } ================================================ FILE: examples/language/bean.beancount ================================================ 2014-02-05 * "Moving money to Isle of Man" ^transfers-offshore-17 Assets:WellsFargo:Savings -40000.00 USD Assets:WellsFargo:Checking 40000.00 USD 2014-02-09 * "Wire to FX broker" ^transfers-offshore-17 Assets:WellsFargo:Checking -40025.00 USD Expenses:Fees:WireTransfers 25.00 USD Assets:OANDA:USDollar 40000.00 2014-03-16 * "Conversion to offshore beans" ^transfers-offshore-17 Assets:OANDA:USDollar -40000.00 USD Assets:OANDA:GBPounds 23391.81 GBP @ 1.71 USD 2014-03-16 * "God save the Queen (and taxes)" ^transfers-offshore-17 Assets:OANDA:GBPounds -23391.81 GBP Expenses:Fees:WireTransfers 15.00 GBP Assets:Brittania:PrivateBanking 23376.81 GBP ================================================ FILE: examples/language/bicep.bicep ================================================ /* this is a multi line comment */ param rgLocation string = resourceGroup().location param storageNames array = [ 'contoso' 'fabrikam' ] // this is a comment resource createStorages 'Microsoft.Storage/storageAccounts@2022-09-01' = [for name in storageNames: { name: '${name}str${uniqueString(resourceGroup().id)}' location: rgLocation sku: { name: 'Standard_LRS' } kind: '''StorageV2''' }] param storageAccountName string param location string = resourceGroup().location @allowed([ 'new' 'existing' ]) param newOrExisting string = 'new' resource saNew 'Microsoft.Storage/storageAccounts@2022-09-01' = if (newOrExisting == 'new') { name: storageAccountName location: location sku: { name: 'Standard_LRS' } kind: 'StorageV2' } resource saExisting 'Microsoft.Storage/storageAccounts@2022-09-01' existing = if (newOrExisting == 'existing') { name: storageAccountName } output storageAccountId string = ((newOrExisting == 'new') ? saNew.id : saExisting.id) param deployZone bool resource dnsZone 'Microsoft.Network/dnszones@2018-05-01' = if (deployZone) { name: 'myZone' location: 'global' } ================================================ FILE: examples/language/bitbucket-pipelines.yml ================================================ image: node:10.15.0 pipelines: default: - step: name: Build and test script: - npm install - npm test tags: # add the 'tags' section release-*: # specify the tag - step: # define the build pipeline for the tag name: Build and release script: - npm install - npm test - npm run release branches: staging: - step: name: Clone script: - echo "Clone all the things!" ================================================ FILE: examples/language/boo.boo ================================================ this should be matched as boo ================================================ FILE: examples/language/bosque.bsq ================================================ //------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //------------------------------------------------------------------------------------------------------- // //This is a bosque test/benchmark for a nbody program -- based on https://benchmarksgame-team.pages.debian.net/benchmarksgame/performance/nbody.html. //Expected output is: -0.16907302171469984 // namespace NSMain; function sigmaSum(args: List[Float]): Float # misc_sigmasum entity Body { const solar_mass: Float = Float::mult('4.0'@Float, Float::pi, Float::pi); const days_per_year: Float = '365.24'@Float; field name: String; field mass: Float; field x: Float; field y: Float; field z: Float; field vx: Float; field vy: Float; field vz: Float; const jupiter: Body = Body@{ name="jupiter", x='4.84143144246472090e+00'@Float, y='-1.16032004402742839e+00'@Float, z='-1.03622044471123109e-01'@Float, vx=Float::mult('1.66007664274403694e-03'@Float, Body::days_per_year), vy=Float::mult('7.69901118419740425e-03'@Float, Body::days_per_year), vz=Float::mult('-6.90460016972063023e-05'@Float, Body::days_per_year), mass=Float::mult('9.54791938424326609e-04'@Float, Body::solar_mass) }; const saturn: Body = Body@{ name="saturn", x='8.34336671824457987e+00'@Float, y='4.12479856412430479e+00'@Float, z='-4.03523417114321381e-01'@Float, vx=Float::mult('-2.76742510726862411e-03'@Float, Body::days_per_year), vy=Float::mult('4.99852801234917238e-03'@Float, Body::days_per_year), vz=Float::mult('2.30417297573763929e-05'@Float, Body::days_per_year), mass=Float::mult('2.85885980666130812e-04'@Float, Body::solar_mass) }; const uranus: Body = Body@{ name="uranus", x='1.28943695621391310e+01'@Float, y='-1.51111514016986312e+01'@Float, z='-2.23307578892655734e-01'@Float, vx=Float::mult('2.96460137564761618e-03'@Float, Body::days_per_year), vy=Float::mult('2.37847173959480950e-03'@Float, Body::days_per_year), vz=Float::mult('-2.96589568540237556e-05'@Float, Body::days_per_year), mass=Float::mult('4.36624404335156298e-05'@Float, Body::solar_mass) }; const neptune: Body = Body@{ name="neptune", x='1.53796971148509165e+01'@Float, y='-2.59193146099879641e+01'@Float, z='1.79258772950371181e-01'@Float, vx=Float::mult('2.68067772490389322e-03'@Float, Body::days_per_year), vy=Float::mult('1.62824170038242295e-03'@Float, Body::days_per_year), vz=Float::mult('-9.51592254519715870e-05'@Float, Body::days_per_year), mass=Float::mult('5.15138902046611451e-05'@Float, Body::solar_mass) }; const sun: Body = Body@{ name="sun", x='0.0'@Float, y='0.0'@Float, z='0.0'@Float, vx='0.0'@Float, vy='0.0'@Float, vz='0.0'@Float, mass=Body::solar_mass }; method offsetMomentum(px: Float, py: Float, pz: Float): Body { return this<~(vx=Float::div(px->negate(), Body::solar_mass), vy=Float::div(py->negate(), Body::solar_mass), vz=Float::div(pz->negate(), Body::solar_mass)); } } entity NBodySystem { field bodies: List[Body]; factory static create(): { bodies: List[Body] } { var planets = List[Body]@{ Body::jupiter, Body::saturn, Body::uranus, Body::neptune }; var px = sigmaSum(planets->map[Float](fn(p: Body): Float => Float::mult(p.vx, p.mass))); var py = sigmaSum(planets->map[Float](fn(p: Body): Float => Float::mult(p.vy, p.mass))); var pz = sigmaSum(planets->map[Float](fn(p: Body): Float => Float::mult(p.vz, p.mass))); return @{ bodies=List[Body]@{ Body::sun->offsetMomentum(px, py, pz), ...planets} }; } method energy(): Float { var keneticEnergies = this.bodies->map[Float](fn(b: Body): Float => { return Float::mult('0.5'@Float, b.mass, Float::add(b.vx->square(), b.vy->square(), b.vz->square())); }); var potentialEnergies = this.bodies->pairs(true) ->map[Float](fn(bp: [Body, Body]): Float => { var dx = Float::sub(bp[0].x, bp[1].x); var dy = Float::sub(bp[0].y, bp[1].y); var dz = Float::sub(bp[0].z, bp[1].z); var distance = Float::add(dx->square(), dy->square(), dz->square())->sqrt(); return Float::div(Float::mult(bp[0].mass, bp[1].mass), distance); }); return Float::sub(sigmaSum(keneticEnergies), sigmaSum(potentialEnergies)); } method advance(dt: Float): NBodySystem { var deltav = this.bodies->map[[Body, Float, Float, Float]](fn(b: Body): [Body, Float, Float, Float] => { var obodies = this.bodies->filter(fn(ob: Body): Bool => b.name != ob.name); var forces = obodies->map[[Float, Float, Float]](fn(ob: Body): [Float, Float, Float] => { var dx = Float::sub(ob.x, b.x); var dy = Float::sub(ob.y, b.y); var dz = Float::sub(ob.z, b.z); var distance = Float::add(dx->square(), dy->square(), dz->square())->sqrt(); var mag = Float::div(dt, Float::mult(distance, distance, distance)); return @[ Float::mult(dx, ob.mass, mag), Float::mult(dy, ob.mass, mag), Float::mult(dz, ob.mass, mag) ]; }); var fx = sigmaSum(List[Float]@{ b.vx, ...forces->map[Float](fn(fv: [Float, Float, Float]): Float => fv[0]) }); var fy = sigmaSum(List[Float]@{ b.vy, ...forces->map[Float](fn(fv: [Float, Float, Float]): Float => fv[1]) }); var fz = sigmaSum(List[Float]@{ b.vz, ...forces->map[Float](fn(fv: [Float, Float, Float]): Float => fv[2]) }); return @[ b, fx, fy, fz ]; }); var bodies = deltav->map[Body](fn(utuple: [Body, Float, Float, Float]): Body => { var b = utuple[0]; var nvx = utuple[1]; var nvy = utuple[2]; var nvz = utuple[3]; var nx = Float::add(b.x, Float::mult(nvx, dt)); var ny = Float::add(b.y, Float::mult(nvy, dt)); var nz = Float::add(b.z, Float::mult(nvz, dt)); return b<~(x=nx, y=ny, z=nz, vx=nvx, vy=nvy, vz=nvz); }); return NBodySystem@{ bodies=bodies }; } } entrypoint function main(): Float { var! system = NBodySystem@create(); var step = '0.01'@Float; system = system->advance(step); system = system->advance(step); system = system->advance(step); system = system->advance(step); system = system->advance(step); system = system->advance(step); system = system->advance(step); system = system->advance(step); system = system->advance(step); system = system->advance(step); return system->energy(); } ================================================ FILE: examples/language/bru.bru ================================================ post { url: https://api.textlocal.in/login } body { { "username": "johnnash", "password": "governingdynamics" } } tests { test("should be able to login", function() { expect(res.status).to.equal(201); }); test("should receive the token", function() { expect(res.body.token).to.be.a('string'); }); } ================================================ FILE: examples/language/c3.c3 ================================================ // This is a comment import std::io; <* Doc contracts *> fn void main() { io::printn("Hello, World!"); } ================================================ FILE: examples/language/cairo.cairo ================================================ fn main() -> felt252 { fib(16) } fn fib(mut n: felt252) -> felt252 { let mut a: felt252 = 0; let mut b: felt252 = 1; loop { if n == 0 { break a; } n = n - 1; let temp = b; b = a + b; a = temp; } } #[cfg(test)] mod tests { use super::fib; #[test] #[available_gas(100000)] fn it_works() { assert(fib(16) == 987, 'it works!'); } } ================================================ FILE: examples/language/capnproto.capnp ================================================ @0xdbb9ad1f14bf0b36; # unique file ID, generated by `capnp id` # Add a comment struct Person { name @0 :Text; birthdate @3 :Date; email @1 :Text; phones @2 :List(PhoneNumber); struct PhoneNumber { number @0 :Text; type @1 :Type; enum Type { mobile @0; home @1; work @2; } } } struct Date { year @0 :Int16; month @1 :UInt8; day @2 :UInt8; } ================================================ FILE: examples/language/chapel.chpl ================================================ class Integer { var x:int; } proc deferInFunction() { var c = new unmanaged Integer(1); writeln("created ", c); defer { writeln("defer action: deleting ", c); delete c; } // ... (function body, possibly including return statements) // The defer action is executed no matter how this function returns. } deferInFunction(); ================================================ FILE: examples/language/circom.circom ================================================ // 34 lines 23 code 7 comments 4 blanks pragma circom 2.0.8; /* * Sum an array of non-zero values. */ function sum(values, size) { var sum = 0; for (var i = 0; i < size; i++) { assert(values[i] != 0); sum += values[i]; } log("sum = ", sum); return sum; } /* * Ensure x is a solution to x^5 - 2x^4 + 5x - 4 = 0. */ template Polynomial() { signal input x; signal x2; signal x4; signal x5; signal output y; x2 <== x * x; x4 <== x2 * x2; x5 <== x4 * x; y <== x5 - 2 * x4 + 5 * x - 4; // y = x^5 - 2 * x^4 + 5x - 4. y === 0; // Ensure that y = 0. } component main = Polynomial(); ================================================ FILE: examples/language/clojure.cljc ================================================ some code ================================================ FILE: examples/language/cloudformation.json ================================================ { "AWSTemplateFormatVersion":"2010-09-09", "Description":"AWS CloudFormation Sample Template EC2InstanceWithSecurityGroupSample: Create an Amazon EC2 instance running the Amazon Linux AMI. The AMI is chosen based on the region in which the stack is run. This example creates an EC2 security group for the instance to give you SSH access. **WARNING** This template creates an Amazon EC2 instance. You will be billed for the AWS resources used if you create a stack from this template.", "Parameters":{ "KeyName":{ "Description":"Name of an existing EC2 KeyPair to enable SSH access to the instance", "Type":"AWS::EC2::KeyPair::KeyName", "Default":"admin-Default", "ConstraintDescription":"must be the name of an existing EC2 KeyPair." }, "InstanceType":{ "Description":"WebServer EC2 instance type", "Type":"String", "Default":"t2.micro", "AllowedValues":[ "t1.micro", "t2.nano", "t2.micro", "t2.small", "t2.medium", "t2.large", "m1.small", "m1.medium", "m1.large", "m1.xlarge", "m2.xlarge", "m2.2xlarge", "m2.4xlarge", "m3.medium", "m3.large", "m3.xlarge", "m3.2xlarge", "m4.large", "m4.xlarge", "m4.2xlarge", "m4.4xlarge", "m4.10xlarge", "c1.medium", "c1.xlarge", "c3.large", "c3.xlarge", "c3.2xlarge", "c3.4xlarge", "c3.8xlarge", "c4.large", "c4.xlarge", "c4.2xlarge", "c4.4xlarge", "c4.8xlarge", "g2.2xlarge", "g2.8xlarge", "r3.large", "r3.xlarge", "r3.2xlarge", "r3.4xlarge", "r3.8xlarge", "i2.xlarge", "i2.2xlarge", "i2.4xlarge", "i2.8xlarge", "d2.xlarge", "d2.2xlarge", "d2.4xlarge", "d2.8xlarge", "hi1.4xlarge", "hs1.8xlarge", "cr1.8xlarge", "cc2.8xlarge", "cg1.4xlarge" ], "ConstraintDescription":"must be a valid EC2 instance type." }, "SSHLocation":{ "Description":"The IP address range that can be used to SSH to the EC2 instances", "Type":"String", "MinLength":"9", "MaxLength":"18", "Default":"0.0.0.0/0", "AllowedPattern":"(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})/(\\d{1,2})", "ConstraintDescription":"must be a valid IP CIDR range of the form x.x.x.x/x." }, "Network":{ "Description":"The Network to the EC2 instances", "Type":"String" }, "AvailabilityZone":{ "Description":"The AZ of the EC2 instance", "Type":"String" }, "SubnetPool":{ "Description":"The IP address range that can be used to SSH to the EC2 instances", "Type":"String" } }, "Metadata":{ "SNC::Parameter::Metadata":{ "SubnetPool":{ "datasource":"ServiceNow::Pools::SubnetPool.getObjectsByNetwork", "datasourceFilter":{ "Network":"Network" } }, "Network":{ "datasource":"ServiceNow::Pools::NetworkPool.getObjectsByLDC" }, "KeyName":{ "datasource":"ServiceNow::Pools::CloudKeyPairPool.getObjectsByLDC" } } }, "Mappings":{ "AWSInstanceType2Arch":{ "t1.micro":{ "Arch":"PV64" }, "t2.nano":{ "Arch":"HVM64" }, "t2.micro":{ "Arch":"HVM64" }, "t2.small":{ "Arch":"HVM64" }, "t2.medium":{ "Arch":"HVM64" }, "t2.large":{ "Arch":"HVM64" }, "m1.small":{ "Arch":"PV64" }, "m1.medium":{ "Arch":"PV64" }, "m1.large":{ "Arch":"PV64" }, "m1.xlarge":{ "Arch":"PV64" }, "m2.xlarge":{ "Arch":"PV64" }, "m2.2xlarge":{ "Arch":"PV64" }, "m2.4xlarge":{ "Arch":"PV64" }, "m3.medium":{ "Arch":"HVM64" }, "m3.large":{ "Arch":"HVM64" }, "m3.xlarge":{ "Arch":"HVM64" }, "m3.2xlarge":{ "Arch":"HVM64" }, "m4.large":{ "Arch":"HVM64" }, "m4.xlarge":{ "Arch":"HVM64" }, "m4.2xlarge":{ "Arch":"HVM64" }, "m4.4xlarge":{ "Arch":"HVM64" }, "m4.10xlarge":{ "Arch":"HVM64" }, "c1.medium":{ "Arch":"PV64" }, "c1.xlarge":{ "Arch":"PV64" }, "c3.large":{ "Arch":"HVM64" }, "c3.xlarge":{ "Arch":"HVM64" }, "c3.2xlarge":{ "Arch":"HVM64" }, "c3.4xlarge":{ "Arch":"HVM64" }, "c3.8xlarge":{ "Arch":"HVM64" }, "c4.large":{ "Arch":"HVM64" }, "c4.xlarge":{ "Arch":"HVM64" }, "c4.2xlarge":{ "Arch":"HVM64" }, "c4.4xlarge":{ "Arch":"HVM64" }, "c4.8xlarge":{ "Arch":"HVM64" }, "g2.2xlarge":{ "Arch":"HVMG2" }, "g2.8xlarge":{ "Arch":"HVMG2" }, "r3.large":{ "Arch":"HVM64" }, "r3.xlarge":{ "Arch":"HVM64" }, "r3.2xlarge":{ "Arch":"HVM64" }, "r3.4xlarge":{ "Arch":"HVM64" }, "r3.8xlarge":{ "Arch":"HVM64" }, "i2.xlarge":{ "Arch":"HVM64" }, "i2.2xlarge":{ "Arch":"HVM64" }, "i2.4xlarge":{ "Arch":"HVM64" }, "i2.8xlarge":{ "Arch":"HVM64" }, "d2.xlarge":{ "Arch":"HVM64" }, "d2.2xlarge":{ "Arch":"HVM64" }, "d2.4xlarge":{ "Arch":"HVM64" }, "d2.8xlarge":{ "Arch":"HVM64" }, "hi1.4xlarge":{ "Arch":"HVM64" }, "hs1.8xlarge":{ "Arch":"HVM64" }, "cr1.8xlarge":{ "Arch":"HVM64" }, "cc2.8xlarge":{ "Arch":"HVM64" } }, "AWSRegionArch2AMI":{ "us-east-1":{ "PV64":"ami-2a69aa47", "HVM64":"ami-6869aa05", "HVMG2":"ami-a41a3fb3" }, "us-west-2":{ "PV64":"ami-7f77b31f", "HVM64":"ami-7172b611", "HVMG2":"ami-caf253aa" }, "us-west-1":{ "PV64":"ami-a2490dc2", "HVM64":"ami-31490d51", "HVMG2":"ami-00347e60" }, "eu-west-1":{ "PV64":"ami-4cdd453f", "HVM64":"ami-f9dd458a", "HVMG2":"ami-e2f7bd91" }, "eu-central-1":{ "PV64":"ami-6527cf0a", "HVM64":"ami-ea26ce85", "HVMG2":"ami-d2ff04bd" }, "ap-northeast-1":{ "PV64":"ami-3e42b65f", "HVM64":"ami-374db956", "HVMG2":"ami-4c78d52d" }, "ap-northeast-2":{ "PV64":"NOT_SUPPORTED", "HVM64":"ami-2b408b45", "HVMG2":"NOT_SUPPORTED" }, "ap-southeast-1":{ "PV64":"ami-df9e4cbc", "HVM64":"ami-a59b49c6", "HVMG2":"ami-f3f95990" }, "ap-southeast-2":{ "PV64":"ami-63351d00", "HVM64":"ami-dc361ebf", "HVMG2":"ami-3a122e59" }, "ap-south-1":{ "PV64":"NOT_SUPPORTED", "HVM64":"ami-ffbdd790", "HVMG2":"ami-21a7d34e" }, "us-east-2":{ "PV64":"NOT_SUPPORTED", "HVM64":"ami-f6035893", "HVMG2":"NOT_SUPPORTED" }, "sa-east-1":{ "PV64":"ami-1ad34676", "HVM64":"ami-6dd04501", "HVMG2":"NOT_SUPPORTED" }, "cn-north-1":{ "PV64":"ami-77559f1a", "HVM64":"ami-8e6aa0e3", "HVMG2":"NOT_SUPPORTED" } } }, "Resources":{ "EC2Instance":{ "Type":"AWS::EC2::Instance", "Properties":{ "InstanceType":{ "Ref":"InstanceType" }, "KeyName":{ "Ref":"KeyName" }, "SubnetId":{ "Ref":"SubnetPool" }, "ImageId":{ "Fn::FindInMap":[ "AWSRegionArch2AMI", { "Ref":"AWS::Region" }, { "Fn::FindInMap":[ "AWSInstanceType2Arch", { "Ref":"InstanceType" }, "Arch" ] } ] } } }, "InstanceSecurityGroup":{ "Type":"AWS::EC2::SecurityGroup", "Properties":{ "GroupDescription":"Enable SSH access via port 22", "SecurityGroupIngress":[ { "IpProtocol":"tcp", "FromPort":"22", "ToPort":"22", "CidrIp":{ "Ref":"SSHLocation" } } ] } } }, "Outputs":{ "InstanceId":{ "Description":"InstanceId of the newly created EC2 instance", "Value":{ "Ref":"EC2Instance" } }, "AZ":{ "Description":"Availability Zone of the newly created EC2 instance", "Value":{ "Fn::GetAtt":[ "EC2Instance", "AvailabilityZone" ] } } } } ================================================ FILE: examples/language/cloudformation.yml ================================================ AWSTemplateFormatVersion: '2010-09-09' Description: AWS lambda search - implementation Resources: # https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html LambdaFunctionController: Type: AWS::Lambda::Function Properties: FunctionName: aws-lambda-search-controller Handler: main Role: !GetAtt LambdaServiceRole.Arn MemorySize: 3538 Code: S3Bucket: !Sub "aws-lambda-search-lambda-${AWS::AccountId}" S3Key: controller.zip Runtime: go1.x Timeout: 10 # needs to be high to account for the cold start time otherwise it never runs LambdaFunctionController2: Type: AWS::Lambda::Function Properties: FunctionName: aws-lambda-search-controller-2 Handler: main Role: !GetAtt LambdaServiceRole.Arn MemorySize: 3538 Code: S3Bucket: !Sub "aws-lambda-search-lambda-${AWS::AccountId}" S3Key: controller.zip Runtime: go1.x Timeout: 10 # needs to be high to account for the cold start time otherwise it never runs LambdaFunctionNewsFetcher: Type: AWS::Lambda::Function Properties: FunctionName: newsfetcher Handler: main Role: !GetAtt LambdaServiceRole.Arn MemorySize: 1024 Code: S3Bucket: !Sub "aws-lambda-search-lambda-${AWS::AccountId}" S3Key: newsfetcher.zip Runtime: go1.x Timeout: 10 # needs to be high to account for the cold start time otherwise it never runs CronEvent: #logical name of the resource Type: AWS::Events::Rule Properties: ScheduleExpression: rate(15 minutes) Targets: - Arn: Fn::GetAtt: [ LambdaFunctionNewsFetcher , "Arn" ] #reference the lambda function by its arn Id: Ref: LambdaFunctionNewsFetcher HttpApi: Type: AWS::ApiGatewayV2::Api Properties: Name: aws-lambda-api-search Description: "aws lambda search API" ProtocolType: HTTP RouteSelectionExpression: "$request.method $request.path" Version: "1.0" DisableExecuteApiEndpoint: false CorsConfiguration: AllowMethods: - GET - POST - PUT - DELETE AllowOrigins: - "*" AllowHeaders: - "*" HttpApiLogGroup: Type: AWS::Logs::LogGroup Properties: LogGroupName: !Sub "aws-lambda-search-api-gateway-logs" RetentionInDays: 1 HttpApiStage: Type: AWS::ApiGatewayV2::Stage Properties: ApiId: !Ref HttpApi AutoDeploy: true StageName: "$default" AccessLogSettings: DestinationArn: !GetAtt HttpApiLogGroup.Arn Format: '{"requestId":"$context.requestId","ip": "$context.identity.sourceIp","requestTime":"$context.requestTime","httpMethod":"$context.httpMethod","routeKey":"$context.routeKey","status":"$context.status","protocol":"$context.protocol","responseLength":"$context.responseLength","userId":"$context.authorizer.userId","userRole":"$context.authorizer.userRole","sessionId":"$context.authorizer.sessionId"}' HttpSearchRoute: Type: AWS::ApiGatewayV2::Route Properties: ApiId: !Ref HttpApi AuthorizationType: NONE RouteKey: "GET /search" Target: !Sub "integrations/${HttpApiIntegration}" HttpApiIntegration: DependsOn: - LambdaFunctionController Type: AWS::ApiGatewayV2::Integration Properties: ApiId: !Ref HttpApi ConnectionType: INTERNET IntegrationMethod: POST IntegrationType: AWS_PROXY IntegrationUri: !GetAtt LambdaFunctionController.Arn PayloadFormatVersion: "2.0" HttpSearchRoute2: Type: AWS::ApiGatewayV2::Route Properties: ApiId: !Ref HttpApi AuthorizationType: NONE RouteKey: "GET /search2" Target: !Sub "integrations/${HttpApiIntegration2}" HttpApiIntegration2: DependsOn: - LambdaFunctionController2 Type: AWS::ApiGatewayV2::Integration Properties: ApiId: !Ref HttpApi ConnectionType: INTERNET IntegrationMethod: POST IntegrationType: AWS_PROXY IntegrationUri: !GetAtt LambdaFunctionController2.Arn PayloadFormatVersion: "2.0" LambdaAPIGatewayPermission: DependsOn: - HttpApi Type: AWS::Lambda::Permission Properties: Action: lambda:InvokeFunction FunctionName: !GetAtt LambdaFunctionController.Arn Principal: apigateway.amazonaws.com LambdaAPIGatewayPermission2: DependsOn: - HttpApi Type: AWS::Lambda::Permission Properties: Action: lambda:InvokeFunction FunctionName: !GetAtt LambdaFunctionController2.Arn Principal: apigateway.amazonaws.com ================================================ FILE: examples/language/component.templ ================================================ package main templ nameList(items []Item) {
    for _, item := range items {
  • { item.Name }
  • }
} ================================================ FILE: examples/language/cuda.cu ================================================ #include #include // Kernel function to add the elements of two arrays __global__ void add(int n, float *x, float *y) { for (int i = 0; i < n; i++) y[i] = x[i] + y[i]; } int main(void) { int N = 1<<20; float *x, *y; // Allocate Unified Memory – accessible from CPU or GPU cudaMallocManaged(&x, N*sizeof(float)); cudaMallocManaged(&y, N*sizeof(float)); // initialize x and y arrays on the host for (int i = 0; i < N; i++) { x[i] = 1.0f; y[i] = 2.0f; } // Run kernel on 1M elements on the GPU add<<<1, 1>>>(N, x, y); // Wait for GPU to finish before accessing on host cudaDeviceSynchronize(); // Check for errors (all values should be 3.0f) float maxError = 0.0f; for (int i = 0; i < N; i++) maxError = fmax(maxError, fabs(y[i]-3.0f)); std::cout << "Max error: " << maxError << std::endl; // Free memory cudaFree(x); cudaFree(y); return 0; } ================================================ FILE: examples/language/cypher.cypher ================================================ // movies.cypher // Example query to test scc complexity definitions for Cypher. /* This multi-line block explains the query's purpose. It finds actors who co-starred with "Tom Hanks" and then looks for paths of up to 5 steps to "Kevin Bacon". */ // Find Tom Hanks' co-actors MATCH (tom:Actor {name: 'Tom Hanks'})-[:ACTED_IN]->(m:Movie)<-[:ACTED_IN]-(coActor:Actor) WHERE coActor.name <> "Tom Hanks" // Now, check for a connection to Kevin Bacon WITH coActor MATCH (bacon:Actor {name: "Kevin Bacon"}) // This is a variable-length path, indicating higher complexity MATCH p = shortestPath((coActor)-[*..5]-(bacon)) // UNION is another complexity check UNION // An optional match for actors born after 1960 MATCH (youngActor:Actor) WHERE youngActor.born > 1960 OPTIONAL MATCH (youngActor)-[:DIRECTED]->(anyMovie:Movie) RETURN youngActor.name, anyMovie.title; ================================================ FILE: examples/language/d2.d2 ================================================ # An example copy from https://d2lang.com/tour/intro/ vars: { d2-config: { layout-engine: elk # Terminal theme code theme-id: 300 } } network: { cell tower: { satellites: { shape: stored_data style.multiple: true } transmitter satellites -> transmitter: send satellites -> transmitter: send satellites -> transmitter: send } online portal: { ui: {shape: hexagon} } data processor: { storage: { shape: cylinder style.multiple: true } } cell tower.transmitter -> data processor.storage: phone logs } user: { shape: person width: 130 } user -> network.cell tower: make call user -> network.online portal.ui: access { style.stroke-dash: 3 } api server -> network.online portal.ui: display api server -> logs: persist logs: {shape: page; style.multiple: true} network.data processor -> api server ================================================ FILE: examples/language/daml.daml ================================================ applyFilter (filter : Int -> Int -> Bool) (x : Int) (y : Int) = filter x y compute = script do applyFilter (<) 3 2 === False applyFilter (/=) 3 2 === True round (2.5 : Decimal) === 3 round (3.5 : Decimal) === 4 explode "me" === ["m", "e"] applyFilter (\a b -> a /= b) 3 2 === True ================================================ FILE: examples/language/docker.nu ================================================ # docker wrapper that returns a nushell table def docker [ ...args:string # command to be passed to the real docker command ] { let data = (^docker $args --format={{json .}}|lines|each {$it|from json}) if Labels in ($data|get) { $data|docker labels } { $data } } # subcommand used to reformat docker labels into their own table def 'docker labels' [] { update Labels { get Labels| split row ','| where ($it|str starts-with ' ') == $false| split column '=' name value } } ================================================ FILE: examples/language/dot.gv ================================================ graph graphname { // This attribute applies to the graph itself size="1,1"; // The label attribute can be used to change the label of a node a [label="Foo"]; // Here, the node shape is changed. b [shape=box]; // These edges both have different line properties a -- b -- c [color=blue]; b -- d [style=dotted]; // [style=invis] hides a node. } ================================================ FILE: examples/language/elixirtemplate.eex ================================================ Hi, <%= name %> defmodule Example do require EEx EEx.function_from_file(:def, :greeting, "greeting.eex", [:name]) end ================================================ FILE: examples/language/elm.elm ================================================ case someBool of True -> "yah" False -> "nope" ================================================ FILE: examples/language/emit.emit ================================================ // emit program create x = 10; x = x - 3; create y; time strike; y kills x; create traveler; print(x); //timeline 1 - nothing since x is dead. timeline 2 - prints 7 since traveler stopped x from being killed. if(x is dead){ traveler warps strike{ traveler kills y; traveler kills traveler; //kill self, preventing paradoxes by interfering with itself }; }; ================================================ FILE: examples/language/factor.factor ================================================ ! Written for SCC by CapitalEx USING: combinators io kernel math.order math.parser random ranges ; IN: simple-guessing-game : pick-number ( -- n ) 100 [1..b] random ; : read-number ( -- n ) "Enter a guess: " write readln dec> ; : guessing-game ( n -- ) dup read-number <=> dup { { +lt+ [ "Too high!" print t ] } { +gt+ [ "Too low!" print t ] } [ drop "You won!" print f ] } case [ guessing-game ] [ drop ] if ; MAIN: [ "I'm thinking of a number between 1 and 100" print pick-number guessing-game ] ================================================ FILE: examples/language/flow9.flow ================================================ import runtime; /* If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below 1000. */ euler1(limit : int) -> int { foldRange(1, limit - 1, 0, \acc, i -> { if (i % 3 == 0 || i % 5 == 0) { acc + i; } else acc; }); } main() { println(euler1(1000)); // Correct: 233168 quit(0); } ================================================ FILE: examples/language/fsl.fsl ================================================ machine_name : "Should you use twitter?"; machine_author : "MachinShin "; machine_license : MIT; machine_comment : "#madewithfsl"; machine_language : en; machine_version : 1.0.0; fsl_version : 1.0.0; start_states : [Start]; end_states : [ "You can keep your Twitter account" "Get off Twitter and seek help" "Sorry Twitter just isn't for you" "Get off Twitter" "Maybe you should stick to Facebook" ]; Start -> "Is your Twitter for personal or business use?"; "Is your Twitter for personal or business use?" 'Personal' -> "Do you have a habit of revealing intimate personal details?"; "Is your Twitter for personal or business use?" 'Business' -> "Are you using Twitter to communicate\n with customers and send brand updates?"; "Is your Twitter for personal or business use?" 'My business is personal' -> "Do you distinguish your business account\n from your personal account?"; "Do you have a habit of revealing intimate personal details?" 'No, I have a pretty good ability to self control' -> "Are a majority of your tweets interesting,\n funny, or thought-provoking?"; "Do you have a habit of revealing intimate personal details?" 'Only when I have had a little took much to drink' -> "Does your boss follow you?"; "Does your boss follow you?" 'Yes' -> "Get off Twitter"; "Does your boss follow you?" 'No' -> "Are you just using Twitter to stalk celebrities?" -> "Get off Twitter and seek help"; "Are a majority of your tweets interesting,\n funny, or thought-provoking?" 'No, they are mostly pics of my lunch or my cat' -> "Are you a celebrity"; "Are a majority of your tweets interesting,\n funny, or thought-provoking?" 'Yes' -> "Are you capable of keeping your insights\n to 140 characters or fewer?"; "Are you a celebrity" 'No' -> "Maybe you should stick to Facebook"; "Are you a celebrity" 'Yes' -> "You can keep your Twitter account"; "Do you distinguish your business account\n from your personal account?" 'No, of course not' -> "Get off Twitter"; "Do you distinguish your business account\n from your personal account?" 'Yes' -> "Are you using Twitter to communicate\n with customers and send brand updates?"; "Are you using Twitter to communicate\n with customers and send brand updates?" 'No, not exactly' -> "You understand what Twitter is, right?"; "Are you using Twitter to communicate\n with customers and send brand updates?" 'Yes' -> "Do a majority of your clients or customers remember the good old days of the Coolidge Administration?"; "Do a majority of your clients or customers remember the good old days of the Coolidge Administration?" 'No' -> "How often do you tweet?"; "Do a majority of your clients or customers remember the good old days of the Coolidge Administration?" 'Yes, and their first zeppelin ride' -> "Sorry Twitter just isn't for you"; "You can keep your Twitter account" <- 'Yes' "Do you like to know what is going on in the world\n 5-6 minutes before any world news outlet?"; "You can keep your Twitter account" <- 'Yes' "Are a majority of your tweets\n related to your business or industry?"; "Do you like to know what is going on in the world\n 5-6 minutes before any world news outlet?" 'No' -> "Sorry Twitter just isn't for you"; "Are a majority of your tweets related\n to your business or industry?" 'No' -> "Sorry Twitter just isn't for you"; "Do you only keep your twitter account\n for the rush you feel when your tweet is retweeted?" 'Yes' -> "Really?"; "Really?" 'Yes' -> "Get off Twitter and seek help"; "Really?" 'No' -> "Do you only keep your twitter account\n for the rush you feel when your tweet is retweeted?"; "Are you capable of keeping your insights\n to 140 characters or fewer?" -> "Do you only keep your twitter account\n for the rush you feel when your tweet is retweeted?"; "Get off Twitter" <- 'Yeah you caught me' "Wait - Are you spam or a bot?"; "Wait - Are you spam or a bot?" 'No' -> "How often do you tweet?"; "Wait - Are you spam or a bot?" <- 'Yes' "You understand what Twitter is, right?"; "How often do you tweet?" 'Hardly ever' -> "Are you just using Twitter to stalk celebrities?"; "How often do you tweet?" '15 times a month' -> "Do you only keep your twitter account\n for the rush you feel when your tweet is retweeted?"; "How often do you tweet?" 'Almost everyday' -> "Are a majority of your tweets\n related to your business or industry?"; //css for states state "Really?": { shape: octagon; background-color: black; text-color: white; }; state "Maybe you should stick to Facebook": { shape: octagon; background-color: skyblue; text-color: white; }; state "Get off Twitter": { shape: octagon; background-color: skyblue; text-color: white; }; state "Get off Twitter and seek help": { shape: octagon; background-color: skyblue; text-color: white; }; state "You can keep your Twitter account": { shape: octagon; background-color: skyblue; text-color: white; }; state "Sorry Twitter just isn't for you": { shape: octagon; background-color: skyblue; text-color: white; }; state "Does your boss follow you?" : { shape: octagon; background-color: yellow; }; state Start : { background-color : limegreen; text-color : white; shape : octagon; linestyle : dashed; }; ================================================ FILE: examples/language/fxml.fxml ================================================ ================================================ FILE: examples/language/gleam.gleam ================================================ import gleam/int import gleam/io pub fn main() { let x = int.random(2) let y = int.random(2) io.debug(x) io.debug(y) let result = case x, y { 0, 0 -> "Both are zero" 0, _ -> "First is zero" _, 0 -> "Second is zero" _, _ -> "Neither are zero" } io.debug(result) } ================================================ FILE: examples/language/go.go ================================================ package main import "fmt" // This is a comment /** another comment **/ // Msg function func Msg() { } func main() { fmt.Println("hw") } // This is a comment ================================================ FILE: examples/language/godot.tscn ================================================ [gd_scene load_steps=4 format=3 uid="uid://bam4cbdd6h24e"] [ext_resource type="Texture2D" uid="uid://dw1aad3whrra0" path="res://assets/sprites/cavesofgallet_tiles.png" id="1_27u2s"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_2rh4h"] size = Vector2(9, 1) [sub_resource type="OccluderPolygon2D" id="OccluderPolygon2D_72i7s"] polygon = PackedVector2Array(-4, 0, 4, 0, 4, -1, -4, -1) [node name="Sprite2D" type="Sprite2D"] texture = ExtResource("1_27u2s") region_enabled = true region_rect = Rect2(49, 8, 9, 1) [node name="StaticBody2D" type="StaticBody2D" parent="."] [node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"] shape = SubResource("RectangleShape2D_2rh4h") one_way_collision = true [node name="LightOccluder2D" type="LightOccluder2D" parent="."] position = Vector2(0, 1) occluder = SubResource("OccluderPolygon2D_72i7s") ================================================ FILE: examples/language/goplus.gop ================================================ #!/usr/bin/gop run // test import ( "fmt" "sync" ) func collatz(num int32) []int32 { if num <= 0 { panic("num must not be zero") /* collatz sequence needs num >= 0 */ } var res []int32 res <- num for num > 1 { if num&1 == 0 { num /= 2 res <- num } else { num *= 3 num++ res <- num } } return res } var wg sync.WaitGroup for i in [int32(i) for i in 1:11] { wg.Add(1) go func(ii int32) { defer wg.Done() println i, ":", collatz(ii) }(i) } wg.Wait() ================================================ FILE: examples/language/graphql.graphql ================================================ directive @requiredCapabilities( requiredCapabilities: [String!] ) on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION """ Marks an element of a GraphQL schema as only available via a preview header """ directive @preview( """ The identifier of the API preview that toggles this field. """ toggledBy: String! ) on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION """ Defines what type of global IDs are accepted for a mutation argument of type ID. """ directive @possibleTypes( """ Abstract type of accepted global ID """ abstractType: String """ Accepted types of global IDs. """ concreteTypes: [String!]! ) on INPUT_FIELD_DEFINITION """ Autogenerated input type of AbortQueuedMigrations """ input AbortQueuedMigrationsInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the organization that is running the migrations. """ ownerId: ID! @possibleTypes(concreteTypes: ["Organization"]) } """ Autogenerated return type of AbortQueuedMigrations """ type AbortQueuedMigrationsPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Did the operation succeed? """ success: Boolean } """ Autogenerated input type of AbortRepositoryMigration """ input AbortRepositoryMigrationInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the migration to be aborted. """ migrationId: ID! @possibleTypes(concreteTypes: ["RepositoryMigration"]) } """ Autogenerated return type of AbortRepositoryMigration """ type AbortRepositoryMigrationPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Did the operation succeed? """ success: Boolean } """ Autogenerated input type of AcceptEnterpriseAdministratorInvitation """ input AcceptEnterpriseAdministratorInvitationInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The id of the invitation being accepted """ invitationId: ID! @possibleTypes(concreteTypes: ["EnterpriseAdministratorInvitation"]) } """ Autogenerated return type of AcceptEnterpriseAdministratorInvitation """ type AcceptEnterpriseAdministratorInvitationPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The invitation that was accepted. """ invitation: EnterpriseAdministratorInvitation """ A message confirming the result of accepting an administrator invitation. """ message: String } """ Autogenerated input type of AcceptTopicSuggestion """ input AcceptTopicSuggestionInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The name of the suggested topic. """ name: String! """ The Node ID of the repository. """ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"]) } """ Autogenerated return type of AcceptTopicSuggestion """ type AcceptTopicSuggestionPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The accepted topic. """ topic: Topic } """ Represents an object which can take actions on GitHub. Typically a User or Bot. """ interface Actor { """ A URL pointing to the actor's public avatar. """ avatarUrl( """ The size of the resulting square image. """ size: Int ): URI! """ The username of the actor. """ login: String! """ The HTTP path for this actor. """ resourcePath: URI! """ The HTTP URL for this actor. """ url: URI! } """ Location information for an actor """ type ActorLocation { """ City """ city: String """ Country name """ country: String """ Country code """ countryCode: String """ Region name """ region: String """ Region or state code """ regionCode: String } """ The actor's type. """ enum ActorType { """ Indicates a team actor. """ TEAM """ Indicates a user actor. """ USER } """ Autogenerated input type of AddAssigneesToAssignable """ input AddAssigneesToAssignableInput { """ The id of the assignable object to add assignees to. """ assignableId: ID! @possibleTypes(concreteTypes: ["Issue", "PullRequest"], abstractType: "Assignable") """ The id of users to add as assignees. """ assigneeIds: [ID!]! @possibleTypes(concreteTypes: ["User"]) """ A unique identifier for the client performing the mutation. """ clientMutationId: String } """ Autogenerated return type of AddAssigneesToAssignable """ type AddAssigneesToAssignablePayload { """ The item that was assigned. """ assignable: Assignable """ A unique identifier for the client performing the mutation. """ clientMutationId: String } """ Autogenerated input type of AddComment """ input AddCommentInput { """ The contents of the comment. """ body: String! """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Node ID of the subject to modify. """ subjectId: ID! @possibleTypes(concreteTypes: ["Issue", "PullRequest"], abstractType: "IssueOrPullRequest") } """ Autogenerated return type of AddComment """ type AddCommentPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The edge from the subject's comment connection. """ commentEdge: IssueCommentEdge """ The subject """ subject: Node """ The edge from the subject's timeline connection. """ timelineEdge: IssueTimelineItemEdge } """ Autogenerated input type of AddDiscussionComment """ input AddDiscussionCommentInput { """ The contents of the comment. """ body: String! """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Node ID of the discussion to comment on. """ discussionId: ID! @possibleTypes(concreteTypes: ["Discussion"]) """ The Node ID of the discussion comment within this discussion to reply to. """ replyToId: ID @possibleTypes(concreteTypes: ["DiscussionComment"]) } """ Autogenerated return type of AddDiscussionComment """ type AddDiscussionCommentPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The newly created discussion comment. """ comment: DiscussionComment } """ Autogenerated input type of AddDiscussionPollVote """ input AddDiscussionPollVoteInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Node ID of the discussion poll option to vote for. """ pollOptionId: ID! @possibleTypes(concreteTypes: ["DiscussionPollOption"]) } """ Autogenerated return type of AddDiscussionPollVote """ type AddDiscussionPollVotePayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The poll option that a vote was added to. """ pollOption: DiscussionPollOption } """ Autogenerated input type of AddEnterpriseOrganizationMember """ input AddEnterpriseOrganizationMemberInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the enterprise which owns the organization. """ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) """ The ID of the organization the users will be added to. """ organizationId: ID! @possibleTypes(concreteTypes: ["Organization"]) """ The role to assign the users in the organization """ role: OrganizationMemberRole """ The IDs of the enterprise members to add. """ userIds: [ID!]! } """ Autogenerated return type of AddEnterpriseOrganizationMember """ type AddEnterpriseOrganizationMemberPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The users who were added to the organization. """ users: [User!] } """ Autogenerated input type of AddEnterpriseSupportEntitlement """ input AddEnterpriseSupportEntitlementInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the Enterprise which the admin belongs to. """ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) """ The login of a member who will receive the support entitlement. """ login: String! } """ Autogenerated return type of AddEnterpriseSupportEntitlement """ type AddEnterpriseSupportEntitlementPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ A message confirming the result of adding the support entitlement. """ message: String } """ Autogenerated input type of AddLabelsToLabelable """ input AddLabelsToLabelableInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ids of the labels to add. """ labelIds: [ID!]! @possibleTypes(concreteTypes: ["Label"]) """ The id of the labelable object to add labels to. """ labelableId: ID! @possibleTypes(concreteTypes: ["Discussion", "Issue", "PullRequest"], abstractType: "Labelable") } """ Autogenerated return type of AddLabelsToLabelable """ type AddLabelsToLabelablePayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The item that was labeled. """ labelable: Labelable } """ Autogenerated input type of AddProjectCard """ input AddProjectCardInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The content of the card. Must be a member of the ProjectCardItem union """ contentId: ID @possibleTypes(concreteTypes: ["Issue", "PullRequest"], abstractType: "ProjectCardItem") """ The note on the card. """ note: String """ The Node ID of the ProjectColumn. """ projectColumnId: ID! @possibleTypes(concreteTypes: ["ProjectColumn"]) } """ Autogenerated return type of AddProjectCard """ type AddProjectCardPayload { """ The edge from the ProjectColumn's card connection. """ cardEdge: ProjectCardEdge """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ProjectColumn """ projectColumn: ProjectColumn } """ Autogenerated input type of AddProjectColumn """ input AddProjectColumnInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The name of the column. """ name: String! """ The Node ID of the project. """ projectId: ID! @possibleTypes(concreteTypes: ["Project"]) } """ Autogenerated return type of AddProjectColumn """ type AddProjectColumnPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The edge from the project's column connection. """ columnEdge: ProjectColumnEdge """ The project """ project: Project } """ Autogenerated input type of AddProjectV2DraftIssue """ input AddProjectV2DraftIssueInput { """ The IDs of the assignees of the draft issue. """ assigneeIds: [ID!] @possibleTypes(concreteTypes: ["User"]) """ The body of the draft issue. """ body: String """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the Project to add the draft issue to. """ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"]) """ The title of the draft issue. A project item can also be created by providing the URL of an Issue or Pull Request if you have access. """ title: String! } """ Autogenerated return type of AddProjectV2DraftIssue """ type AddProjectV2DraftIssuePayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The draft issue added to the project. """ projectItem: ProjectV2Item } """ Autogenerated input type of AddProjectV2ItemById """ input AddProjectV2ItemByIdInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The id of the Issue or Pull Request to add. """ contentId: ID! @possibleTypes(concreteTypes: ["DraftIssue", "Issue", "PullRequest"], abstractType: "ProjectV2ItemContent") """ The ID of the Project to add the item to. """ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"]) } """ Autogenerated return type of AddProjectV2ItemById """ type AddProjectV2ItemByIdPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The item added to the project. """ item: ProjectV2Item } """ Autogenerated input type of AddPullRequestReviewComment """ input AddPullRequestReviewCommentInput { """ The text of the comment. This field is required **Upcoming Change on 2023-10-01 UTC** **Description:** `body` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead **Reason:** We are deprecating the addPullRequestReviewComment mutation """ body: String """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The SHA of the commit to comment on. **Upcoming Change on 2023-10-01 UTC** **Description:** `commitOID` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead **Reason:** We are deprecating the addPullRequestReviewComment mutation """ commitOID: GitObjectID """ The comment id to reply to. **Upcoming Change on 2023-10-01 UTC** **Description:** `inReplyTo` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead **Reason:** We are deprecating the addPullRequestReviewComment mutation """ inReplyTo: ID @possibleTypes(concreteTypes: ["PullRequestReviewComment"]) """ The relative path of the file to comment on. **Upcoming Change on 2023-10-01 UTC** **Description:** `path` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead **Reason:** We are deprecating the addPullRequestReviewComment mutation """ path: String """ The line index in the diff to comment on. **Upcoming Change on 2023-10-01 UTC** **Description:** `position` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead **Reason:** We are deprecating the addPullRequestReviewComment mutation """ position: Int """ The node ID of the pull request reviewing **Upcoming Change on 2023-10-01 UTC** **Description:** `pullRequestId` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead **Reason:** We are deprecating the addPullRequestReviewComment mutation """ pullRequestId: ID @possibleTypes(concreteTypes: ["PullRequest"]) """ The Node ID of the review to modify. **Upcoming Change on 2023-10-01 UTC** **Description:** `pullRequestReviewId` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead **Reason:** We are deprecating the addPullRequestReviewComment mutation """ pullRequestReviewId: ID @possibleTypes(concreteTypes: ["PullRequestReview"]) } """ Autogenerated return type of AddPullRequestReviewComment """ type AddPullRequestReviewCommentPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The newly created comment. """ comment: PullRequestReviewComment """ The edge from the review's comment connection. """ commentEdge: PullRequestReviewCommentEdge } """ Autogenerated input type of AddPullRequestReview """ input AddPullRequestReviewInput { """ The contents of the review body comment. """ body: String """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The review line comments. **Upcoming Change on 2023-10-01 UTC** **Description:** `comments` will be removed. use the `threads` argument instead **Reason:** We are deprecating comment fields that use diff-relative positioning """ comments: [DraftPullRequestReviewComment] """ The commit OID the review pertains to. """ commitOID: GitObjectID """ The event to perform on the pull request review. """ event: PullRequestReviewEvent """ The Node ID of the pull request to modify. """ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"]) """ The review line comment threads. """ threads: [DraftPullRequestReviewThread] } """ Autogenerated return type of AddPullRequestReview """ type AddPullRequestReviewPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The newly created pull request review. """ pullRequestReview: PullRequestReview """ The edge from the pull request's review connection. """ reviewEdge: PullRequestReviewEdge } """ Autogenerated input type of AddPullRequestReviewThread """ input AddPullRequestReviewThreadInput { """ Body of the thread's first comment. """ body: String! """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The line of the blob to which the thread refers, required for line-level threads. The end of the line range for multi-line comments. """ line: Int """ Path to the file being commented on. """ path: String! """ The node ID of the pull request reviewing """ pullRequestId: ID @possibleTypes(concreteTypes: ["PullRequest"]) """ The Node ID of the review to modify. """ pullRequestReviewId: ID @possibleTypes(concreteTypes: ["PullRequestReview"]) """ The side of the diff on which the line resides. For multi-line comments, this is the side for the end of the line range. """ side: DiffSide = RIGHT """ The first line of the range to which the comment refers. """ startLine: Int """ The side of the diff on which the start line resides. """ startSide: DiffSide = RIGHT """ The level at which the comments in the corresponding thread are targeted, can be a diff line or a file """ subjectType: PullRequestReviewThreadSubjectType = LINE } """ Autogenerated return type of AddPullRequestReviewThread """ type AddPullRequestReviewThreadPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The newly created thread. """ thread: PullRequestReviewThread } """ Autogenerated input type of AddPullRequestReviewThreadReply """ input AddPullRequestReviewThreadReplyInput { """ The text of the reply. """ body: String! """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Node ID of the pending review to which the reply will belong. """ pullRequestReviewId: ID @possibleTypes(concreteTypes: ["PullRequestReview"]) """ The Node ID of the thread to which this reply is being written. """ pullRequestReviewThreadId: ID! @possibleTypes(concreteTypes: ["PullRequestReviewThread"]) } """ Autogenerated return type of AddPullRequestReviewThreadReply """ type AddPullRequestReviewThreadReplyPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The newly created reply. """ comment: PullRequestReviewComment } """ Autogenerated input type of AddReaction """ input AddReactionInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The name of the emoji to react with. """ content: ReactionContent! """ The Node ID of the subject to modify. """ subjectId: ID! @possibleTypes( concreteTypes: [ "CommitComment" "Discussion" "DiscussionComment" "Issue" "IssueComment" "PullRequest" "PullRequestReview" "PullRequestReviewComment" "Release" "TeamDiscussion" "TeamDiscussionComment" ] abstractType: "Reactable" ) } """ Autogenerated return type of AddReaction """ type AddReactionPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The reaction object. """ reaction: Reaction """ The reaction groups for the subject. """ reactionGroups: [ReactionGroup!] """ The reactable subject. """ subject: Reactable } """ Autogenerated input type of AddStar """ input AddStarInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Starrable ID to star. """ starrableId: ID! @possibleTypes(concreteTypes: ["Gist", "Repository", "Topic"], abstractType: "Starrable") } """ Autogenerated return type of AddStar """ type AddStarPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The starrable. """ starrable: Starrable } """ Autogenerated input type of AddUpvote """ input AddUpvoteInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Node ID of the discussion or comment to upvote. """ subjectId: ID! @possibleTypes(concreteTypes: ["Discussion", "DiscussionComment"], abstractType: "Votable") } """ Autogenerated return type of AddUpvote """ type AddUpvotePayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The votable subject. """ subject: Votable } """ Autogenerated input type of AddVerifiableDomain """ input AddVerifiableDomainInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The URL of the domain """ domain: URI! """ The ID of the owner to add the domain to """ ownerId: ID! @possibleTypes(concreteTypes: ["Enterprise", "Organization"], abstractType: "VerifiableDomainOwner") } """ Autogenerated return type of AddVerifiableDomain """ type AddVerifiableDomainPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The verifiable domain that was added. """ domain: VerifiableDomain } """ Represents an 'added_to_merge_queue' event on a given pull request. """ type AddedToMergeQueueEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The user who added this Pull Request to the merge queue """ enqueuer: User """ The Node ID of the AddedToMergeQueueEvent object """ id: ID! """ The merge queue where this pull request was added to. """ mergeQueue: MergeQueue """ PullRequest referenced by event. """ pullRequest: PullRequest } """ Represents a 'added_to_project' event on a given issue or pull request. """ type AddedToProjectEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the primary key from the database. """ databaseId: Int """ The Node ID of the AddedToProjectEvent object """ id: ID! """ Project referenced by event. """ project: Project @preview(toggledBy: "starfox-preview") """ Project card referenced by this project event. """ projectCard: ProjectCard @preview(toggledBy: "starfox-preview") """ Column name referenced by this project event. """ projectColumnName: String! @preview(toggledBy: "starfox-preview") } """ Represents an announcement banner. """ interface AnnouncementBanner { """ The text of the announcement """ announcement: String """ The expiration date of the announcement, if any """ announcementExpiresAt: DateTime """ Whether the announcement can be dismissed by the user """ announcementUserDismissible: Boolean } """ A GitHub App. """ type App implements Node { """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the primary key from the database. """ databaseId: Int """ The description of the app. """ description: String """ The Node ID of the App object """ id: ID! """ The IP addresses of the app. """ ipAllowListEntries( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for IP allow list entries returned. """ orderBy: IpAllowListEntryOrder = {field: ALLOW_LIST_VALUE, direction: ASC} ): IpAllowListEntryConnection! """ The hex color code, without the leading '#', for the logo background. """ logoBackgroundColor: String! """ A URL pointing to the app's logo. """ logoUrl( """ The size of the resulting image. """ size: Int ): URI! """ The name of the app. """ name: String! """ A slug based on the name of the app for use in URLs. """ slug: String! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The URL to the app's homepage. """ url: URI! } """ Autogenerated input type of ApproveDeployments """ input ApproveDeploymentsInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Optional comment for approving deployments """ comment: String = "" """ The ids of environments to reject deployments """ environmentIds: [ID!]! """ The node ID of the workflow run containing the pending deployments. """ workflowRunId: ID! @possibleTypes(concreteTypes: ["WorkflowRun"]) } """ Autogenerated return type of ApproveDeployments """ type ApproveDeploymentsPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The affected deployments. """ deployments: [Deployment!] } """ Autogenerated input type of ApproveVerifiableDomain """ input ApproveVerifiableDomainInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the verifiable domain to approve. """ id: ID! @possibleTypes(concreteTypes: ["VerifiableDomain"]) } """ Autogenerated return type of ApproveVerifiableDomain """ type ApproveVerifiableDomainPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The verifiable domain that was approved. """ domain: VerifiableDomain } """ Autogenerated input type of ArchiveProjectV2Item """ input ArchiveProjectV2ItemInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the ProjectV2Item to archive. """ itemId: ID! @possibleTypes(concreteTypes: ["ProjectV2Item"]) """ The ID of the Project to archive the item from. """ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"]) } """ Autogenerated return type of ArchiveProjectV2Item """ type ArchiveProjectV2ItemPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The item archived from the project. """ item: ProjectV2Item } """ Autogenerated input type of ArchiveRepository """ input ArchiveRepositoryInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the repository to mark as archived. """ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"]) } """ Autogenerated return type of ArchiveRepository """ type ArchiveRepositoryPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The repository that was marked as archived. """ repository: Repository } """ An object that can have users assigned to it. """ interface Assignable { """ A list of Users assigned to this object. """ assignees( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): UserConnection! } """ Represents an 'assigned' event on any assignable object. """ type AssignedEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the assignable associated with the event. """ assignable: Assignable! """ Identifies the user or mannequin that was assigned. """ assignee: Assignee """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the AssignedEvent object """ id: ID! """ Identifies the user who was assigned. """ user: User @deprecated(reason: "Assignees can now be mannequins. Use the `assignee` field instead. Removal on 2020-01-01 UTC.") } """ Types that can be assigned to issues. """ union Assignee = Bot | Mannequin | Organization | User """ An entry in the audit log. """ interface AuditEntry { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The corresponding operation type for the action """ operationType: OperationType """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Types that can initiate an audit log event. """ union AuditEntryActor = Bot | Organization | User """ Ordering options for Audit Log connections. """ input AuditLogOrder { """ The ordering direction. """ direction: OrderDirection """ The field to order Audit Logs by. """ field: AuditLogOrderField } """ Properties by which Audit Log connections can be ordered. """ enum AuditLogOrderField { """ Order audit log entries by timestamp """ CREATED_AT } """ Represents a 'auto_merge_disabled' event on a given pull request. """ type AutoMergeDisabledEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The user who disabled auto-merge for this Pull Request """ disabler: User """ The Node ID of the AutoMergeDisabledEvent object """ id: ID! """ PullRequest referenced by event """ pullRequest: PullRequest """ The reason auto-merge was disabled """ reason: String """ The reason_code relating to why auto-merge was disabled """ reasonCode: String } """ Represents a 'auto_merge_enabled' event on a given pull request. """ type AutoMergeEnabledEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The user who enabled auto-merge for this Pull Request """ enabler: User """ The Node ID of the AutoMergeEnabledEvent object """ id: ID! """ PullRequest referenced by event. """ pullRequest: PullRequest } """ Represents an auto-merge request for a pull request """ type AutoMergeRequest { """ The email address of the author of this auto-merge request. """ authorEmail: String """ The commit message of the auto-merge request. If a merge queue is required by the base branch, this value will be set by the merge queue when merging. """ commitBody: String """ The commit title of the auto-merge request. If a merge queue is required by the base branch, this value will be set by the merge queue when merging """ commitHeadline: String """ When was this auto-merge request was enabled. """ enabledAt: DateTime """ The actor who created the auto-merge request. """ enabledBy: Actor """ The merge method of the auto-merge request. If a merge queue is required by the base branch, this value will be set by the merge queue when merging. """ mergeMethod: PullRequestMergeMethod! """ The pull request that this auto-merge request is set against. """ pullRequest: PullRequest! } """ Represents a 'auto_rebase_enabled' event on a given pull request. """ type AutoRebaseEnabledEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The user who enabled auto-merge (rebase) for this Pull Request """ enabler: User """ The Node ID of the AutoRebaseEnabledEvent object """ id: ID! """ PullRequest referenced by event. """ pullRequest: PullRequest } """ Represents a 'auto_squash_enabled' event on a given pull request. """ type AutoSquashEnabledEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The user who enabled auto-merge (squash) for this Pull Request """ enabler: User """ The Node ID of the AutoSquashEnabledEvent object """ id: ID! """ PullRequest referenced by event. """ pullRequest: PullRequest } """ Represents a 'automatic_base_change_failed' event on a given pull request. """ type AutomaticBaseChangeFailedEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the AutomaticBaseChangeFailedEvent object """ id: ID! """ The new base for this PR """ newBase: String! """ The old base for this PR """ oldBase: String! """ PullRequest referenced by event. """ pullRequest: PullRequest! } """ Represents a 'automatic_base_change_succeeded' event on a given pull request. """ type AutomaticBaseChangeSucceededEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the AutomaticBaseChangeSucceededEvent object """ id: ID! """ The new base for this PR """ newBase: String! """ The old base for this PR """ oldBase: String! """ PullRequest referenced by event. """ pullRequest: PullRequest! } """ A (potentially binary) string encoded using base64. """ scalar Base64String """ Represents a 'base_ref_changed' event on a given issue or pull request. """ type BaseRefChangedEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the name of the base ref for the pull request after it was changed. """ currentRefName: String! """ Identifies the primary key from the database. """ databaseId: Int """ The Node ID of the BaseRefChangedEvent object """ id: ID! """ Identifies the name of the base ref for the pull request before it was changed. """ previousRefName: String! """ PullRequest referenced by event. """ pullRequest: PullRequest! } """ Represents a 'base_ref_deleted' event on a given pull request. """ type BaseRefDeletedEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the name of the Ref associated with the `base_ref_deleted` event. """ baseRefName: String """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the BaseRefDeletedEvent object """ id: ID! """ PullRequest referenced by event. """ pullRequest: PullRequest } """ Represents a 'base_ref_force_pushed' event on a given pull request. """ type BaseRefForcePushedEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the after commit SHA for the 'base_ref_force_pushed' event. """ afterCommit: Commit """ Identifies the before commit SHA for the 'base_ref_force_pushed' event. """ beforeCommit: Commit """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the BaseRefForcePushedEvent object """ id: ID! """ PullRequest referenced by event. """ pullRequest: PullRequest! """ Identifies the fully qualified ref name for the 'base_ref_force_pushed' event. """ ref: Ref } """ Represents non-fractional signed whole numeric values. Since the value may exceed the size of a 32-bit integer, it's encoded as a string. """ scalar BigInt """ Represents a Git blame. """ type Blame { """ The list of ranges from a Git blame. """ ranges: [BlameRange!]! } """ Represents a range of information from a Git blame. """ type BlameRange { """ Identifies the recency of the change, from 1 (new) to 10 (old). This is calculated as a 2-quantile and determines the length of distance between the median age of all the changes in the file and the recency of the current range's change. """ age: Int! """ Identifies the line author """ commit: Commit! """ The ending line for the range """ endingLine: Int! """ The starting line for the range """ startingLine: Int! } """ Represents a Git blob. """ type Blob implements GitObject & Node { """ An abbreviated version of the Git object ID """ abbreviatedOid: String! """ Byte size of Blob object """ byteSize: Int! """ The HTTP path for this Git object """ commitResourcePath: URI! """ The HTTP URL for this Git object """ commitUrl: URI! """ The Node ID of the Blob object """ id: ID! """ Indicates whether the Blob is binary or text. Returns null if unable to determine the encoding. """ isBinary: Boolean """ Indicates whether the contents is truncated """ isTruncated: Boolean! """ The Git object ID """ oid: GitObjectID! """ The Repository the Git object belongs to """ repository: Repository! """ UTF8 text data or null if the Blob is binary """ text: String } """ A special type of user which takes actions on behalf of GitHub Apps. """ type Bot implements Actor & Node & UniformResourceLocatable { """ A URL pointing to the GitHub App's public avatar. """ avatarUrl( """ The size of the resulting square image. """ size: Int ): URI! """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the primary key from the database. """ databaseId: Int """ The Node ID of the Bot object """ id: ID! """ The username of the actor. """ login: String! """ The HTTP path for this bot """ resourcePath: URI! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The HTTP URL for this bot """ url: URI! } """ Types which can be actors for `BranchActorAllowance` objects. """ union BranchActorAllowanceActor = App | Team | User """ Parameters to be used for the branch_name_pattern rule """ type BranchNamePatternParameters { """ How this rule will appear to users. """ name: String """ If true, the rule will fail if the pattern matches. """ negate: Boolean! """ The operator to use for matching. """ operator: String! """ The pattern to match with. """ pattern: String! } """ Parameters to be used for the branch_name_pattern rule """ input BranchNamePatternParametersInput { """ How this rule will appear to users. """ name: String """ If true, the rule will fail if the pattern matches. """ negate: Boolean """ The operator to use for matching. """ operator: String! """ The pattern to match with. """ pattern: String! } """ A branch protection rule. """ type BranchProtectionRule implements Node { """ Can this branch be deleted. """ allowsDeletions: Boolean! """ Are force pushes allowed on this branch. """ allowsForcePushes: Boolean! """ Is branch creation a protected operation. """ blocksCreations: Boolean! """ A list of conflicts matching branches protection rule and other branch protection rules """ branchProtectionRuleConflicts( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): BranchProtectionRuleConflictConnection! """ A list of actors able to force push for this branch protection rule. """ bypassForcePushAllowances( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): BypassForcePushAllowanceConnection! """ A list of actors able to bypass PRs for this branch protection rule. """ bypassPullRequestAllowances( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): BypassPullRequestAllowanceConnection! """ The actor who created this branch protection rule. """ creator: Actor """ Identifies the primary key from the database. """ databaseId: Int """ Will new commits pushed to matching branches dismiss pull request review approvals. """ dismissesStaleReviews: Boolean! """ The Node ID of the BranchProtectionRule object """ id: ID! """ Can admins override branch protection. """ isAdminEnforced: Boolean! """ Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. """ lockAllowsFetchAndMerge: Boolean! """ Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. """ lockBranch: Boolean! """ Repository refs that are protected by this rule """ matchingRefs( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Filters refs with query on name """ query: String ): RefConnection! """ Identifies the protection rule pattern. """ pattern: String! """ A list push allowances for this branch protection rule. """ pushAllowances( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): PushAllowanceConnection! """ The repository associated with this branch protection rule. """ repository: Repository """ Whether the most recent push must be approved by someone other than the person who pushed it """ requireLastPushApproval: Boolean! """ Number of approving reviews required to update matching branches. """ requiredApprovingReviewCount: Int """ List of required deployment environments that must be deployed successfully to update matching branches """ requiredDeploymentEnvironments: [String] """ List of required status check contexts that must pass for commits to be accepted to matching branches. """ requiredStatusCheckContexts: [String] """ List of required status checks that must pass for commits to be accepted to matching branches. """ requiredStatusChecks: [RequiredStatusCheckDescription!] """ Are approving reviews required to update matching branches. """ requiresApprovingReviews: Boolean! """ Are reviews from code owners required to update matching branches. """ requiresCodeOwnerReviews: Boolean! """ Are commits required to be signed. """ requiresCommitSignatures: Boolean! """ Are conversations required to be resolved before merging. """ requiresConversationResolution: Boolean! """ Does this branch require deployment to specific environments before merging """ requiresDeployments: Boolean! """ Are merge commits prohibited from being pushed to this branch. """ requiresLinearHistory: Boolean! """ Are status checks required to update matching branches. """ requiresStatusChecks: Boolean! """ Are branches required to be up to date before merging. """ requiresStrictStatusChecks: Boolean! """ Is pushing to matching branches restricted. """ restrictsPushes: Boolean! """ Is dismissal of pull request reviews restricted. """ restrictsReviewDismissals: Boolean! """ A list review dismissal allowances for this branch protection rule. """ reviewDismissalAllowances( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): ReviewDismissalAllowanceConnection! } """ A conflict between two branch protection rules. """ type BranchProtectionRuleConflict { """ Identifies the branch protection rule. """ branchProtectionRule: BranchProtectionRule """ Identifies the conflicting branch protection rule. """ conflictingBranchProtectionRule: BranchProtectionRule """ Identifies the branch ref that has conflicting rules """ ref: Ref } """ The connection type for BranchProtectionRuleConflict. """ type BranchProtectionRuleConflictConnection { """ A list of edges. """ edges: [BranchProtectionRuleConflictEdge] """ A list of nodes. """ nodes: [BranchProtectionRuleConflict] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type BranchProtectionRuleConflictEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: BranchProtectionRuleConflict } """ The connection type for BranchProtectionRule. """ type BranchProtectionRuleConnection { """ A list of edges. """ edges: [BranchProtectionRuleEdge] """ A list of nodes. """ nodes: [BranchProtectionRule] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type BranchProtectionRuleEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: BranchProtectionRule } """ Information about a sponsorship to make for a user or organization with a GitHub Sponsors profile, as part of sponsoring many users or organizations at once. """ input BulkSponsorship { """ The amount to pay to the sponsorable in US dollars. Valid values: 1-12000. """ amount: Int! """ The ID of the user or organization who is receiving the sponsorship. Required if sponsorableLogin is not given. """ sponsorableId: ID @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "Sponsorable") """ The username of the user or organization who is receiving the sponsorship. Required if sponsorableId is not given. """ sponsorableLogin: String } """ Types that can represent a repository ruleset bypass actor. """ union BypassActor = App | Team """ A user, team, or app who has the ability to bypass a force push requirement on a protected branch. """ type BypassForcePushAllowance implements Node { """ The actor that can force push. """ actor: BranchActorAllowanceActor """ Identifies the branch protection rule associated with the allowed user, team, or app. """ branchProtectionRule: BranchProtectionRule """ The Node ID of the BypassForcePushAllowance object """ id: ID! } """ The connection type for BypassForcePushAllowance. """ type BypassForcePushAllowanceConnection { """ A list of edges. """ edges: [BypassForcePushAllowanceEdge] """ A list of nodes. """ nodes: [BypassForcePushAllowance] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type BypassForcePushAllowanceEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: BypassForcePushAllowance } """ A user, team, or app who has the ability to bypass a pull request requirement on a protected branch. """ type BypassPullRequestAllowance implements Node { """ The actor that can bypass. """ actor: BranchActorAllowanceActor """ Identifies the branch protection rule associated with the allowed user, team, or app. """ branchProtectionRule: BranchProtectionRule """ The Node ID of the BypassPullRequestAllowance object """ id: ID! } """ The connection type for BypassPullRequestAllowance. """ type BypassPullRequestAllowanceConnection { """ A list of edges. """ edges: [BypassPullRequestAllowanceEdge] """ A list of nodes. """ nodes: [BypassPullRequestAllowance] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type BypassPullRequestAllowanceEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: BypassPullRequestAllowance } """ The Common Vulnerability Scoring System """ type CVSS { """ The CVSS score associated with this advisory """ score: Float! """ The CVSS vector string associated with this advisory """ vectorString: String } """ A common weakness enumeration """ type CWE implements Node { """ The id of the CWE """ cweId: String! """ A detailed description of this CWE """ description: String! """ The Node ID of the CWE object """ id: ID! """ The name of this CWE """ name: String! } """ The connection type for CWE. """ type CWEConnection { """ A list of edges. """ edges: [CWEEdge] """ A list of nodes. """ nodes: [CWE] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type CWEEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: CWE } """ Autogenerated input type of CancelEnterpriseAdminInvitation """ input CancelEnterpriseAdminInvitationInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Node ID of the pending enterprise administrator invitation. """ invitationId: ID! @possibleTypes(concreteTypes: ["EnterpriseAdministratorInvitation"]) } """ Autogenerated return type of CancelEnterpriseAdminInvitation """ type CancelEnterpriseAdminInvitationPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The invitation that was canceled. """ invitation: EnterpriseAdministratorInvitation """ A message confirming the result of canceling an administrator invitation. """ message: String } """ Autogenerated input type of CancelSponsorship """ input CancelSponsorshipInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the user or organization who is acting as the sponsor, paying for the sponsorship. Required if sponsorLogin is not given. """ sponsorId: ID @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "Sponsor") """ The username of the user or organization who is acting as the sponsor, paying for the sponsorship. Required if sponsorId is not given. """ sponsorLogin: String """ The ID of the user or organization who is receiving the sponsorship. Required if sponsorableLogin is not given. """ sponsorableId: ID @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "Sponsorable") """ The username of the user or organization who is receiving the sponsorship. Required if sponsorableId is not given. """ sponsorableLogin: String } """ Autogenerated return type of CancelSponsorship """ type CancelSponsorshipPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The tier that was being used at the time of cancellation. """ sponsorsTier: SponsorsTier } """ Autogenerated input type of ChangeUserStatus """ input ChangeUserStatusInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The emoji to represent your status. Can either be a native Unicode emoji or an emoji name with colons, e.g., :grinning:. """ emoji: String """ If set, the user status will not be shown after this date. """ expiresAt: DateTime """ Whether this status should indicate you are not fully available on GitHub, e.g., you are away. """ limitedAvailability: Boolean = false """ A short description of your current status. """ message: String """ The ID of the organization whose members will be allowed to see the status. If omitted, the status will be publicly visible. """ organizationId: ID @possibleTypes(concreteTypes: ["Organization"]) } """ Autogenerated return type of ChangeUserStatus """ type ChangeUserStatusPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Your updated status. """ status: UserStatus } """ A single check annotation. """ type CheckAnnotation { """ The annotation's severity level. """ annotationLevel: CheckAnnotationLevel """ The path to the file that this annotation was made on. """ blobUrl: URI! """ Identifies the primary key from the database. """ databaseId: Int """ The position of this annotation. """ location: CheckAnnotationSpan! """ The annotation's message. """ message: String! """ The path that this annotation was made on. """ path: String! """ Additional information about the annotation. """ rawDetails: String """ The annotation's title """ title: String } """ The connection type for CheckAnnotation. """ type CheckAnnotationConnection { """ A list of edges. """ edges: [CheckAnnotationEdge] """ A list of nodes. """ nodes: [CheckAnnotation] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ Information from a check run analysis to specific lines of code. """ input CheckAnnotationData { """ Represents an annotation's information level """ annotationLevel: CheckAnnotationLevel! """ The location of the annotation """ location: CheckAnnotationRange! """ A short description of the feedback for these lines of code. """ message: String! """ The path of the file to add an annotation to. """ path: String! """ Details about this annotation. """ rawDetails: String """ The title that represents the annotation. """ title: String } """ An edge in a connection. """ type CheckAnnotationEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: CheckAnnotation } """ Represents an annotation's information level. """ enum CheckAnnotationLevel { """ An annotation indicating an inescapable error. """ FAILURE """ An annotation indicating some information. """ NOTICE """ An annotation indicating an ignorable error. """ WARNING } """ A character position in a check annotation. """ type CheckAnnotationPosition { """ Column number (1 indexed). """ column: Int """ Line number (1 indexed). """ line: Int! } """ Information from a check run analysis to specific lines of code. """ input CheckAnnotationRange { """ The ending column of the range. """ endColumn: Int """ The ending line of the range. """ endLine: Int! """ The starting column of the range. """ startColumn: Int """ The starting line of the range. """ startLine: Int! } """ An inclusive pair of positions for a check annotation. """ type CheckAnnotationSpan { """ End position (inclusive). """ end: CheckAnnotationPosition! """ Start position (inclusive). """ start: CheckAnnotationPosition! } """ The possible states for a check suite or run conclusion. """ enum CheckConclusionState { """ The check suite or run requires action. """ ACTION_REQUIRED """ The check suite or run has been cancelled. """ CANCELLED """ The check suite or run has failed. """ FAILURE """ The check suite or run was neutral. """ NEUTRAL """ The check suite or run was skipped. """ SKIPPED """ The check suite or run was marked stale by GitHub. Only GitHub can use this conclusion. """ STALE """ The check suite or run has failed at startup. """ STARTUP_FAILURE """ The check suite or run has succeeded. """ SUCCESS """ The check suite or run has timed out. """ TIMED_OUT } """ A check run. """ type CheckRun implements Node & RequirableByPullRequest & UniformResourceLocatable { """ The check run's annotations """ annotations( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): CheckAnnotationConnection """ The check suite that this run is a part of. """ checkSuite: CheckSuite! """ Identifies the date and time when the check run was completed. """ completedAt: DateTime """ The conclusion of the check run. """ conclusion: CheckConclusionState """ Identifies the primary key from the database. """ databaseId: Int """ The corresponding deployment for this job, if any """ deployment: Deployment """ The URL from which to find full details of the check run on the integrator's site. """ detailsUrl: URI """ A reference for the check run on the integrator's system. """ externalId: String """ The Node ID of the CheckRun object """ id: ID! """ Whether this is required to pass before merging for a specific pull request. """ isRequired( """ The id of the pull request this is required for """ pullRequestId: ID """ The number of the pull request this is required for """ pullRequestNumber: Int ): Boolean! """ The name of the check for this check run. """ name: String! """ Information about a pending deployment, if any, in this check run """ pendingDeploymentRequest: DeploymentRequest """ The permalink to the check run summary. """ permalink: URI! """ The repository associated with this check run. """ repository: Repository! """ The HTTP path for this check run. """ resourcePath: URI! """ Identifies the date and time when the check run was started. """ startedAt: DateTime """ The current status of the check run. """ status: CheckStatusState! """ The check run's steps """ steps( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Step number """ number: Int ): CheckStepConnection """ A string representing the check run's summary """ summary: String """ A string representing the check run's text """ text: String """ A string representing the check run """ title: String """ The HTTP URL for this check run. """ url: URI! } """ Possible further actions the integrator can perform. """ input CheckRunAction { """ A short explanation of what this action would do. """ description: String! """ A reference for the action on the integrator's system. """ identifier: String! """ The text to be displayed on a button in the web UI. """ label: String! } """ The connection type for CheckRun. """ type CheckRunConnection { """ A list of edges. """ edges: [CheckRunEdge] """ A list of nodes. """ nodes: [CheckRun] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type CheckRunEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: CheckRun } """ The filters that are available when fetching check runs. """ input CheckRunFilter { """ Filters the check runs created by this application ID. """ appId: Int """ Filters the check runs by this name. """ checkName: String """ Filters the check runs by this type. """ checkType: CheckRunType """ Filters the check runs by these conclusions. """ conclusions: [CheckConclusionState!] """ Filters the check runs by this status. Superceded by statuses. """ status: CheckStatusState """ Filters the check runs by this status. Overrides status. """ statuses: [CheckStatusState!] } """ Descriptive details about the check run. """ input CheckRunOutput { """ The annotations that are made as part of the check run. """ annotations: [CheckAnnotationData!] """ Images attached to the check run output displayed in the GitHub pull request UI. """ images: [CheckRunOutputImage!] """ The summary of the check run (supports Commonmark). """ summary: String! """ The details of the check run (supports Commonmark). """ text: String """ A title to provide for this check run. """ title: String! } """ Images attached to the check run output displayed in the GitHub pull request UI. """ input CheckRunOutputImage { """ The alternative text for the image. """ alt: String! """ A short image description. """ caption: String """ The full URL of the image. """ imageUrl: URI! } """ The possible states of a check run in a status rollup. """ enum CheckRunState { """ The check run requires action. """ ACTION_REQUIRED """ The check run has been cancelled. """ CANCELLED """ The check run has been completed. """ COMPLETED """ The check run has failed. """ FAILURE """ The check run is in progress. """ IN_PROGRESS """ The check run was neutral. """ NEUTRAL """ The check run is in pending state. """ PENDING """ The check run has been queued. """ QUEUED """ The check run was skipped. """ SKIPPED """ The check run was marked stale by GitHub. Only GitHub can use this conclusion. """ STALE """ The check run has failed at startup. """ STARTUP_FAILURE """ The check run has succeeded. """ SUCCESS """ The check run has timed out. """ TIMED_OUT """ The check run is in waiting state. """ WAITING } """ Represents a count of the state of a check run. """ type CheckRunStateCount { """ The number of check runs with this state. """ count: Int! """ The state of a check run. """ state: CheckRunState! } """ The possible types of check runs. """ enum CheckRunType { """ Every check run available. """ ALL """ The latest check run. """ LATEST } """ The possible states for a check suite or run status. """ enum CheckStatusState { """ The check suite or run has been completed. """ COMPLETED """ The check suite or run is in progress. """ IN_PROGRESS """ The check suite or run is in pending state. """ PENDING """ The check suite or run has been queued. """ QUEUED """ The check suite or run has been requested. """ REQUESTED """ The check suite or run is in waiting state. """ WAITING } """ A single check step. """ type CheckStep { """ Identifies the date and time when the check step was completed. """ completedAt: DateTime """ The conclusion of the check step. """ conclusion: CheckConclusionState """ A reference for the check step on the integrator's system. """ externalId: String """ The step's name. """ name: String! """ The index of the step in the list of steps of the parent check run. """ number: Int! """ Number of seconds to completion. """ secondsToCompletion: Int """ Identifies the date and time when the check step was started. """ startedAt: DateTime """ The current status of the check step. """ status: CheckStatusState! } """ The connection type for CheckStep. """ type CheckStepConnection { """ A list of edges. """ edges: [CheckStepEdge] """ A list of nodes. """ nodes: [CheckStep] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type CheckStepEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: CheckStep } """ A check suite. """ type CheckSuite implements Node { """ The GitHub App which created this check suite. """ app: App """ The name of the branch for this check suite. """ branch: Ref """ The check runs associated with a check suite. """ checkRuns( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Filters the check runs by this type. """ filterBy: CheckRunFilter """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): CheckRunConnection """ The commit for this check suite """ commit: Commit! """ The conclusion of this check suite. """ conclusion: CheckConclusionState """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The user who triggered the check suite. """ creator: User """ Identifies the primary key from the database. """ databaseId: Int """ The Node ID of the CheckSuite object """ id: ID! """ A list of open pull requests matching the check suite. """ matchingPullRequests( """ Returns the elements in the list that come after the specified cursor. """ after: String """ The base ref name to filter the pull requests by. """ baseRefName: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ The head ref name to filter the pull requests by. """ headRefName: String """ A list of label names to filter the pull requests by. """ labels: [String!] """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for pull requests returned from the connection. """ orderBy: IssueOrder """ A list of states to filter the pull requests by. """ states: [PullRequestState!] ): PullRequestConnection """ The push that triggered this check suite. """ push: Push """ The repository associated with this check suite. """ repository: Repository! """ The HTTP path for this check suite """ resourcePath: URI! """ The status of this check suite. """ status: CheckStatusState! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The HTTP URL for this check suite """ url: URI! """ The workflow run associated with this check suite. """ workflowRun: WorkflowRun } """ The auto-trigger preferences that are available for check suites. """ input CheckSuiteAutoTriggerPreference { """ The node ID of the application that owns the check suite. """ appId: ID! """ Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository. """ setting: Boolean! } """ The connection type for CheckSuite. """ type CheckSuiteConnection { """ A list of edges. """ edges: [CheckSuiteEdge] """ A list of nodes. """ nodes: [CheckSuite] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type CheckSuiteEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: CheckSuite } """ The filters that are available when fetching check suites. """ input CheckSuiteFilter { """ Filters the check suites created by this application ID. """ appId: Int """ Filters the check suites by this name. """ checkName: String } """ An object which can have its data claimed or claim data from another. """ union Claimable = Mannequin | User """ Autogenerated input type of ClearLabelsFromLabelable """ input ClearLabelsFromLabelableInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The id of the labelable object to clear the labels from. """ labelableId: ID! @possibleTypes(concreteTypes: ["Discussion", "Issue", "PullRequest"], abstractType: "Labelable") } """ Autogenerated return type of ClearLabelsFromLabelable """ type ClearLabelsFromLabelablePayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The item that was unlabeled. """ labelable: Labelable } """ Autogenerated input type of ClearProjectV2ItemFieldValue """ input ClearProjectV2ItemFieldValueInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the field to be cleared. """ fieldId: ID! @possibleTypes( concreteTypes: ["ProjectV2Field", "ProjectV2IterationField", "ProjectV2SingleSelectField"] abstractType: "ProjectV2FieldConfiguration" ) """ The ID of the item to be cleared. """ itemId: ID! @possibleTypes(concreteTypes: ["ProjectV2Item"]) """ The ID of the Project. """ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"]) } """ Autogenerated return type of ClearProjectV2ItemFieldValue """ type ClearProjectV2ItemFieldValuePayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The updated item. """ projectV2Item: ProjectV2Item } """ Autogenerated input type of CloneProject """ input CloneProjectInput { """ The description of the project. """ body: String """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Whether or not to clone the source project's workflows. """ includeWorkflows: Boolean! """ The name of the project. """ name: String! """ The visibility of the project, defaults to false (private). """ public: Boolean """ The source project to clone. """ sourceId: ID! @possibleTypes(concreteTypes: ["Project"]) """ The owner ID to create the project under. """ targetOwnerId: ID! @possibleTypes(concreteTypes: ["Organization", "Repository", "User"], abstractType: "ProjectOwner") } """ Autogenerated return type of CloneProject """ type CloneProjectPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The id of the JobStatus for populating cloned fields. """ jobStatusId: String """ The new cloned project. """ project: Project } """ Autogenerated input type of CloneTemplateRepository """ input CloneTemplateRepositoryInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ A short description of the new repository. """ description: String """ Whether to copy all branches from the template to the new repository. Defaults to copying only the default branch of the template. """ includeAllBranches: Boolean = false """ The name of the new repository. """ name: String! """ The ID of the owner for the new repository. """ ownerId: ID! @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "RepositoryOwner") """ The Node ID of the template repository. """ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"]) """ Indicates the repository's visibility level. """ visibility: RepositoryVisibility! } """ Autogenerated return type of CloneTemplateRepository """ type CloneTemplateRepositoryPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The new repository. """ repository: Repository } """ An object that can be closed """ interface Closable { """ Indicates if the object is closed (definition of closed may depend on type) """ closed: Boolean! """ Identifies the date and time when the object was closed. """ closedAt: DateTime """ Indicates if the object can be closed by the viewer. """ viewerCanClose: Boolean! """ Indicates if the object can be reopened by the viewer. """ viewerCanReopen: Boolean! } """ Autogenerated input type of CloseDiscussion """ input CloseDiscussionInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ ID of the discussion to be closed. """ discussionId: ID! @possibleTypes(concreteTypes: ["Discussion"]) """ The reason why the discussion is being closed. """ reason: DiscussionCloseReason = RESOLVED } """ Autogenerated return type of CloseDiscussion """ type CloseDiscussionPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The discussion that was closed. """ discussion: Discussion } """ Autogenerated input type of CloseIssue """ input CloseIssueInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ ID of the issue to be closed. """ issueId: ID! @possibleTypes(concreteTypes: ["Issue"]) """ The reason the issue is to be closed. """ stateReason: IssueClosedStateReason } """ Autogenerated return type of CloseIssue """ type CloseIssuePayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The issue that was closed. """ issue: Issue } """ Autogenerated input type of ClosePullRequest """ input ClosePullRequestInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ ID of the pull request to be closed. """ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"]) } """ Autogenerated return type of ClosePullRequest """ type ClosePullRequestPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The pull request that was closed. """ pullRequest: PullRequest } """ Represents a 'closed' event on any `Closable`. """ type ClosedEvent implements Node & UniformResourceLocatable { """ Identifies the actor who performed the event. """ actor: Actor """ Object that was closed. """ closable: Closable! """ Object which triggered the creation of this event. """ closer: Closer """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the ClosedEvent object """ id: ID! """ The HTTP path for this closed event. """ resourcePath: URI! """ The reason the issue state was changed to closed. """ stateReason: IssueStateReason """ The HTTP URL for this closed event. """ url: URI! } """ The object which triggered a `ClosedEvent`. """ union Closer = Commit | PullRequest """ The Code of Conduct for a repository """ type CodeOfConduct implements Node { """ The body of the Code of Conduct """ body: String """ The Node ID of the CodeOfConduct object """ id: ID! """ The key for the Code of Conduct """ key: String! """ The formal name of the Code of Conduct """ name: String! """ The HTTP path for this Code of Conduct """ resourcePath: URI """ The HTTP URL for this Code of Conduct """ url: URI } """ Collaborators affiliation level with a subject. """ enum CollaboratorAffiliation { """ All collaborators the authenticated user can see. """ ALL """ All collaborators with permissions to an organization-owned subject, regardless of organization membership status. """ DIRECT """ All outside collaborators of an organization-owned subject. """ OUTSIDE } """ Represents a comment. """ interface Comment { """ The actor who authored the comment. """ author: Actor """ Author's association with the subject of the comment. """ authorAssociation: CommentAuthorAssociation! """ The body as Markdown. """ body: String! """ The body rendered to HTML. """ bodyHTML: HTML! """ The body rendered to text. """ bodyText: String! """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Check if this comment was created via an email reply. """ createdViaEmail: Boolean! """ The actor who edited the comment. """ editor: Actor """ The Node ID of the Comment object """ id: ID! """ Check if this comment was edited and includes an edit with the creation data """ includesCreatedEdit: Boolean! """ The moment the editor made the last edit """ lastEditedAt: DateTime """ Identifies when the comment was published at. """ publishedAt: DateTime """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ A list of edits to this content. """ userContentEdits( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): UserContentEditConnection """ Did the viewer author this comment. """ viewerDidAuthor: Boolean! } """ A comment author association with repository. """ enum CommentAuthorAssociation { """ Author has been invited to collaborate on the repository. """ COLLABORATOR """ Author has previously committed to the repository. """ CONTRIBUTOR """ Author has not previously committed to GitHub. """ FIRST_TIMER """ Author has not previously committed to the repository. """ FIRST_TIME_CONTRIBUTOR """ Author is a placeholder for an unclaimed user. """ MANNEQUIN """ Author is a member of the organization that owns the repository. """ MEMBER """ Author has no association with the repository. """ NONE """ Author is the owner of the repository. """ OWNER } """ The possible errors that will prevent a user from updating a comment. """ enum CommentCannotUpdateReason { """ Unable to create comment because repository is archived. """ ARCHIVED """ You cannot update this comment """ DENIED """ You must be the author or have write access to this repository to update this comment. """ INSUFFICIENT_ACCESS """ Unable to create comment because issue is locked. """ LOCKED """ You must be logged in to update this comment. """ LOGIN_REQUIRED """ Repository is under maintenance. """ MAINTENANCE """ At least one email address must be verified to update this comment. """ VERIFIED_EMAIL_REQUIRED } """ Represents a 'comment_deleted' event on a given issue or pull request. """ type CommentDeletedEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the primary key from the database. """ databaseId: Int """ The user who authored the deleted comment. """ deletedCommentAuthor: Actor """ The Node ID of the CommentDeletedEvent object """ id: ID! } """ Represents a Git commit. """ type Commit implements GitObject & Node & Subscribable & UniformResourceLocatable { """ An abbreviated version of the Git object ID """ abbreviatedOid: String! """ The number of additions in this commit. """ additions: Int! """ The merged Pull Request that introduced the commit to the repository. If the commit is not present in the default branch, additionally returns open Pull Requests associated with the commit """ associatedPullRequests( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for pull requests. """ orderBy: PullRequestOrder = {field: CREATED_AT, direction: ASC} ): PullRequestConnection """ Authorship details of the commit. """ author: GitActor """ Check if the committer and the author match. """ authoredByCommitter: Boolean! """ The datetime when this commit was authored. """ authoredDate: DateTime! """ The list of authors for this commit based on the git author and the Co-authored-by message trailer. The git author will always be first. """ authors( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): GitActorConnection! """ Fetches `git blame` information. """ blame( """ The file whose Git blame information you want. """ path: String! ): Blame! """ We recommend using the `changedFilesIfAvailable` field instead of `changedFiles`, as `changedFiles` will cause your request to return an error if GitHub is unable to calculate the number of changed files. """ changedFiles: Int! @deprecated( reason: "`changedFiles` will be removed. Use `changedFilesIfAvailable` instead. Removal on 2023-01-01 UTC." ) """ The number of changed files in this commit. If GitHub is unable to calculate the number of changed files (for example due to a timeout), this will return `null`. We recommend using this field instead of `changedFiles`. """ changedFilesIfAvailable: Int """ The check suites associated with a commit. """ checkSuites( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Filters the check suites by this type. """ filterBy: CheckSuiteFilter """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): CheckSuiteConnection """ Comments made on the commit. """ comments( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): CommitCommentConnection! """ The HTTP path for this Git object """ commitResourcePath: URI! """ The HTTP URL for this Git object """ commitUrl: URI! """ The datetime when this commit was committed. """ committedDate: DateTime! """ Check if committed via GitHub web UI. """ committedViaWeb: Boolean! """ Committer details of the commit. """ committer: GitActor """ The number of deletions in this commit. """ deletions: Int! """ The deployments associated with a commit. """ deployments( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Environments to list deployments for """ environments: [String!] """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for deployments returned from the connection. """ orderBy: DeploymentOrder = {field: CREATED_AT, direction: ASC} ): DeploymentConnection """ The tree entry representing the file located at the given path. """ file( """ The path for the file """ path: String! ): TreeEntry """ The linear commit history starting from (and including) this commit, in the same order as `git log`. """ history( """ Returns the elements in the list that come after the specified cursor. """ after: String """ If non-null, filters history to only show commits with matching authorship. """ author: CommitAuthor """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ If non-null, filters history to only show commits touching files under this path. """ path: String """ Allows specifying a beginning time or date for fetching commits. """ since: GitTimestamp """ Allows specifying an ending time or date for fetching commits. """ until: GitTimestamp ): CommitHistoryConnection! """ The Node ID of the Commit object """ id: ID! """ The Git commit message """ message: String! """ The Git commit message body """ messageBody: String! """ The commit message body rendered to HTML. """ messageBodyHTML: HTML! """ The Git commit message headline """ messageHeadline: String! """ The commit message headline rendered to HTML. """ messageHeadlineHTML: HTML! """ The Git object ID """ oid: GitObjectID! """ The organization this commit was made on behalf of. """ onBehalfOf: Organization """ The parents of a commit. """ parents( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): CommitConnection! """ The datetime when this commit was pushed. """ pushedDate: DateTime @deprecated(reason: "`pushedDate` is no longer supported. Removal on 2023-07-01 UTC.") """ The Repository this commit belongs to """ repository: Repository! """ The HTTP path for this commit """ resourcePath: URI! """ Commit signing information, if present. """ signature: GitSignature """ Status information for this commit """ status: Status """ Check and Status rollup information for this commit. """ statusCheckRollup: StatusCheckRollup """ Returns a list of all submodules in this repository as of this Commit parsed from the .gitmodules file. """ submodules( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): SubmoduleConnection! """ Returns a URL to download a tarball archive for a repository. Note: For private repositories, these links are temporary and expire after five minutes. """ tarballUrl: URI! """ Commit's root Tree """ tree: Tree! """ The HTTP path for the tree of this commit """ treeResourcePath: URI! """ The HTTP URL for the tree of this commit """ treeUrl: URI! """ The HTTP URL for this commit """ url: URI! """ Check if the viewer is able to change their subscription status for the repository. """ viewerCanSubscribe: Boolean! """ Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. """ viewerSubscription: SubscriptionState """ Returns a URL to download a zipball archive for a repository. Note: For private repositories, these links are temporary and expire after five minutes. """ zipballUrl: URI! } """ Specifies an author for filtering Git commits. """ input CommitAuthor { """ Email addresses to filter by. Commits authored by any of the specified email addresses will be returned. """ emails: [String!] """ ID of a User to filter by. If non-null, only commits authored by this user will be returned. This field takes precedence over emails. """ id: ID } """ Parameters to be used for the commit_author_email_pattern rule """ type CommitAuthorEmailPatternParameters { """ How this rule will appear to users. """ name: String """ If true, the rule will fail if the pattern matches. """ negate: Boolean! """ The operator to use for matching. """ operator: String! """ The pattern to match with. """ pattern: String! } """ Parameters to be used for the commit_author_email_pattern rule """ input CommitAuthorEmailPatternParametersInput { """ How this rule will appear to users. """ name: String """ If true, the rule will fail if the pattern matches. """ negate: Boolean """ The operator to use for matching. """ operator: String! """ The pattern to match with. """ pattern: String! } """ Represents a comment on a given Commit. """ type CommitComment implements Comment & Deletable & Minimizable & Node & Reactable & RepositoryNode & Updatable & UpdatableComment { """ The actor who authored the comment. """ author: Actor """ Author's association with the subject of the comment. """ authorAssociation: CommentAuthorAssociation! """ Identifies the comment body. """ body: String! """ The body rendered to HTML. """ bodyHTML: HTML! """ The body rendered to text. """ bodyText: String! """ Identifies the commit associated with the comment, if the commit exists. """ commit: Commit """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Check if this comment was created via an email reply. """ createdViaEmail: Boolean! """ Identifies the primary key from the database. """ databaseId: Int """ The actor who edited the comment. """ editor: Actor """ The Node ID of the CommitComment object """ id: ID! """ Check if this comment was edited and includes an edit with the creation data """ includesCreatedEdit: Boolean! """ Returns whether or not a comment has been minimized. """ isMinimized: Boolean! """ The moment the editor made the last edit """ lastEditedAt: DateTime """ Returns why the comment was minimized. One of `abuse`, `off-topic`, `outdated`, `resolved`, `duplicate` and `spam`. Note that the case and formatting of these values differs from the inputs to the `MinimizeComment` mutation. """ minimizedReason: String """ Identifies the file path associated with the comment. """ path: String """ Identifies the line position associated with the comment. """ position: Int """ Identifies when the comment was published at. """ publishedAt: DateTime """ A list of reactions grouped by content left on the subject. """ reactionGroups: [ReactionGroup!] """ A list of Reactions left on the Issue. """ reactions( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Allows filtering Reactions by emoji. """ content: ReactionContent """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Allows specifying the order in which reactions are returned. """ orderBy: ReactionOrder ): ReactionConnection! """ The repository associated with this node. """ repository: Repository! """ The HTTP path permalink for this commit comment. """ resourcePath: URI! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The HTTP URL permalink for this commit comment. """ url: URI! """ A list of edits to this content. """ userContentEdits( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): UserContentEditConnection """ Check if the current viewer can delete this object. """ viewerCanDelete: Boolean! """ Check if the current viewer can minimize this object. """ viewerCanMinimize: Boolean! """ Can user react to this subject """ viewerCanReact: Boolean! """ Check if the current viewer can update this object. """ viewerCanUpdate: Boolean! """ Reasons why the current viewer can not update this comment. """ viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! """ Did the viewer author this comment. """ viewerDidAuthor: Boolean! } """ The connection type for CommitComment. """ type CommitCommentConnection { """ A list of edges. """ edges: [CommitCommentEdge] """ A list of nodes. """ nodes: [CommitComment] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type CommitCommentEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: CommitComment } """ A thread of comments on a commit. """ type CommitCommentThread implements Node & RepositoryNode { """ The comments that exist in this thread. """ comments( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): CommitCommentConnection! """ The commit the comments were made on. """ commit: Commit """ The Node ID of the CommitCommentThread object """ id: ID! """ The file the comments were made on. """ path: String """ The position in the diff for the commit that the comment was made on. """ position: Int """ The repository associated with this node. """ repository: Repository! } """ The connection type for Commit. """ type CommitConnection { """ A list of edges. """ edges: [CommitEdge] """ A list of nodes. """ nodes: [Commit] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ Ordering options for commit contribution connections. """ input CommitContributionOrder { """ The ordering direction. """ direction: OrderDirection! """ The field by which to order commit contributions. """ field: CommitContributionOrderField! } """ Properties by which commit contribution connections can be ordered. """ enum CommitContributionOrderField { """ Order commit contributions by how many commits they represent. """ COMMIT_COUNT """ Order commit contributions by when they were made. """ OCCURRED_AT } """ This aggregates commits made by a user within one repository. """ type CommitContributionsByRepository { """ The commit contributions, each representing a day. """ contributions( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for commit contributions returned from the connection. """ orderBy: CommitContributionOrder = {field: OCCURRED_AT, direction: DESC} ): CreatedCommitContributionConnection! """ The repository in which the commits were made. """ repository: Repository! """ The HTTP path for the user's commits to the repository in this time range. """ resourcePath: URI! """ The HTTP URL for the user's commits to the repository in this time range. """ url: URI! } """ An edge in a connection. """ type CommitEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: Commit } """ The connection type for Commit. """ type CommitHistoryConnection { """ A list of edges. """ edges: [CommitEdge] """ A list of nodes. """ nodes: [Commit] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ A message to include with a new commit """ input CommitMessage { """ The body of the message. """ body: String """ The headline of the message. """ headline: String! } """ Parameters to be used for the commit_message_pattern rule """ type CommitMessagePatternParameters { """ How this rule will appear to users. """ name: String """ If true, the rule will fail if the pattern matches. """ negate: Boolean! """ The operator to use for matching. """ operator: String! """ The pattern to match with. """ pattern: String! } """ Parameters to be used for the commit_message_pattern rule """ input CommitMessagePatternParametersInput { """ How this rule will appear to users. """ name: String """ If true, the rule will fail if the pattern matches. """ negate: Boolean """ The operator to use for matching. """ operator: String! """ The pattern to match with. """ pattern: String! } """ A git ref for a commit to be appended to. The ref must be a branch, i.e. its fully qualified name must start with `refs/heads/` (although the input is not required to be fully qualified). The Ref may be specified by its global node ID or by the `repositoryNameWithOwner` and `branchName`. ### Examples Specify a branch using a global node ID: { "id": "MDM6UmVmMTpyZWZzL2hlYWRzL21haW4=" } Specify a branch using `repositoryNameWithOwner` and `branchName`: { "repositoryNameWithOwner": "github/graphql-client", "branchName": "main" } """ input CommittableBranch { """ The unqualified name of the branch to append the commit to. """ branchName: String """ The Node ID of the Ref to be updated. """ id: ID """ The nameWithOwner of the repository to commit to. """ repositoryNameWithOwner: String } """ Parameters to be used for the committer_email_pattern rule """ type CommitterEmailPatternParameters { """ How this rule will appear to users. """ name: String """ If true, the rule will fail if the pattern matches. """ negate: Boolean! """ The operator to use for matching. """ operator: String! """ The pattern to match with. """ pattern: String! } """ Parameters to be used for the committer_email_pattern rule """ input CommitterEmailPatternParametersInput { """ How this rule will appear to users. """ name: String """ If true, the rule will fail if the pattern matches. """ negate: Boolean """ The operator to use for matching. """ operator: String! """ The pattern to match with. """ pattern: String! } """ Represents a comparison between two commit revisions. """ type Comparison implements Node { """ The number of commits ahead of the base branch. """ aheadBy: Int! """ The base revision of this comparison. """ baseTarget: GitObject! """ The number of commits behind the base branch. """ behindBy: Int! """ The commits which compose this comparison. """ commits( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): ComparisonCommitConnection! """ The head revision of this comparison. """ headTarget: GitObject! """ The Node ID of the Comparison object """ id: ID! """ The status of this comparison. """ status: ComparisonStatus! } """ The connection type for Commit. """ type ComparisonCommitConnection { """ The total count of authors and co-authors across all commits. """ authorCount: Int! """ A list of edges. """ edges: [CommitEdge] """ A list of nodes. """ nodes: [Commit] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ The status of a git comparison between two refs. """ enum ComparisonStatus { """ The head ref is ahead of the base ref. """ AHEAD """ The head ref is behind the base ref. """ BEHIND """ The head ref is both ahead and behind of the base ref, indicating git history has diverged. """ DIVERGED """ The head ref and base ref are identical. """ IDENTICAL } """ Represents a 'connected' event on a given issue or pull request. """ type ConnectedEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the ConnectedEvent object """ id: ID! """ Reference originated in a different repository. """ isCrossRepository: Boolean! """ Issue or pull request that made the reference. """ source: ReferencedSubject! """ Issue or pull request which was connected. """ subject: ReferencedSubject! } """ The Contributing Guidelines for a repository. """ type ContributingGuidelines { """ The body of the Contributing Guidelines. """ body: String """ The HTTP path for the Contributing Guidelines. """ resourcePath: URI """ The HTTP URL for the Contributing Guidelines. """ url: URI } """ Represents a contribution a user made on GitHub, such as opening an issue. """ interface Contribution { """ Whether this contribution is associated with a record you do not have access to. For example, your own 'first issue' contribution may have been made on a repository you can no longer access. """ isRestricted: Boolean! """ When this contribution was made. """ occurredAt: DateTime! """ The HTTP path for this contribution. """ resourcePath: URI! """ The HTTP URL for this contribution. """ url: URI! """ The user who made this contribution. """ user: User! } """ A calendar of contributions made on GitHub by a user. """ type ContributionCalendar { """ A list of hex color codes used in this calendar. The darker the color, the more contributions it represents. """ colors: [String!]! """ Determine if the color set was chosen because it's currently Halloween. """ isHalloween: Boolean! """ A list of the months of contributions in this calendar. """ months: [ContributionCalendarMonth!]! """ The count of total contributions in the calendar. """ totalContributions: Int! """ A list of the weeks of contributions in this calendar. """ weeks: [ContributionCalendarWeek!]! } """ Represents a single day of contributions on GitHub by a user. """ type ContributionCalendarDay { """ The hex color code that represents how many contributions were made on this day compared to others in the calendar. """ color: String! """ How many contributions were made by the user on this day. """ contributionCount: Int! """ Indication of contributions, relative to other days. Can be used to indicate which color to represent this day on a calendar. """ contributionLevel: ContributionLevel! """ The day this square represents. """ date: Date! """ A number representing which day of the week this square represents, e.g., 1 is Monday. """ weekday: Int! } """ A month of contributions in a user's contribution graph. """ type ContributionCalendarMonth { """ The date of the first day of this month. """ firstDay: Date! """ The name of the month. """ name: String! """ How many weeks started in this month. """ totalWeeks: Int! """ The year the month occurred in. """ year: Int! } """ A week of contributions in a user's contribution graph. """ type ContributionCalendarWeek { """ The days of contributions in this week. """ contributionDays: [ContributionCalendarDay!]! """ The date of the earliest square in this week. """ firstDay: Date! } """ Varying levels of contributions from none to many. """ enum ContributionLevel { """ Lowest 25% of days of contributions. """ FIRST_QUARTILE """ Highest 25% of days of contributions. More contributions than the third quartile. """ FOURTH_QUARTILE """ No contributions occurred. """ NONE """ Second lowest 25% of days of contributions. More contributions than the first quartile. """ SECOND_QUARTILE """ Second highest 25% of days of contributions. More contributions than second quartile, less than the fourth quartile. """ THIRD_QUARTILE } """ Ordering options for contribution connections. """ input ContributionOrder { """ The ordering direction. """ direction: OrderDirection! } """ A contributions collection aggregates contributions such as opened issues and commits created by a user. """ type ContributionsCollection { """ Commit contributions made by the user, grouped by repository. """ commitContributionsByRepository( """ How many repositories should be included. """ maxRepositories: Int = 25 ): [CommitContributionsByRepository!]! """ A calendar of this user's contributions on GitHub. """ contributionCalendar: ContributionCalendar! """ The years the user has been making contributions with the most recent year first. """ contributionYears: [Int!]! """ Determine if this collection's time span ends in the current month. """ doesEndInCurrentMonth: Boolean! """ The date of the first restricted contribution the user made in this time period. Can only be non-null when the user has enabled private contribution counts. """ earliestRestrictedContributionDate: Date """ The ending date and time of this collection. """ endedAt: DateTime! """ The first issue the user opened on GitHub. This will be null if that issue was opened outside the collection's time range and ignoreTimeRange is false. If the issue is not visible but the user has opted to show private contributions, a RestrictedContribution will be returned. """ firstIssueContribution: CreatedIssueOrRestrictedContribution """ The first pull request the user opened on GitHub. This will be null if that pull request was opened outside the collection's time range and ignoreTimeRange is not true. If the pull request is not visible but the user has opted to show private contributions, a RestrictedContribution will be returned. """ firstPullRequestContribution: CreatedPullRequestOrRestrictedContribution """ The first repository the user created on GitHub. This will be null if that first repository was created outside the collection's time range and ignoreTimeRange is false. If the repository is not visible, then a RestrictedContribution is returned. """ firstRepositoryContribution: CreatedRepositoryOrRestrictedContribution """ Does the user have any more activity in the timeline that occurred prior to the collection's time range? """ hasActivityInThePast: Boolean! """ Determine if there are any contributions in this collection. """ hasAnyContributions: Boolean! """ Determine if the user made any contributions in this time frame whose details are not visible because they were made in a private repository. Can only be true if the user enabled private contribution counts. """ hasAnyRestrictedContributions: Boolean! """ Whether or not the collector's time span is all within the same day. """ isSingleDay: Boolean! """ A list of issues the user opened. """ issueContributions( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Should the user's first issue ever be excluded from the result. """ excludeFirst: Boolean = false """ Should the user's most commented issue be excluded from the result. """ excludePopular: Boolean = false """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for contributions returned from the connection. """ orderBy: ContributionOrder = {direction: DESC} ): CreatedIssueContributionConnection! """ Issue contributions made by the user, grouped by repository. """ issueContributionsByRepository( """ Should the user's first issue ever be excluded from the result. """ excludeFirst: Boolean = false """ Should the user's most commented issue be excluded from the result. """ excludePopular: Boolean = false """ How many repositories should be included. """ maxRepositories: Int = 25 ): [IssueContributionsByRepository!]! """ When the user signed up for GitHub. This will be null if that sign up date falls outside the collection's time range and ignoreTimeRange is false. """ joinedGitHubContribution: JoinedGitHubContribution """ The date of the most recent restricted contribution the user made in this time period. Can only be non-null when the user has enabled private contribution counts. """ latestRestrictedContributionDate: Date """ When this collection's time range does not include any activity from the user, use this to get a different collection from an earlier time range that does have activity. """ mostRecentCollectionWithActivity: ContributionsCollection """ Returns a different contributions collection from an earlier time range than this one that does not have any contributions. """ mostRecentCollectionWithoutActivity: ContributionsCollection """ The issue the user opened on GitHub that received the most comments in the specified time frame. """ popularIssueContribution: CreatedIssueContribution """ The pull request the user opened on GitHub that received the most comments in the specified time frame. """ popularPullRequestContribution: CreatedPullRequestContribution """ Pull request contributions made by the user. """ pullRequestContributions( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Should the user's first pull request ever be excluded from the result. """ excludeFirst: Boolean = false """ Should the user's most commented pull request be excluded from the result. """ excludePopular: Boolean = false """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for contributions returned from the connection. """ orderBy: ContributionOrder = {direction: DESC} ): CreatedPullRequestContributionConnection! """ Pull request contributions made by the user, grouped by repository. """ pullRequestContributionsByRepository( """ Should the user's first pull request ever be excluded from the result. """ excludeFirst: Boolean = false """ Should the user's most commented pull request be excluded from the result. """ excludePopular: Boolean = false """ How many repositories should be included. """ maxRepositories: Int = 25 ): [PullRequestContributionsByRepository!]! """ Pull request review contributions made by the user. Returns the most recently submitted review for each PR reviewed by the user. """ pullRequestReviewContributions( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for contributions returned from the connection. """ orderBy: ContributionOrder = {direction: DESC} ): CreatedPullRequestReviewContributionConnection! """ Pull request review contributions made by the user, grouped by repository. """ pullRequestReviewContributionsByRepository( """ How many repositories should be included. """ maxRepositories: Int = 25 ): [PullRequestReviewContributionsByRepository!]! """ A list of repositories owned by the user that the user created in this time range. """ repositoryContributions( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Should the user's first repository ever be excluded from the result. """ excludeFirst: Boolean = false """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for contributions returned from the connection. """ orderBy: ContributionOrder = {direction: DESC} ): CreatedRepositoryContributionConnection! """ A count of contributions made by the user that the viewer cannot access. Only non-zero when the user has chosen to share their private contribution counts. """ restrictedContributionsCount: Int! """ The beginning date and time of this collection. """ startedAt: DateTime! """ How many commits were made by the user in this time span. """ totalCommitContributions: Int! """ How many issues the user opened. """ totalIssueContributions( """ Should the user's first issue ever be excluded from this count. """ excludeFirst: Boolean = false """ Should the user's most commented issue be excluded from this count. """ excludePopular: Boolean = false ): Int! """ How many pull requests the user opened. """ totalPullRequestContributions( """ Should the user's first pull request ever be excluded from this count. """ excludeFirst: Boolean = false """ Should the user's most commented pull request be excluded from this count. """ excludePopular: Boolean = false ): Int! """ How many pull request reviews the user left. """ totalPullRequestReviewContributions: Int! """ How many different repositories the user committed to. """ totalRepositoriesWithContributedCommits: Int! """ How many different repositories the user opened issues in. """ totalRepositoriesWithContributedIssues( """ Should the user's first issue ever be excluded from this count. """ excludeFirst: Boolean = false """ Should the user's most commented issue be excluded from this count. """ excludePopular: Boolean = false ): Int! """ How many different repositories the user left pull request reviews in. """ totalRepositoriesWithContributedPullRequestReviews: Int! """ How many different repositories the user opened pull requests in. """ totalRepositoriesWithContributedPullRequests( """ Should the user's first pull request ever be excluded from this count. """ excludeFirst: Boolean = false """ Should the user's most commented pull request be excluded from this count. """ excludePopular: Boolean = false ): Int! """ How many repositories the user created. """ totalRepositoryContributions( """ Should the user's first repository ever be excluded from this count. """ excludeFirst: Boolean = false ): Int! """ The user who made the contributions in this collection. """ user: User! } """ Autogenerated input type of ConvertProjectCardNoteToIssue """ input ConvertProjectCardNoteToIssueInput { """ The body of the newly created issue. """ body: String """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ProjectCard ID to convert. """ projectCardId: ID! @possibleTypes(concreteTypes: ["ProjectCard"]) """ The ID of the repository to create the issue in. """ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"]) """ The title of the newly created issue. Defaults to the card's note text. """ title: String } """ Autogenerated return type of ConvertProjectCardNoteToIssue """ type ConvertProjectCardNoteToIssuePayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The updated ProjectCard. """ projectCard: ProjectCard } """ Autogenerated input type of ConvertPullRequestToDraft """ input ConvertPullRequestToDraftInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ ID of the pull request to convert to draft """ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"]) } """ Autogenerated return type of ConvertPullRequestToDraft """ type ConvertPullRequestToDraftPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The pull request that is now a draft. """ pullRequest: PullRequest } """ Represents a 'convert_to_draft' event on a given pull request. """ type ConvertToDraftEvent implements Node & UniformResourceLocatable { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the ConvertToDraftEvent object """ id: ID! """ PullRequest referenced by event. """ pullRequest: PullRequest! """ The HTTP path for this convert to draft event. """ resourcePath: URI! """ The HTTP URL for this convert to draft event. """ url: URI! } """ Represents a 'converted_note_to_issue' event on a given issue or pull request. """ type ConvertedNoteToIssueEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the primary key from the database. """ databaseId: Int """ The Node ID of the ConvertedNoteToIssueEvent object """ id: ID! """ Project referenced by event. """ project: Project @preview(toggledBy: "starfox-preview") """ Project card referenced by this project event. """ projectCard: ProjectCard @preview(toggledBy: "starfox-preview") """ Column name referenced by this project event. """ projectColumnName: String! @preview(toggledBy: "starfox-preview") } """ Represents a 'converted_to_discussion' event on a given issue. """ type ConvertedToDiscussionEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The discussion that the issue was converted into. """ discussion: Discussion """ The Node ID of the ConvertedToDiscussionEvent object """ id: ID! } """ Autogenerated input type of CopyProjectV2 """ input CopyProjectV2Input { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Include draft issues in the new project """ includeDraftIssues: Boolean = false """ The owner ID of the new project. """ ownerId: ID! @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "OrganizationOrUser") """ The ID of the source Project to copy. """ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"]) """ The title of the project. """ title: String! } """ Autogenerated return type of CopyProjectV2 """ type CopyProjectV2Payload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The copied project. """ projectV2: ProjectV2 } """ Autogenerated input type of CreateAttributionInvitation """ input CreateAttributionInvitationInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Node ID of the owner scoping the reattributable data. """ ownerId: ID! @possibleTypes(concreteTypes: ["Bot", "Enterprise", "Mannequin", "Organization", "User"]) """ The Node ID of the account owning the data to reattribute. """ sourceId: ID! @possibleTypes(concreteTypes: ["Bot", "Enterprise", "Mannequin", "Organization", "User"]) """ The Node ID of the account which may claim the data. """ targetId: ID! @possibleTypes(concreteTypes: ["Bot", "Enterprise", "Mannequin", "Organization", "User"]) } """ Autogenerated return type of CreateAttributionInvitation """ type CreateAttributionInvitationPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The owner scoping the reattributable data. """ owner: Organization """ The account owning the data to reattribute. """ source: Claimable """ The account which may claim the data. """ target: Claimable } """ Autogenerated input type of CreateBranchProtectionRule """ input CreateBranchProtectionRuleInput { """ Can this branch be deleted. """ allowsDeletions: Boolean """ Are force pushes allowed on this branch. """ allowsForcePushes: Boolean """ Is branch creation a protected operation. """ blocksCreations: Boolean """ A list of User, Team, or App IDs allowed to bypass force push targeting matching branches. """ bypassForcePushActorIds: [ID!] """ A list of User, Team, or App IDs allowed to bypass pull requests targeting matching branches. """ bypassPullRequestActorIds: [ID!] """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Will new commits pushed to matching branches dismiss pull request review approvals. """ dismissesStaleReviews: Boolean """ Can admins override branch protection. """ isAdminEnforced: Boolean """ Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. """ lockAllowsFetchAndMerge: Boolean """ Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. """ lockBranch: Boolean """ The glob-like pattern used to determine matching branches. """ pattern: String! """ A list of User, Team, or App IDs allowed to push to matching branches. """ pushActorIds: [ID!] """ The global relay id of the repository in which a new branch protection rule should be created in. """ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"]) """ Whether the most recent push must be approved by someone other than the person who pushed it """ requireLastPushApproval: Boolean """ Number of approving reviews required to update matching branches. """ requiredApprovingReviewCount: Int """ The list of required deployment environments """ requiredDeploymentEnvironments: [String!] """ List of required status check contexts that must pass for commits to be accepted to matching branches. """ requiredStatusCheckContexts: [String!] """ The list of required status checks """ requiredStatusChecks: [RequiredStatusCheckInput!] """ Are approving reviews required to update matching branches. """ requiresApprovingReviews: Boolean """ Are reviews from code owners required to update matching branches. """ requiresCodeOwnerReviews: Boolean """ Are commits required to be signed. """ requiresCommitSignatures: Boolean """ Are conversations required to be resolved before merging. """ requiresConversationResolution: Boolean """ Are successful deployments required before merging. """ requiresDeployments: Boolean """ Are merge commits prohibited from being pushed to this branch. """ requiresLinearHistory: Boolean """ Are status checks required to update matching branches. """ requiresStatusChecks: Boolean """ Are branches required to be up to date before merging. """ requiresStrictStatusChecks: Boolean """ Is pushing to matching branches restricted. """ restrictsPushes: Boolean """ Is dismissal of pull request reviews restricted. """ restrictsReviewDismissals: Boolean """ A list of User, Team, or App IDs allowed to dismiss reviews on pull requests targeting matching branches. """ reviewDismissalActorIds: [ID!] } """ Autogenerated return type of CreateBranchProtectionRule """ type CreateBranchProtectionRulePayload { """ The newly created BranchProtectionRule. """ branchProtectionRule: BranchProtectionRule """ A unique identifier for the client performing the mutation. """ clientMutationId: String } """ Autogenerated input type of CreateCheckRun """ input CreateCheckRunInput { """ Possible further actions the integrator can perform, which a user may trigger. """ actions: [CheckRunAction!] """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The time that the check run finished. """ completedAt: DateTime """ The final conclusion of the check. """ conclusion: CheckConclusionState """ The URL of the integrator's site that has the full details of the check. """ detailsUrl: URI """ A reference for the run on the integrator's system. """ externalId: String """ The SHA of the head commit. """ headSha: GitObjectID! """ The name of the check. """ name: String! """ Descriptive details about the run. """ output: CheckRunOutput """ The node ID of the repository. """ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"]) """ The time that the check run began. """ startedAt: DateTime """ The current status. """ status: RequestableCheckStatusState } """ Autogenerated return type of CreateCheckRun """ type CreateCheckRunPayload { """ The newly created check run. """ checkRun: CheckRun """ A unique identifier for the client performing the mutation. """ clientMutationId: String } """ Autogenerated input type of CreateCheckSuite """ input CreateCheckSuiteInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The SHA of the head commit. """ headSha: GitObjectID! """ The Node ID of the repository. """ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"]) } """ Autogenerated return type of CreateCheckSuite """ type CreateCheckSuitePayload { """ The newly created check suite. """ checkSuite: CheckSuite """ A unique identifier for the client performing the mutation. """ clientMutationId: String } """ Autogenerated input type of CreateCommitOnBranch """ input CreateCommitOnBranchInput { """ The Ref to be updated. Must be a branch. """ branch: CommittableBranch! """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The git commit oid expected at the head of the branch prior to the commit """ expectedHeadOid: GitObjectID! """ A description of changes to files in this commit. """ fileChanges: FileChanges """ The commit message the be included with the commit. """ message: CommitMessage! } """ Autogenerated return type of CreateCommitOnBranch """ type CreateCommitOnBranchPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The new commit. """ commit: Commit """ The ref which has been updated to point to the new commit. """ ref: Ref } """ Autogenerated input type of CreateDeployment """ input CreateDeploymentInput @preview(toggledBy: "flash-preview") { """ Attempt to automatically merge the default branch into the requested ref, defaults to true. """ autoMerge: Boolean = true """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Short description of the deployment. """ description: String = "" """ Name for the target deployment environment. """ environment: String = "production" """ JSON payload with extra information about the deployment. """ payload: String = "{}" """ The node ID of the ref to be deployed. """ refId: ID! @possibleTypes(concreteTypes: ["Ref"]) """ The node ID of the repository. """ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"]) """ The status contexts to verify against commit status checks. To bypass required contexts, pass an empty array. Defaults to all unique contexts. """ requiredContexts: [String!] """ Specifies a task to execute. """ task: String = "deploy" } """ Autogenerated return type of CreateDeployment """ type CreateDeploymentPayload @preview(toggledBy: "flash-preview") { """ True if the default branch has been auto-merged into the deployment ref. """ autoMerged: Boolean """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The new deployment. """ deployment: Deployment } """ Autogenerated input type of CreateDeploymentStatus """ input CreateDeploymentStatusInput @preview(toggledBy: "flash-preview") { """ Adds a new inactive status to all non-transient, non-production environment deployments with the same repository and environment name as the created status's deployment. """ autoInactive: Boolean = true """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The node ID of the deployment. """ deploymentId: ID! @possibleTypes(concreteTypes: ["Deployment"]) """ A short description of the status. Maximum length of 140 characters. """ description: String = "" """ If provided, updates the environment of the deploy. Otherwise, does not modify the environment. """ environment: String """ Sets the URL for accessing your environment. """ environmentUrl: String = "" """ The log URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. """ logUrl: String = "" """ The state of the deployment. """ state: DeploymentStatusState! } """ Autogenerated return type of CreateDeploymentStatus """ type CreateDeploymentStatusPayload @preview(toggledBy: "flash-preview") { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The new deployment status. """ deploymentStatus: DeploymentStatus } """ Autogenerated input type of CreateDiscussion """ input CreateDiscussionInput { """ The body of the discussion. """ body: String! """ The id of the discussion category to associate with this discussion. """ categoryId: ID! @possibleTypes(concreteTypes: ["DiscussionCategory"]) """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The id of the repository on which to create the discussion. """ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"]) """ The title of the discussion. """ title: String! } """ Autogenerated return type of CreateDiscussion """ type CreateDiscussionPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The discussion that was just created. """ discussion: Discussion } """ Autogenerated input type of CreateEnterpriseOrganization """ input CreateEnterpriseOrganizationInput { """ The logins for the administrators of the new organization. """ adminLogins: [String!]! """ The email used for sending billing receipts. """ billingEmail: String! """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the enterprise owning the new organization. """ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) """ The login of the new organization. """ login: String! """ The profile name of the new organization. """ profileName: String! } """ Autogenerated return type of CreateEnterpriseOrganization """ type CreateEnterpriseOrganizationPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The enterprise that owns the created organization. """ enterprise: Enterprise """ The organization that was created. """ organization: Organization } """ Autogenerated input type of CreateEnvironment """ input CreateEnvironmentInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The name of the environment. """ name: String! """ The node ID of the repository. """ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"]) } """ Autogenerated return type of CreateEnvironment """ type CreateEnvironmentPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The new or existing environment. """ environment: Environment } """ Autogenerated input type of CreateIpAllowListEntry """ input CreateIpAllowListEntryInput { """ An IP address or range of addresses in CIDR notation. """ allowListValue: String! """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Whether the IP allow list entry is active when an IP allow list is enabled. """ isActive: Boolean! """ An optional name for the IP allow list entry. """ name: String """ The ID of the owner for which to create the new IP allow list entry. """ ownerId: ID! @possibleTypes(concreteTypes: ["App", "Enterprise", "Organization"], abstractType: "IpAllowListOwner") } """ Autogenerated return type of CreateIpAllowListEntry """ type CreateIpAllowListEntryPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The IP allow list entry that was created. """ ipAllowListEntry: IpAllowListEntry } """ Autogenerated input type of CreateIssue """ input CreateIssueInput { """ The Node ID for the user assignee for this issue. """ assigneeIds: [ID!] @possibleTypes(concreteTypes: ["User"]) """ The body for the issue description. """ body: String """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The name of an issue template in the repository, assigns labels and assignees from the template to the issue """ issueTemplate: String """ An array of Node IDs of labels for this issue. """ labelIds: [ID!] @possibleTypes(concreteTypes: ["Label"]) """ The Node ID of the milestone for this issue. """ milestoneId: ID @possibleTypes(concreteTypes: ["Milestone"]) """ An array of Node IDs for projects associated with this issue. """ projectIds: [ID!] @possibleTypes(concreteTypes: ["Project"]) """ The Node ID of the repository. """ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"]) """ The title for the issue. """ title: String! } """ Autogenerated return type of CreateIssue """ type CreateIssuePayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The new issue. """ issue: Issue } """ Autogenerated input type of CreateLabel """ input CreateLabelInput @preview(toggledBy: "bane-preview") { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ A 6 character hex code, without the leading #, identifying the color of the label. """ color: String! """ A brief description of the label, such as its purpose. """ description: String """ The name of the label. """ name: String! """ The Node ID of the repository. """ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"]) } """ Autogenerated return type of CreateLabel """ type CreateLabelPayload @preview(toggledBy: "bane-preview") { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The new label. """ label: Label } """ Autogenerated input type of CreateLinkedBranch """ input CreateLinkedBranchInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ ID of the issue to link to. """ issueId: ID! @possibleTypes(concreteTypes: ["Issue"]) """ The name of the new branch. Defaults to issue number and title. """ name: String """ The commit SHA to base the new branch on. """ oid: GitObjectID! """ ID of the repository to create the branch in. Defaults to the issue repository. """ repositoryId: ID @possibleTypes(concreteTypes: ["Repository"]) } """ Autogenerated return type of CreateLinkedBranch """ type CreateLinkedBranchPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The issue that was linked to. """ issue: Issue """ The new branch issue reference. """ linkedBranch: LinkedBranch } """ Autogenerated input type of CreateMigrationSource """ input CreateMigrationSourceInput { """ The migration source access token. """ accessToken: String """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The GitHub personal access token of the user importing to the target repository. """ githubPat: String """ The migration source name. """ name: String! """ The ID of the organization that will own the migration source. """ ownerId: ID! @possibleTypes(concreteTypes: ["Organization"]) """ The migration source type. """ type: MigrationSourceType! """ The migration source URL, for example `https://github.com` or `https://monalisa.ghe.com`. """ url: String } """ Autogenerated return type of CreateMigrationSource """ type CreateMigrationSourcePayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The created migration source. """ migrationSource: MigrationSource } """ Autogenerated input type of CreateProject """ input CreateProjectInput { """ The description of project. """ body: String """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The name of project. """ name: String! """ The owner ID to create the project under. """ ownerId: ID! @possibleTypes(concreteTypes: ["Organization", "Repository", "User"], abstractType: "ProjectOwner") """ A list of repository IDs to create as linked repositories for the project """ repositoryIds: [ID!] @possibleTypes(concreteTypes: ["Repository"]) """ The name of the GitHub-provided template. """ template: ProjectTemplate } """ Autogenerated return type of CreateProject """ type CreateProjectPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The new project. """ project: Project } """ Autogenerated input type of CreateProjectV2Field """ input CreateProjectV2FieldInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The data type of the field. """ dataType: ProjectV2CustomFieldType! """ The name of the field. """ name: String! """ The ID of the Project to create the field in. """ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"]) """ Options for a single select field. At least one value is required if data_type is SINGLE_SELECT """ singleSelectOptions: [ProjectV2SingleSelectFieldOptionInput!] } """ Autogenerated return type of CreateProjectV2Field """ type CreateProjectV2FieldPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The new field. """ projectV2Field: ProjectV2FieldConfiguration } """ Autogenerated input type of CreateProjectV2 """ input CreateProjectV2Input { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The owner ID to create the project under. """ ownerId: ID! @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "OrganizationOrUser") """ The repository to link the project to. """ repositoryId: ID @possibleTypes(concreteTypes: ["Repository"]) """ The team to link the project to. The team will be granted read permissions. """ teamId: ID @possibleTypes(concreteTypes: ["Team"]) """ The title of the project. """ title: String! } """ Autogenerated return type of CreateProjectV2 """ type CreateProjectV2Payload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The new project. """ projectV2: ProjectV2 } """ Autogenerated input type of CreatePullRequest """ input CreatePullRequestInput { """ The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository. """ baseRefName: String! """ The contents of the pull request. """ body: String """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Indicates whether this pull request should be a draft. """ draft: Boolean = false """ The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head_ref_name` with a user like this: `username:branch`. """ headRefName: String! """ The Node ID of the head repository. """ headRepositoryId: ID @possibleTypes(concreteTypes: ["Repository"]) """ Indicates whether maintainers can modify the pull request. """ maintainerCanModify: Boolean = true """ The Node ID of the repository. """ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"]) """ The title of the pull request. """ title: String! } """ Autogenerated return type of CreatePullRequest """ type CreatePullRequestPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The new pull request. """ pullRequest: PullRequest } """ Autogenerated input type of CreateRef """ input CreateRefInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The fully qualified name of the new Ref (ie: `refs/heads/my_new_branch`). """ name: String! """ The GitObjectID that the new Ref shall target. Must point to a commit. """ oid: GitObjectID! """ The Node ID of the Repository to create the Ref in. """ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"]) } """ Autogenerated return type of CreateRef """ type CreateRefPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The newly created ref. """ ref: Ref } """ Autogenerated input type of CreateRepository """ input CreateRepositoryInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ A short description of the new repository. """ description: String """ Indicates if the repository should have the issues feature enabled. """ hasIssuesEnabled: Boolean = true """ Indicates if the repository should have the wiki feature enabled. """ hasWikiEnabled: Boolean = false """ The URL for a web page about this repository. """ homepageUrl: URI """ The name of the new repository. """ name: String! """ The ID of the owner for the new repository. """ ownerId: ID @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "RepositoryOwner") """ When an organization is specified as the owner, this ID identifies the team that should be granted access to the new repository. """ teamId: ID @possibleTypes(concreteTypes: ["Team"]) """ Whether this repository should be marked as a template such that anyone who can access it can create new repositories with the same files and directory structure. """ template: Boolean = false """ Indicates the repository's visibility level. """ visibility: RepositoryVisibility! } """ Autogenerated return type of CreateRepository """ type CreateRepositoryPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The new repository. """ repository: Repository } """ Autogenerated input type of CreateRepositoryRuleset """ input CreateRepositoryRulesetInput { """ A list of actors that are allowed to bypass rules in this ruleset. """ bypassActors: [RepositoryRulesetBypassActorInput!] """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The set of conditions for this ruleset """ conditions: RepositoryRuleConditionsInput! """ The enforcement level for this ruleset """ enforcement: RuleEnforcement! """ The name of the ruleset. """ name: String! """ The list of rules for this ruleset """ rules: [RepositoryRuleInput!] """ The global relay id of the source in which a new ruleset should be created in. """ sourceId: ID! @possibleTypes(concreteTypes: ["Organization", "Repository"], abstractType: "RuleSource") """ The target of the ruleset. """ target: RepositoryRulesetTarget } """ Autogenerated return type of CreateRepositoryRuleset """ type CreateRepositoryRulesetPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The newly created Ruleset. """ ruleset: RepositoryRuleset } """ Autogenerated input type of CreateSponsorsListing """ input CreateSponsorsListingInput { """ The country or region where the sponsorable's bank account is located. Required if fiscalHostLogin is not specified, ignored when fiscalHostLogin is specified. """ billingCountryOrRegionCode: SponsorsCountryOrRegionCode """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The email address we should use to contact you about the GitHub Sponsors profile being created. This will not be shared publicly. Must be a verified email address already on your GitHub account. Only relevant when the sponsorable is yourself. Defaults to your primary email address on file if omitted. """ contactEmail: String """ The username of the supported fiscal host's GitHub organization, if you want to receive sponsorship payouts through a fiscal host rather than directly to a bank account. For example, 'Open-Source-Collective' for Open Source Collective or 'numfocus' for numFOCUS. Case insensitive. See https://docs.github.com/sponsors/receiving-sponsorships-through-github-sponsors/using-a-fiscal-host-to-receive-github-sponsors-payouts for more information. """ fiscalHostLogin: String """ The URL for your profile page on the fiscal host's website, e.g., https://opencollective.com/babel or https://numfocus.org/project/bokeh. Required if fiscalHostLogin is specified. """ fiscallyHostedProjectProfileUrl: String """ Provide an introduction to serve as the main focus that appears on your GitHub Sponsors profile. It's a great opportunity to help potential sponsors learn more about you, your work, and why their sponsorship is important to you. GitHub-flavored Markdown is supported. """ fullDescription: String """ The country or region where the sponsorable resides. This is for tax purposes. Required if the sponsorable is yourself, ignored when sponsorableLogin specifies an organization. """ residenceCountryOrRegionCode: SponsorsCountryOrRegionCode """ The username of the organization to create a GitHub Sponsors profile for, if desired. Defaults to creating a GitHub Sponsors profile for the authenticated user if omitted. """ sponsorableLogin: String } """ Autogenerated return type of CreateSponsorsListing """ type CreateSponsorsListingPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The new GitHub Sponsors profile. """ sponsorsListing: SponsorsListing } """ Autogenerated input type of CreateSponsorsTier """ input CreateSponsorsTierInput { """ The value of the new tier in US dollars. Valid values: 1-12000. """ amount: Int! """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ A description of what this tier is, what perks sponsors might receive, what a sponsorship at this tier means for you, etc. """ description: String! """ Whether sponsorships using this tier should happen monthly/yearly or just once. """ isRecurring: Boolean = true """ Whether to make the tier available immediately for sponsors to choose. Defaults to creating a draft tier that will not be publicly visible. """ publish: Boolean = false """ Optional ID of the private repository that sponsors at this tier should gain read-only access to. Must be owned by an organization. """ repositoryId: ID @possibleTypes(concreteTypes: ["Repository"]) """ Optional name of the private repository that sponsors at this tier should gain read-only access to. Must be owned by an organization. Necessary if repositoryOwnerLogin is given. Will be ignored if repositoryId is given. """ repositoryName: String """ Optional login of the organization owner of the private repository that sponsors at this tier should gain read-only access to. Necessary if repositoryName is given. Will be ignored if repositoryId is given. """ repositoryOwnerLogin: String """ The ID of the user or organization who owns the GitHub Sponsors profile. Defaults to the current user if omitted and sponsorableLogin is not given. """ sponsorableId: ID @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "Sponsorable") """ The username of the user or organization who owns the GitHub Sponsors profile. Defaults to the current user if omitted and sponsorableId is not given. """ sponsorableLogin: String """ Optional message new sponsors at this tier will receive. """ welcomeMessage: String } """ Autogenerated return type of CreateSponsorsTier """ type CreateSponsorsTierPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The new tier. """ sponsorsTier: SponsorsTier } """ Autogenerated input type of CreateSponsorship """ input CreateSponsorshipInput { """ The amount to pay to the sponsorable in US dollars. Required if a tierId is not specified. Valid values: 1-12000. """ amount: Int """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Whether the sponsorship should happen monthly/yearly or just this one time. Required if a tierId is not specified. """ isRecurring: Boolean """ Specify whether others should be able to see that the sponsor is sponsoring the sponsorable. Public visibility still does not reveal which tier is used. """ privacyLevel: SponsorshipPrivacy = PUBLIC """ Whether the sponsor should receive email updates from the sponsorable. """ receiveEmails: Boolean = true """ The ID of the user or organization who is acting as the sponsor, paying for the sponsorship. Required if sponsorLogin is not given. """ sponsorId: ID @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "Sponsor") """ The username of the user or organization who is acting as the sponsor, paying for the sponsorship. Required if sponsorId is not given. """ sponsorLogin: String """ The ID of the user or organization who is receiving the sponsorship. Required if sponsorableLogin is not given. """ sponsorableId: ID @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "Sponsorable") """ The username of the user or organization who is receiving the sponsorship. Required if sponsorableId is not given. """ sponsorableLogin: String """ The ID of one of sponsorable's existing tiers to sponsor at. Required if amount is not specified. """ tierId: ID @possibleTypes(concreteTypes: ["SponsorsTier"]) } """ Autogenerated return type of CreateSponsorship """ type CreateSponsorshipPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The sponsorship that was started. """ sponsorship: Sponsorship } """ Autogenerated input type of CreateSponsorships """ input CreateSponsorshipsInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Specify whether others should be able to see that the sponsor is sponsoring the sponsorables. Public visibility still does not reveal the dollar value of the sponsorship. """ privacyLevel: SponsorshipPrivacy = PUBLIC """ Whether the sponsor should receive email updates from the sponsorables. """ receiveEmails: Boolean = false """ The username of the user or organization who is acting as the sponsor, paying for the sponsorships. """ sponsorLogin: String! """ The list of maintainers to sponsor and for how much apiece. """ sponsorships: [BulkSponsorship!]! } """ Autogenerated return type of CreateSponsorships """ type CreateSponsorshipsPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The users and organizations who received a sponsorship. """ sponsorables: [Sponsorable!] } """ Autogenerated input type of CreateTeamDiscussionComment """ input CreateTeamDiscussionCommentInput { """ The content of the comment. This field is required. **Upcoming Change on 2024-07-01 UTC** **Description:** `body` will be removed. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. **Reason:** The Team Discussions feature is deprecated in favor of Organization Discussions. """ body: String """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the discussion to which the comment belongs. This field is required. **Upcoming Change on 2024-07-01 UTC** **Description:** `discussionId` will be removed. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. **Reason:** The Team Discussions feature is deprecated in favor of Organization Discussions. """ discussionId: ID @possibleTypes(concreteTypes: ["TeamDiscussion"]) } """ Autogenerated return type of CreateTeamDiscussionComment """ type CreateTeamDiscussionCommentPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The new comment. """ teamDiscussionComment: TeamDiscussionComment @deprecated( reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." ) } """ Autogenerated input type of CreateTeamDiscussion """ input CreateTeamDiscussionInput { """ The content of the discussion. This field is required. **Upcoming Change on 2024-07-01 UTC** **Description:** `body` will be removed. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. **Reason:** The Team Discussions feature is deprecated in favor of Organization Discussions. """ body: String """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ If true, restricts the visibility of this discussion to team members and organization owners. If false or not specified, allows any organization member to view this discussion. **Upcoming Change on 2024-07-01 UTC** **Description:** `private` will be removed. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. **Reason:** The Team Discussions feature is deprecated in favor of Organization Discussions. """ private: Boolean """ The ID of the team to which the discussion belongs. This field is required. **Upcoming Change on 2024-07-01 UTC** **Description:** `teamId` will be removed. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. **Reason:** The Team Discussions feature is deprecated in favor of Organization Discussions. """ teamId: ID @possibleTypes(concreteTypes: ["Team"]) """ The title of the discussion. This field is required. **Upcoming Change on 2024-07-01 UTC** **Description:** `title` will be removed. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. **Reason:** The Team Discussions feature is deprecated in favor of Organization Discussions. """ title: String } """ Autogenerated return type of CreateTeamDiscussion """ type CreateTeamDiscussionPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The new discussion. """ teamDiscussion: TeamDiscussion @deprecated( reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." ) } """ Autogenerated input type of CreateUserList """ input CreateUserListInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ A description of the list """ description: String """ Whether or not the list is private """ isPrivate: Boolean = false """ The name of the new list """ name: String! } """ Autogenerated return type of CreateUserList """ type CreateUserListPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The list that was just created """ list: UserList """ The user who created the list """ viewer: User } """ Represents the contribution a user made by committing to a repository. """ type CreatedCommitContribution implements Contribution { """ How many commits were made on this day to this repository by the user. """ commitCount: Int! """ Whether this contribution is associated with a record you do not have access to. For example, your own 'first issue' contribution may have been made on a repository you can no longer access. """ isRestricted: Boolean! """ When this contribution was made. """ occurredAt: DateTime! """ The repository the user made a commit in. """ repository: Repository! """ The HTTP path for this contribution. """ resourcePath: URI! """ The HTTP URL for this contribution. """ url: URI! """ The user who made this contribution. """ user: User! } """ The connection type for CreatedCommitContribution. """ type CreatedCommitContributionConnection { """ A list of edges. """ edges: [CreatedCommitContributionEdge] """ A list of nodes. """ nodes: [CreatedCommitContribution] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of commits across days and repositories in the connection. """ totalCount: Int! } """ An edge in a connection. """ type CreatedCommitContributionEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: CreatedCommitContribution } """ Represents the contribution a user made on GitHub by opening an issue. """ type CreatedIssueContribution implements Contribution { """ Whether this contribution is associated with a record you do not have access to. For example, your own 'first issue' contribution may have been made on a repository you can no longer access. """ isRestricted: Boolean! """ The issue that was opened. """ issue: Issue! """ When this contribution was made. """ occurredAt: DateTime! """ The HTTP path for this contribution. """ resourcePath: URI! """ The HTTP URL for this contribution. """ url: URI! """ The user who made this contribution. """ user: User! } """ The connection type for CreatedIssueContribution. """ type CreatedIssueContributionConnection { """ A list of edges. """ edges: [CreatedIssueContributionEdge] """ A list of nodes. """ nodes: [CreatedIssueContribution] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type CreatedIssueContributionEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: CreatedIssueContribution } """ Represents either a issue the viewer can access or a restricted contribution. """ union CreatedIssueOrRestrictedContribution = CreatedIssueContribution | RestrictedContribution """ Represents the contribution a user made on GitHub by opening a pull request. """ type CreatedPullRequestContribution implements Contribution { """ Whether this contribution is associated with a record you do not have access to. For example, your own 'first issue' contribution may have been made on a repository you can no longer access. """ isRestricted: Boolean! """ When this contribution was made. """ occurredAt: DateTime! """ The pull request that was opened. """ pullRequest: PullRequest! """ The HTTP path for this contribution. """ resourcePath: URI! """ The HTTP URL for this contribution. """ url: URI! """ The user who made this contribution. """ user: User! } """ The connection type for CreatedPullRequestContribution. """ type CreatedPullRequestContributionConnection { """ A list of edges. """ edges: [CreatedPullRequestContributionEdge] """ A list of nodes. """ nodes: [CreatedPullRequestContribution] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type CreatedPullRequestContributionEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: CreatedPullRequestContribution } """ Represents either a pull request the viewer can access or a restricted contribution. """ union CreatedPullRequestOrRestrictedContribution = CreatedPullRequestContribution | RestrictedContribution """ Represents the contribution a user made by leaving a review on a pull request. """ type CreatedPullRequestReviewContribution implements Contribution { """ Whether this contribution is associated with a record you do not have access to. For example, your own 'first issue' contribution may have been made on a repository you can no longer access. """ isRestricted: Boolean! """ When this contribution was made. """ occurredAt: DateTime! """ The pull request the user reviewed. """ pullRequest: PullRequest! """ The review the user left on the pull request. """ pullRequestReview: PullRequestReview! """ The repository containing the pull request that the user reviewed. """ repository: Repository! """ The HTTP path for this contribution. """ resourcePath: URI! """ The HTTP URL for this contribution. """ url: URI! """ The user who made this contribution. """ user: User! } """ The connection type for CreatedPullRequestReviewContribution. """ type CreatedPullRequestReviewContributionConnection { """ A list of edges. """ edges: [CreatedPullRequestReviewContributionEdge] """ A list of nodes. """ nodes: [CreatedPullRequestReviewContribution] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type CreatedPullRequestReviewContributionEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: CreatedPullRequestReviewContribution } """ Represents the contribution a user made on GitHub by creating a repository. """ type CreatedRepositoryContribution implements Contribution { """ Whether this contribution is associated with a record you do not have access to. For example, your own 'first issue' contribution may have been made on a repository you can no longer access. """ isRestricted: Boolean! """ When this contribution was made. """ occurredAt: DateTime! """ The repository that was created. """ repository: Repository! """ The HTTP path for this contribution. """ resourcePath: URI! """ The HTTP URL for this contribution. """ url: URI! """ The user who made this contribution. """ user: User! } """ The connection type for CreatedRepositoryContribution. """ type CreatedRepositoryContributionConnection { """ A list of edges. """ edges: [CreatedRepositoryContributionEdge] """ A list of nodes. """ nodes: [CreatedRepositoryContribution] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type CreatedRepositoryContributionEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: CreatedRepositoryContribution } """ Represents either a repository the viewer can access or a restricted contribution. """ union CreatedRepositoryOrRestrictedContribution = CreatedRepositoryContribution | RestrictedContribution """ Represents a mention made by one issue or pull request to another. """ type CrossReferencedEvent implements Node & UniformResourceLocatable { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the CrossReferencedEvent object """ id: ID! """ Reference originated in a different repository. """ isCrossRepository: Boolean! """ Identifies when the reference was made. """ referencedAt: DateTime! """ The HTTP path for this pull request. """ resourcePath: URI! """ Issue or pull request that made the reference. """ source: ReferencedSubject! """ Issue or pull request to which the reference was made. """ target: ReferencedSubject! """ The HTTP URL for this pull request. """ url: URI! """ Checks if the target will be closed when the source is merged. """ willCloseTarget: Boolean! } """ An ISO-8601 encoded date string. """ scalar Date """ An ISO-8601 encoded UTC date string. """ scalar DateTime """ Autogenerated input type of DeclineTopicSuggestion """ input DeclineTopicSuggestionInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The name of the suggested topic. """ name: String! """ The reason why the suggested topic is declined. """ reason: TopicSuggestionDeclineReason! """ The Node ID of the repository. """ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"]) } """ Autogenerated return type of DeclineTopicSuggestion """ type DeclineTopicSuggestionPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The declined topic. """ topic: Topic } """ The possible base permissions for repositories. """ enum DefaultRepositoryPermissionField { """ Can read, write, and administrate repos by default """ ADMIN """ No access """ NONE """ Can read repos by default """ READ """ Can read and write repos by default """ WRITE } """ Entities that can be deleted. """ interface Deletable { """ Check if the current viewer can delete this object. """ viewerCanDelete: Boolean! } """ Autogenerated input type of DeleteBranchProtectionRule """ input DeleteBranchProtectionRuleInput { """ The global relay id of the branch protection rule to be deleted. """ branchProtectionRuleId: ID! @possibleTypes(concreteTypes: ["BranchProtectionRule"]) """ A unique identifier for the client performing the mutation. """ clientMutationId: String } """ Autogenerated return type of DeleteBranchProtectionRule """ type DeleteBranchProtectionRulePayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String } """ Autogenerated input type of DeleteDeployment """ input DeleteDeploymentInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Node ID of the deployment to be deleted. """ id: ID! @possibleTypes(concreteTypes: ["Deployment"]) } """ Autogenerated return type of DeleteDeployment """ type DeleteDeploymentPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String } """ Autogenerated input type of DeleteDiscussionComment """ input DeleteDiscussionCommentInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Node id of the discussion comment to delete. """ id: ID! @possibleTypes(concreteTypes: ["DiscussionComment"]) } """ Autogenerated return type of DeleteDiscussionComment """ type DeleteDiscussionCommentPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The discussion comment that was just deleted. """ comment: DiscussionComment } """ Autogenerated input type of DeleteDiscussion """ input DeleteDiscussionInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The id of the discussion to delete. """ id: ID! @possibleTypes(concreteTypes: ["Discussion"]) } """ Autogenerated return type of DeleteDiscussion """ type DeleteDiscussionPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The discussion that was just deleted. """ discussion: Discussion } """ Autogenerated input type of DeleteEnvironment """ input DeleteEnvironmentInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Node ID of the environment to be deleted. """ id: ID! @possibleTypes(concreteTypes: ["Environment"]) } """ Autogenerated return type of DeleteEnvironment """ type DeleteEnvironmentPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String } """ Autogenerated input type of DeleteIpAllowListEntry """ input DeleteIpAllowListEntryInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the IP allow list entry to delete. """ ipAllowListEntryId: ID! @possibleTypes(concreteTypes: ["IpAllowListEntry"]) } """ Autogenerated return type of DeleteIpAllowListEntry """ type DeleteIpAllowListEntryPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The IP allow list entry that was deleted. """ ipAllowListEntry: IpAllowListEntry } """ Autogenerated input type of DeleteIssueComment """ input DeleteIssueCommentInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the comment to delete. """ id: ID! @possibleTypes(concreteTypes: ["IssueComment"]) } """ Autogenerated return type of DeleteIssueComment """ type DeleteIssueCommentPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String } """ Autogenerated input type of DeleteIssue """ input DeleteIssueInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the issue to delete. """ issueId: ID! @possibleTypes(concreteTypes: ["Issue"]) } """ Autogenerated return type of DeleteIssue """ type DeleteIssuePayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The repository the issue belonged to """ repository: Repository } """ Autogenerated input type of DeleteLabel """ input DeleteLabelInput @preview(toggledBy: "bane-preview") { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Node ID of the label to be deleted. """ id: ID! @possibleTypes(concreteTypes: ["Label"]) } """ Autogenerated return type of DeleteLabel """ type DeleteLabelPayload @preview(toggledBy: "bane-preview") { """ A unique identifier for the client performing the mutation. """ clientMutationId: String } """ Autogenerated input type of DeleteLinkedBranch """ input DeleteLinkedBranchInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the linked branch """ linkedBranchId: ID! @possibleTypes(concreteTypes: ["LinkedBranch"]) } """ Autogenerated return type of DeleteLinkedBranch """ type DeleteLinkedBranchPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The issue the linked branch was unlinked from. """ issue: Issue } """ Autogenerated input type of DeletePackageVersion """ input DeletePackageVersionInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the package version to be deleted. """ packageVersionId: ID! @possibleTypes(concreteTypes: ["PackageVersion"]) } """ Autogenerated return type of DeletePackageVersion """ type DeletePackageVersionPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Whether or not the operation succeeded. """ success: Boolean } """ Autogenerated input type of DeleteProjectCard """ input DeleteProjectCardInput { """ The id of the card to delete. """ cardId: ID! @possibleTypes(concreteTypes: ["ProjectCard"]) """ A unique identifier for the client performing the mutation. """ clientMutationId: String } """ Autogenerated return type of DeleteProjectCard """ type DeleteProjectCardPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The column the deleted card was in. """ column: ProjectColumn """ The deleted card ID. """ deletedCardId: ID } """ Autogenerated input type of DeleteProjectColumn """ input DeleteProjectColumnInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The id of the column to delete. """ columnId: ID! @possibleTypes(concreteTypes: ["ProjectColumn"]) } """ Autogenerated return type of DeleteProjectColumn """ type DeleteProjectColumnPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The deleted column ID. """ deletedColumnId: ID """ The project the deleted column was in. """ project: Project } """ Autogenerated input type of DeleteProject """ input DeleteProjectInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Project ID to update. """ projectId: ID! @possibleTypes(concreteTypes: ["Project"]) } """ Autogenerated return type of DeleteProject """ type DeleteProjectPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The repository or organization the project was removed from. """ owner: ProjectOwner } """ Autogenerated input type of DeleteProjectV2Field """ input DeleteProjectV2FieldInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the field to delete. """ fieldId: ID! @possibleTypes( concreteTypes: ["ProjectV2Field", "ProjectV2IterationField", "ProjectV2SingleSelectField"] abstractType: "ProjectV2FieldConfiguration" ) } """ Autogenerated return type of DeleteProjectV2Field """ type DeleteProjectV2FieldPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The deleted field. """ projectV2Field: ProjectV2FieldConfiguration } """ Autogenerated input type of DeleteProjectV2 """ input DeleteProjectV2Input { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the Project to delete. """ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"]) } """ Autogenerated input type of DeleteProjectV2Item """ input DeleteProjectV2ItemInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the item to be removed. """ itemId: ID! @possibleTypes(concreteTypes: ["ProjectV2Item"]) """ The ID of the Project from which the item should be removed. """ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"]) } """ Autogenerated return type of DeleteProjectV2Item """ type DeleteProjectV2ItemPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the deleted item. """ deletedItemId: ID } """ Autogenerated return type of DeleteProjectV2 """ type DeleteProjectV2Payload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The deleted Project. """ projectV2: ProjectV2 } """ Autogenerated input type of DeleteProjectV2Workflow """ input DeleteProjectV2WorkflowInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the workflow to be removed. """ workflowId: ID! @possibleTypes(concreteTypes: ["ProjectV2Workflow"]) } """ Autogenerated return type of DeleteProjectV2Workflow """ type DeleteProjectV2WorkflowPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the deleted workflow. """ deletedWorkflowId: ID """ The project the deleted workflow was in. """ projectV2: ProjectV2 } """ Autogenerated input type of DeletePullRequestReviewComment """ input DeletePullRequestReviewCommentInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the comment to delete. """ id: ID! @possibleTypes(concreteTypes: ["PullRequestReviewComment"]) } """ Autogenerated return type of DeletePullRequestReviewComment """ type DeletePullRequestReviewCommentPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The pull request review the deleted comment belonged to. """ pullRequestReview: PullRequestReview """ The deleted pull request review comment. """ pullRequestReviewComment: PullRequestReviewComment } """ Autogenerated input type of DeletePullRequestReview """ input DeletePullRequestReviewInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Node ID of the pull request review to delete. """ pullRequestReviewId: ID! @possibleTypes(concreteTypes: ["PullRequestReview"]) } """ Autogenerated return type of DeletePullRequestReview """ type DeletePullRequestReviewPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The deleted pull request review. """ pullRequestReview: PullRequestReview } """ Autogenerated input type of DeleteRef """ input DeleteRefInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Node ID of the Ref to be deleted. """ refId: ID! @possibleTypes(concreteTypes: ["Ref"]) } """ Autogenerated return type of DeleteRef """ type DeleteRefPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String } """ Autogenerated input type of DeleteRepositoryRuleset """ input DeleteRepositoryRulesetInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The global relay id of the repository ruleset to be deleted. """ repositoryRulesetId: ID! @possibleTypes(concreteTypes: ["RepositoryRuleset"]) } """ Autogenerated return type of DeleteRepositoryRuleset """ type DeleteRepositoryRulesetPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String } """ Autogenerated input type of DeleteTeamDiscussionComment """ input DeleteTeamDiscussionCommentInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the comment to delete. """ id: ID! @possibleTypes(concreteTypes: ["TeamDiscussionComment"]) } """ Autogenerated return type of DeleteTeamDiscussionComment """ type DeleteTeamDiscussionCommentPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String } """ Autogenerated input type of DeleteTeamDiscussion """ input DeleteTeamDiscussionInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The discussion ID to delete. """ id: ID! @possibleTypes(concreteTypes: ["TeamDiscussion"]) } """ Autogenerated return type of DeleteTeamDiscussion """ type DeleteTeamDiscussionPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String } """ Autogenerated input type of DeleteUserList """ input DeleteUserListInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the list to delete. """ listId: ID! @possibleTypes(concreteTypes: ["UserList"]) } """ Autogenerated return type of DeleteUserList """ type DeleteUserListPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The owner of the list that will be deleted """ user: User } """ Autogenerated input type of DeleteVerifiableDomain """ input DeleteVerifiableDomainInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the verifiable domain to delete. """ id: ID! @possibleTypes(concreteTypes: ["VerifiableDomain"]) } """ Autogenerated return type of DeleteVerifiableDomain """ type DeleteVerifiableDomainPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The owning account from which the domain was deleted. """ owner: VerifiableDomainOwner } """ Represents a 'demilestoned' event on a given issue or pull request. """ type DemilestonedEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the DemilestonedEvent object """ id: ID! """ Identifies the milestone title associated with the 'demilestoned' event. """ milestoneTitle: String! """ Object referenced by event. """ subject: MilestoneItem! } """ A Dependabot Update for a dependency in a repository """ type DependabotUpdate implements RepositoryNode { """ The error from a dependency update """ error: DependabotUpdateError """ The associated pull request """ pullRequest: PullRequest """ The repository associated with this node. """ repository: Repository! } """ An error produced from a Dependabot Update """ type DependabotUpdateError { """ The body of the error """ body: String! """ The error code """ errorType: String! """ The title of the error """ title: String! } """ A dependency manifest entry """ type DependencyGraphDependency @preview(toggledBy: "hawkgirl-preview") { """ Does the dependency itself have dependencies? """ hasDependencies: Boolean! """ The original name of the package, as it appears in the manifest. """ packageLabel: String! @deprecated( reason: "`packageLabel` will be removed. Use normalized `packageName` field instead. Removal on 2022-10-01 UTC." ) """ The dependency package manager """ packageManager: String """ The name of the package in the canonical form used by the package manager. """ packageName: String! """ The repository containing the package """ repository: Repository """ The dependency version requirements """ requirements: String! } """ The connection type for DependencyGraphDependency. """ type DependencyGraphDependencyConnection @preview(toggledBy: "hawkgirl-preview") { """ A list of edges. """ edges: [DependencyGraphDependencyEdge] """ A list of nodes. """ nodes: [DependencyGraphDependency] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type DependencyGraphDependencyEdge @preview(toggledBy: "hawkgirl-preview") { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: DependencyGraphDependency } """ The possible ecosystems of a dependency graph package. """ enum DependencyGraphEcosystem { """ GitHub Actions """ ACTIONS """ PHP packages hosted at packagist.org """ COMPOSER """ Go modules """ GO """ Java artifacts hosted at the Maven central repository """ MAVEN """ JavaScript packages hosted at npmjs.com """ NPM """ .NET packages hosted at the NuGet Gallery """ NUGET """ Python packages hosted at PyPI.org """ PIP """ Dart packages hosted at pub.dev """ PUB """ Ruby gems hosted at RubyGems.org """ RUBYGEMS """ Rust crates """ RUST """ Swift packages """ SWIFT } """ Dependency manifest for a repository """ type DependencyGraphManifest implements Node @preview(toggledBy: "hawkgirl-preview") { """ Path to view the manifest file blob """ blobPath: String! """ A list of manifest dependencies """ dependencies( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): DependencyGraphDependencyConnection """ The number of dependencies listed in the manifest """ dependenciesCount: Int """ Is the manifest too big to parse? """ exceedsMaxSize: Boolean! """ Fully qualified manifest filename """ filename: String! """ The Node ID of the DependencyGraphManifest object """ id: ID! """ Were we able to parse the manifest? """ parseable: Boolean! """ The repository containing the manifest """ repository: Repository! } """ The connection type for DependencyGraphManifest. """ type DependencyGraphManifestConnection @preview(toggledBy: "hawkgirl-preview") { """ A list of edges. """ edges: [DependencyGraphManifestEdge] """ A list of nodes. """ nodes: [DependencyGraphManifest] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type DependencyGraphManifestEdge @preview(toggledBy: "hawkgirl-preview") { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: DependencyGraphManifest } """ A repository deploy key. """ type DeployKey implements Node { """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the DeployKey object """ id: ID! """ The deploy key. """ key: String! """ Whether or not the deploy key is read only. """ readOnly: Boolean! """ The deploy key title. """ title: String! """ Whether or not the deploy key has been verified. """ verified: Boolean! } """ The connection type for DeployKey. """ type DeployKeyConnection { """ A list of edges. """ edges: [DeployKeyEdge] """ A list of nodes. """ nodes: [DeployKey] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type DeployKeyEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: DeployKey } """ Represents a 'deployed' event on a given pull request. """ type DeployedEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the primary key from the database. """ databaseId: Int """ The deployment associated with the 'deployed' event. """ deployment: Deployment! """ The Node ID of the DeployedEvent object """ id: ID! """ PullRequest referenced by event. """ pullRequest: PullRequest! """ The ref associated with the 'deployed' event. """ ref: Ref } """ Represents triggered deployment instance. """ type Deployment implements Node { """ Identifies the commit sha of the deployment. """ commit: Commit """ Identifies the oid of the deployment commit, even if the commit has been deleted. """ commitOid: String! """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the actor who triggered the deployment. """ creator: Actor! """ Identifies the primary key from the database. """ databaseId: Int """ The deployment description. """ description: String """ The latest environment to which this deployment was made. """ environment: String """ The Node ID of the Deployment object """ id: ID! """ The latest environment to which this deployment was made. """ latestEnvironment: String """ The latest status of this deployment. """ latestStatus: DeploymentStatus """ The original environment to which this deployment was made. """ originalEnvironment: String """ Extra information that a deployment system might need. """ payload: String """ Identifies the Ref of the deployment, if the deployment was created by ref. """ ref: Ref """ Identifies the repository associated with the deployment. """ repository: Repository! """ The current state of the deployment. """ state: DeploymentState """ A list of statuses associated with the deployment. """ statuses( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): DeploymentStatusConnection """ The deployment task. """ task: String """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! } """ The connection type for Deployment. """ type DeploymentConnection { """ A list of edges. """ edges: [DeploymentEdge] """ A list of nodes. """ nodes: [Deployment] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type DeploymentEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: Deployment } """ Represents a 'deployment_environment_changed' event on a given pull request. """ type DeploymentEnvironmentChangedEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The deployment status that updated the deployment environment. """ deploymentStatus: DeploymentStatus! """ The Node ID of the DeploymentEnvironmentChangedEvent object """ id: ID! """ PullRequest referenced by event. """ pullRequest: PullRequest! } """ Ordering options for deployment connections """ input DeploymentOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order deployments by. """ field: DeploymentOrderField! } """ Properties by which deployment connections can be ordered. """ enum DeploymentOrderField { """ Order collection by creation time """ CREATED_AT } """ A protection rule. """ type DeploymentProtectionRule { """ Identifies the primary key from the database. """ databaseId: Int """ Whether deployments to this environment can be approved by the user who created the deployment. """ preventSelfReview: Boolean """ The teams or users that can review the deployment """ reviewers( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): DeploymentReviewerConnection! """ The timeout in minutes for this protection rule. """ timeout: Int! """ The type of protection rule. """ type: DeploymentProtectionRuleType! } """ The connection type for DeploymentProtectionRule. """ type DeploymentProtectionRuleConnection { """ A list of edges. """ edges: [DeploymentProtectionRuleEdge] """ A list of nodes. """ nodes: [DeploymentProtectionRule] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type DeploymentProtectionRuleEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: DeploymentProtectionRule } """ The possible protection rule types. """ enum DeploymentProtectionRuleType { """ Required reviewers """ REQUIRED_REVIEWERS """ Wait timer """ WAIT_TIMER } """ A request to deploy a workflow run to an environment. """ type DeploymentRequest { """ Whether or not the current user can approve the deployment """ currentUserCanApprove: Boolean! """ The target environment of the deployment """ environment: Environment! """ The teams or users that can review the deployment """ reviewers( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): DeploymentReviewerConnection! """ The wait timer in minutes configured in the environment """ waitTimer: Int! """ The wait timer in minutes configured in the environment """ waitTimerStartedAt: DateTime } """ The connection type for DeploymentRequest. """ type DeploymentRequestConnection { """ A list of edges. """ edges: [DeploymentRequestEdge] """ A list of nodes. """ nodes: [DeploymentRequest] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type DeploymentRequestEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: DeploymentRequest } """ A deployment review. """ type DeploymentReview implements Node { """ The comment the user left. """ comment: String! """ Identifies the primary key from the database. """ databaseId: Int """ The environments approved or rejected """ environments( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): EnvironmentConnection! """ The Node ID of the DeploymentReview object """ id: ID! """ The decision of the user. """ state: DeploymentReviewState! """ The user that reviewed the deployment. """ user: User! } """ The connection type for DeploymentReview. """ type DeploymentReviewConnection { """ A list of edges. """ edges: [DeploymentReviewEdge] """ A list of nodes. """ nodes: [DeploymentReview] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type DeploymentReviewEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: DeploymentReview } """ The possible states for a deployment review. """ enum DeploymentReviewState { """ The deployment was approved. """ APPROVED """ The deployment was rejected. """ REJECTED } """ Users and teams. """ union DeploymentReviewer = Team | User """ The connection type for DeploymentReviewer. """ type DeploymentReviewerConnection { """ A list of edges. """ edges: [DeploymentReviewerEdge] """ A list of nodes. """ nodes: [DeploymentReviewer] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type DeploymentReviewerEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: DeploymentReviewer } """ The possible states in which a deployment can be. """ enum DeploymentState { """ The pending deployment was not updated after 30 minutes. """ ABANDONED """ The deployment is currently active. """ ACTIVE """ An inactive transient deployment. """ DESTROYED """ The deployment experienced an error. """ ERROR """ The deployment has failed. """ FAILURE """ The deployment is inactive. """ INACTIVE """ The deployment is in progress. """ IN_PROGRESS """ The deployment is pending. """ PENDING """ The deployment has queued """ QUEUED """ The deployment was successful. """ SUCCESS """ The deployment is waiting. """ WAITING } """ Describes the status of a given deployment attempt. """ type DeploymentStatus implements Node { """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the actor who triggered the deployment. """ creator: Actor! """ Identifies the deployment associated with status. """ deployment: Deployment! """ Identifies the description of the deployment. """ description: String """ Identifies the environment of the deployment at the time of this deployment status """ environment: String @preview(toggledBy: "flash-preview") """ Identifies the environment URL of the deployment. """ environmentUrl: URI """ The Node ID of the DeploymentStatus object """ id: ID! """ Identifies the log URL of the deployment. """ logUrl: URI """ Identifies the current state of the deployment. """ state: DeploymentStatusState! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! } """ The connection type for DeploymentStatus. """ type DeploymentStatusConnection { """ A list of edges. """ edges: [DeploymentStatusEdge] """ A list of nodes. """ nodes: [DeploymentStatus] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type DeploymentStatusEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: DeploymentStatus } """ The possible states for a deployment status. """ enum DeploymentStatusState { """ The deployment experienced an error. """ ERROR """ The deployment has failed. """ FAILURE """ The deployment is inactive. """ INACTIVE """ The deployment is in progress. """ IN_PROGRESS """ The deployment is pending. """ PENDING """ The deployment is queued """ QUEUED """ The deployment was successful. """ SUCCESS """ The deployment is waiting. """ WAITING } """ Autogenerated input type of DequeuePullRequest """ input DequeuePullRequestInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the pull request to be dequeued. """ id: ID! @possibleTypes(concreteTypes: ["PullRequest"]) } """ Autogenerated return type of DequeuePullRequest """ type DequeuePullRequestPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The merge queue entry of the dequeued pull request. """ mergeQueueEntry: MergeQueueEntry } """ The possible sides of a diff. """ enum DiffSide { """ The left side of the diff. """ LEFT """ The right side of the diff. """ RIGHT } """ Autogenerated input type of DisablePullRequestAutoMerge """ input DisablePullRequestAutoMergeInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ ID of the pull request to disable auto merge on. """ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"]) } """ Autogenerated return type of DisablePullRequestAutoMerge """ type DisablePullRequestAutoMergePayload { """ Identifies the actor who performed the event. """ actor: Actor """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The pull request auto merge was disabled on. """ pullRequest: PullRequest } """ Represents a 'disconnected' event on a given issue or pull request. """ type DisconnectedEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the DisconnectedEvent object """ id: ID! """ Reference originated in a different repository. """ isCrossRepository: Boolean! """ Issue or pull request from which the issue was disconnected. """ source: ReferencedSubject! """ Issue or pull request which was disconnected. """ subject: ReferencedSubject! } """ A discussion in a repository. """ type Discussion implements Closable & Comment & Deletable & Labelable & Lockable & Node & Reactable & RepositoryNode & Subscribable & Updatable & Votable { """ Reason that the conversation was locked. """ activeLockReason: LockReason """ The comment chosen as this discussion's answer, if any. """ answer: DiscussionComment """ The time when a user chose this discussion's answer, if answered. """ answerChosenAt: DateTime """ The user who chose this discussion's answer, if answered. """ answerChosenBy: Actor """ The actor who authored the comment. """ author: Actor """ Author's association with the subject of the comment. """ authorAssociation: CommentAuthorAssociation! """ The main text of the discussion post. """ body: String! """ The body rendered to HTML. """ bodyHTML: HTML! """ The body rendered to text. """ bodyText: String! """ The category for this discussion. """ category: DiscussionCategory! """ Indicates if the object is closed (definition of closed may depend on type) """ closed: Boolean! """ Identifies the date and time when the object was closed. """ closedAt: DateTime """ The replies to the discussion. """ comments( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): DiscussionCommentConnection! """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Check if this comment was created via an email reply. """ createdViaEmail: Boolean! """ Identifies the primary key from the database. """ databaseId: Int """ The actor who edited the comment. """ editor: Actor """ The Node ID of the Discussion object """ id: ID! """ Check if this comment was edited and includes an edit with the creation data """ includesCreatedEdit: Boolean! """ Only return answered/unanswered discussions """ isAnswered: Boolean """ A list of labels associated with the object. """ labels( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for labels returned from the connection. """ orderBy: LabelOrder = {field: CREATED_AT, direction: ASC} ): LabelConnection """ The moment the editor made the last edit """ lastEditedAt: DateTime """ `true` if the object is locked """ locked: Boolean! """ The number identifying this discussion within the repository. """ number: Int! """ The poll associated with this discussion, if one exists. """ poll: DiscussionPoll """ Identifies when the comment was published at. """ publishedAt: DateTime """ A list of reactions grouped by content left on the subject. """ reactionGroups: [ReactionGroup!] """ A list of Reactions left on the Issue. """ reactions( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Allows filtering Reactions by emoji. """ content: ReactionContent """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Allows specifying the order in which reactions are returned. """ orderBy: ReactionOrder ): ReactionConnection! """ The repository associated with this node. """ repository: Repository! """ The path for this discussion. """ resourcePath: URI! """ Identifies the reason for the discussion's state. """ stateReason: DiscussionStateReason """ The title of this discussion. """ title: String! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ Number of upvotes that this subject has received. """ upvoteCount: Int! """ The URL for this discussion. """ url: URI! """ A list of edits to this content. """ userContentEdits( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): UserContentEditConnection """ Indicates if the object can be closed by the viewer. """ viewerCanClose: Boolean! """ Check if the current viewer can delete this object. """ viewerCanDelete: Boolean! """ Can user react to this subject """ viewerCanReact: Boolean! """ Indicates if the object can be reopened by the viewer. """ viewerCanReopen: Boolean! """ Check if the viewer is able to change their subscription status for the repository. """ viewerCanSubscribe: Boolean! """ Check if the current viewer can update this object. """ viewerCanUpdate: Boolean! """ Whether or not the current user can add or remove an upvote on this subject. """ viewerCanUpvote: Boolean! """ Did the viewer author this comment. """ viewerDidAuthor: Boolean! """ Whether or not the current user has already upvoted this subject. """ viewerHasUpvoted: Boolean! """ Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. """ viewerSubscription: SubscriptionState } """ A category for discussions in a repository. """ type DiscussionCategory implements Node & RepositoryNode { """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ A description of this category. """ description: String """ An emoji representing this category. """ emoji: String! """ This category's emoji rendered as HTML. """ emojiHTML: HTML! """ The Node ID of the DiscussionCategory object """ id: ID! """ Whether or not discussions in this category support choosing an answer with the markDiscussionCommentAsAnswer mutation. """ isAnswerable: Boolean! """ The name of this category. """ name: String! """ The repository associated with this node. """ repository: Repository! """ The slug of this category. """ slug: String! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! } """ The connection type for DiscussionCategory. """ type DiscussionCategoryConnection { """ A list of edges. """ edges: [DiscussionCategoryEdge] """ A list of nodes. """ nodes: [DiscussionCategory] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type DiscussionCategoryEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: DiscussionCategory } """ The possible reasons for closing a discussion. """ enum DiscussionCloseReason { """ The discussion is a duplicate of another """ DUPLICATE """ The discussion is no longer relevant """ OUTDATED """ The discussion has been resolved """ RESOLVED } """ A comment on a discussion. """ type DiscussionComment implements Comment & Deletable & Minimizable & Node & Reactable & Updatable & UpdatableComment & Votable { """ The actor who authored the comment. """ author: Actor """ Author's association with the subject of the comment. """ authorAssociation: CommentAuthorAssociation! """ The body as Markdown. """ body: String! """ The body rendered to HTML. """ bodyHTML: HTML! """ The body rendered to text. """ bodyText: String! """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Check if this comment was created via an email reply. """ createdViaEmail: Boolean! """ Identifies the primary key from the database. """ databaseId: Int """ The time when this replied-to comment was deleted """ deletedAt: DateTime """ The discussion this comment was created in """ discussion: Discussion """ The actor who edited the comment. """ editor: Actor """ The Node ID of the DiscussionComment object """ id: ID! """ Check if this comment was edited and includes an edit with the creation data """ includesCreatedEdit: Boolean! """ Has this comment been chosen as the answer of its discussion? """ isAnswer: Boolean! """ Returns whether or not a comment has been minimized. """ isMinimized: Boolean! """ The moment the editor made the last edit """ lastEditedAt: DateTime """ Returns why the comment was minimized. One of `abuse`, `off-topic`, `outdated`, `resolved`, `duplicate` and `spam`. Note that the case and formatting of these values differs from the inputs to the `MinimizeComment` mutation. """ minimizedReason: String """ Identifies when the comment was published at. """ publishedAt: DateTime """ A list of reactions grouped by content left on the subject. """ reactionGroups: [ReactionGroup!] """ A list of Reactions left on the Issue. """ reactions( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Allows filtering Reactions by emoji. """ content: ReactionContent """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Allows specifying the order in which reactions are returned. """ orderBy: ReactionOrder ): ReactionConnection! """ The threaded replies to this comment. """ replies( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): DiscussionCommentConnection! """ The discussion comment this comment is a reply to """ replyTo: DiscussionComment """ The path for this discussion comment. """ resourcePath: URI! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ Number of upvotes that this subject has received. """ upvoteCount: Int! """ The URL for this discussion comment. """ url: URI! """ A list of edits to this content. """ userContentEdits( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): UserContentEditConnection """ Check if the current viewer can delete this object. """ viewerCanDelete: Boolean! """ Can the current user mark this comment as an answer? """ viewerCanMarkAsAnswer: Boolean! """ Check if the current viewer can minimize this object. """ viewerCanMinimize: Boolean! """ Can user react to this subject """ viewerCanReact: Boolean! """ Can the current user unmark this comment as an answer? """ viewerCanUnmarkAsAnswer: Boolean! """ Check if the current viewer can update this object. """ viewerCanUpdate: Boolean! """ Whether or not the current user can add or remove an upvote on this subject. """ viewerCanUpvote: Boolean! """ Reasons why the current viewer can not update this comment. """ viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! """ Did the viewer author this comment. """ viewerDidAuthor: Boolean! """ Whether or not the current user has already upvoted this subject. """ viewerHasUpvoted: Boolean! } """ The connection type for DiscussionComment. """ type DiscussionCommentConnection { """ A list of edges. """ edges: [DiscussionCommentEdge] """ A list of nodes. """ nodes: [DiscussionComment] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type DiscussionCommentEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: DiscussionComment } """ The connection type for Discussion. """ type DiscussionConnection { """ A list of edges. """ edges: [DiscussionEdge] """ A list of nodes. """ nodes: [Discussion] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type DiscussionEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: Discussion } """ Ways in which lists of discussions can be ordered upon return. """ input DiscussionOrder { """ The direction in which to order discussions by the specified field. """ direction: OrderDirection! """ The field by which to order discussions. """ field: DiscussionOrderField! } """ Properties by which discussion connections can be ordered. """ enum DiscussionOrderField { """ Order discussions by creation time. """ CREATED_AT """ Order discussions by most recent modification time. """ UPDATED_AT } """ A poll for a discussion. """ type DiscussionPoll implements Node { """ The discussion that this poll belongs to. """ discussion: Discussion """ The Node ID of the DiscussionPoll object """ id: ID! """ The options for this poll. """ options( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ How to order the options for the discussion poll. """ orderBy: DiscussionPollOptionOrder = {field: AUTHORED_ORDER, direction: ASC} ): DiscussionPollOptionConnection """ The question that is being asked by this poll. """ question: String! """ The total number of votes that have been cast for this poll. """ totalVoteCount: Int! """ Indicates if the viewer has permission to vote in this poll. """ viewerCanVote: Boolean! """ Indicates if the viewer has voted for any option in this poll. """ viewerHasVoted: Boolean! } """ An option for a discussion poll. """ type DiscussionPollOption implements Node { """ The Node ID of the DiscussionPollOption object """ id: ID! """ The text for this option. """ option: String! """ The discussion poll that this option belongs to. """ poll: DiscussionPoll """ The total number of votes that have been cast for this option. """ totalVoteCount: Int! """ Indicates if the viewer has voted for this option in the poll. """ viewerHasVoted: Boolean! } """ The connection type for DiscussionPollOption. """ type DiscussionPollOptionConnection { """ A list of edges. """ edges: [DiscussionPollOptionEdge] """ A list of nodes. """ nodes: [DiscussionPollOption] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type DiscussionPollOptionEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: DiscussionPollOption } """ Ordering options for discussion poll option connections. """ input DiscussionPollOptionOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order poll options by. """ field: DiscussionPollOptionOrderField! } """ Properties by which discussion poll option connections can be ordered. """ enum DiscussionPollOptionOrderField { """ Order poll options by the order that the poll author specified when creating the poll. """ AUTHORED_ORDER """ Order poll options by the number of votes it has. """ VOTE_COUNT } """ The possible states of a discussion. """ enum DiscussionState { """ A discussion that has been closed """ CLOSED """ A discussion that is open """ OPEN } """ The possible state reasons of a discussion. """ enum DiscussionStateReason { """ The discussion is a duplicate of another """ DUPLICATE """ The discussion is no longer relevant """ OUTDATED """ The discussion was reopened """ REOPENED """ The discussion has been resolved """ RESOLVED } """ Autogenerated input type of DismissPullRequestReview """ input DismissPullRequestReviewInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The contents of the pull request review dismissal message. """ message: String! """ The Node ID of the pull request review to modify. """ pullRequestReviewId: ID! @possibleTypes(concreteTypes: ["PullRequestReview"]) } """ Autogenerated return type of DismissPullRequestReview """ type DismissPullRequestReviewPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The dismissed pull request review. """ pullRequestReview: PullRequestReview } """ The possible reasons that a Dependabot alert was dismissed. """ enum DismissReason { """ A fix has already been started """ FIX_STARTED """ This alert is inaccurate or incorrect """ INACCURATE """ Vulnerable code is not actually used """ NOT_USED """ No bandwidth to fix this """ NO_BANDWIDTH """ Risk is tolerable to this project """ TOLERABLE_RISK } """ Autogenerated input type of DismissRepositoryVulnerabilityAlert """ input DismissRepositoryVulnerabilityAlertInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The reason the Dependabot alert is being dismissed. """ dismissReason: DismissReason! """ The Dependabot alert ID to dismiss. """ repositoryVulnerabilityAlertId: ID! @possibleTypes(concreteTypes: ["RepositoryVulnerabilityAlert"]) } """ Autogenerated return type of DismissRepositoryVulnerabilityAlert """ type DismissRepositoryVulnerabilityAlertPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Dependabot alert that was dismissed """ repositoryVulnerabilityAlert: RepositoryVulnerabilityAlert } """ A draft issue within a project. """ type DraftIssue implements Node { """ A list of users to assigned to this draft issue. """ assignees( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): UserConnection! """ The body of the draft issue. """ body: String! """ The body of the draft issue rendered to HTML. """ bodyHTML: HTML! """ The body of the draft issue rendered to text. """ bodyText: String! """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The actor who created this draft issue. """ creator: Actor """ The Node ID of the DraftIssue object """ id: ID! """ List of items linked with the draft issue (currently draft issue can be linked to only one item). """ projectV2Items( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): ProjectV2ItemConnection! """ Projects that link to this draft issue (currently draft issue can be linked to only one project). """ projectsV2( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): ProjectV2Connection! """ The title of the draft issue """ title: String! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! } """ Specifies a review comment to be left with a Pull Request Review. """ input DraftPullRequestReviewComment { """ Body of the comment to leave. """ body: String! """ Path to the file being commented on. """ path: String! """ Position in the file to leave a comment on. """ position: Int! } """ Specifies a review comment thread to be left with a Pull Request Review. """ input DraftPullRequestReviewThread { """ Body of the comment to leave. """ body: String! """ The line of the blob to which the thread refers. The end of the line range for multi-line comments. """ line: Int! """ Path to the file being commented on. """ path: String! """ The side of the diff on which the line resides. For multi-line comments, this is the side for the end of the line range. """ side: DiffSide = RIGHT """ The first line of the range to which the comment refers. """ startLine: Int """ The side of the diff on which the start line resides. """ startSide: DiffSide = RIGHT } """ Autogenerated input type of EnablePullRequestAutoMerge """ input EnablePullRequestAutoMergeInput { """ The email address to associate with this merge. """ authorEmail: String """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Commit body to use for the commit when the PR is mergable; if omitted, a default message will be used. NOTE: when merging with a merge queue any input value for commit message is ignored. """ commitBody: String """ Commit headline to use for the commit when the PR is mergable; if omitted, a default message will be used. NOTE: when merging with a merge queue any input value for commit headline is ignored. """ commitHeadline: String """ The expected head OID of the pull request. """ expectedHeadOid: GitObjectID """ The merge method to use. If omitted, defaults to `MERGE`. NOTE: when merging with a merge queue any input value for merge method is ignored. """ mergeMethod: PullRequestMergeMethod = MERGE """ ID of the pull request to enable auto-merge on. """ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"]) } """ Autogenerated return type of EnablePullRequestAutoMerge """ type EnablePullRequestAutoMergePayload { """ Identifies the actor who performed the event. """ actor: Actor """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The pull request auto-merge was enabled on. """ pullRequest: PullRequest } """ Autogenerated input type of EnqueuePullRequest """ input EnqueuePullRequestInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The expected head OID of the pull request. """ expectedHeadOid: GitObjectID """ Add the pull request to the front of the queue. """ jump: Boolean """ The ID of the pull request to enqueue. """ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"]) } """ Autogenerated return type of EnqueuePullRequest """ type EnqueuePullRequestPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The merge queue entry for the enqueued pull request. """ mergeQueueEntry: MergeQueueEntry } """ An account to manage multiple organizations with consolidated policy and billing. """ type Enterprise implements AnnouncementBanner & Node { """ The text of the announcement """ announcement: String """ The expiration date of the announcement, if any """ announcementExpiresAt: DateTime """ Whether the announcement can be dismissed by the user """ announcementUserDismissible: Boolean """ A URL pointing to the enterprise's public avatar. """ avatarUrl( """ The size of the resulting square image. """ size: Int ): URI! """ Enterprise billing information visible to enterprise billing managers. """ billingInfo: EnterpriseBillingInfo """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the primary key from the database. """ databaseId: Int """ The description of the enterprise. """ description: String """ The description of the enterprise as HTML. """ descriptionHTML: HTML! """ The Node ID of the Enterprise object """ id: ID! """ The location of the enterprise. """ location: String """ A list of users who are members of this enterprise. """ members( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Only return members within the selected GitHub Enterprise deployment """ deployment: EnterpriseUserDeployment """ Returns the first _n_ elements from the list. """ first: Int """ Only return members with this two-factor authentication status. Does not include members who only have an account on a GitHub Enterprise Server instance. """ hasTwoFactorEnabled: Boolean = null """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for members returned from the connection. """ orderBy: EnterpriseMemberOrder = {field: LOGIN, direction: ASC} """ Only return members within the organizations with these logins """ organizationLogins: [String!] """ The search string to look for. """ query: String """ The role of the user in the enterprise organization or server. """ role: EnterpriseUserAccountMembershipRole ): EnterpriseMemberConnection! """ The name of the enterprise. """ name: String! """ A list of organizations that belong to this enterprise. """ organizations( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for organizations returned from the connection. """ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} """ The search string to look for. """ query: String """ The viewer's role in an organization. """ viewerOrganizationRole: RoleInOrganization ): OrganizationConnection! """ Enterprise information visible to enterprise owners or enterprise owners' personal access tokens (classic) with read:enterprise or admin:enterprise scope. """ ownerInfo: EnterpriseOwnerInfo """ The HTTP path for this enterprise. """ resourcePath: URI! """ The URL-friendly identifier for the enterprise. """ slug: String! """ The HTTP URL for this enterprise. """ url: URI! """ Is the current viewer an admin of this enterprise? """ viewerIsAdmin: Boolean! """ The URL of the enterprise website. """ websiteUrl: URI } """ The connection type for User. """ type EnterpriseAdministratorConnection { """ A list of edges. """ edges: [EnterpriseAdministratorEdge] """ A list of nodes. """ nodes: [User] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ A User who is an administrator of an enterprise. """ type EnterpriseAdministratorEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: User """ The role of the administrator. """ role: EnterpriseAdministratorRole! } """ An invitation for a user to become an owner or billing manager of an enterprise. """ type EnterpriseAdministratorInvitation implements Node { """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The email of the person who was invited to the enterprise. """ email: String """ The enterprise the invitation is for. """ enterprise: Enterprise! """ The Node ID of the EnterpriseAdministratorInvitation object """ id: ID! """ The user who was invited to the enterprise. """ invitee: User """ The user who created the invitation. """ inviter: User """ The invitee's pending role in the enterprise (owner or billing_manager). """ role: EnterpriseAdministratorRole! } """ The connection type for EnterpriseAdministratorInvitation. """ type EnterpriseAdministratorInvitationConnection { """ A list of edges. """ edges: [EnterpriseAdministratorInvitationEdge] """ A list of nodes. """ nodes: [EnterpriseAdministratorInvitation] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type EnterpriseAdministratorInvitationEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: EnterpriseAdministratorInvitation } """ Ordering options for enterprise administrator invitation connections """ input EnterpriseAdministratorInvitationOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order enterprise administrator invitations by. """ field: EnterpriseAdministratorInvitationOrderField! } """ Properties by which enterprise administrator invitation connections can be ordered. """ enum EnterpriseAdministratorInvitationOrderField { """ Order enterprise administrator member invitations by creation time """ CREATED_AT } """ The possible administrator roles in an enterprise account. """ enum EnterpriseAdministratorRole { """ Represents a billing manager of the enterprise account. """ BILLING_MANAGER """ Represents an owner of the enterprise account. """ OWNER } """ The possible values for the enterprise allow private repository forking policy value. """ enum EnterpriseAllowPrivateRepositoryForkingPolicyValue { """ Members can fork a repository to an organization within this enterprise. """ ENTERPRISE_ORGANIZATIONS """ Members can fork a repository to their enterprise-managed user account or an organization inside this enterprise. """ ENTERPRISE_ORGANIZATIONS_USER_ACCOUNTS """ Members can fork a repository to their user account or an organization, either inside or outside of this enterprise. """ EVERYWHERE """ Members can fork a repository only within the same organization (intra-org). """ SAME_ORGANIZATION """ Members can fork a repository to their user account or within the same organization. """ SAME_ORGANIZATION_USER_ACCOUNTS """ Members can fork a repository to their user account. """ USER_ACCOUNTS } """ Metadata for an audit entry containing enterprise account information. """ interface EnterpriseAuditEntryData { """ The HTTP path for this enterprise. """ enterpriseResourcePath: URI """ The slug of the enterprise. """ enterpriseSlug: String """ The HTTP URL for this enterprise. """ enterpriseUrl: URI } """ Enterprise billing information visible to enterprise billing managers and owners. """ type EnterpriseBillingInfo { """ The number of licenseable users/emails across the enterprise. """ allLicensableUsersCount: Int! """ The number of data packs used by all organizations owned by the enterprise. """ assetPacks: Int! """ The bandwidth quota in GB for all organizations owned by the enterprise. """ bandwidthQuota: Float! """ The bandwidth usage in GB for all organizations owned by the enterprise. """ bandwidthUsage: Float! """ The bandwidth usage as a percentage of the bandwidth quota. """ bandwidthUsagePercentage: Int! """ The storage quota in GB for all organizations owned by the enterprise. """ storageQuota: Float! """ The storage usage in GB for all organizations owned by the enterprise. """ storageUsage: Float! """ The storage usage as a percentage of the storage quota. """ storageUsagePercentage: Int! """ The number of available licenses across all owned organizations based on the unique number of billable users. """ totalAvailableLicenses: Int! """ The total number of licenses allocated. """ totalLicenses: Int! } """ The connection type for Enterprise. """ type EnterpriseConnection { """ A list of edges. """ edges: [EnterpriseEdge] """ A list of nodes. """ nodes: [Enterprise] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ The possible values for the enterprise base repository permission setting. """ enum EnterpriseDefaultRepositoryPermissionSettingValue { """ Organization members will be able to clone, pull, push, and add new collaborators to all organization repositories. """ ADMIN """ Organization members will only be able to clone and pull public repositories. """ NONE """ Organizations in the enterprise choose base repository permissions for their members. """ NO_POLICY """ Organization members will be able to clone and pull all organization repositories. """ READ """ Organization members will be able to clone, pull, and push all organization repositories. """ WRITE } """ An edge in a connection. """ type EnterpriseEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: Enterprise } """ The possible values for an enabled/disabled enterprise setting. """ enum EnterpriseEnabledDisabledSettingValue { """ The setting is disabled for organizations in the enterprise. """ DISABLED """ The setting is enabled for organizations in the enterprise. """ ENABLED """ There is no policy set for organizations in the enterprise. """ NO_POLICY } """ The possible values for an enabled/no policy enterprise setting. """ enum EnterpriseEnabledSettingValue { """ The setting is enabled for organizations in the enterprise. """ ENABLED """ There is no policy set for organizations in the enterprise. """ NO_POLICY } """ The connection type for OrganizationInvitation. """ type EnterpriseFailedInvitationConnection { """ A list of edges. """ edges: [EnterpriseFailedInvitationEdge] """ A list of nodes. """ nodes: [OrganizationInvitation] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! """ Identifies the total count of unique users in the connection. """ totalUniqueUserCount: Int! } """ A failed invitation to be a member in an enterprise organization. """ type EnterpriseFailedInvitationEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: OrganizationInvitation } """ An identity provider configured to provision identities for an enterprise. Visible to enterprise owners or enterprise owners' personal access tokens (classic) with read:enterprise or admin:enterprise scope. """ type EnterpriseIdentityProvider implements Node { """ The digest algorithm used to sign SAML requests for the identity provider. """ digestMethod: SamlDigestAlgorithm """ The enterprise this identity provider belongs to. """ enterprise: Enterprise """ ExternalIdentities provisioned by this identity provider. """ externalIdentities( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Filter to external identities with the users login """ login: String """ Filter to external identities with valid org membership only """ membersOnly: Boolean """ Filter to external identities with the users userName/NameID attribute """ userName: String ): ExternalIdentityConnection! """ The Node ID of the EnterpriseIdentityProvider object """ id: ID! """ The x509 certificate used by the identity provider to sign assertions and responses. """ idpCertificate: X509Certificate """ The Issuer Entity ID for the SAML identity provider. """ issuer: String """ Recovery codes that can be used by admins to access the enterprise if the identity provider is unavailable. """ recoveryCodes: [String!] """ The signature algorithm used to sign SAML requests for the identity provider. """ signatureMethod: SamlSignatureAlgorithm """ The URL endpoint for the identity provider's SAML SSO. """ ssoUrl: URI } """ An object that is a member of an enterprise. """ union EnterpriseMember = EnterpriseUserAccount | User """ The connection type for EnterpriseMember. """ type EnterpriseMemberConnection { """ A list of edges. """ edges: [EnterpriseMemberEdge] """ A list of nodes. """ nodes: [EnterpriseMember] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ A User who is a member of an enterprise through one or more organizations. """ type EnterpriseMemberEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: EnterpriseMember } """ Ordering options for enterprise member connections. """ input EnterpriseMemberOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order enterprise members by. """ field: EnterpriseMemberOrderField! } """ Properties by which enterprise member connections can be ordered. """ enum EnterpriseMemberOrderField { """ Order enterprise members by creation time """ CREATED_AT """ Order enterprise members by login """ LOGIN } """ The possible values for the enterprise members can create repositories setting. """ enum EnterpriseMembersCanCreateRepositoriesSettingValue { """ Members will be able to create public and private repositories. """ ALL """ Members will not be able to create public or private repositories. """ DISABLED """ Organization owners choose whether to allow members to create repositories. """ NO_POLICY """ Members will be able to create only private repositories. """ PRIVATE """ Members will be able to create only public repositories. """ PUBLIC } """ The possible values for the members can make purchases setting. """ enum EnterpriseMembersCanMakePurchasesSettingValue { """ The setting is disabled for organizations in the enterprise. """ DISABLED """ The setting is enabled for organizations in the enterprise. """ ENABLED } """ The possible values we have for filtering Platform::Objects::User#enterprises. """ enum EnterpriseMembershipType { """ Returns all enterprises in which the user is an admin. """ ADMIN """ Returns all enterprises in which the user is a member, admin, or billing manager. """ ALL """ Returns all enterprises in which the user is a billing manager. """ BILLING_MANAGER """ Returns all enterprises in which the user is a member of an org that is owned by the enterprise. """ ORG_MEMBERSHIP } """ Ordering options for enterprises. """ input EnterpriseOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order enterprises by. """ field: EnterpriseOrderField! } """ Properties by which enterprise connections can be ordered. """ enum EnterpriseOrderField { """ Order enterprises by name """ NAME } """ The connection type for Organization. """ type EnterpriseOrganizationMembershipConnection { """ A list of edges. """ edges: [EnterpriseOrganizationMembershipEdge] """ A list of nodes. """ nodes: [Organization] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An enterprise organization that a user is a member of. """ type EnterpriseOrganizationMembershipEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: Organization """ The role of the user in the enterprise membership. """ role: EnterpriseUserAccountMembershipRole! } """ The connection type for User. """ type EnterpriseOutsideCollaboratorConnection { """ A list of edges. """ edges: [EnterpriseOutsideCollaboratorEdge] """ A list of nodes. """ nodes: [User] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ A User who is an outside collaborator of an enterprise through one or more organizations. """ type EnterpriseOutsideCollaboratorEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: User """ The enterprise organization repositories this user is a member of. """ repositories( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for repositories. """ orderBy: RepositoryOrder = {field: NAME, direction: ASC} ): EnterpriseRepositoryInfoConnection! } """ Enterprise information visible to enterprise owners or enterprise owners' personal access tokens (classic) with read:enterprise or admin:enterprise scope. """ type EnterpriseOwnerInfo { """ A list of all of the administrators for this enterprise. """ admins( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Only return administrators with this two-factor authentication status. """ hasTwoFactorEnabled: Boolean = null """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for administrators returned from the connection. """ orderBy: EnterpriseMemberOrder = {field: LOGIN, direction: ASC} """ Only return members within the organizations with these logins """ organizationLogins: [String!] """ The search string to look for. """ query: String """ The role to filter by. """ role: EnterpriseAdministratorRole ): EnterpriseAdministratorConnection! """ A list of users in the enterprise who currently have two-factor authentication disabled. """ affiliatedUsersWithTwoFactorDisabled( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): UserConnection! """ Whether or not affiliated users with two-factor authentication disabled exist in the enterprise. """ affiliatedUsersWithTwoFactorDisabledExist: Boolean! """ The setting value for whether private repository forking is enabled for repositories in organizations in this enterprise. """ allowPrivateRepositoryForkingSetting: EnterpriseEnabledDisabledSettingValue! """ A list of enterprise organizations configured with the provided private repository forking setting value. """ allowPrivateRepositoryForkingSettingOrganizations( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for organizations with this setting. """ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} """ The setting value to find organizations for. """ value: Boolean! ): OrganizationConnection! """ The value for the allow private repository forking policy on the enterprise. """ allowPrivateRepositoryForkingSettingPolicyValue: EnterpriseAllowPrivateRepositoryForkingPolicyValue """ The setting value for base repository permissions for organizations in this enterprise. """ defaultRepositoryPermissionSetting: EnterpriseDefaultRepositoryPermissionSettingValue! """ A list of enterprise organizations configured with the provided base repository permission. """ defaultRepositoryPermissionSettingOrganizations( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for organizations with this setting. """ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} """ The permission to find organizations for. """ value: DefaultRepositoryPermissionField! ): OrganizationConnection! """ A list of domains owned by the enterprise. Visible to enterprise owners or enterprise owners' personal access tokens (classic) with admin:enterprise scope. """ domains( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Filter whether or not the domain is approved. """ isApproved: Boolean = null """ Filter whether or not the domain is verified. """ isVerified: Boolean = null """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for verifiable domains returned. """ orderBy: VerifiableDomainOrder = {field: DOMAIN, direction: ASC} ): VerifiableDomainConnection! """ Enterprise Server installations owned by the enterprise. """ enterpriseServerInstallations( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Whether or not to only return installations discovered via GitHub Connect. """ connectedOnly: Boolean = false """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for Enterprise Server installations returned. """ orderBy: EnterpriseServerInstallationOrder = {field: HOST_NAME, direction: ASC} ): EnterpriseServerInstallationConnection! """ A list of failed invitations in the enterprise. """ failedInvitations( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ The search string to look for. """ query: String ): EnterpriseFailedInvitationConnection! """ The setting value for whether the enterprise has an IP allow list enabled. """ ipAllowListEnabledSetting: IpAllowListEnabledSettingValue! """ The IP addresses that are allowed to access resources owned by the enterprise. Visible to enterprise owners or enterprise owners' personal access tokens (classic) with admin:enterprise scope. """ ipAllowListEntries( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for IP allow list entries returned. """ orderBy: IpAllowListEntryOrder = {field: ALLOW_LIST_VALUE, direction: ASC} ): IpAllowListEntryConnection! """ The setting value for whether the enterprise has IP allow list configuration for installed GitHub Apps enabled. """ ipAllowListForInstalledAppsEnabledSetting: IpAllowListForInstalledAppsEnabledSettingValue! """ Whether or not the base repository permission is currently being updated. """ isUpdatingDefaultRepositoryPermission: Boolean! """ Whether the two-factor authentication requirement is currently being enforced. """ isUpdatingTwoFactorRequirement: Boolean! """ The setting value for whether organization members with admin permissions on a repository can change repository visibility. """ membersCanChangeRepositoryVisibilitySetting: EnterpriseEnabledDisabledSettingValue! """ A list of enterprise organizations configured with the provided can change repository visibility setting value. """ membersCanChangeRepositoryVisibilitySettingOrganizations( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for organizations with this setting. """ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} """ The setting value to find organizations for. """ value: Boolean! ): OrganizationConnection! """ The setting value for whether members of organizations in the enterprise can create internal repositories. """ membersCanCreateInternalRepositoriesSetting: Boolean """ The setting value for whether members of organizations in the enterprise can create private repositories. """ membersCanCreatePrivateRepositoriesSetting: Boolean """ The setting value for whether members of organizations in the enterprise can create public repositories. """ membersCanCreatePublicRepositoriesSetting: Boolean """ The setting value for whether members of organizations in the enterprise can create repositories. """ membersCanCreateRepositoriesSetting: EnterpriseMembersCanCreateRepositoriesSettingValue """ A list of enterprise organizations configured with the provided repository creation setting value. """ membersCanCreateRepositoriesSettingOrganizations( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for organizations with this setting. """ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} """ The setting to find organizations for. """ value: OrganizationMembersCanCreateRepositoriesSettingValue! ): OrganizationConnection! """ The setting value for whether members with admin permissions for repositories can delete issues. """ membersCanDeleteIssuesSetting: EnterpriseEnabledDisabledSettingValue! """ A list of enterprise organizations configured with the provided members can delete issues setting value. """ membersCanDeleteIssuesSettingOrganizations( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for organizations with this setting. """ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} """ The setting value to find organizations for. """ value: Boolean! ): OrganizationConnection! """ The setting value for whether members with admin permissions for repositories can delete or transfer repositories. """ membersCanDeleteRepositoriesSetting: EnterpriseEnabledDisabledSettingValue! """ A list of enterprise organizations configured with the provided members can delete repositories setting value. """ membersCanDeleteRepositoriesSettingOrganizations( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for organizations with this setting. """ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} """ The setting value to find organizations for. """ value: Boolean! ): OrganizationConnection! """ The setting value for whether members of organizations in the enterprise can invite outside collaborators. """ membersCanInviteCollaboratorsSetting: EnterpriseEnabledDisabledSettingValue! """ A list of enterprise organizations configured with the provided members can invite collaborators setting value. """ membersCanInviteCollaboratorsSettingOrganizations( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for organizations with this setting. """ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} """ The setting value to find organizations for. """ value: Boolean! ): OrganizationConnection! """ Indicates whether members of this enterprise's organizations can purchase additional services for those organizations. """ membersCanMakePurchasesSetting: EnterpriseMembersCanMakePurchasesSettingValue! """ The setting value for whether members with admin permissions for repositories can update protected branches. """ membersCanUpdateProtectedBranchesSetting: EnterpriseEnabledDisabledSettingValue! """ A list of enterprise organizations configured with the provided members can update protected branches setting value. """ membersCanUpdateProtectedBranchesSettingOrganizations( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for organizations with this setting. """ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} """ The setting value to find organizations for. """ value: Boolean! ): OrganizationConnection! """ The setting value for whether members can view dependency insights. """ membersCanViewDependencyInsightsSetting: EnterpriseEnabledDisabledSettingValue! """ A list of enterprise organizations configured with the provided members can view dependency insights setting value. """ membersCanViewDependencyInsightsSettingOrganizations( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for organizations with this setting. """ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} """ The setting value to find organizations for. """ value: Boolean! ): OrganizationConnection! """ Indicates if email notification delivery for this enterprise is restricted to verified or approved domains. """ notificationDeliveryRestrictionEnabledSetting: NotificationRestrictionSettingValue! """ The OIDC Identity Provider for the enterprise. """ oidcProvider: OIDCProvider """ The setting value for whether organization projects are enabled for organizations in this enterprise. """ organizationProjectsSetting: EnterpriseEnabledDisabledSettingValue! """ A list of enterprise organizations configured with the provided organization projects setting value. """ organizationProjectsSettingOrganizations( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for organizations with this setting. """ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} """ The setting value to find organizations for. """ value: Boolean! ): OrganizationConnection! """ A list of outside collaborators across the repositories in the enterprise. """ outsideCollaborators( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Only return outside collaborators with this two-factor authentication status. """ hasTwoFactorEnabled: Boolean = null """ Returns the last _n_ elements from the list. """ last: Int """ The login of one specific outside collaborator. """ login: String """ Ordering options for outside collaborators returned from the connection. """ orderBy: EnterpriseMemberOrder = {field: LOGIN, direction: ASC} """ Only return outside collaborators within the organizations with these logins """ organizationLogins: [String!] """ The search string to look for. """ query: String """ Only return outside collaborators on repositories with this visibility. """ visibility: RepositoryVisibility ): EnterpriseOutsideCollaboratorConnection! """ A list of pending administrator invitations for the enterprise. """ pendingAdminInvitations( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for pending enterprise administrator invitations returned from the connection. """ orderBy: EnterpriseAdministratorInvitationOrder = {field: CREATED_AT, direction: DESC} """ The search string to look for. """ query: String """ The role to filter by. """ role: EnterpriseAdministratorRole ): EnterpriseAdministratorInvitationConnection! """ A list of pending collaborator invitations across the repositories in the enterprise. """ pendingCollaboratorInvitations( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for pending repository collaborator invitations returned from the connection. """ orderBy: RepositoryInvitationOrder = {field: CREATED_AT, direction: DESC} """ The search string to look for. """ query: String ): RepositoryInvitationConnection! """ A list of pending member invitations for organizations in the enterprise. """ pendingMemberInvitations( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Only return invitations matching this invitation source """ invitationSource: OrganizationInvitationSource """ Returns the last _n_ elements from the list. """ last: Int """ Only return invitations within the organizations with these logins """ organizationLogins: [String!] """ The search string to look for. """ query: String ): EnterprisePendingMemberInvitationConnection! """ The setting value for whether repository projects are enabled in this enterprise. """ repositoryProjectsSetting: EnterpriseEnabledDisabledSettingValue! """ A list of enterprise organizations configured with the provided repository projects setting value. """ repositoryProjectsSettingOrganizations( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for organizations with this setting. """ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} """ The setting value to find organizations for. """ value: Boolean! ): OrganizationConnection! """ The SAML Identity Provider for the enterprise. """ samlIdentityProvider: EnterpriseIdentityProvider """ A list of enterprise organizations configured with the SAML single sign-on setting value. """ samlIdentityProviderSettingOrganizations( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for organizations with this setting. """ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} """ The setting value to find organizations for. """ value: IdentityProviderConfigurationState! ): OrganizationConnection! """ A list of members with a support entitlement. """ supportEntitlements( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for support entitlement users returned from the connection. """ orderBy: EnterpriseMemberOrder = {field: LOGIN, direction: ASC} ): EnterpriseMemberConnection! """ The setting value for whether team discussions are enabled for organizations in this enterprise. """ teamDiscussionsSetting: EnterpriseEnabledDisabledSettingValue! """ A list of enterprise organizations configured with the provided team discussions setting value. """ teamDiscussionsSettingOrganizations( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for organizations with this setting. """ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} """ The setting value to find organizations for. """ value: Boolean! ): OrganizationConnection! """ The setting value for whether the enterprise requires two-factor authentication for its organizations and users. """ twoFactorRequiredSetting: EnterpriseEnabledSettingValue! """ A list of enterprise organizations configured with the two-factor authentication setting value. """ twoFactorRequiredSettingOrganizations( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for organizations with this setting. """ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} """ The setting value to find organizations for. """ value: Boolean! ): OrganizationConnection! } """ The connection type for OrganizationInvitation. """ type EnterprisePendingMemberInvitationConnection { """ A list of edges. """ edges: [EnterprisePendingMemberInvitationEdge] """ A list of nodes. """ nodes: [OrganizationInvitation] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! """ Identifies the total count of unique users in the connection. """ totalUniqueUserCount: Int! } """ An invitation to be a member in an enterprise organization. """ type EnterprisePendingMemberInvitationEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: OrganizationInvitation } """ A subset of repository information queryable from an enterprise. """ type EnterpriseRepositoryInfo implements Node { """ The Node ID of the EnterpriseRepositoryInfo object """ id: ID! """ Identifies if the repository is private or internal. """ isPrivate: Boolean! """ The repository's name. """ name: String! """ The repository's name with owner. """ nameWithOwner: String! } """ The connection type for EnterpriseRepositoryInfo. """ type EnterpriseRepositoryInfoConnection { """ A list of edges. """ edges: [EnterpriseRepositoryInfoEdge] """ A list of nodes. """ nodes: [EnterpriseRepositoryInfo] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type EnterpriseRepositoryInfoEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: EnterpriseRepositoryInfo } """ An Enterprise Server installation. """ type EnterpriseServerInstallation implements Node { """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The customer name to which the Enterprise Server installation belongs. """ customerName: String! """ The host name of the Enterprise Server installation. """ hostName: String! """ The Node ID of the EnterpriseServerInstallation object """ id: ID! """ Whether or not the installation is connected to an Enterprise Server installation via GitHub Connect. """ isConnected: Boolean! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ User accounts on this Enterprise Server installation. """ userAccounts( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for Enterprise Server user accounts returned from the connection. """ orderBy: EnterpriseServerUserAccountOrder = {field: LOGIN, direction: ASC} ): EnterpriseServerUserAccountConnection! """ User accounts uploads for the Enterprise Server installation. """ userAccountsUploads( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for Enterprise Server user accounts uploads returned from the connection. """ orderBy: EnterpriseServerUserAccountsUploadOrder = {field: CREATED_AT, direction: DESC} ): EnterpriseServerUserAccountsUploadConnection! } """ The connection type for EnterpriseServerInstallation. """ type EnterpriseServerInstallationConnection { """ A list of edges. """ edges: [EnterpriseServerInstallationEdge] """ A list of nodes. """ nodes: [EnterpriseServerInstallation] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type EnterpriseServerInstallationEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: EnterpriseServerInstallation } """ The connection type for EnterpriseServerInstallation. """ type EnterpriseServerInstallationMembershipConnection { """ A list of edges. """ edges: [EnterpriseServerInstallationMembershipEdge] """ A list of nodes. """ nodes: [EnterpriseServerInstallation] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An Enterprise Server installation that a user is a member of. """ type EnterpriseServerInstallationMembershipEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: EnterpriseServerInstallation """ The role of the user in the enterprise membership. """ role: EnterpriseUserAccountMembershipRole! } """ Ordering options for Enterprise Server installation connections. """ input EnterpriseServerInstallationOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order Enterprise Server installations by. """ field: EnterpriseServerInstallationOrderField! } """ Properties by which Enterprise Server installation connections can be ordered. """ enum EnterpriseServerInstallationOrderField { """ Order Enterprise Server installations by creation time """ CREATED_AT """ Order Enterprise Server installations by customer name """ CUSTOMER_NAME """ Order Enterprise Server installations by host name """ HOST_NAME } """ A user account on an Enterprise Server installation. """ type EnterpriseServerUserAccount implements Node { """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ User emails belonging to this user account. """ emails( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for Enterprise Server user account emails returned from the connection. """ orderBy: EnterpriseServerUserAccountEmailOrder = {field: EMAIL, direction: ASC} ): EnterpriseServerUserAccountEmailConnection! """ The Enterprise Server installation on which this user account exists. """ enterpriseServerInstallation: EnterpriseServerInstallation! """ The Node ID of the EnterpriseServerUserAccount object """ id: ID! """ Whether the user account is a site administrator on the Enterprise Server installation. """ isSiteAdmin: Boolean! """ The login of the user account on the Enterprise Server installation. """ login: String! """ The profile name of the user account on the Enterprise Server installation. """ profileName: String """ The date and time when the user account was created on the Enterprise Server installation. """ remoteCreatedAt: DateTime! """ The ID of the user account on the Enterprise Server installation. """ remoteUserId: Int! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! } """ The connection type for EnterpriseServerUserAccount. """ type EnterpriseServerUserAccountConnection { """ A list of edges. """ edges: [EnterpriseServerUserAccountEdge] """ A list of nodes. """ nodes: [EnterpriseServerUserAccount] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type EnterpriseServerUserAccountEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: EnterpriseServerUserAccount } """ An email belonging to a user account on an Enterprise Server installation. """ type EnterpriseServerUserAccountEmail implements Node { """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The email address. """ email: String! """ The Node ID of the EnterpriseServerUserAccountEmail object """ id: ID! """ Indicates whether this is the primary email of the associated user account. """ isPrimary: Boolean! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The user account to which the email belongs. """ userAccount: EnterpriseServerUserAccount! } """ The connection type for EnterpriseServerUserAccountEmail. """ type EnterpriseServerUserAccountEmailConnection { """ A list of edges. """ edges: [EnterpriseServerUserAccountEmailEdge] """ A list of nodes. """ nodes: [EnterpriseServerUserAccountEmail] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type EnterpriseServerUserAccountEmailEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: EnterpriseServerUserAccountEmail } """ Ordering options for Enterprise Server user account email connections. """ input EnterpriseServerUserAccountEmailOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order emails by. """ field: EnterpriseServerUserAccountEmailOrderField! } """ Properties by which Enterprise Server user account email connections can be ordered. """ enum EnterpriseServerUserAccountEmailOrderField { """ Order emails by email """ EMAIL } """ Ordering options for Enterprise Server user account connections. """ input EnterpriseServerUserAccountOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order user accounts by. """ field: EnterpriseServerUserAccountOrderField! } """ Properties by which Enterprise Server user account connections can be ordered. """ enum EnterpriseServerUserAccountOrderField { """ Order user accounts by login """ LOGIN """ Order user accounts by creation time on the Enterprise Server installation """ REMOTE_CREATED_AT } """ A user accounts upload from an Enterprise Server installation. """ type EnterpriseServerUserAccountsUpload implements Node { """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The enterprise to which this upload belongs. """ enterprise: Enterprise! """ The Enterprise Server installation for which this upload was generated. """ enterpriseServerInstallation: EnterpriseServerInstallation! """ The Node ID of the EnterpriseServerUserAccountsUpload object """ id: ID! """ The name of the file uploaded. """ name: String! """ The synchronization state of the upload """ syncState: EnterpriseServerUserAccountsUploadSyncState! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! } """ The connection type for EnterpriseServerUserAccountsUpload. """ type EnterpriseServerUserAccountsUploadConnection { """ A list of edges. """ edges: [EnterpriseServerUserAccountsUploadEdge] """ A list of nodes. """ nodes: [EnterpriseServerUserAccountsUpload] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type EnterpriseServerUserAccountsUploadEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: EnterpriseServerUserAccountsUpload } """ Ordering options for Enterprise Server user accounts upload connections. """ input EnterpriseServerUserAccountsUploadOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order user accounts uploads by. """ field: EnterpriseServerUserAccountsUploadOrderField! } """ Properties by which Enterprise Server user accounts upload connections can be ordered. """ enum EnterpriseServerUserAccountsUploadOrderField { """ Order user accounts uploads by creation time """ CREATED_AT } """ Synchronization state of the Enterprise Server user accounts upload """ enum EnterpriseServerUserAccountsUploadSyncState { """ The synchronization of the upload failed. """ FAILURE """ The synchronization of the upload is pending. """ PENDING """ The synchronization of the upload succeeded. """ SUCCESS } """ An account for a user who is an admin of an enterprise or a member of an enterprise through one or more organizations. """ type EnterpriseUserAccount implements Actor & Node { """ A URL pointing to the enterprise user account's public avatar. """ avatarUrl( """ The size of the resulting square image. """ size: Int ): URI! """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The enterprise in which this user account exists. """ enterprise: Enterprise! """ A list of Enterprise Server installations this user is a member of. """ enterpriseInstallations( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for installations returned from the connection. """ orderBy: EnterpriseServerInstallationOrder = {field: HOST_NAME, direction: ASC} """ The search string to look for. """ query: String """ The role of the user in the installation. """ role: EnterpriseUserAccountMembershipRole ): EnterpriseServerInstallationMembershipConnection! """ The Node ID of the EnterpriseUserAccount object """ id: ID! """ An identifier for the enterprise user account, a login or email address """ login: String! """ The name of the enterprise user account """ name: String """ A list of enterprise organizations this user is a member of. """ organizations( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for organizations returned from the connection. """ orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} """ The search string to look for. """ query: String """ The role of the user in the enterprise organization. """ role: EnterpriseUserAccountMembershipRole ): EnterpriseOrganizationMembershipConnection! """ The HTTP path for this user. """ resourcePath: URI! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The HTTP URL for this user. """ url: URI! """ The user within the enterprise. """ user: User } """ The possible roles for enterprise membership. """ enum EnterpriseUserAccountMembershipRole { """ The user is a member of an organization in the enterprise. """ MEMBER """ The user is an owner of an organization in the enterprise. """ OWNER """ The user is not an owner of the enterprise, and not a member or owner of any organizations in the enterprise; only for EMU-enabled enterprises. """ UNAFFILIATED } """ The possible GitHub Enterprise deployments where this user can exist. """ enum EnterpriseUserDeployment { """ The user is part of a GitHub Enterprise Cloud deployment. """ CLOUD """ The user is part of a GitHub Enterprise Server deployment. """ SERVER } """ An environment. """ type Environment implements Node { """ Identifies the primary key from the database. """ databaseId: Int """ The Node ID of the Environment object """ id: ID! """ The name of the environment """ name: String! """ The protection rules defined for this environment """ protectionRules( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): DeploymentProtectionRuleConnection! } """ The connection type for Environment. """ type EnvironmentConnection { """ A list of edges. """ edges: [EnvironmentEdge] """ A list of nodes. """ nodes: [Environment] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type EnvironmentEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: Environment } """ Properties by which environments connections can be ordered """ enum EnvironmentOrderField { """ Order environments by name. """ NAME } """ Ordering options for environments """ input Environments { """ The direction in which to order environments by the specified field. """ direction: OrderDirection! """ The field to order environments by. """ field: EnvironmentOrderField! } """ An external identity provisioned by SAML SSO or SCIM. If SAML is configured on the organization, the external identity is visible to (1) organization owners, (2) organization owners' personal access tokens (classic) with read:org or admin:org scope, (3) GitHub App with an installation token with read or write access to members. If SAML is configured on the enterprise, the external identity is visible to (1) enterprise owners, (2) enterprise owners' personal access tokens (classic) with read:enterprise or admin:enterprise scope. """ type ExternalIdentity implements Node { """ The GUID for this identity """ guid: String! """ The Node ID of the ExternalIdentity object """ id: ID! """ Organization invitation for this SCIM-provisioned external identity """ organizationInvitation: OrganizationInvitation """ SAML Identity attributes """ samlIdentity: ExternalIdentitySamlAttributes """ SCIM Identity attributes """ scimIdentity: ExternalIdentityScimAttributes """ User linked to this external identity. Will be NULL if this identity has not been claimed by an organization member. """ user: User } """ An attribute for the External Identity attributes collection """ type ExternalIdentityAttribute { """ The attribute metadata as JSON """ metadata: String """ The attribute name """ name: String! """ The attribute value """ value: String! } """ The connection type for ExternalIdentity. """ type ExternalIdentityConnection { """ A list of edges. """ edges: [ExternalIdentityEdge] """ A list of nodes. """ nodes: [ExternalIdentity] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type ExternalIdentityEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: ExternalIdentity } """ SAML attributes for the External Identity """ type ExternalIdentitySamlAttributes { """ SAML Identity attributes """ attributes: [ExternalIdentityAttribute!]! """ The emails associated with the SAML identity """ emails: [UserEmailMetadata!] """ Family name of the SAML identity """ familyName: String """ Given name of the SAML identity """ givenName: String """ The groups linked to this identity in IDP """ groups: [String!] """ The NameID of the SAML identity """ nameId: String """ The userName of the SAML identity """ username: String } """ SCIM attributes for the External Identity """ type ExternalIdentityScimAttributes { """ The emails associated with the SCIM identity """ emails: [UserEmailMetadata!] """ Family name of the SCIM identity """ familyName: String """ Given name of the SCIM identity """ givenName: String """ The groups linked to this identity in IDP """ groups: [String!] """ The userName of the SCIM identity """ username: String } """ A command to add a file at the given path with the given contents as part of a commit. Any existing file at that that path will be replaced. """ input FileAddition { """ The base64 encoded contents of the file """ contents: Base64String! """ The path in the repository where the file will be located """ path: String! } """ A description of a set of changes to a file tree to be made as part of a git commit, modeled as zero or more file `additions` and zero or more file `deletions`. Both fields are optional; omitting both will produce a commit with no file changes. `deletions` and `additions` describe changes to files identified by their path in the git tree using unix-style path separators, i.e. `/`. The root of a git tree is an empty string, so paths are not slash-prefixed. `path` values must be unique across all `additions` and `deletions` provided. Any duplication will result in a validation error. ### Encoding File contents must be provided in full for each `FileAddition`. The `contents` of a `FileAddition` must be encoded using RFC 4648 compliant base64, i.e. correct padding is required and no characters outside the standard alphabet may be used. Invalid base64 encoding will be rejected with a validation error. The encoded contents may be binary. For text files, no assumptions are made about the character encoding of the file contents (after base64 decoding). No charset transcoding or line-ending normalization will be performed; it is the client's responsibility to manage the character encoding of files they provide. However, for maximum compatibility we recommend using UTF-8 encoding and ensuring that all files in a repository use a consistent line-ending convention (`\n` or `\r\n`), and that all files end with a newline. ### Modeling file changes Each of the the five types of conceptual changes that can be made in a git commit can be described using the `FileChanges` type as follows: 1. New file addition: create file `hello world\n` at path `docs/README.txt`: { "additions" [ { "path": "docs/README.txt", "contents": base64encode("hello world\n") } ] } 2. Existing file modification: change existing `docs/README.txt` to have new content `new content here\n`: { "additions" [ { "path": "docs/README.txt", "contents": base64encode("new content here\n") } ] } 3. Existing file deletion: remove existing file `docs/README.txt`. Note that the path is required to exist -- specifying a path that does not exist on the given branch will abort the commit and return an error. { "deletions" [ { "path": "docs/README.txt" } ] } 4. File rename with no changes: rename `docs/README.txt` with previous content `hello world\n` to the same content at `newdocs/README.txt`: { "deletions" [ { "path": "docs/README.txt", } ], "additions" [ { "path": "newdocs/README.txt", "contents": base64encode("hello world\n") } ] } 5. File rename with changes: rename `docs/README.txt` with previous content `hello world\n` to a file at path `newdocs/README.txt` with content `new contents\n`: { "deletions" [ { "path": "docs/README.txt", } ], "additions" [ { "path": "newdocs/README.txt", "contents": base64encode("new contents\n") } ] } """ input FileChanges { """ File to add or change. """ additions: [FileAddition!] = [] """ Files to delete. """ deletions: [FileDeletion!] = [] } """ A command to delete the file at the given path as part of a commit. """ input FileDeletion { """ The path to delete """ path: String! } """ The possible viewed states of a file . """ enum FileViewedState { """ The file has new changes since last viewed. """ DISMISSED """ The file has not been marked as viewed. """ UNVIEWED """ The file has been marked as viewed. """ VIEWED } """ Autogenerated input type of FollowOrganization """ input FollowOrganizationInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ ID of the organization to follow. """ organizationId: ID! @possibleTypes(concreteTypes: ["Organization"]) } """ Autogenerated return type of FollowOrganization """ type FollowOrganizationPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The organization that was followed. """ organization: Organization } """ Autogenerated input type of FollowUser """ input FollowUserInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ ID of the user to follow. """ userId: ID! @possibleTypes(concreteTypes: ["User"]) } """ Autogenerated return type of FollowUser """ type FollowUserPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The user that was followed. """ user: User } """ The connection type for User. """ type FollowerConnection { """ A list of edges. """ edges: [UserEdge] """ A list of nodes. """ nodes: [User] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ The connection type for User. """ type FollowingConnection { """ A list of edges. """ edges: [UserEdge] """ A list of nodes. """ nodes: [User] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ A funding platform link for a repository. """ type FundingLink { """ The funding platform this link is for. """ platform: FundingPlatform! """ The configured URL for this funding link. """ url: URI! } """ The possible funding platforms for repository funding links. """ enum FundingPlatform { """ Community Bridge funding platform. """ COMMUNITY_BRIDGE """ Custom funding platform. """ CUSTOM """ GitHub funding platform. """ GITHUB """ IssueHunt funding platform. """ ISSUEHUNT """ Ko-fi funding platform. """ KO_FI """ LFX Crowdfunding funding platform. """ LFX_CROWDFUNDING """ Liberapay funding platform. """ LIBERAPAY """ Open Collective funding platform. """ OPEN_COLLECTIVE """ Otechie funding platform. """ OTECHIE """ Patreon funding platform. """ PATREON """ Tidelift funding platform. """ TIDELIFT } """ A generic hovercard context with a message and icon """ type GenericHovercardContext implements HovercardContext { """ A string describing this context """ message: String! """ An octicon to accompany this context """ octicon: String! } """ A Gist. """ type Gist implements Node & Starrable & UniformResourceLocatable { """ A list of comments associated with the gist """ comments( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): GistCommentConnection! """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The gist description. """ description: String """ The files in this gist. """ files( """ The maximum number of files to return. """ limit: Int = 10 """ The oid of the files to return """ oid: GitObjectID ): [GistFile] """ A list of forks associated with the gist """ forks( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for gists returned from the connection """ orderBy: GistOrder ): GistConnection! """ The Node ID of the Gist object """ id: ID! """ Identifies if the gist is a fork. """ isFork: Boolean! """ Whether the gist is public or not. """ isPublic: Boolean! """ The gist name. """ name: String! """ The gist owner. """ owner: RepositoryOwner """ Identifies when the gist was last pushed to. """ pushedAt: DateTime """ The HTML path to this resource. """ resourcePath: URI! """ Returns a count of how many stargazers there are on this object """ stargazerCount: Int! """ A list of users who have starred this starrable. """ stargazers( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Order for connection """ orderBy: StarOrder ): StargazerConnection! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The HTTP URL for this Gist. """ url: URI! """ Returns a boolean indicating whether the viewing user has starred this starrable. """ viewerHasStarred: Boolean! } """ Represents a comment on an Gist. """ type GistComment implements Comment & Deletable & Minimizable & Node & Updatable & UpdatableComment { """ The actor who authored the comment. """ author: Actor """ Author's association with the gist. """ authorAssociation: CommentAuthorAssociation! """ Identifies the comment body. """ body: String! """ The body rendered to HTML. """ bodyHTML: HTML! """ The body rendered to text. """ bodyText: String! """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Check if this comment was created via an email reply. """ createdViaEmail: Boolean! """ Identifies the primary key from the database. """ databaseId: Int """ The actor who edited the comment. """ editor: Actor """ The associated gist. """ gist: Gist! """ The Node ID of the GistComment object """ id: ID! """ Check if this comment was edited and includes an edit with the creation data """ includesCreatedEdit: Boolean! """ Returns whether or not a comment has been minimized. """ isMinimized: Boolean! """ The moment the editor made the last edit """ lastEditedAt: DateTime """ Returns why the comment was minimized. One of `abuse`, `off-topic`, `outdated`, `resolved`, `duplicate` and `spam`. Note that the case and formatting of these values differs from the inputs to the `MinimizeComment` mutation. """ minimizedReason: String """ Identifies when the comment was published at. """ publishedAt: DateTime """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ A list of edits to this content. """ userContentEdits( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): UserContentEditConnection """ Check if the current viewer can delete this object. """ viewerCanDelete: Boolean! """ Check if the current viewer can minimize this object. """ viewerCanMinimize: Boolean! """ Check if the current viewer can update this object. """ viewerCanUpdate: Boolean! """ Reasons why the current viewer can not update this comment. """ viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! """ Did the viewer author this comment. """ viewerDidAuthor: Boolean! } """ The connection type for GistComment. """ type GistCommentConnection { """ A list of edges. """ edges: [GistCommentEdge] """ A list of nodes. """ nodes: [GistComment] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type GistCommentEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: GistComment } """ The connection type for Gist. """ type GistConnection { """ A list of edges. """ edges: [GistEdge] """ A list of nodes. """ nodes: [Gist] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type GistEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: Gist } """ A file in a gist. """ type GistFile { """ The file name encoded to remove characters that are invalid in URL paths. """ encodedName: String """ The gist file encoding. """ encoding: String """ The file extension from the file name. """ extension: String """ Indicates if this file is an image. """ isImage: Boolean! """ Whether the file's contents were truncated. """ isTruncated: Boolean! """ The programming language this file is written in. """ language: Language """ The gist file name. """ name: String """ The gist file size in bytes. """ size: Int """ UTF8 text data or null if the file is binary """ text( """ Optionally truncate the returned file to this length. """ truncate: Int ): String } """ Ordering options for gist connections """ input GistOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order repositories by. """ field: GistOrderField! } """ Properties by which gist connections can be ordered. """ enum GistOrderField { """ Order gists by creation time """ CREATED_AT """ Order gists by push time """ PUSHED_AT """ Order gists by update time """ UPDATED_AT } """ The privacy of a Gist """ enum GistPrivacy { """ Gists that are public and secret """ ALL """ Public """ PUBLIC """ Secret """ SECRET } """ Represents an actor in a Git commit (ie. an author or committer). """ type GitActor { """ A URL pointing to the author's public avatar. """ avatarUrl( """ The size of the resulting square image. """ size: Int ): URI! """ The timestamp of the Git action (authoring or committing). """ date: GitTimestamp """ The email in the Git commit. """ email: String """ The name in the Git commit. """ name: String """ The GitHub user corresponding to the email field. Null if no such user exists. """ user: User } """ The connection type for GitActor. """ type GitActorConnection { """ A list of edges. """ edges: [GitActorEdge] """ A list of nodes. """ nodes: [GitActor] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type GitActorEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: GitActor } """ Represents information about the GitHub instance. """ type GitHubMetadata { """ Returns a String that's a SHA of `github-services` """ gitHubServicesSha: GitObjectID! """ IP addresses that users connect to for git operations """ gitIpAddresses: [String!] """ IP addresses that GitHub Enterprise Importer uses for outbound connections """ githubEnterpriseImporterIpAddresses: [String!] """ IP addresses that service hooks are sent from """ hookIpAddresses: [String!] """ IP addresses that the importer connects from """ importerIpAddresses: [String!] """ Whether or not users are verified """ isPasswordAuthenticationVerifiable: Boolean! """ IP addresses for GitHub Pages' A records """ pagesIpAddresses: [String!] } """ Represents a Git object. """ interface GitObject { """ An abbreviated version of the Git object ID """ abbreviatedOid: String! """ The HTTP path for this Git object """ commitResourcePath: URI! """ The HTTP URL for this Git object """ commitUrl: URI! """ The Node ID of the GitObject object """ id: ID! """ The Git object ID """ oid: GitObjectID! """ The Repository the Git object belongs to """ repository: Repository! } """ A Git object ID. """ scalar GitObjectID """ A fully qualified reference name (e.g. `refs/heads/master`). """ scalar GitRefname @preview(toggledBy: "update-refs-preview") """ Git SSH string """ scalar GitSSHRemote """ Information about a signature (GPG or S/MIME) on a Commit or Tag. """ interface GitSignature { """ Email used to sign this object. """ email: String! """ True if the signature is valid and verified by GitHub. """ isValid: Boolean! """ Payload for GPG signing object. Raw ODB object without the signature header. """ payload: String! """ ASCII-armored signature header from object. """ signature: String! """ GitHub user corresponding to the email signing this commit. """ signer: User """ The state of this signature. `VALID` if signature is valid and verified by GitHub, otherwise represents reason why signature is considered invalid. """ state: GitSignatureState! """ True if the signature was made with GitHub's signing key. """ wasSignedByGitHub: Boolean! } """ The state of a Git signature. """ enum GitSignatureState { """ The signing certificate or its chain could not be verified """ BAD_CERT """ Invalid email used for signing """ BAD_EMAIL """ Signing key expired """ EXPIRED_KEY """ Internal error - the GPG verification service misbehaved """ GPGVERIFY_ERROR """ Internal error - the GPG verification service is unavailable at the moment """ GPGVERIFY_UNAVAILABLE """ Invalid signature """ INVALID """ Malformed signature """ MALFORMED_SIG """ The usage flags for the key that signed this don't allow signing """ NOT_SIGNING_KEY """ Email used for signing not known to GitHub """ NO_USER """ Valid signature, though certificate revocation check failed """ OCSP_ERROR """ Valid signature, pending certificate revocation checking """ OCSP_PENDING """ One or more certificates in chain has been revoked """ OCSP_REVOKED """ Key used for signing not known to GitHub """ UNKNOWN_KEY """ Unknown signature type """ UNKNOWN_SIG_TYPE """ Unsigned """ UNSIGNED """ Email used for signing unverified on GitHub """ UNVERIFIED_EMAIL """ Valid signature and verified by GitHub """ VALID } """ An ISO-8601 encoded date string. Unlike the DateTime type, GitTimestamp is not converted in UTC. """ scalar GitTimestamp """ Represents a GPG signature on a Commit or Tag. """ type GpgSignature implements GitSignature { """ Email used to sign this object. """ email: String! """ True if the signature is valid and verified by GitHub. """ isValid: Boolean! """ Hex-encoded ID of the key that signed this object. """ keyId: String """ Payload for GPG signing object. Raw ODB object without the signature header. """ payload: String! """ ASCII-armored signature header from object. """ signature: String! """ GitHub user corresponding to the email signing this commit. """ signer: User """ The state of this signature. `VALID` if signature is valid and verified by GitHub, otherwise represents reason why signature is considered invalid. """ state: GitSignatureState! """ True if the signature was made with GitHub's signing key. """ wasSignedByGitHub: Boolean! } """ Autogenerated input type of GrantEnterpriseOrganizationsMigratorRole """ input GrantEnterpriseOrganizationsMigratorRoleInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the enterprise to which all organizations managed by it will be granted the migrator role. """ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) """ The login of the user to grant the migrator role """ login: String! } """ Autogenerated return type of GrantEnterpriseOrganizationsMigratorRole """ type GrantEnterpriseOrganizationsMigratorRolePayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The organizations that had the migrator role applied to for the given user. """ organizations( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): OrganizationConnection } """ Autogenerated input type of GrantMigratorRole """ input GrantMigratorRoleInput { """ The user login or Team slug to grant the migrator role. """ actor: String! """ Specifies the type of the actor, can be either USER or TEAM. """ actorType: ActorType! """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the organization that the user/team belongs to. """ organizationId: ID! @possibleTypes(concreteTypes: ["Organization"]) } """ Autogenerated return type of GrantMigratorRole """ type GrantMigratorRolePayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Did the operation succeed? """ success: Boolean } """ A string containing HTML code. """ scalar HTML """ Represents a 'head_ref_deleted' event on a given pull request. """ type HeadRefDeletedEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the Ref associated with the `head_ref_deleted` event. """ headRef: Ref """ Identifies the name of the Ref associated with the `head_ref_deleted` event. """ headRefName: String! """ The Node ID of the HeadRefDeletedEvent object """ id: ID! """ PullRequest referenced by event. """ pullRequest: PullRequest! } """ Represents a 'head_ref_force_pushed' event on a given pull request. """ type HeadRefForcePushedEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the after commit SHA for the 'head_ref_force_pushed' event. """ afterCommit: Commit """ Identifies the before commit SHA for the 'head_ref_force_pushed' event. """ beforeCommit: Commit """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the HeadRefForcePushedEvent object """ id: ID! """ PullRequest referenced by event. """ pullRequest: PullRequest! """ Identifies the fully qualified ref name for the 'head_ref_force_pushed' event. """ ref: Ref } """ Represents a 'head_ref_restored' event on a given pull request. """ type HeadRefRestoredEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the HeadRefRestoredEvent object """ id: ID! """ PullRequest referenced by event. """ pullRequest: PullRequest! } """ Detail needed to display a hovercard for a user """ type Hovercard { """ Each of the contexts for this hovercard """ contexts: [HovercardContext!]! } """ An individual line of a hovercard """ interface HovercardContext { """ A string describing this context """ message: String! """ An octicon to accompany this context """ octicon: String! } """ The possible states in which authentication can be configured with an identity provider. """ enum IdentityProviderConfigurationState { """ Authentication with an identity provider is configured but not enforced. """ CONFIGURED """ Authentication with an identity provider is configured and enforced. """ ENFORCED """ Authentication with an identity provider is not configured. """ UNCONFIGURED } """ Autogenerated input type of ImportProject """ input ImportProjectInput { """ The description of Project. """ body: String """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ A list of columns containing issues and pull requests. """ columnImports: [ProjectColumnImport!]! """ The name of Project. """ name: String! """ The name of the Organization or User to create the Project under. """ ownerName: String! """ Whether the Project is public or not. """ public: Boolean = false } """ Autogenerated return type of ImportProject """ type ImportProjectPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The new Project! """ project: Project } """ Autogenerated input type of InviteEnterpriseAdmin """ input InviteEnterpriseAdminInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The email of the person to invite as an administrator. """ email: String """ The ID of the enterprise to which you want to invite an administrator. """ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) """ The login of a user to invite as an administrator. """ invitee: String """ The role of the administrator. """ role: EnterpriseAdministratorRole } """ Autogenerated return type of InviteEnterpriseAdmin """ type InviteEnterpriseAdminPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The created enterprise administrator invitation. """ invitation: EnterpriseAdministratorInvitation } """ The possible values for the IP allow list enabled setting. """ enum IpAllowListEnabledSettingValue { """ The setting is disabled for the owner. """ DISABLED """ The setting is enabled for the owner. """ ENABLED } """ An IP address or range of addresses that is allowed to access an owner's resources. """ type IpAllowListEntry implements Node { """ A single IP address or range of IP addresses in CIDR notation. """ allowListValue: String! """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the IpAllowListEntry object """ id: ID! """ Whether the entry is currently active. """ isActive: Boolean! """ The name of the IP allow list entry. """ name: String """ The owner of the IP allow list entry. """ owner: IpAllowListOwner! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! } """ The connection type for IpAllowListEntry. """ type IpAllowListEntryConnection { """ A list of edges. """ edges: [IpAllowListEntryEdge] """ A list of nodes. """ nodes: [IpAllowListEntry] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type IpAllowListEntryEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: IpAllowListEntry } """ Ordering options for IP allow list entry connections. """ input IpAllowListEntryOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order IP allow list entries by. """ field: IpAllowListEntryOrderField! } """ Properties by which IP allow list entry connections can be ordered. """ enum IpAllowListEntryOrderField { """ Order IP allow list entries by the allow list value. """ ALLOW_LIST_VALUE """ Order IP allow list entries by creation time. """ CREATED_AT } """ The possible values for the IP allow list configuration for installed GitHub Apps setting. """ enum IpAllowListForInstalledAppsEnabledSettingValue { """ The setting is disabled for the owner. """ DISABLED """ The setting is enabled for the owner. """ ENABLED } """ Types that can own an IP allow list. """ union IpAllowListOwner = App | Enterprise | Organization """ An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. """ type Issue implements Assignable & Closable & Comment & Deletable & Labelable & Lockable & Node & ProjectV2Owner & Reactable & RepositoryNode & Subscribable & SubscribableThread & UniformResourceLocatable & Updatable & UpdatableComment { """ Reason that the conversation was locked. """ activeLockReason: LockReason """ A list of Users assigned to this object. """ assignees( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): UserConnection! """ The actor who authored the comment. """ author: Actor """ Author's association with the subject of the comment. """ authorAssociation: CommentAuthorAssociation! """ Identifies the body of the issue. """ body: String! """ The body rendered to HTML. """ bodyHTML: HTML! """ The http path for this issue body """ bodyResourcePath: URI! """ Identifies the body of the issue rendered to text. """ bodyText: String! """ The http URL for this issue body """ bodyUrl: URI! """ Indicates if the object is closed (definition of closed may depend on type) """ closed: Boolean! """ Identifies the date and time when the object was closed. """ closedAt: DateTime """ A list of comments associated with the Issue. """ comments( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for issue comments returned from the connection. """ orderBy: IssueCommentOrder ): IssueCommentConnection! """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Check if this comment was created via an email reply. """ createdViaEmail: Boolean! """ Identifies the primary key from the database. """ databaseId: Int """ The actor who edited the comment. """ editor: Actor """ Identifies the primary key from the database as a BigInt. """ fullDatabaseId: BigInt """ The hovercard information for this issue """ hovercard( """ Whether or not to include notification contexts """ includeNotificationContexts: Boolean = true ): Hovercard! """ The Node ID of the Issue object """ id: ID! """ Check if this comment was edited and includes an edit with the creation data """ includesCreatedEdit: Boolean! """ Indicates whether or not this issue is currently pinned to the repository issues list """ isPinned: Boolean """ Is this issue read by the viewer """ isReadByViewer: Boolean """ A list of labels associated with the object. """ labels( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for labels returned from the connection. """ orderBy: LabelOrder = {field: CREATED_AT, direction: ASC} ): LabelConnection """ The moment the editor made the last edit """ lastEditedAt: DateTime """ Branches linked to this issue. """ linkedBranches( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): LinkedBranchConnection! """ `true` if the object is locked """ locked: Boolean! """ Identifies the milestone associated with the issue. """ milestone: Milestone """ Identifies the issue number. """ number: Int! """ A list of Users that are participating in the Issue conversation. """ participants( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): UserConnection! """ List of project cards associated with this issue. """ projectCards( """ Returns the elements in the list that come after the specified cursor. """ after: String """ A list of archived states to filter the cards by """ archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED] """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): ProjectCardConnection! """ List of project items associated with this issue. """ projectItems( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Include archived items. """ includeArchived: Boolean = true """ Returns the last _n_ elements from the list. """ last: Int ): ProjectV2ItemConnection! """ Find a project by number. """ projectV2( """ The project number. """ number: Int! ): ProjectV2 """ A list of projects under the owner. """ projectsV2( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ How to order the returned projects. """ orderBy: ProjectV2Order = {field: NUMBER, direction: DESC} """ A project to search for under the the owner. """ query: String ): ProjectV2Connection! """ Identifies when the comment was published at. """ publishedAt: DateTime """ A list of reactions grouped by content left on the subject. """ reactionGroups: [ReactionGroup!] """ A list of Reactions left on the Issue. """ reactions( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Allows filtering Reactions by emoji. """ content: ReactionContent """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Allows specifying the order in which reactions are returned. """ orderBy: ReactionOrder ): ReactionConnection! """ The repository associated with this node. """ repository: Repository! """ The HTTP path for this issue """ resourcePath: URI! """ Identifies the state of the issue. """ state: IssueState! """ Identifies the reason for the issue state. """ stateReason: IssueStateReason """ A list of events, comments, commits, etc. associated with the issue. """ timeline( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Allows filtering timeline events by a `since` timestamp. """ since: DateTime ): IssueTimelineConnection! @deprecated(reason: "`timeline` will be removed Use Issue.timelineItems instead. Removal on 2020-10-01 UTC.") """ A list of events, comments, commits, etc. associated with the issue. """ timelineItems( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Filter timeline items by type. """ itemTypes: [IssueTimelineItemsItemType!] """ Returns the last _n_ elements from the list. """ last: Int """ Filter timeline items by a `since` timestamp. """ since: DateTime """ Skips the first _n_ elements in the list. """ skip: Int ): IssueTimelineItemsConnection! """ Identifies the issue title. """ title: String! """ Identifies the issue title rendered to HTML. """ titleHTML: String! """ A list of issues that track this issue """ trackedInIssues( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): IssueConnection! """ A list of issues tracked inside the current issue """ trackedIssues( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): IssueConnection! """ The number of tracked issues for this issue """ trackedIssuesCount( """ Limit the count to tracked issues with the specified states. """ states: [TrackedIssueStates] ): Int! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The HTTP URL for this issue """ url: URI! """ A list of edits to this content. """ userContentEdits( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): UserContentEditConnection """ Indicates if the object can be closed by the viewer. """ viewerCanClose: Boolean! """ Check if the current viewer can delete this object. """ viewerCanDelete: Boolean! """ Can user react to this subject """ viewerCanReact: Boolean! """ Indicates if the object can be reopened by the viewer. """ viewerCanReopen: Boolean! """ Check if the viewer is able to change their subscription status for the repository. """ viewerCanSubscribe: Boolean! """ Check if the current viewer can update this object. """ viewerCanUpdate: Boolean! """ Reasons why the current viewer can not update this comment. """ viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! """ Did the viewer author this comment. """ viewerDidAuthor: Boolean! """ Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. """ viewerSubscription: SubscriptionState """ Identifies the viewer's thread subscription form action. """ viewerThreadSubscriptionFormAction: ThreadSubscriptionFormAction """ Identifies the viewer's thread subscription status. """ viewerThreadSubscriptionStatus: ThreadSubscriptionState } """ The possible state reasons of a closed issue. """ enum IssueClosedStateReason { """ An issue that has been closed as completed """ COMPLETED """ An issue that has been closed as not planned """ NOT_PLANNED } """ Represents a comment on an Issue. """ type IssueComment implements Comment & Deletable & Minimizable & Node & Reactable & RepositoryNode & Updatable & UpdatableComment { """ The actor who authored the comment. """ author: Actor """ Author's association with the subject of the comment. """ authorAssociation: CommentAuthorAssociation! """ The body as Markdown. """ body: String! """ The body rendered to HTML. """ bodyHTML: HTML! """ The body rendered to text. """ bodyText: String! """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Check if this comment was created via an email reply. """ createdViaEmail: Boolean! """ Identifies the primary key from the database. """ databaseId: Int """ The actor who edited the comment. """ editor: Actor """ Identifies the primary key from the database as a BigInt. """ fullDatabaseId: BigInt """ The Node ID of the IssueComment object """ id: ID! """ Check if this comment was edited and includes an edit with the creation data """ includesCreatedEdit: Boolean! """ Returns whether or not a comment has been minimized. """ isMinimized: Boolean! """ Identifies the issue associated with the comment. """ issue: Issue! """ The moment the editor made the last edit """ lastEditedAt: DateTime """ Returns why the comment was minimized. One of `abuse`, `off-topic`, `outdated`, `resolved`, `duplicate` and `spam`. Note that the case and formatting of these values differs from the inputs to the `MinimizeComment` mutation. """ minimizedReason: String """ Identifies when the comment was published at. """ publishedAt: DateTime """ Returns the pull request associated with the comment, if this comment was made on a pull request. """ pullRequest: PullRequest """ A list of reactions grouped by content left on the subject. """ reactionGroups: [ReactionGroup!] """ A list of Reactions left on the Issue. """ reactions( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Allows filtering Reactions by emoji. """ content: ReactionContent """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Allows specifying the order in which reactions are returned. """ orderBy: ReactionOrder ): ReactionConnection! """ The repository associated with this node. """ repository: Repository! """ The HTTP path for this issue comment """ resourcePath: URI! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The HTTP URL for this issue comment """ url: URI! """ A list of edits to this content. """ userContentEdits( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): UserContentEditConnection """ Check if the current viewer can delete this object. """ viewerCanDelete: Boolean! """ Check if the current viewer can minimize this object. """ viewerCanMinimize: Boolean! """ Can user react to this subject """ viewerCanReact: Boolean! """ Check if the current viewer can update this object. """ viewerCanUpdate: Boolean! """ Reasons why the current viewer can not update this comment. """ viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! """ Did the viewer author this comment. """ viewerDidAuthor: Boolean! } """ The connection type for IssueComment. """ type IssueCommentConnection { """ A list of edges. """ edges: [IssueCommentEdge] """ A list of nodes. """ nodes: [IssueComment] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type IssueCommentEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: IssueComment } """ Ways in which lists of issue comments can be ordered upon return. """ input IssueCommentOrder { """ The direction in which to order issue comments by the specified field. """ direction: OrderDirection! """ The field in which to order issue comments by. """ field: IssueCommentOrderField! } """ Properties by which issue comment connections can be ordered. """ enum IssueCommentOrderField { """ Order issue comments by update time """ UPDATED_AT } """ The connection type for Issue. """ type IssueConnection { """ A list of edges. """ edges: [IssueEdge] """ A list of nodes. """ nodes: [Issue] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ This aggregates issues opened by a user within one repository. """ type IssueContributionsByRepository { """ The issue contributions. """ contributions( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for contributions returned from the connection. """ orderBy: ContributionOrder = {direction: DESC} ): CreatedIssueContributionConnection! """ The repository in which the issues were opened. """ repository: Repository! } """ An edge in a connection. """ type IssueEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: Issue } """ Ways in which to filter lists of issues. """ input IssueFilters { """ List issues assigned to given name. Pass in `null` for issues with no assigned user, and `*` for issues assigned to any user. """ assignee: String """ List issues created by given name. """ createdBy: String """ List issues where the list of label names exist on the issue. """ labels: [String!] """ List issues where the given name is mentioned in the issue. """ mentioned: String """ List issues by given milestone argument. If an string representation of an integer is passed, it should refer to a milestone by its database ID. Pass in `null` for issues with no milestone, and `*` for issues that are assigned to any milestone. """ milestone: String """ List issues by given milestone argument. If an string representation of an integer is passed, it should refer to a milestone by its number field. Pass in `null` for issues with no milestone, and `*` for issues that are assigned to any milestone. """ milestoneNumber: String """ List issues that have been updated at or after the given date. """ since: DateTime """ List issues filtered by the list of states given. """ states: [IssueState!] """ List issues subscribed to by viewer. """ viewerSubscribed: Boolean = false } """ Used for return value of Repository.issueOrPullRequest. """ union IssueOrPullRequest = Issue | PullRequest """ Ways in which lists of issues can be ordered upon return. """ input IssueOrder { """ The direction in which to order issues by the specified field. """ direction: OrderDirection! """ The field in which to order issues by. """ field: IssueOrderField! } """ Properties by which issue connections can be ordered. """ enum IssueOrderField { """ Order issues by comment count """ COMMENTS """ Order issues by creation time """ CREATED_AT """ Order issues by update time """ UPDATED_AT } """ The possible states of an issue. """ enum IssueState { """ An issue that has been closed """ CLOSED """ An issue that is still open """ OPEN } """ The possible state reasons of an issue. """ enum IssueStateReason { """ An issue that has been closed as completed """ COMPLETED """ An issue that has been closed as not planned """ NOT_PLANNED """ An issue that has been reopened """ REOPENED } """ A repository issue template. """ type IssueTemplate { """ The template purpose. """ about: String """ The suggested assignees. """ assignees( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): UserConnection! """ The suggested issue body. """ body: String """ The template filename. """ filename: String! """ The suggested issue labels """ labels( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for labels returned from the connection. """ orderBy: LabelOrder = {field: CREATED_AT, direction: ASC} ): LabelConnection """ The template name. """ name: String! """ The suggested issue title. """ title: String } """ The connection type for IssueTimelineItem. """ type IssueTimelineConnection { """ A list of edges. """ edges: [IssueTimelineItemEdge] """ A list of nodes. """ nodes: [IssueTimelineItem] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An item in an issue timeline """ union IssueTimelineItem = AssignedEvent | ClosedEvent | Commit | CrossReferencedEvent | DemilestonedEvent | IssueComment | LabeledEvent | LockedEvent | MilestonedEvent | ReferencedEvent | RenamedTitleEvent | ReopenedEvent | SubscribedEvent | TransferredEvent | UnassignedEvent | UnlabeledEvent | UnlockedEvent | UnsubscribedEvent | UserBlockedEvent """ An edge in a connection. """ type IssueTimelineItemEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: IssueTimelineItem } """ An item in an issue timeline """ union IssueTimelineItems = AddedToProjectEvent | AssignedEvent | ClosedEvent | CommentDeletedEvent | ConnectedEvent | ConvertedNoteToIssueEvent | ConvertedToDiscussionEvent | CrossReferencedEvent | DemilestonedEvent | DisconnectedEvent | IssueComment | LabeledEvent | LockedEvent | MarkedAsDuplicateEvent | MentionedEvent | MilestonedEvent | MovedColumnsInProjectEvent | PinnedEvent | ReferencedEvent | RemovedFromProjectEvent | RenamedTitleEvent | ReopenedEvent | SubscribedEvent | TransferredEvent | UnassignedEvent | UnlabeledEvent | UnlockedEvent | UnmarkedAsDuplicateEvent | UnpinnedEvent | UnsubscribedEvent | UserBlockedEvent """ The connection type for IssueTimelineItems. """ type IssueTimelineItemsConnection { """ A list of edges. """ edges: [IssueTimelineItemsEdge] """ Identifies the count of items after applying `before` and `after` filters. """ filteredCount: Int! """ A list of nodes. """ nodes: [IssueTimelineItems] """ Identifies the count of items after applying `before`/`after` filters and `first`/`last`/`skip` slicing. """ pageCount: Int! """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! """ Identifies the date and time when the timeline was last updated. """ updatedAt: DateTime! } """ An edge in a connection. """ type IssueTimelineItemsEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: IssueTimelineItems } """ The possible item types found in a timeline. """ enum IssueTimelineItemsItemType { """ Represents a 'added_to_project' event on a given issue or pull request. """ ADDED_TO_PROJECT_EVENT """ Represents an 'assigned' event on any assignable object. """ ASSIGNED_EVENT """ Represents a 'closed' event on any `Closable`. """ CLOSED_EVENT """ Represents a 'comment_deleted' event on a given issue or pull request. """ COMMENT_DELETED_EVENT """ Represents a 'connected' event on a given issue or pull request. """ CONNECTED_EVENT """ Represents a 'converted_note_to_issue' event on a given issue or pull request. """ CONVERTED_NOTE_TO_ISSUE_EVENT """ Represents a 'converted_to_discussion' event on a given issue. """ CONVERTED_TO_DISCUSSION_EVENT """ Represents a mention made by one issue or pull request to another. """ CROSS_REFERENCED_EVENT """ Represents a 'demilestoned' event on a given issue or pull request. """ DEMILESTONED_EVENT """ Represents a 'disconnected' event on a given issue or pull request. """ DISCONNECTED_EVENT """ Represents a comment on an Issue. """ ISSUE_COMMENT """ Represents a 'labeled' event on a given issue or pull request. """ LABELED_EVENT """ Represents a 'locked' event on a given issue or pull request. """ LOCKED_EVENT """ Represents a 'marked_as_duplicate' event on a given issue or pull request. """ MARKED_AS_DUPLICATE_EVENT """ Represents a 'mentioned' event on a given issue or pull request. """ MENTIONED_EVENT """ Represents a 'milestoned' event on a given issue or pull request. """ MILESTONED_EVENT """ Represents a 'moved_columns_in_project' event on a given issue or pull request. """ MOVED_COLUMNS_IN_PROJECT_EVENT """ Represents a 'pinned' event on a given issue or pull request. """ PINNED_EVENT """ Represents a 'referenced' event on a given `ReferencedSubject`. """ REFERENCED_EVENT """ Represents a 'removed_from_project' event on a given issue or pull request. """ REMOVED_FROM_PROJECT_EVENT """ Represents a 'renamed' event on a given issue or pull request """ RENAMED_TITLE_EVENT """ Represents a 'reopened' event on any `Closable`. """ REOPENED_EVENT """ Represents a 'subscribed' event on a given `Subscribable`. """ SUBSCRIBED_EVENT """ Represents a 'transferred' event on a given issue or pull request. """ TRANSFERRED_EVENT """ Represents an 'unassigned' event on any assignable object. """ UNASSIGNED_EVENT """ Represents an 'unlabeled' event on a given issue or pull request. """ UNLABELED_EVENT """ Represents an 'unlocked' event on a given issue or pull request. """ UNLOCKED_EVENT """ Represents an 'unmarked_as_duplicate' event on a given issue or pull request. """ UNMARKED_AS_DUPLICATE_EVENT """ Represents an 'unpinned' event on a given issue or pull request. """ UNPINNED_EVENT """ Represents an 'unsubscribed' event on a given `Subscribable`. """ UNSUBSCRIBED_EVENT """ Represents a 'user_blocked' event on a given user. """ USER_BLOCKED_EVENT } """ Represents a user signing up for a GitHub account. """ type JoinedGitHubContribution implements Contribution { """ Whether this contribution is associated with a record you do not have access to. For example, your own 'first issue' contribution may have been made on a repository you can no longer access. """ isRestricted: Boolean! """ When this contribution was made. """ occurredAt: DateTime! """ The HTTP path for this contribution. """ resourcePath: URI! """ The HTTP URL for this contribution. """ url: URI! """ The user who made this contribution. """ user: User! } """ A label for categorizing Issues, Pull Requests, Milestones, or Discussions with a given Repository. """ type Label implements Node { """ Identifies the label color. """ color: String! """ Identifies the date and time when the label was created. """ createdAt: DateTime """ A brief description of this label. """ description: String """ The Node ID of the Label object """ id: ID! """ Indicates whether or not this is a default label. """ isDefault: Boolean! """ A list of issues associated with this label. """ issues( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Filtering options for issues returned from the connection. """ filterBy: IssueFilters """ Returns the first _n_ elements from the list. """ first: Int """ A list of label names to filter the pull requests by. """ labels: [String!] """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for issues returned from the connection. """ orderBy: IssueOrder """ A list of states to filter the issues by. """ states: [IssueState!] ): IssueConnection! """ Identifies the label name. """ name: String! """ A list of pull requests associated with this label. """ pullRequests( """ Returns the elements in the list that come after the specified cursor. """ after: String """ The base ref name to filter the pull requests by. """ baseRefName: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ The head ref name to filter the pull requests by. """ headRefName: String """ A list of label names to filter the pull requests by. """ labels: [String!] """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for pull requests returned from the connection. """ orderBy: IssueOrder """ A list of states to filter the pull requests by. """ states: [PullRequestState!] ): PullRequestConnection! """ The repository associated with this label. """ repository: Repository! """ The HTTP path for this label. """ resourcePath: URI! """ Identifies the date and time when the label was last updated. """ updatedAt: DateTime """ The HTTP URL for this label. """ url: URI! } """ The connection type for Label. """ type LabelConnection { """ A list of edges. """ edges: [LabelEdge] """ A list of nodes. """ nodes: [Label] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type LabelEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: Label } """ Ways in which lists of labels can be ordered upon return. """ input LabelOrder { """ The direction in which to order labels by the specified field. """ direction: OrderDirection! """ The field in which to order labels by. """ field: LabelOrderField! } """ Properties by which label connections can be ordered. """ enum LabelOrderField { """ Order labels by creation time """ CREATED_AT """ Order labels by name """ NAME } """ An object that can have labels assigned to it. """ interface Labelable { """ A list of labels associated with the object. """ labels( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for labels returned from the connection. """ orderBy: LabelOrder = {field: CREATED_AT, direction: ASC} ): LabelConnection } """ Represents a 'labeled' event on a given issue or pull request. """ type LabeledEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the LabeledEvent object """ id: ID! """ Identifies the label associated with the 'labeled' event. """ label: Label! """ Identifies the `Labelable` associated with the event. """ labelable: Labelable! } """ Represents a given language found in repositories. """ type Language implements Node { """ The color defined for the current language. """ color: String """ The Node ID of the Language object """ id: ID! """ The name of the current language. """ name: String! } """ A list of languages associated with the parent. """ type LanguageConnection { """ A list of edges. """ edges: [LanguageEdge] """ A list of nodes. """ nodes: [Language] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! """ The total size in bytes of files written in that language. """ totalSize: Int! } """ Represents the language of a repository. """ type LanguageEdge { cursor: String! node: Language! """ The number of bytes of code written in the language. """ size: Int! } """ Ordering options for language connections. """ input LanguageOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order languages by. """ field: LanguageOrderField! } """ Properties by which language connections can be ordered. """ enum LanguageOrderField { """ Order languages by the size of all files containing the language """ SIZE } """ A repository's open source license """ type License implements Node { """ The full text of the license """ body: String! """ The conditions set by the license """ conditions: [LicenseRule]! """ A human-readable description of the license """ description: String """ Whether the license should be featured """ featured: Boolean! """ Whether the license should be displayed in license pickers """ hidden: Boolean! """ The Node ID of the License object """ id: ID! """ Instructions on how to implement the license """ implementation: String """ The lowercased SPDX ID of the license """ key: String! """ The limitations set by the license """ limitations: [LicenseRule]! """ The license full name specified by """ name: String! """ Customary short name if applicable (e.g, GPLv3) """ nickname: String """ The permissions set by the license """ permissions: [LicenseRule]! """ Whether the license is a pseudo-license placeholder (e.g., other, no-license) """ pseudoLicense: Boolean! """ Short identifier specified by """ spdxId: String """ URL to the license on """ url: URI } """ Describes a License's conditions, permissions, and limitations """ type LicenseRule { """ A description of the rule """ description: String! """ The machine-readable rule key """ key: String! """ The human-readable rule label """ label: String! } """ Autogenerated input type of LinkProjectV2ToRepository """ input LinkProjectV2ToRepositoryInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the project to link to the repository. """ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"]) """ The ID of the repository to link to the project. """ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"]) } """ Autogenerated return type of LinkProjectV2ToRepository """ type LinkProjectV2ToRepositoryPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The repository the project is linked to. """ repository: Repository } """ Autogenerated input type of LinkProjectV2ToTeam """ input LinkProjectV2ToTeamInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the project to link to the team. """ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"]) """ The ID of the team to link to the project. """ teamId: ID! @possibleTypes(concreteTypes: ["Team"]) } """ Autogenerated return type of LinkProjectV2ToTeam """ type LinkProjectV2ToTeamPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The team the project is linked to """ team: Team } """ Autogenerated input type of LinkRepositoryToProject """ input LinkRepositoryToProjectInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the Project to link to a Repository """ projectId: ID! @possibleTypes(concreteTypes: ["Project"]) """ The ID of the Repository to link to a Project. """ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"]) } """ Autogenerated return type of LinkRepositoryToProject """ type LinkRepositoryToProjectPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The linked Project. """ project: Project """ The linked Repository. """ repository: Repository } """ A branch linked to an issue. """ type LinkedBranch implements Node { """ The Node ID of the LinkedBranch object """ id: ID! """ The branch's ref. """ ref: Ref } """ The connection type for LinkedBranch. """ type LinkedBranchConnection { """ A list of edges. """ edges: [LinkedBranchEdge] """ A list of nodes. """ nodes: [LinkedBranch] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type LinkedBranchEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: LinkedBranch } """ Autogenerated input type of LockLockable """ input LockLockableInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ A reason for why the item will be locked. """ lockReason: LockReason """ ID of the item to be locked. """ lockableId: ID! @possibleTypes(concreteTypes: ["Discussion", "Issue", "PullRequest"], abstractType: "Lockable") } """ Autogenerated return type of LockLockable """ type LockLockablePayload { """ Identifies the actor who performed the event. """ actor: Actor """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The item that was locked. """ lockedRecord: Lockable } """ The possible reasons that an issue or pull request was locked. """ enum LockReason { """ The issue or pull request was locked because the conversation was off-topic. """ OFF_TOPIC """ The issue or pull request was locked because the conversation was resolved. """ RESOLVED """ The issue or pull request was locked because the conversation was spam. """ SPAM """ The issue or pull request was locked because the conversation was too heated. """ TOO_HEATED } """ An object that can be locked. """ interface Lockable { """ Reason that the conversation was locked. """ activeLockReason: LockReason """ `true` if the object is locked """ locked: Boolean! } """ Represents a 'locked' event on a given issue or pull request. """ type LockedEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the LockedEvent object """ id: ID! """ Reason that the conversation was locked (optional). """ lockReason: LockReason """ Object that was locked. """ lockable: Lockable! } """ A placeholder user for attribution of imported data on GitHub. """ type Mannequin implements Actor & Node & UniformResourceLocatable { """ A URL pointing to the GitHub App's public avatar. """ avatarUrl( """ The size of the resulting square image. """ size: Int ): URI! """ The user that has claimed the data attributed to this mannequin. """ claimant: User """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the primary key from the database. """ databaseId: Int """ The mannequin's email on the source instance. """ email: String """ The Node ID of the Mannequin object """ id: ID! """ The username of the actor. """ login: String! """ The HTML path to this resource. """ resourcePath: URI! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The URL to this resource. """ url: URI! } """ The connection type for Mannequin. """ type MannequinConnection { """ A list of edges. """ edges: [MannequinEdge] """ A list of nodes. """ nodes: [Mannequin] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ Represents a mannequin. """ type MannequinEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: Mannequin } """ Ordering options for mannequins. """ input MannequinOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order mannequins by. """ field: MannequinOrderField! } """ Properties by which mannequins can be ordered. """ enum MannequinOrderField { """ Order mannequins why when they were created. """ CREATED_AT """ Order mannequins alphabetically by their source login. """ LOGIN } """ Autogenerated input type of MarkDiscussionCommentAsAnswer """ input MarkDiscussionCommentAsAnswerInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Node ID of the discussion comment to mark as an answer. """ id: ID! @possibleTypes(concreteTypes: ["DiscussionComment"]) } """ Autogenerated return type of MarkDiscussionCommentAsAnswer """ type MarkDiscussionCommentAsAnswerPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The discussion that includes the chosen comment. """ discussion: Discussion } """ Autogenerated input type of MarkFileAsViewed """ input MarkFileAsViewedInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The path of the file to mark as viewed """ path: String! """ The Node ID of the pull request. """ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"]) } """ Autogenerated return type of MarkFileAsViewed """ type MarkFileAsViewedPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The updated pull request. """ pullRequest: PullRequest } """ Autogenerated input type of MarkProjectV2AsTemplate """ input MarkProjectV2AsTemplateInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the Project to mark as a template. """ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"]) } """ Autogenerated return type of MarkProjectV2AsTemplate """ type MarkProjectV2AsTemplatePayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The project. """ projectV2: ProjectV2 } """ Autogenerated input type of MarkPullRequestReadyForReview """ input MarkPullRequestReadyForReviewInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ ID of the pull request to be marked as ready for review. """ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"]) } """ Autogenerated return type of MarkPullRequestReadyForReview """ type MarkPullRequestReadyForReviewPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The pull request that is ready for review. """ pullRequest: PullRequest } """ Represents a 'marked_as_duplicate' event on a given issue or pull request. """ type MarkedAsDuplicateEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ The authoritative issue or pull request which has been duplicated by another. """ canonical: IssueOrPullRequest """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The issue or pull request which has been marked as a duplicate of another. """ duplicate: IssueOrPullRequest """ The Node ID of the MarkedAsDuplicateEvent object """ id: ID! """ Canonical and duplicate belong to different repositories. """ isCrossRepository: Boolean! } """ A public description of a Marketplace category. """ type MarketplaceCategory implements Node { """ The category's description. """ description: String """ The technical description of how apps listed in this category work with GitHub. """ howItWorks: String """ The Node ID of the MarketplaceCategory object """ id: ID! """ The category's name. """ name: String! """ How many Marketplace listings have this as their primary category. """ primaryListingCount: Int! """ The HTTP path for this Marketplace category. """ resourcePath: URI! """ How many Marketplace listings have this as their secondary category. """ secondaryListingCount: Int! """ The short name of the category used in its URL. """ slug: String! """ The HTTP URL for this Marketplace category. """ url: URI! } """ A listing in the GitHub integration marketplace. """ type MarketplaceListing implements Node { """ The GitHub App this listing represents. """ app: App """ URL to the listing owner's company site. """ companyUrl: URI """ The HTTP path for configuring access to the listing's integration or OAuth app """ configurationResourcePath: URI! """ The HTTP URL for configuring access to the listing's integration or OAuth app """ configurationUrl: URI! """ URL to the listing's documentation. """ documentationUrl: URI """ The listing's detailed description. """ extendedDescription: String """ The listing's detailed description rendered to HTML. """ extendedDescriptionHTML: HTML! """ The listing's introductory description. """ fullDescription: String! """ The listing's introductory description rendered to HTML. """ fullDescriptionHTML: HTML! """ Does this listing have any plans with a free trial? """ hasPublishedFreeTrialPlans: Boolean! """ Does this listing have a terms of service link? """ hasTermsOfService: Boolean! """ Whether the creator of the app is a verified org """ hasVerifiedOwner: Boolean! """ A technical description of how this app works with GitHub. """ howItWorks: String """ The listing's technical description rendered to HTML. """ howItWorksHTML: HTML! """ The Node ID of the MarketplaceListing object """ id: ID! """ URL to install the product to the viewer's account or organization. """ installationUrl: URI """ Whether this listing's app has been installed for the current viewer """ installedForViewer: Boolean! """ Whether this listing has been removed from the Marketplace. """ isArchived: Boolean! """ Whether this listing is still an editable draft that has not been submitted for review and is not publicly visible in the Marketplace. """ isDraft: Boolean! """ Whether the product this listing represents is available as part of a paid plan. """ isPaid: Boolean! """ Whether this listing has been approved for display in the Marketplace. """ isPublic: Boolean! """ Whether this listing has been rejected by GitHub for display in the Marketplace. """ isRejected: Boolean! """ Whether this listing has been approved for unverified display in the Marketplace. """ isUnverified: Boolean! """ Whether this draft listing has been submitted for review for approval to be unverified in the Marketplace. """ isUnverifiedPending: Boolean! """ Whether this draft listing has been submitted for review from GitHub for approval to be verified in the Marketplace. """ isVerificationPendingFromDraft: Boolean! """ Whether this unverified listing has been submitted for review from GitHub for approval to be verified in the Marketplace. """ isVerificationPendingFromUnverified: Boolean! """ Whether this listing has been approved for verified display in the Marketplace. """ isVerified: Boolean! """ The hex color code, without the leading '#', for the logo background. """ logoBackgroundColor: String! """ URL for the listing's logo image. """ logoUrl( """ The size in pixels of the resulting square image. """ size: Int = 400 ): URI """ The listing's full name. """ name: String! """ The listing's very short description without a trailing period or ampersands. """ normalizedShortDescription: String! """ URL to the listing's detailed pricing. """ pricingUrl: URI """ The category that best describes the listing. """ primaryCategory: MarketplaceCategory! """ URL to the listing's privacy policy, may return an empty string for listings that do not require a privacy policy URL. """ privacyPolicyUrl: URI! """ The HTTP path for the Marketplace listing. """ resourcePath: URI! """ The URLs for the listing's screenshots. """ screenshotUrls: [String]! """ An alternate category that describes the listing. """ secondaryCategory: MarketplaceCategory """ The listing's very short description. """ shortDescription: String! """ The short name of the listing used in its URL. """ slug: String! """ URL to the listing's status page. """ statusUrl: URI """ An email address for support for this listing's app. """ supportEmail: String """ Either a URL or an email address for support for this listing's app, may return an empty string for listings that do not require a support URL. """ supportUrl: URI! """ URL to the listing's terms of service. """ termsOfServiceUrl: URI """ The HTTP URL for the Marketplace listing. """ url: URI! """ Can the current viewer add plans for this Marketplace listing. """ viewerCanAddPlans: Boolean! """ Can the current viewer approve this Marketplace listing. """ viewerCanApprove: Boolean! """ Can the current viewer delist this Marketplace listing. """ viewerCanDelist: Boolean! """ Can the current viewer edit this Marketplace listing. """ viewerCanEdit: Boolean! """ Can the current viewer edit the primary and secondary category of this Marketplace listing. """ viewerCanEditCategories: Boolean! """ Can the current viewer edit the plans for this Marketplace listing. """ viewerCanEditPlans: Boolean! """ Can the current viewer return this Marketplace listing to draft state so it becomes editable again. """ viewerCanRedraft: Boolean! """ Can the current viewer reject this Marketplace listing by returning it to an editable draft state or rejecting it entirely. """ viewerCanReject: Boolean! """ Can the current viewer request this listing be reviewed for display in the Marketplace as verified. """ viewerCanRequestApproval: Boolean! """ Indicates whether the current user has an active subscription to this Marketplace listing. """ viewerHasPurchased: Boolean! """ Indicates if the current user has purchased a subscription to this Marketplace listing for all of the organizations the user owns. """ viewerHasPurchasedForAllOrganizations: Boolean! """ Does the current viewer role allow them to administer this Marketplace listing. """ viewerIsListingAdmin: Boolean! } """ Look up Marketplace Listings """ type MarketplaceListingConnection { """ A list of edges. """ edges: [MarketplaceListingEdge] """ A list of nodes. """ nodes: [MarketplaceListing] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type MarketplaceListingEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: MarketplaceListing } """ Represents a member feature request notification """ type MemberFeatureRequestNotification implements Node { """ Represents member feature request body containing organization name and the number of feature requests """ body: String! """ The Node ID of the MemberFeatureRequestNotification object """ id: ID! """ Represents member feature request notification title """ title: String! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! } """ Entities that have members who can set status messages. """ interface MemberStatusable { """ Get the status messages members of this entity have set that are either public or visible only to the organization. """ memberStatuses( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for user statuses returned from the connection. """ orderBy: UserStatusOrder = {field: UPDATED_AT, direction: DESC} ): UserStatusConnection! } """ Audit log entry for a members_can_delete_repos.clear event. """ type MembersCanDeleteReposClearAuditEntry implements AuditEntry & EnterpriseAuditEntryData & Node & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The HTTP path for this enterprise. """ enterpriseResourcePath: URI """ The slug of the enterprise. """ enterpriseSlug: String """ The HTTP URL for this enterprise. """ enterpriseUrl: URI """ The Node ID of the MembersCanDeleteReposClearAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a members_can_delete_repos.disable event. """ type MembersCanDeleteReposDisableAuditEntry implements AuditEntry & EnterpriseAuditEntryData & Node & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The HTTP path for this enterprise. """ enterpriseResourcePath: URI """ The slug of the enterprise. """ enterpriseSlug: String """ The HTTP URL for this enterprise. """ enterpriseUrl: URI """ The Node ID of the MembersCanDeleteReposDisableAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a members_can_delete_repos.enable event. """ type MembersCanDeleteReposEnableAuditEntry implements AuditEntry & EnterpriseAuditEntryData & Node & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The HTTP path for this enterprise. """ enterpriseResourcePath: URI """ The slug of the enterprise. """ enterpriseSlug: String """ The HTTP URL for this enterprise. """ enterpriseUrl: URI """ The Node ID of the MembersCanDeleteReposEnableAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Represents a 'mentioned' event on a given issue or pull request. """ type MentionedEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the primary key from the database. """ databaseId: Int """ The Node ID of the MentionedEvent object """ id: ID! } """ Autogenerated input type of MergeBranch """ input MergeBranchInput { """ The email address to associate with this commit. """ authorEmail: String """ The name of the base branch that the provided head will be merged into. """ base: String! """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Message to use for the merge commit. If omitted, a default will be used. """ commitMessage: String """ The head to merge into the base branch. This can be a branch name or a commit GitObjectID. """ head: String! """ The Node ID of the Repository containing the base branch that will be modified. """ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"]) } """ Autogenerated return type of MergeBranch """ type MergeBranchPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The resulting merge Commit. """ mergeCommit: Commit } """ The possible default commit messages for merges. """ enum MergeCommitMessage { """ Default to a blank commit message. """ BLANK """ Default to the pull request's body. """ PR_BODY """ Default to the pull request's title. """ PR_TITLE } """ The possible default commit titles for merges. """ enum MergeCommitTitle { """ Default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). """ MERGE_MESSAGE """ Default to the pull request's title. """ PR_TITLE } """ Autogenerated input type of MergePullRequest """ input MergePullRequestInput { """ The email address to associate with this merge. """ authorEmail: String """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Commit body to use for the merge commit; if omitted, a default message will be used """ commitBody: String """ Commit headline to use for the merge commit; if omitted, a default message will be used. """ commitHeadline: String """ OID that the pull request head ref must match to allow merge; if omitted, no check is performed. """ expectedHeadOid: GitObjectID """ The merge method to use. If omitted, defaults to 'MERGE' """ mergeMethod: PullRequestMergeMethod = MERGE """ ID of the pull request to be merged. """ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"]) } """ Autogenerated return type of MergePullRequest """ type MergePullRequestPayload { """ Identifies the actor who performed the event. """ actor: Actor """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The pull request that was merged. """ pullRequest: PullRequest } """ The queue of pull request entries to be merged into a protected branch in a repository. """ type MergeQueue implements Node { """ The configuration for this merge queue """ configuration: MergeQueueConfiguration """ The entries in the queue """ entries( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): MergeQueueEntryConnection """ The Node ID of the MergeQueue object """ id: ID! """ The estimated time in seconds until a newly added entry would be merged """ nextEntryEstimatedTimeToMerge: Int """ The repository this merge queue belongs to """ repository: Repository """ The HTTP path for this merge queue """ resourcePath: URI! """ The HTTP URL for this merge queue """ url: URI! } """ Configuration for a MergeQueue """ type MergeQueueConfiguration { """ The amount of time in minutes to wait for a check response before considering it a failure. """ checkResponseTimeout: Int """ The maximum number of entries to build at once. """ maximumEntriesToBuild: Int """ The maximum number of entries to merge at once. """ maximumEntriesToMerge: Int """ The merge method to use for this queue. """ mergeMethod: PullRequestMergeMethod """ The strategy to use when merging entries. """ mergingStrategy: MergeQueueMergingStrategy """ The minimum number of entries required to merge at once. """ minimumEntriesToMerge: Int """ The amount of time in minutes to wait before ignoring the minimum number of entries in the queue requirement and merging a collection of entries """ minimumEntriesToMergeWaitTime: Int } """ Entries in a MergeQueue """ type MergeQueueEntry implements Node { """ The base commit for this entry """ baseCommit: Commit """ The date and time this entry was added to the merge queue """ enqueuedAt: DateTime! """ The actor that enqueued this entry """ enqueuer: Actor! """ The estimated time in seconds until this entry will be merged """ estimatedTimeToMerge: Int """ The head commit for this entry """ headCommit: Commit """ The Node ID of the MergeQueueEntry object """ id: ID! """ Whether this pull request should jump the queue """ jump: Boolean! """ The merge queue that this entry belongs to """ mergeQueue: MergeQueue """ The position of this entry in the queue """ position: Int! """ The pull request that will be added to a merge group """ pullRequest: PullRequest """ Does this pull request need to be deployed on its own """ solo: Boolean! """ The state of this entry in the queue """ state: MergeQueueEntryState! } """ The connection type for MergeQueueEntry. """ type MergeQueueEntryConnection { """ A list of edges. """ edges: [MergeQueueEntryEdge] """ A list of nodes. """ nodes: [MergeQueueEntry] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type MergeQueueEntryEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: MergeQueueEntry } """ The possible states for a merge queue entry. """ enum MergeQueueEntryState { """ The entry is currently waiting for checks to pass. """ AWAITING_CHECKS """ The entry is currently locked. """ LOCKED """ The entry is currently mergeable. """ MERGEABLE """ The entry is currently queued. """ QUEUED """ The entry is currently unmergeable. """ UNMERGEABLE } """ The possible merging strategies for a merge queue. """ enum MergeQueueMergingStrategy { """ Entries only allowed to merge if they are passing. """ ALLGREEN """ Failing Entires are allowed to merge if they are with a passing entry. """ HEADGREEN } """ Detailed status information about a pull request merge. """ enum MergeStateStatus { """ The head ref is out of date. """ BEHIND """ The merge is blocked. """ BLOCKED """ Mergeable and passing commit status. """ CLEAN """ The merge commit cannot be cleanly created. """ DIRTY """ The merge is blocked due to the pull request being a draft. """ DRAFT @deprecated( reason: "DRAFT state will be removed from this enum and `isDraft` should be used instead Use PullRequest.isDraft instead. Removal on 2021-01-01 UTC." ) """ Mergeable with passing commit status and pre-receive hooks. """ HAS_HOOKS """ The state cannot currently be determined. """ UNKNOWN """ Mergeable with non-passing commit status. """ UNSTABLE } """ Whether or not a PullRequest can be merged. """ enum MergeableState { """ The pull request cannot be merged due to merge conflicts. """ CONFLICTING """ The pull request can be merged. """ MERGEABLE """ The mergeability of the pull request is still being calculated. """ UNKNOWN } """ Represents a 'merged' event on a given pull request. """ type MergedEvent implements Node & UniformResourceLocatable { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the commit associated with the `merge` event. """ commit: Commit """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the MergedEvent object """ id: ID! """ Identifies the Ref associated with the `merge` event. """ mergeRef: Ref """ Identifies the name of the Ref associated with the `merge` event. """ mergeRefName: String! """ PullRequest referenced by event. """ pullRequest: PullRequest! """ The HTTP path for this merged event. """ resourcePath: URI! """ The HTTP URL for this merged event. """ url: URI! } """ Represents a GitHub Enterprise Importer (GEI) migration. """ interface Migration { """ The migration flag to continue on error. """ continueOnError: Boolean! """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the primary key from the database. """ databaseId: String """ The reason the migration failed. """ failureReason: String """ The Node ID of the Migration object """ id: ID! """ The URL for the migration log (expires 1 day after migration completes). """ migrationLogUrl: URI """ The migration source. """ migrationSource: MigrationSource! """ The target repository name. """ repositoryName: String! """ The migration source URL, for example `https://github.com` or `https://monalisa.ghe.com`. """ sourceUrl: URI! """ The migration state. """ state: MigrationState! """ The number of warnings encountered for this migration. To review the warnings, check the [Migration Log](https://docs.github.com/en/migrations/using-github-enterprise-importer/completing-your-migration-with-github-enterprise-importer/accessing-your-migration-logs-for-github-enterprise-importer). """ warningsCount: Int! } """ A GitHub Enterprise Importer (GEI) migration source. """ type MigrationSource implements Node { """ The Node ID of the MigrationSource object """ id: ID! """ The migration source name. """ name: String! """ The migration source type. """ type: MigrationSourceType! """ The migration source URL, for example `https://github.com` or `https://monalisa.ghe.com`. """ url: URI! } """ Represents the different GitHub Enterprise Importer (GEI) migration sources. """ enum MigrationSourceType { """ An Azure DevOps migration source. """ AZURE_DEVOPS """ A Bitbucket Server migration source. """ BITBUCKET_SERVER """ A GitHub Migration API source. """ GITHUB_ARCHIVE } """ The GitHub Enterprise Importer (GEI) migration state. """ enum MigrationState { """ The migration has failed. """ FAILED """ The migration has invalid credentials. """ FAILED_VALIDATION """ The migration is in progress. """ IN_PROGRESS """ The migration has not started. """ NOT_STARTED """ The migration needs to have its credentials validated. """ PENDING_VALIDATION """ The migration has been queued. """ QUEUED """ The migration has succeeded. """ SUCCEEDED } """ Represents a Milestone object on a given repository. """ type Milestone implements Closable & Node & UniformResourceLocatable { """ Indicates if the object is closed (definition of closed may depend on type) """ closed: Boolean! """ Identifies the date and time when the object was closed. """ closedAt: DateTime """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the actor who created the milestone. """ creator: Actor """ Identifies the description of the milestone. """ description: String """ Identifies the due date of the milestone. """ dueOn: DateTime """ The Node ID of the Milestone object """ id: ID! """ A list of issues associated with the milestone. """ issues( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Filtering options for issues returned from the connection. """ filterBy: IssueFilters """ Returns the first _n_ elements from the list. """ first: Int """ A list of label names to filter the pull requests by. """ labels: [String!] """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for issues returned from the connection. """ orderBy: IssueOrder """ A list of states to filter the issues by. """ states: [IssueState!] ): IssueConnection! """ Identifies the number of the milestone. """ number: Int! """ Identifies the percentage complete for the milestone """ progressPercentage: Float! """ A list of pull requests associated with the milestone. """ pullRequests( """ Returns the elements in the list that come after the specified cursor. """ after: String """ The base ref name to filter the pull requests by. """ baseRefName: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ The head ref name to filter the pull requests by. """ headRefName: String """ A list of label names to filter the pull requests by. """ labels: [String!] """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for pull requests returned from the connection. """ orderBy: IssueOrder """ A list of states to filter the pull requests by. """ states: [PullRequestState!] ): PullRequestConnection! """ The repository associated with this milestone. """ repository: Repository! """ The HTTP path for this milestone """ resourcePath: URI! """ Identifies the state of the milestone. """ state: MilestoneState! """ Identifies the title of the milestone. """ title: String! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The HTTP URL for this milestone """ url: URI! """ Indicates if the object can be closed by the viewer. """ viewerCanClose: Boolean! """ Indicates if the object can be reopened by the viewer. """ viewerCanReopen: Boolean! } """ The connection type for Milestone. """ type MilestoneConnection { """ A list of edges. """ edges: [MilestoneEdge] """ A list of nodes. """ nodes: [Milestone] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type MilestoneEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: Milestone } """ Types that can be inside a Milestone. """ union MilestoneItem = Issue | PullRequest """ Ordering options for milestone connections. """ input MilestoneOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order milestones by. """ field: MilestoneOrderField! } """ Properties by which milestone connections can be ordered. """ enum MilestoneOrderField { """ Order milestones by when they were created. """ CREATED_AT """ Order milestones by when they are due. """ DUE_DATE """ Order milestones by their number. """ NUMBER """ Order milestones by when they were last updated. """ UPDATED_AT } """ The possible states of a milestone. """ enum MilestoneState { """ A milestone that has been closed. """ CLOSED """ A milestone that is still open. """ OPEN } """ Represents a 'milestoned' event on a given issue or pull request. """ type MilestonedEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the MilestonedEvent object """ id: ID! """ Identifies the milestone title associated with the 'milestoned' event. """ milestoneTitle: String! """ Object referenced by event. """ subject: MilestoneItem! } """ Entities that can be minimized. """ interface Minimizable { """ Returns whether or not a comment has been minimized. """ isMinimized: Boolean! """ Returns why the comment was minimized. One of `abuse`, `off-topic`, `outdated`, `resolved`, `duplicate` and `spam`. Note that the case and formatting of these values differs from the inputs to the `MinimizeComment` mutation. """ minimizedReason: String """ Check if the current viewer can minimize this object. """ viewerCanMinimize: Boolean! } """ Autogenerated input type of MinimizeComment """ input MinimizeCommentInput { """ The classification of comment """ classifier: ReportedContentClassifiers! """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Node ID of the subject to modify. """ subjectId: ID! @possibleTypes( concreteTypes: [ "CommitComment" "DiscussionComment" "GistComment" "IssueComment" "PullRequestReview" "PullRequestReviewComment" ] abstractType: "Minimizable" ) } """ Autogenerated return type of MinimizeComment """ type MinimizeCommentPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The comment that was minimized. """ minimizedComment: Minimizable } """ Autogenerated input type of MoveProjectCard """ input MoveProjectCardInput { """ Place the new card after the card with this id. Pass null to place it at the top. """ afterCardId: ID @possibleTypes(concreteTypes: ["ProjectCard"]) """ The id of the card to move. """ cardId: ID! @possibleTypes(concreteTypes: ["ProjectCard"]) """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The id of the column to move it into. """ columnId: ID! @possibleTypes(concreteTypes: ["ProjectColumn"]) } """ Autogenerated return type of MoveProjectCard """ type MoveProjectCardPayload { """ The new edge of the moved card. """ cardEdge: ProjectCardEdge """ A unique identifier for the client performing the mutation. """ clientMutationId: String } """ Autogenerated input type of MoveProjectColumn """ input MoveProjectColumnInput { """ Place the new column after the column with this id. Pass null to place it at the front. """ afterColumnId: ID @possibleTypes(concreteTypes: ["ProjectColumn"]) """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The id of the column to move. """ columnId: ID! @possibleTypes(concreteTypes: ["ProjectColumn"]) } """ Autogenerated return type of MoveProjectColumn """ type MoveProjectColumnPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The new edge of the moved column. """ columnEdge: ProjectColumnEdge } """ Represents a 'moved_columns_in_project' event on a given issue or pull request. """ type MovedColumnsInProjectEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the primary key from the database. """ databaseId: Int """ The Node ID of the MovedColumnsInProjectEvent object """ id: ID! """ Column name the issue or pull request was moved from. """ previousProjectColumnName: String! @preview(toggledBy: "starfox-preview") """ Project referenced by event. """ project: Project @preview(toggledBy: "starfox-preview") """ Project card referenced by this project event. """ projectCard: ProjectCard @preview(toggledBy: "starfox-preview") """ Column name the issue or pull request was moved to. """ projectColumnName: String! @preview(toggledBy: "starfox-preview") } """ The root query for implementing GraphQL mutations. """ type Mutation { """ Clear all of a customer's queued migrations """ abortQueuedMigrations( """ Parameters for AbortQueuedMigrations """ input: AbortQueuedMigrationsInput! ): AbortQueuedMigrationsPayload """ Abort a repository migration queued or in progress. """ abortRepositoryMigration( """ Parameters for AbortRepositoryMigration """ input: AbortRepositoryMigrationInput! ): AbortRepositoryMigrationPayload """ Accepts a pending invitation for a user to become an administrator of an enterprise. """ acceptEnterpriseAdministratorInvitation( """ Parameters for AcceptEnterpriseAdministratorInvitation """ input: AcceptEnterpriseAdministratorInvitationInput! ): AcceptEnterpriseAdministratorInvitationPayload """ Applies a suggested topic to the repository. """ acceptTopicSuggestion( """ Parameters for AcceptTopicSuggestion """ input: AcceptTopicSuggestionInput! ): AcceptTopicSuggestionPayload """ Adds assignees to an assignable object. """ addAssigneesToAssignable( """ Parameters for AddAssigneesToAssignable """ input: AddAssigneesToAssignableInput! ): AddAssigneesToAssignablePayload """ Adds a comment to an Issue or Pull Request. """ addComment( """ Parameters for AddComment """ input: AddCommentInput! ): AddCommentPayload """ Adds a comment to a Discussion, possibly as a reply to another comment. """ addDiscussionComment( """ Parameters for AddDiscussionComment """ input: AddDiscussionCommentInput! ): AddDiscussionCommentPayload """ Vote for an option in a discussion poll. """ addDiscussionPollVote( """ Parameters for AddDiscussionPollVote """ input: AddDiscussionPollVoteInput! ): AddDiscussionPollVotePayload """ Adds enterprise members to an organization within the enterprise. """ addEnterpriseOrganizationMember( """ Parameters for AddEnterpriseOrganizationMember """ input: AddEnterpriseOrganizationMemberInput! ): AddEnterpriseOrganizationMemberPayload """ Adds a support entitlement to an enterprise member. """ addEnterpriseSupportEntitlement( """ Parameters for AddEnterpriseSupportEntitlement """ input: AddEnterpriseSupportEntitlementInput! ): AddEnterpriseSupportEntitlementPayload """ Adds labels to a labelable object. """ addLabelsToLabelable( """ Parameters for AddLabelsToLabelable """ input: AddLabelsToLabelableInput! ): AddLabelsToLabelablePayload """ Adds a card to a ProjectColumn. Either `contentId` or `note` must be provided but **not** both. """ addProjectCard( """ Parameters for AddProjectCard """ input: AddProjectCardInput! ): AddProjectCardPayload """ Adds a column to a Project. """ addProjectColumn( """ Parameters for AddProjectColumn """ input: AddProjectColumnInput! ): AddProjectColumnPayload """ Creates a new draft issue and add it to a Project. """ addProjectV2DraftIssue( """ Parameters for AddProjectV2DraftIssue """ input: AddProjectV2DraftIssueInput! ): AddProjectV2DraftIssuePayload """ Links an existing content instance to a Project. """ addProjectV2ItemById( """ Parameters for AddProjectV2ItemById """ input: AddProjectV2ItemByIdInput! ): AddProjectV2ItemByIdPayload """ Adds a review to a Pull Request. """ addPullRequestReview( """ Parameters for AddPullRequestReview """ input: AddPullRequestReviewInput! ): AddPullRequestReviewPayload """ Adds a comment to a review. """ addPullRequestReviewComment( """ Parameters for AddPullRequestReviewComment """ input: AddPullRequestReviewCommentInput! ): AddPullRequestReviewCommentPayload """ Adds a new thread to a pending Pull Request Review. """ addPullRequestReviewThread( """ Parameters for AddPullRequestReviewThread """ input: AddPullRequestReviewThreadInput! ): AddPullRequestReviewThreadPayload """ Adds a reply to an existing Pull Request Review Thread. """ addPullRequestReviewThreadReply( """ Parameters for AddPullRequestReviewThreadReply """ input: AddPullRequestReviewThreadReplyInput! ): AddPullRequestReviewThreadReplyPayload """ Adds a reaction to a subject. """ addReaction( """ Parameters for AddReaction """ input: AddReactionInput! ): AddReactionPayload """ Adds a star to a Starrable. """ addStar( """ Parameters for AddStar """ input: AddStarInput! ): AddStarPayload """ Add an upvote to a discussion or discussion comment. """ addUpvote( """ Parameters for AddUpvote """ input: AddUpvoteInput! ): AddUpvotePayload """ Adds a verifiable domain to an owning account. """ addVerifiableDomain( """ Parameters for AddVerifiableDomain """ input: AddVerifiableDomainInput! ): AddVerifiableDomainPayload """ Approve all pending deployments under one or more environments """ approveDeployments( """ Parameters for ApproveDeployments """ input: ApproveDeploymentsInput! ): ApproveDeploymentsPayload """ Approve a verifiable domain for notification delivery. """ approveVerifiableDomain( """ Parameters for ApproveVerifiableDomain """ input: ApproveVerifiableDomainInput! ): ApproveVerifiableDomainPayload """ Archives a ProjectV2Item """ archiveProjectV2Item( """ Parameters for ArchiveProjectV2Item """ input: ArchiveProjectV2ItemInput! ): ArchiveProjectV2ItemPayload """ Marks a repository as archived. """ archiveRepository( """ Parameters for ArchiveRepository """ input: ArchiveRepositoryInput! ): ArchiveRepositoryPayload """ Cancels a pending invitation for an administrator to join an enterprise. """ cancelEnterpriseAdminInvitation( """ Parameters for CancelEnterpriseAdminInvitation """ input: CancelEnterpriseAdminInvitationInput! ): CancelEnterpriseAdminInvitationPayload """ Cancel an active sponsorship. """ cancelSponsorship( """ Parameters for CancelSponsorship """ input: CancelSponsorshipInput! ): CancelSponsorshipPayload """ Update your status on GitHub. """ changeUserStatus( """ Parameters for ChangeUserStatus """ input: ChangeUserStatusInput! ): ChangeUserStatusPayload """ Clears all labels from a labelable object. """ clearLabelsFromLabelable( """ Parameters for ClearLabelsFromLabelable """ input: ClearLabelsFromLabelableInput! ): ClearLabelsFromLabelablePayload """ This mutation clears the value of a field for an item in a Project. Currently only text, number, date, assignees, labels, single-select, iteration and milestone fields are supported. """ clearProjectV2ItemFieldValue( """ Parameters for ClearProjectV2ItemFieldValue """ input: ClearProjectV2ItemFieldValueInput! ): ClearProjectV2ItemFieldValuePayload """ Creates a new project by cloning configuration from an existing project. """ cloneProject( """ Parameters for CloneProject """ input: CloneProjectInput! ): CloneProjectPayload """ Create a new repository with the same files and directory structure as a template repository. """ cloneTemplateRepository( """ Parameters for CloneTemplateRepository """ input: CloneTemplateRepositoryInput! ): CloneTemplateRepositoryPayload """ Close a discussion. """ closeDiscussion( """ Parameters for CloseDiscussion """ input: CloseDiscussionInput! ): CloseDiscussionPayload """ Close an issue. """ closeIssue( """ Parameters for CloseIssue """ input: CloseIssueInput! ): CloseIssuePayload """ Close a pull request. """ closePullRequest( """ Parameters for ClosePullRequest """ input: ClosePullRequestInput! ): ClosePullRequestPayload """ Convert a project note card to one associated with a newly created issue. """ convertProjectCardNoteToIssue( """ Parameters for ConvertProjectCardNoteToIssue """ input: ConvertProjectCardNoteToIssueInput! ): ConvertProjectCardNoteToIssuePayload """ Converts a pull request to draft """ convertPullRequestToDraft( """ Parameters for ConvertPullRequestToDraft """ input: ConvertPullRequestToDraftInput! ): ConvertPullRequestToDraftPayload """ Copy a project. """ copyProjectV2( """ Parameters for CopyProjectV2 """ input: CopyProjectV2Input! ): CopyProjectV2Payload """ Invites a user to claim reattributable data """ createAttributionInvitation( """ Parameters for CreateAttributionInvitation """ input: CreateAttributionInvitationInput! ): CreateAttributionInvitationPayload """ Create a new branch protection rule """ createBranchProtectionRule( """ Parameters for CreateBranchProtectionRule """ input: CreateBranchProtectionRuleInput! ): CreateBranchProtectionRulePayload """ Create a check run. """ createCheckRun( """ Parameters for CreateCheckRun """ input: CreateCheckRunInput! ): CreateCheckRunPayload """ Create a check suite """ createCheckSuite( """ Parameters for CreateCheckSuite """ input: CreateCheckSuiteInput! ): CreateCheckSuitePayload """ Appends a commit to the given branch as the authenticated user. This mutation creates a commit whose parent is the HEAD of the provided branch and also updates that branch to point to the new commit. It can be thought of as similar to `git commit`. ### Locating a Branch Commits are appended to a `branch` of type `Ref`. This must refer to a git branch (i.e. the fully qualified path must begin with `refs/heads/`, although including this prefix is optional. Callers may specify the `branch` to commit to either by its global node ID or by passing both of `repositoryNameWithOwner` and `refName`. For more details see the documentation for `CommittableBranch`. ### Describing Changes `fileChanges` are specified as a `FilesChanges` object describing `FileAdditions` and `FileDeletions`. Please see the documentation for `FileChanges` for more information on how to use this argument to describe any set of file changes. ### Authorship Similar to the web commit interface, this mutation does not support specifying the author or committer of the commit and will not add support for this in the future. A commit created by a successful execution of this mutation will be authored by the owner of the credential which authenticates the API request. The committer will be identical to that of commits authored using the web interface. If you need full control over author and committer information, please use the Git Database REST API instead. ### Commit Signing Commits made using this mutation are automatically signed by GitHub if supported and will be marked as verified in the user interface. """ createCommitOnBranch( """ Parameters for CreateCommitOnBranch """ input: CreateCommitOnBranchInput! ): CreateCommitOnBranchPayload """ Creates a new deployment event. """ createDeployment( """ Parameters for CreateDeployment """ input: CreateDeploymentInput! ): CreateDeploymentPayload @preview(toggledBy: "flash-preview") """ Create a deployment status. """ createDeploymentStatus( """ Parameters for CreateDeploymentStatus """ input: CreateDeploymentStatusInput! ): CreateDeploymentStatusPayload @preview(toggledBy: "flash-preview") """ Create a discussion. """ createDiscussion( """ Parameters for CreateDiscussion """ input: CreateDiscussionInput! ): CreateDiscussionPayload """ Creates an organization as part of an enterprise account. A personal access token used to create an organization is implicitly permitted to update the organization it created, if the organization is part of an enterprise that has SAML enabled or uses Enterprise Managed Users. If the organization is not part of such an enterprise, and instead has SAML enabled for it individually, the token will then require SAML authorization to continue working against that organization. """ createEnterpriseOrganization( """ Parameters for CreateEnterpriseOrganization """ input: CreateEnterpriseOrganizationInput! ): CreateEnterpriseOrganizationPayload """ Creates an environment or simply returns it if already exists. """ createEnvironment( """ Parameters for CreateEnvironment """ input: CreateEnvironmentInput! ): CreateEnvironmentPayload """ Creates a new IP allow list entry. """ createIpAllowListEntry( """ Parameters for CreateIpAllowListEntry """ input: CreateIpAllowListEntryInput! ): CreateIpAllowListEntryPayload """ Creates a new issue. """ createIssue( """ Parameters for CreateIssue """ input: CreateIssueInput! ): CreateIssuePayload """ Creates a new label. """ createLabel( """ Parameters for CreateLabel """ input: CreateLabelInput! ): CreateLabelPayload @preview(toggledBy: "bane-preview") """ Create a branch linked to an issue. """ createLinkedBranch( """ Parameters for CreateLinkedBranch """ input: CreateLinkedBranchInput! ): CreateLinkedBranchPayload """ Creates a GitHub Enterprise Importer (GEI) migration source. """ createMigrationSource( """ Parameters for CreateMigrationSource """ input: CreateMigrationSourceInput! ): CreateMigrationSourcePayload """ Creates a new project. """ createProject( """ Parameters for CreateProject """ input: CreateProjectInput! ): CreateProjectPayload """ Creates a new project. """ createProjectV2( """ Parameters for CreateProjectV2 """ input: CreateProjectV2Input! ): CreateProjectV2Payload """ Create a new project field. """ createProjectV2Field( """ Parameters for CreateProjectV2Field """ input: CreateProjectV2FieldInput! ): CreateProjectV2FieldPayload """ Create a new pull request """ createPullRequest( """ Parameters for CreatePullRequest """ input: CreatePullRequestInput! ): CreatePullRequestPayload """ Create a new Git Ref. """ createRef( """ Parameters for CreateRef """ input: CreateRefInput! ): CreateRefPayload """ Create a new repository. """ createRepository( """ Parameters for CreateRepository """ input: CreateRepositoryInput! ): CreateRepositoryPayload """ Create a repository ruleset """ createRepositoryRuleset( """ Parameters for CreateRepositoryRuleset """ input: CreateRepositoryRulesetInput! ): CreateRepositoryRulesetPayload """ Create a GitHub Sponsors profile to allow others to sponsor you or your organization. """ createSponsorsListing( """ Parameters for CreateSponsorsListing """ input: CreateSponsorsListingInput! ): CreateSponsorsListingPayload """ Create a new payment tier for your GitHub Sponsors profile. """ createSponsorsTier( """ Parameters for CreateSponsorsTier """ input: CreateSponsorsTierInput! ): CreateSponsorsTierPayload """ Start a new sponsorship of a maintainer in GitHub Sponsors, or reactivate a past sponsorship. """ createSponsorship( """ Parameters for CreateSponsorship """ input: CreateSponsorshipInput! ): CreateSponsorshipPayload """ Make many one-time sponsorships for different sponsorable users or organizations at once. Can only sponsor those who have a public GitHub Sponsors profile. """ createSponsorships( """ Parameters for CreateSponsorships """ input: CreateSponsorshipsInput! ): CreateSponsorshipsPayload """ Creates a new team discussion. """ createTeamDiscussion( """ Parameters for CreateTeamDiscussion """ input: CreateTeamDiscussionInput! ): CreateTeamDiscussionPayload """ Creates a new team discussion comment. """ createTeamDiscussionComment( """ Parameters for CreateTeamDiscussionComment """ input: CreateTeamDiscussionCommentInput! ): CreateTeamDiscussionCommentPayload """ Creates a new user list. """ createUserList( """ Parameters for CreateUserList """ input: CreateUserListInput! ): CreateUserListPayload """ Rejects a suggested topic for the repository. """ declineTopicSuggestion( """ Parameters for DeclineTopicSuggestion """ input: DeclineTopicSuggestionInput! ): DeclineTopicSuggestionPayload """ Delete a branch protection rule """ deleteBranchProtectionRule( """ Parameters for DeleteBranchProtectionRule """ input: DeleteBranchProtectionRuleInput! ): DeleteBranchProtectionRulePayload """ Deletes a deployment. """ deleteDeployment( """ Parameters for DeleteDeployment """ input: DeleteDeploymentInput! ): DeleteDeploymentPayload """ Delete a discussion and all of its replies. """ deleteDiscussion( """ Parameters for DeleteDiscussion """ input: DeleteDiscussionInput! ): DeleteDiscussionPayload """ Delete a discussion comment. If it has replies, wipe it instead. """ deleteDiscussionComment( """ Parameters for DeleteDiscussionComment """ input: DeleteDiscussionCommentInput! ): DeleteDiscussionCommentPayload """ Deletes an environment """ deleteEnvironment( """ Parameters for DeleteEnvironment """ input: DeleteEnvironmentInput! ): DeleteEnvironmentPayload """ Deletes an IP allow list entry. """ deleteIpAllowListEntry( """ Parameters for DeleteIpAllowListEntry """ input: DeleteIpAllowListEntryInput! ): DeleteIpAllowListEntryPayload """ Deletes an Issue object. """ deleteIssue( """ Parameters for DeleteIssue """ input: DeleteIssueInput! ): DeleteIssuePayload """ Deletes an IssueComment object. """ deleteIssueComment( """ Parameters for DeleteIssueComment """ input: DeleteIssueCommentInput! ): DeleteIssueCommentPayload """ Deletes a label. """ deleteLabel( """ Parameters for DeleteLabel """ input: DeleteLabelInput! ): DeleteLabelPayload @preview(toggledBy: "bane-preview") """ Unlink a branch from an issue. """ deleteLinkedBranch( """ Parameters for DeleteLinkedBranch """ input: DeleteLinkedBranchInput! ): DeleteLinkedBranchPayload """ Delete a package version. """ deletePackageVersion( """ Parameters for DeletePackageVersion """ input: DeletePackageVersionInput! ): DeletePackageVersionPayload @preview(toggledBy: "package-deletes-preview") """ Deletes a project. """ deleteProject( """ Parameters for DeleteProject """ input: DeleteProjectInput! ): DeleteProjectPayload """ Deletes a project card. """ deleteProjectCard( """ Parameters for DeleteProjectCard """ input: DeleteProjectCardInput! ): DeleteProjectCardPayload """ Deletes a project column. """ deleteProjectColumn( """ Parameters for DeleteProjectColumn """ input: DeleteProjectColumnInput! ): DeleteProjectColumnPayload """ Delete a project. """ deleteProjectV2( """ Parameters for DeleteProjectV2 """ input: DeleteProjectV2Input! ): DeleteProjectV2Payload """ Delete a project field. """ deleteProjectV2Field( """ Parameters for DeleteProjectV2Field """ input: DeleteProjectV2FieldInput! ): DeleteProjectV2FieldPayload """ Deletes an item from a Project. """ deleteProjectV2Item( """ Parameters for DeleteProjectV2Item """ input: DeleteProjectV2ItemInput! ): DeleteProjectV2ItemPayload """ Deletes a project workflow. """ deleteProjectV2Workflow( """ Parameters for DeleteProjectV2Workflow """ input: DeleteProjectV2WorkflowInput! ): DeleteProjectV2WorkflowPayload """ Deletes a pull request review. """ deletePullRequestReview( """ Parameters for DeletePullRequestReview """ input: DeletePullRequestReviewInput! ): DeletePullRequestReviewPayload """ Deletes a pull request review comment. """ deletePullRequestReviewComment( """ Parameters for DeletePullRequestReviewComment """ input: DeletePullRequestReviewCommentInput! ): DeletePullRequestReviewCommentPayload """ Delete a Git Ref. """ deleteRef( """ Parameters for DeleteRef """ input: DeleteRefInput! ): DeleteRefPayload """ Delete a repository ruleset """ deleteRepositoryRuleset( """ Parameters for DeleteRepositoryRuleset """ input: DeleteRepositoryRulesetInput! ): DeleteRepositoryRulesetPayload """ Deletes a team discussion. """ deleteTeamDiscussion( """ Parameters for DeleteTeamDiscussion """ input: DeleteTeamDiscussionInput! ): DeleteTeamDiscussionPayload """ Deletes a team discussion comment. """ deleteTeamDiscussionComment( """ Parameters for DeleteTeamDiscussionComment """ input: DeleteTeamDiscussionCommentInput! ): DeleteTeamDiscussionCommentPayload """ Deletes a user list. """ deleteUserList( """ Parameters for DeleteUserList """ input: DeleteUserListInput! ): DeleteUserListPayload """ Deletes a verifiable domain. """ deleteVerifiableDomain( """ Parameters for DeleteVerifiableDomain """ input: DeleteVerifiableDomainInput! ): DeleteVerifiableDomainPayload """ Remove a pull request from the merge queue. """ dequeuePullRequest( """ Parameters for DequeuePullRequest """ input: DequeuePullRequestInput! ): DequeuePullRequestPayload """ Disable auto merge on the given pull request """ disablePullRequestAutoMerge( """ Parameters for DisablePullRequestAutoMerge """ input: DisablePullRequestAutoMergeInput! ): DisablePullRequestAutoMergePayload """ Dismisses an approved or rejected pull request review. """ dismissPullRequestReview( """ Parameters for DismissPullRequestReview """ input: DismissPullRequestReviewInput! ): DismissPullRequestReviewPayload """ Dismisses the Dependabot alert. """ dismissRepositoryVulnerabilityAlert( """ Parameters for DismissRepositoryVulnerabilityAlert """ input: DismissRepositoryVulnerabilityAlertInput! ): DismissRepositoryVulnerabilityAlertPayload """ Enable the default auto-merge on a pull request. """ enablePullRequestAutoMerge( """ Parameters for EnablePullRequestAutoMerge """ input: EnablePullRequestAutoMergeInput! ): EnablePullRequestAutoMergePayload """ Add a pull request to the merge queue. """ enqueuePullRequest( """ Parameters for EnqueuePullRequest """ input: EnqueuePullRequestInput! ): EnqueuePullRequestPayload """ Follow an organization. """ followOrganization( """ Parameters for FollowOrganization """ input: FollowOrganizationInput! ): FollowOrganizationPayload """ Follow a user. """ followUser( """ Parameters for FollowUser """ input: FollowUserInput! ): FollowUserPayload """ Grant the migrator role to a user for all organizations under an enterprise account. """ grantEnterpriseOrganizationsMigratorRole( """ Parameters for GrantEnterpriseOrganizationsMigratorRole """ input: GrantEnterpriseOrganizationsMigratorRoleInput! ): GrantEnterpriseOrganizationsMigratorRolePayload """ Grant the migrator role to a user or a team. """ grantMigratorRole( """ Parameters for GrantMigratorRole """ input: GrantMigratorRoleInput! ): GrantMigratorRolePayload """ Creates a new project by importing columns and a list of issues/PRs. """ importProject( """ Parameters for ImportProject """ input: ImportProjectInput! ): ImportProjectPayload @preview(toggledBy: "slothette-preview") """ Invite someone to become an administrator of the enterprise. """ inviteEnterpriseAdmin( """ Parameters for InviteEnterpriseAdmin """ input: InviteEnterpriseAdminInput! ): InviteEnterpriseAdminPayload """ Links a project to a repository. """ linkProjectV2ToRepository( """ Parameters for LinkProjectV2ToRepository """ input: LinkProjectV2ToRepositoryInput! ): LinkProjectV2ToRepositoryPayload """ Links a project to a team. """ linkProjectV2ToTeam( """ Parameters for LinkProjectV2ToTeam """ input: LinkProjectV2ToTeamInput! ): LinkProjectV2ToTeamPayload """ Creates a repository link for a project. """ linkRepositoryToProject( """ Parameters for LinkRepositoryToProject """ input: LinkRepositoryToProjectInput! ): LinkRepositoryToProjectPayload """ Lock a lockable object """ lockLockable( """ Parameters for LockLockable """ input: LockLockableInput! ): LockLockablePayload """ Mark a discussion comment as the chosen answer for discussions in an answerable category. """ markDiscussionCommentAsAnswer( """ Parameters for MarkDiscussionCommentAsAnswer """ input: MarkDiscussionCommentAsAnswerInput! ): MarkDiscussionCommentAsAnswerPayload """ Mark a pull request file as viewed """ markFileAsViewed( """ Parameters for MarkFileAsViewed """ input: MarkFileAsViewedInput! ): MarkFileAsViewedPayload """ Mark a project as a template. Note that only projects which are owned by an Organization can be marked as a template. """ markProjectV2AsTemplate( """ Parameters for MarkProjectV2AsTemplate """ input: MarkProjectV2AsTemplateInput! ): MarkProjectV2AsTemplatePayload """ Marks a pull request ready for review. """ markPullRequestReadyForReview( """ Parameters for MarkPullRequestReadyForReview """ input: MarkPullRequestReadyForReviewInput! ): MarkPullRequestReadyForReviewPayload """ Merge a head into a branch. """ mergeBranch( """ Parameters for MergeBranch """ input: MergeBranchInput! ): MergeBranchPayload """ Merge a pull request. """ mergePullRequest( """ Parameters for MergePullRequest """ input: MergePullRequestInput! ): MergePullRequestPayload """ Minimizes a comment on an Issue, Commit, Pull Request, or Gist """ minimizeComment( """ Parameters for MinimizeComment """ input: MinimizeCommentInput! ): MinimizeCommentPayload """ Moves a project card to another place. """ moveProjectCard( """ Parameters for MoveProjectCard """ input: MoveProjectCardInput! ): MoveProjectCardPayload """ Moves a project column to another place. """ moveProjectColumn( """ Parameters for MoveProjectColumn """ input: MoveProjectColumnInput! ): MoveProjectColumnPayload """ Pin an issue to a repository """ pinIssue( """ Parameters for PinIssue """ input: PinIssueInput! ): PinIssuePayload """ Publish an existing sponsorship tier that is currently still a draft to a GitHub Sponsors profile. """ publishSponsorsTier( """ Parameters for PublishSponsorsTier """ input: PublishSponsorsTierInput! ): PublishSponsorsTierPayload """ Regenerates the identity provider recovery codes for an enterprise """ regenerateEnterpriseIdentityProviderRecoveryCodes( """ Parameters for RegenerateEnterpriseIdentityProviderRecoveryCodes """ input: RegenerateEnterpriseIdentityProviderRecoveryCodesInput! ): RegenerateEnterpriseIdentityProviderRecoveryCodesPayload """ Regenerates a verifiable domain's verification token. """ regenerateVerifiableDomainToken( """ Parameters for RegenerateVerifiableDomainToken """ input: RegenerateVerifiableDomainTokenInput! ): RegenerateVerifiableDomainTokenPayload """ Reject all pending deployments under one or more environments """ rejectDeployments( """ Parameters for RejectDeployments """ input: RejectDeploymentsInput! ): RejectDeploymentsPayload """ Removes assignees from an assignable object. """ removeAssigneesFromAssignable( """ Parameters for RemoveAssigneesFromAssignable """ input: RemoveAssigneesFromAssignableInput! ): RemoveAssigneesFromAssignablePayload """ Removes an administrator from the enterprise. """ removeEnterpriseAdmin( """ Parameters for RemoveEnterpriseAdmin """ input: RemoveEnterpriseAdminInput! ): RemoveEnterpriseAdminPayload """ Removes the identity provider from an enterprise """ removeEnterpriseIdentityProvider( """ Parameters for RemoveEnterpriseIdentityProvider """ input: RemoveEnterpriseIdentityProviderInput! ): RemoveEnterpriseIdentityProviderPayload """ Removes a user from all organizations within the enterprise """ removeEnterpriseMember( """ Parameters for RemoveEnterpriseMember """ input: RemoveEnterpriseMemberInput! ): RemoveEnterpriseMemberPayload """ Removes an organization from the enterprise """ removeEnterpriseOrganization( """ Parameters for RemoveEnterpriseOrganization """ input: RemoveEnterpriseOrganizationInput! ): RemoveEnterpriseOrganizationPayload """ Removes a support entitlement from an enterprise member. """ removeEnterpriseSupportEntitlement( """ Parameters for RemoveEnterpriseSupportEntitlement """ input: RemoveEnterpriseSupportEntitlementInput! ): RemoveEnterpriseSupportEntitlementPayload """ Removes labels from a Labelable object. """ removeLabelsFromLabelable( """ Parameters for RemoveLabelsFromLabelable """ input: RemoveLabelsFromLabelableInput! ): RemoveLabelsFromLabelablePayload """ Removes outside collaborator from all repositories in an organization. """ removeOutsideCollaborator( """ Parameters for RemoveOutsideCollaborator """ input: RemoveOutsideCollaboratorInput! ): RemoveOutsideCollaboratorPayload """ Removes a reaction from a subject. """ removeReaction( """ Parameters for RemoveReaction """ input: RemoveReactionInput! ): RemoveReactionPayload """ Removes a star from a Starrable. """ removeStar( """ Parameters for RemoveStar """ input: RemoveStarInput! ): RemoveStarPayload """ Remove an upvote to a discussion or discussion comment. """ removeUpvote( """ Parameters for RemoveUpvote """ input: RemoveUpvoteInput! ): RemoveUpvotePayload """ Reopen a discussion. """ reopenDiscussion( """ Parameters for ReopenDiscussion """ input: ReopenDiscussionInput! ): ReopenDiscussionPayload """ Reopen a issue. """ reopenIssue( """ Parameters for ReopenIssue """ input: ReopenIssueInput! ): ReopenIssuePayload """ Reopen a pull request. """ reopenPullRequest( """ Parameters for ReopenPullRequest """ input: ReopenPullRequestInput! ): ReopenPullRequestPayload """ Set review requests on a pull request. """ requestReviews( """ Parameters for RequestReviews """ input: RequestReviewsInput! ): RequestReviewsPayload """ Rerequests an existing check suite. """ rerequestCheckSuite( """ Parameters for RerequestCheckSuite """ input: RerequestCheckSuiteInput! ): RerequestCheckSuitePayload """ Marks a review thread as resolved. """ resolveReviewThread( """ Parameters for ResolveReviewThread """ input: ResolveReviewThreadInput! ): ResolveReviewThreadPayload """ Retire a published payment tier from your GitHub Sponsors profile so it cannot be used to start new sponsorships. """ retireSponsorsTier( """ Parameters for RetireSponsorsTier """ input: RetireSponsorsTierInput! ): RetireSponsorsTierPayload """ Create a pull request that reverts the changes from a merged pull request. """ revertPullRequest( """ Parameters for RevertPullRequest """ input: RevertPullRequestInput! ): RevertPullRequestPayload """ Revoke the migrator role to a user for all organizations under an enterprise account. """ revokeEnterpriseOrganizationsMigratorRole( """ Parameters for RevokeEnterpriseOrganizationsMigratorRole """ input: RevokeEnterpriseOrganizationsMigratorRoleInput! ): RevokeEnterpriseOrganizationsMigratorRolePayload """ Revoke the migrator role from a user or a team. """ revokeMigratorRole( """ Parameters for RevokeMigratorRole """ input: RevokeMigratorRoleInput! ): RevokeMigratorRolePayload """ Creates or updates the identity provider for an enterprise. """ setEnterpriseIdentityProvider( """ Parameters for SetEnterpriseIdentityProvider """ input: SetEnterpriseIdentityProviderInput! ): SetEnterpriseIdentityProviderPayload """ Set an organization level interaction limit for an organization's public repositories. """ setOrganizationInteractionLimit( """ Parameters for SetOrganizationInteractionLimit """ input: SetOrganizationInteractionLimitInput! ): SetOrganizationInteractionLimitPayload """ Sets an interaction limit setting for a repository. """ setRepositoryInteractionLimit( """ Parameters for SetRepositoryInteractionLimit """ input: SetRepositoryInteractionLimitInput! ): SetRepositoryInteractionLimitPayload """ Set a user level interaction limit for an user's public repositories. """ setUserInteractionLimit( """ Parameters for SetUserInteractionLimit """ input: SetUserInteractionLimitInput! ): SetUserInteractionLimitPayload """ Starts a GitHub Enterprise Importer organization migration. """ startOrganizationMigration( """ Parameters for StartOrganizationMigration """ input: StartOrganizationMigrationInput! ): StartOrganizationMigrationPayload """ Starts a GitHub Enterprise Importer (GEI) repository migration. """ startRepositoryMigration( """ Parameters for StartRepositoryMigration """ input: StartRepositoryMigrationInput! ): StartRepositoryMigrationPayload """ Submits a pending pull request review. """ submitPullRequestReview( """ Parameters for SubmitPullRequestReview """ input: SubmitPullRequestReviewInput! ): SubmitPullRequestReviewPayload """ Transfer an organization from one enterprise to another enterprise. """ transferEnterpriseOrganization( """ Parameters for TransferEnterpriseOrganization """ input: TransferEnterpriseOrganizationInput! ): TransferEnterpriseOrganizationPayload """ Transfer an issue to a different repository """ transferIssue( """ Parameters for TransferIssue """ input: TransferIssueInput! ): TransferIssuePayload """ Unarchives a ProjectV2Item """ unarchiveProjectV2Item( """ Parameters for UnarchiveProjectV2Item """ input: UnarchiveProjectV2ItemInput! ): UnarchiveProjectV2ItemPayload """ Unarchives a repository. """ unarchiveRepository( """ Parameters for UnarchiveRepository """ input: UnarchiveRepositoryInput! ): UnarchiveRepositoryPayload """ Unfollow an organization. """ unfollowOrganization( """ Parameters for UnfollowOrganization """ input: UnfollowOrganizationInput! ): UnfollowOrganizationPayload """ Unfollow a user. """ unfollowUser( """ Parameters for UnfollowUser """ input: UnfollowUserInput! ): UnfollowUserPayload """ Unlinks a project from a repository. """ unlinkProjectV2FromRepository( """ Parameters for UnlinkProjectV2FromRepository """ input: UnlinkProjectV2FromRepositoryInput! ): UnlinkProjectV2FromRepositoryPayload """ Unlinks a project to a team. """ unlinkProjectV2FromTeam( """ Parameters for UnlinkProjectV2FromTeam """ input: UnlinkProjectV2FromTeamInput! ): UnlinkProjectV2FromTeamPayload """ Deletes a repository link from a project. """ unlinkRepositoryFromProject( """ Parameters for UnlinkRepositoryFromProject """ input: UnlinkRepositoryFromProjectInput! ): UnlinkRepositoryFromProjectPayload """ Unlock a lockable object """ unlockLockable( """ Parameters for UnlockLockable """ input: UnlockLockableInput! ): UnlockLockablePayload """ Unmark a discussion comment as the chosen answer for discussions in an answerable category. """ unmarkDiscussionCommentAsAnswer( """ Parameters for UnmarkDiscussionCommentAsAnswer """ input: UnmarkDiscussionCommentAsAnswerInput! ): UnmarkDiscussionCommentAsAnswerPayload """ Unmark a pull request file as viewed """ unmarkFileAsViewed( """ Parameters for UnmarkFileAsViewed """ input: UnmarkFileAsViewedInput! ): UnmarkFileAsViewedPayload """ Unmark an issue as a duplicate of another issue. """ unmarkIssueAsDuplicate( """ Parameters for UnmarkIssueAsDuplicate """ input: UnmarkIssueAsDuplicateInput! ): UnmarkIssueAsDuplicatePayload """ Unmark a project as a template. """ unmarkProjectV2AsTemplate( """ Parameters for UnmarkProjectV2AsTemplate """ input: UnmarkProjectV2AsTemplateInput! ): UnmarkProjectV2AsTemplatePayload """ Unminimizes a comment on an Issue, Commit, Pull Request, or Gist """ unminimizeComment( """ Parameters for UnminimizeComment """ input: UnminimizeCommentInput! ): UnminimizeCommentPayload """ Unpin a pinned issue from a repository """ unpinIssue( """ Parameters for UnpinIssue """ input: UnpinIssueInput! ): UnpinIssuePayload """ Marks a review thread as unresolved. """ unresolveReviewThread( """ Parameters for UnresolveReviewThread """ input: UnresolveReviewThreadInput! ): UnresolveReviewThreadPayload """ Unsubscribes from notifications """ unsubscribeFromNotifications( """ Parameters for UnsubscribeFromNotifications """ input: UnsubscribeFromNotificationsInput! ): UnsubscribeFromNotificationsPayload """ Update a branch protection rule """ updateBranchProtectionRule( """ Parameters for UpdateBranchProtectionRule """ input: UpdateBranchProtectionRuleInput! ): UpdateBranchProtectionRulePayload """ Update a check run """ updateCheckRun( """ Parameters for UpdateCheckRun """ input: UpdateCheckRunInput! ): UpdateCheckRunPayload """ Modifies the settings of an existing check suite """ updateCheckSuitePreferences( """ Parameters for UpdateCheckSuitePreferences """ input: UpdateCheckSuitePreferencesInput! ): UpdateCheckSuitePreferencesPayload """ Update a discussion """ updateDiscussion( """ Parameters for UpdateDiscussion """ input: UpdateDiscussionInput! ): UpdateDiscussionPayload """ Update the contents of a comment on a Discussion """ updateDiscussionComment( """ Parameters for UpdateDiscussionComment """ input: UpdateDiscussionCommentInput! ): UpdateDiscussionCommentPayload """ Updates the role of an enterprise administrator. """ updateEnterpriseAdministratorRole( """ Parameters for UpdateEnterpriseAdministratorRole """ input: UpdateEnterpriseAdministratorRoleInput! ): UpdateEnterpriseAdministratorRolePayload """ Sets whether private repository forks are enabled for an enterprise. """ updateEnterpriseAllowPrivateRepositoryForkingSetting( """ Parameters for UpdateEnterpriseAllowPrivateRepositoryForkingSetting """ input: UpdateEnterpriseAllowPrivateRepositoryForkingSettingInput! ): UpdateEnterpriseAllowPrivateRepositoryForkingSettingPayload """ Sets the base repository permission for organizations in an enterprise. """ updateEnterpriseDefaultRepositoryPermissionSetting( """ Parameters for UpdateEnterpriseDefaultRepositoryPermissionSetting """ input: UpdateEnterpriseDefaultRepositoryPermissionSettingInput! ): UpdateEnterpriseDefaultRepositoryPermissionSettingPayload """ Sets whether organization members with admin permissions on a repository can change repository visibility. """ updateEnterpriseMembersCanChangeRepositoryVisibilitySetting( """ Parameters for UpdateEnterpriseMembersCanChangeRepositoryVisibilitySetting """ input: UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingInput! ): UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingPayload """ Sets the members can create repositories setting for an enterprise. """ updateEnterpriseMembersCanCreateRepositoriesSetting( """ Parameters for UpdateEnterpriseMembersCanCreateRepositoriesSetting """ input: UpdateEnterpriseMembersCanCreateRepositoriesSettingInput! ): UpdateEnterpriseMembersCanCreateRepositoriesSettingPayload """ Sets the members can delete issues setting for an enterprise. """ updateEnterpriseMembersCanDeleteIssuesSetting( """ Parameters for UpdateEnterpriseMembersCanDeleteIssuesSetting """ input: UpdateEnterpriseMembersCanDeleteIssuesSettingInput! ): UpdateEnterpriseMembersCanDeleteIssuesSettingPayload """ Sets the members can delete repositories setting for an enterprise. """ updateEnterpriseMembersCanDeleteRepositoriesSetting( """ Parameters for UpdateEnterpriseMembersCanDeleteRepositoriesSetting """ input: UpdateEnterpriseMembersCanDeleteRepositoriesSettingInput! ): UpdateEnterpriseMembersCanDeleteRepositoriesSettingPayload """ Sets whether members can invite collaborators are enabled for an enterprise. """ updateEnterpriseMembersCanInviteCollaboratorsSetting( """ Parameters for UpdateEnterpriseMembersCanInviteCollaboratorsSetting """ input: UpdateEnterpriseMembersCanInviteCollaboratorsSettingInput! ): UpdateEnterpriseMembersCanInviteCollaboratorsSettingPayload """ Sets whether or not an organization owner can make purchases. """ updateEnterpriseMembersCanMakePurchasesSetting( """ Parameters for UpdateEnterpriseMembersCanMakePurchasesSetting """ input: UpdateEnterpriseMembersCanMakePurchasesSettingInput! ): UpdateEnterpriseMembersCanMakePurchasesSettingPayload """ Sets the members can update protected branches setting for an enterprise. """ updateEnterpriseMembersCanUpdateProtectedBranchesSetting( """ Parameters for UpdateEnterpriseMembersCanUpdateProtectedBranchesSetting """ input: UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingInput! ): UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingPayload """ Sets the members can view dependency insights for an enterprise. """ updateEnterpriseMembersCanViewDependencyInsightsSetting( """ Parameters for UpdateEnterpriseMembersCanViewDependencyInsightsSetting """ input: UpdateEnterpriseMembersCanViewDependencyInsightsSettingInput! ): UpdateEnterpriseMembersCanViewDependencyInsightsSettingPayload """ Sets whether organization projects are enabled for an enterprise. """ updateEnterpriseOrganizationProjectsSetting( """ Parameters for UpdateEnterpriseOrganizationProjectsSetting """ input: UpdateEnterpriseOrganizationProjectsSettingInput! ): UpdateEnterpriseOrganizationProjectsSettingPayload """ Updates the role of an enterprise owner with an organization. """ updateEnterpriseOwnerOrganizationRole( """ Parameters for UpdateEnterpriseOwnerOrganizationRole """ input: UpdateEnterpriseOwnerOrganizationRoleInput! ): UpdateEnterpriseOwnerOrganizationRolePayload """ Updates an enterprise's profile. """ updateEnterpriseProfile( """ Parameters for UpdateEnterpriseProfile """ input: UpdateEnterpriseProfileInput! ): UpdateEnterpriseProfilePayload """ Sets whether repository projects are enabled for a enterprise. """ updateEnterpriseRepositoryProjectsSetting( """ Parameters for UpdateEnterpriseRepositoryProjectsSetting """ input: UpdateEnterpriseRepositoryProjectsSettingInput! ): UpdateEnterpriseRepositoryProjectsSettingPayload """ Sets whether team discussions are enabled for an enterprise. """ updateEnterpriseTeamDiscussionsSetting( """ Parameters for UpdateEnterpriseTeamDiscussionsSetting """ input: UpdateEnterpriseTeamDiscussionsSettingInput! ): UpdateEnterpriseTeamDiscussionsSettingPayload """ Sets whether two factor authentication is required for all users in an enterprise. """ updateEnterpriseTwoFactorAuthenticationRequiredSetting( """ Parameters for UpdateEnterpriseTwoFactorAuthenticationRequiredSetting """ input: UpdateEnterpriseTwoFactorAuthenticationRequiredSettingInput! ): UpdateEnterpriseTwoFactorAuthenticationRequiredSettingPayload """ Updates an environment. """ updateEnvironment( """ Parameters for UpdateEnvironment """ input: UpdateEnvironmentInput! ): UpdateEnvironmentPayload """ Sets whether an IP allow list is enabled on an owner. """ updateIpAllowListEnabledSetting( """ Parameters for UpdateIpAllowListEnabledSetting """ input: UpdateIpAllowListEnabledSettingInput! ): UpdateIpAllowListEnabledSettingPayload """ Updates an IP allow list entry. """ updateIpAllowListEntry( """ Parameters for UpdateIpAllowListEntry """ input: UpdateIpAllowListEntryInput! ): UpdateIpAllowListEntryPayload """ Sets whether IP allow list configuration for installed GitHub Apps is enabled on an owner. """ updateIpAllowListForInstalledAppsEnabledSetting( """ Parameters for UpdateIpAllowListForInstalledAppsEnabledSetting """ input: UpdateIpAllowListForInstalledAppsEnabledSettingInput! ): UpdateIpAllowListForInstalledAppsEnabledSettingPayload """ Updates an Issue. """ updateIssue( """ Parameters for UpdateIssue """ input: UpdateIssueInput! ): UpdateIssuePayload """ Updates an IssueComment object. """ updateIssueComment( """ Parameters for UpdateIssueComment """ input: UpdateIssueCommentInput! ): UpdateIssueCommentPayload """ Updates an existing label. """ updateLabel( """ Parameters for UpdateLabel """ input: UpdateLabelInput! ): UpdateLabelPayload @preview(toggledBy: "bane-preview") """ Update the setting to restrict notifications to only verified or approved domains available to an owner. """ updateNotificationRestrictionSetting( """ Parameters for UpdateNotificationRestrictionSetting """ input: UpdateNotificationRestrictionSettingInput! ): UpdateNotificationRestrictionSettingPayload """ Sets whether private repository forks are enabled for an organization. """ updateOrganizationAllowPrivateRepositoryForkingSetting( """ Parameters for UpdateOrganizationAllowPrivateRepositoryForkingSetting """ input: UpdateOrganizationAllowPrivateRepositoryForkingSettingInput! ): UpdateOrganizationAllowPrivateRepositoryForkingSettingPayload """ Sets whether contributors are required to sign off on web-based commits for repositories in an organization. """ updateOrganizationWebCommitSignoffSetting( """ Parameters for UpdateOrganizationWebCommitSignoffSetting """ input: UpdateOrganizationWebCommitSignoffSettingInput! ): UpdateOrganizationWebCommitSignoffSettingPayload """ Toggle the setting for your GitHub Sponsors profile that allows other GitHub accounts to sponsor you on GitHub while paying for the sponsorship on Patreon. Only applicable when you have a GitHub Sponsors profile and have connected your GitHub account with Patreon. """ updatePatreonSponsorability( """ Parameters for UpdatePatreonSponsorability """ input: UpdatePatreonSponsorabilityInput! ): UpdatePatreonSponsorabilityPayload """ Updates an existing project. """ updateProject( """ Parameters for UpdateProject """ input: UpdateProjectInput! ): UpdateProjectPayload """ Updates an existing project card. """ updateProjectCard( """ Parameters for UpdateProjectCard """ input: UpdateProjectCardInput! ): UpdateProjectCardPayload """ Updates an existing project column. """ updateProjectColumn( """ Parameters for UpdateProjectColumn """ input: UpdateProjectColumnInput! ): UpdateProjectColumnPayload """ Updates an existing project. """ updateProjectV2( """ Parameters for UpdateProjectV2 """ input: UpdateProjectV2Input! ): UpdateProjectV2Payload """ Update the collaborators on a team or a project """ updateProjectV2Collaborators( """ Parameters for UpdateProjectV2Collaborators """ input: UpdateProjectV2CollaboratorsInput! ): UpdateProjectV2CollaboratorsPayload """ Updates a draft issue within a Project. """ updateProjectV2DraftIssue( """ Parameters for UpdateProjectV2DraftIssue """ input: UpdateProjectV2DraftIssueInput! ): UpdateProjectV2DraftIssuePayload """ This mutation updates the value of a field for an item in a Project. Currently only single-select, text, number, date, and iteration fields are supported. """ updateProjectV2ItemFieldValue( """ Parameters for UpdateProjectV2ItemFieldValue """ input: UpdateProjectV2ItemFieldValueInput! ): UpdateProjectV2ItemFieldValuePayload """ This mutation updates the position of the item in the project, where the position represents the priority of an item. """ updateProjectV2ItemPosition( """ Parameters for UpdateProjectV2ItemPosition """ input: UpdateProjectV2ItemPositionInput! ): UpdateProjectV2ItemPositionPayload """ Update a pull request """ updatePullRequest( """ Parameters for UpdatePullRequest """ input: UpdatePullRequestInput! ): UpdatePullRequestPayload """ Merge or Rebase HEAD from upstream branch into pull request branch """ updatePullRequestBranch( """ Parameters for UpdatePullRequestBranch """ input: UpdatePullRequestBranchInput! ): UpdatePullRequestBranchPayload """ Updates the body of a pull request review. """ updatePullRequestReview( """ Parameters for UpdatePullRequestReview """ input: UpdatePullRequestReviewInput! ): UpdatePullRequestReviewPayload """ Updates a pull request review comment. """ updatePullRequestReviewComment( """ Parameters for UpdatePullRequestReviewComment """ input: UpdatePullRequestReviewCommentInput! ): UpdatePullRequestReviewCommentPayload """ Update a Git Ref. """ updateRef( """ Parameters for UpdateRef """ input: UpdateRefInput! ): UpdateRefPayload """ Creates, updates and/or deletes multiple refs in a repository. This mutation takes a list of `RefUpdate`s and performs these updates on the repository. All updates are performed atomically, meaning that if one of them is rejected, no other ref will be modified. `RefUpdate.beforeOid` specifies that the given reference needs to point to the given value before performing any updates. A value of `0000000000000000000000000000000000000000` can be used to verify that the references should not exist. `RefUpdate.afterOid` specifies the value that the given reference will point to after performing all updates. A value of `0000000000000000000000000000000000000000` can be used to delete a reference. If `RefUpdate.force` is set to `true`, a non-fast-forward updates for the given reference will be allowed. """ updateRefs( """ Parameters for UpdateRefs """ input: UpdateRefsInput! ): UpdateRefsPayload @preview(toggledBy: "update-refs-preview") """ Update information about a repository. """ updateRepository( """ Parameters for UpdateRepository """ input: UpdateRepositoryInput! ): UpdateRepositoryPayload """ Update a repository ruleset """ updateRepositoryRuleset( """ Parameters for UpdateRepositoryRuleset """ input: UpdateRepositoryRulesetInput! ): UpdateRepositoryRulesetPayload """ Sets whether contributors are required to sign off on web-based commits for a repository. """ updateRepositoryWebCommitSignoffSetting( """ Parameters for UpdateRepositoryWebCommitSignoffSetting """ input: UpdateRepositoryWebCommitSignoffSettingInput! ): UpdateRepositoryWebCommitSignoffSettingPayload """ Change visibility of your sponsorship and opt in or out of email updates from the maintainer. """ updateSponsorshipPreferences( """ Parameters for UpdateSponsorshipPreferences """ input: UpdateSponsorshipPreferencesInput! ): UpdateSponsorshipPreferencesPayload """ Updates the state for subscribable subjects. """ updateSubscription( """ Parameters for UpdateSubscription """ input: UpdateSubscriptionInput! ): UpdateSubscriptionPayload """ Updates a team discussion. """ updateTeamDiscussion( """ Parameters for UpdateTeamDiscussion """ input: UpdateTeamDiscussionInput! ): UpdateTeamDiscussionPayload """ Updates a discussion comment. """ updateTeamDiscussionComment( """ Parameters for UpdateTeamDiscussionComment """ input: UpdateTeamDiscussionCommentInput! ): UpdateTeamDiscussionCommentPayload """ Updates team review assignment. """ updateTeamReviewAssignment( """ Parameters for UpdateTeamReviewAssignment """ input: UpdateTeamReviewAssignmentInput! ): UpdateTeamReviewAssignmentPayload @preview(toggledBy: "stone-crop-preview") """ Update team repository. """ updateTeamsRepository( """ Parameters for UpdateTeamsRepository """ input: UpdateTeamsRepositoryInput! ): UpdateTeamsRepositoryPayload """ Replaces the repository's topics with the given topics. """ updateTopics( """ Parameters for UpdateTopics """ input: UpdateTopicsInput! ): UpdateTopicsPayload """ Updates an existing user list. """ updateUserList( """ Parameters for UpdateUserList """ input: UpdateUserListInput! ): UpdateUserListPayload """ Updates which of the viewer's lists an item belongs to """ updateUserListsForItem( """ Parameters for UpdateUserListsForItem """ input: UpdateUserListsForItemInput! ): UpdateUserListsForItemPayload """ Verify that a verifiable domain has the expected DNS record. """ verifyVerifiableDomain( """ Parameters for VerifyVerifiableDomain """ input: VerifyVerifiableDomainInput! ): VerifyVerifiableDomainPayload } """ An object with an ID. """ interface Node { """ ID of the object. """ id: ID! } """ The possible values for the notification restriction setting. """ enum NotificationRestrictionSettingValue { """ The setting is disabled for the owner. """ DISABLED """ The setting is enabled for the owner. """ ENABLED } """ An OIDC identity provider configured to provision identities for an enterprise. Visible to enterprise owners or enterprise owners' personal access tokens (classic) with read:enterprise or admin:enterprise scope. """ type OIDCProvider implements Node { """ The enterprise this identity provider belongs to. """ enterprise: Enterprise """ ExternalIdentities provisioned by this identity provider. """ externalIdentities( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Filter to external identities with the users login """ login: String """ Filter to external identities with valid org membership only """ membersOnly: Boolean """ Filter to external identities with the users userName/NameID attribute """ userName: String ): ExternalIdentityConnection! """ The Node ID of the OIDCProvider object """ id: ID! """ The OIDC identity provider type """ providerType: OIDCProviderType! """ The id of the tenant this provider is attached to """ tenantId: String! } """ The OIDC identity provider type """ enum OIDCProviderType { """ Azure Active Directory """ AAD } """ Metadata for an audit entry with action oauth_application.* """ interface OauthApplicationAuditEntryData { """ The name of the OAuth application. """ oauthApplicationName: String """ The HTTP path for the OAuth application """ oauthApplicationResourcePath: URI """ The HTTP URL for the OAuth application """ oauthApplicationUrl: URI } """ Audit log entry for a oauth_application.create event. """ type OauthApplicationCreateAuditEntry implements AuditEntry & Node & OauthApplicationAuditEntryData & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The application URL of the OAuth application. """ applicationUrl: URI """ The callback URL of the OAuth application. """ callbackUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the OauthApplicationCreateAuditEntry object """ id: ID! """ The name of the OAuth application. """ oauthApplicationName: String """ The HTTP path for the OAuth application """ oauthApplicationResourcePath: URI """ The HTTP URL for the OAuth application """ oauthApplicationUrl: URI """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The rate limit of the OAuth application. """ rateLimit: Int """ The state of the OAuth application. """ state: OauthApplicationCreateAuditEntryState """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ The state of an OAuth application when it was created. """ enum OauthApplicationCreateAuditEntryState { """ The OAuth application was active and allowed to have OAuth Accesses. """ ACTIVE """ The OAuth application was in the process of being deleted. """ PENDING_DELETION """ The OAuth application was suspended from generating OAuth Accesses due to abuse or security concerns. """ SUSPENDED } """ The corresponding operation type for the action """ enum OperationType { """ An existing resource was accessed """ ACCESS """ A resource performed an authentication event """ AUTHENTICATION """ A new resource was created """ CREATE """ An existing resource was modified """ MODIFY """ An existing resource was removed """ REMOVE """ An existing resource was restored """ RESTORE """ An existing resource was transferred between multiple resources """ TRANSFER } """ Possible directions in which to order a list of items when provided an `orderBy` argument. """ enum OrderDirection { """ Specifies an ascending order for a given `orderBy` argument. """ ASC """ Specifies a descending order for a given `orderBy` argument. """ DESC } """ Audit log entry for a org.add_billing_manager """ type OrgAddBillingManagerAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the OrgAddBillingManagerAuditEntry object """ id: ID! """ The email address used to invite a billing manager for the organization. """ invitationEmail: String """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a org.add_member """ type OrgAddMemberAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the OrgAddMemberAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The permission level of the member added to the organization. """ permission: OrgAddMemberAuditEntryPermission """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ The permissions available to members on an Organization. """ enum OrgAddMemberAuditEntryPermission { """ Can read, clone, push, and add collaborators to repositories. """ ADMIN """ Can read and clone repositories. """ READ } """ Audit log entry for a org.block_user """ type OrgBlockUserAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The blocked user. """ blockedUser: User """ The username of the blocked user. """ blockedUserName: String """ The HTTP path for the blocked user. """ blockedUserResourcePath: URI """ The HTTP URL for the blocked user. """ blockedUserUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the OrgBlockUserAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a org.config.disable_collaborators_only event. """ type OrgConfigDisableCollaboratorsOnlyAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the OrgConfigDisableCollaboratorsOnlyAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a org.config.enable_collaborators_only event. """ type OrgConfigEnableCollaboratorsOnlyAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the OrgConfigEnableCollaboratorsOnlyAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a org.create event. """ type OrgCreateAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The billing plan for the Organization. """ billingPlan: OrgCreateAuditEntryBillingPlan """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the OrgCreateAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ The billing plans available for organizations. """ enum OrgCreateAuditEntryBillingPlan { """ Team Plan """ BUSINESS """ Enterprise Cloud Plan """ BUSINESS_PLUS """ Free Plan """ FREE """ Tiered Per Seat Plan """ TIERED_PER_SEAT """ Legacy Unlimited Plan """ UNLIMITED } """ Audit log entry for a org.disable_oauth_app_restrictions event. """ type OrgDisableOauthAppRestrictionsAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the OrgDisableOauthAppRestrictionsAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a org.disable_saml event. """ type OrgDisableSamlAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The SAML provider's digest algorithm URL. """ digestMethodUrl: URI """ The Node ID of the OrgDisableSamlAuditEntry object """ id: ID! """ The SAML provider's issuer URL. """ issuerUrl: URI """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The SAML provider's signature algorithm URL. """ signatureMethodUrl: URI """ The SAML provider's single sign-on URL. """ singleSignOnUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a org.disable_two_factor_requirement event. """ type OrgDisableTwoFactorRequirementAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the OrgDisableTwoFactorRequirementAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a org.enable_oauth_app_restrictions event. """ type OrgEnableOauthAppRestrictionsAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the OrgEnableOauthAppRestrictionsAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a org.enable_saml event. """ type OrgEnableSamlAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The SAML provider's digest algorithm URL. """ digestMethodUrl: URI """ The Node ID of the OrgEnableSamlAuditEntry object """ id: ID! """ The SAML provider's issuer URL. """ issuerUrl: URI """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The SAML provider's signature algorithm URL. """ signatureMethodUrl: URI """ The SAML provider's single sign-on URL. """ singleSignOnUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a org.enable_two_factor_requirement event. """ type OrgEnableTwoFactorRequirementAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the OrgEnableTwoFactorRequirementAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Ordering options for an organization's enterprise owner connections. """ input OrgEnterpriseOwnerOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order enterprise owners by. """ field: OrgEnterpriseOwnerOrderField! } """ Properties by which enterprise owners can be ordered. """ enum OrgEnterpriseOwnerOrderField { """ Order enterprise owners by login. """ LOGIN } """ Audit log entry for a org.invite_member event. """ type OrgInviteMemberAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The email address of the organization invitation. """ email: String """ The Node ID of the OrgInviteMemberAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The organization invitation. """ organizationInvitation: OrganizationInvitation """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a org.invite_to_business event. """ type OrgInviteToBusinessAuditEntry implements AuditEntry & EnterpriseAuditEntryData & Node & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The HTTP path for this enterprise. """ enterpriseResourcePath: URI """ The slug of the enterprise. """ enterpriseSlug: String """ The HTTP URL for this enterprise. """ enterpriseUrl: URI """ The Node ID of the OrgInviteToBusinessAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a org.oauth_app_access_approved event. """ type OrgOauthAppAccessApprovedAuditEntry implements AuditEntry & Node & OauthApplicationAuditEntryData & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the OrgOauthAppAccessApprovedAuditEntry object """ id: ID! """ The name of the OAuth application. """ oauthApplicationName: String """ The HTTP path for the OAuth application """ oauthApplicationResourcePath: URI """ The HTTP URL for the OAuth application """ oauthApplicationUrl: URI """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a org.oauth_app_access_blocked event. """ type OrgOauthAppAccessBlockedAuditEntry implements AuditEntry & Node & OauthApplicationAuditEntryData & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the OrgOauthAppAccessBlockedAuditEntry object """ id: ID! """ The name of the OAuth application. """ oauthApplicationName: String """ The HTTP path for the OAuth application """ oauthApplicationResourcePath: URI """ The HTTP URL for the OAuth application """ oauthApplicationUrl: URI """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a org.oauth_app_access_denied event. """ type OrgOauthAppAccessDeniedAuditEntry implements AuditEntry & Node & OauthApplicationAuditEntryData & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the OrgOauthAppAccessDeniedAuditEntry object """ id: ID! """ The name of the OAuth application. """ oauthApplicationName: String """ The HTTP path for the OAuth application """ oauthApplicationResourcePath: URI """ The HTTP URL for the OAuth application """ oauthApplicationUrl: URI """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a org.oauth_app_access_requested event. """ type OrgOauthAppAccessRequestedAuditEntry implements AuditEntry & Node & OauthApplicationAuditEntryData & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the OrgOauthAppAccessRequestedAuditEntry object """ id: ID! """ The name of the OAuth application. """ oauthApplicationName: String """ The HTTP path for the OAuth application """ oauthApplicationResourcePath: URI """ The HTTP URL for the OAuth application """ oauthApplicationUrl: URI """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a org.oauth_app_access_unblocked event. """ type OrgOauthAppAccessUnblockedAuditEntry implements AuditEntry & Node & OauthApplicationAuditEntryData & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the OrgOauthAppAccessUnblockedAuditEntry object """ id: ID! """ The name of the OAuth application. """ oauthApplicationName: String """ The HTTP path for the OAuth application """ oauthApplicationResourcePath: URI """ The HTTP URL for the OAuth application """ oauthApplicationUrl: URI """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a org.remove_billing_manager event. """ type OrgRemoveBillingManagerAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the OrgRemoveBillingManagerAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The reason for the billing manager being removed. """ reason: OrgRemoveBillingManagerAuditEntryReason """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ The reason a billing manager was removed from an Organization. """ enum OrgRemoveBillingManagerAuditEntryReason { """ SAML external identity missing """ SAML_EXTERNAL_IDENTITY_MISSING """ SAML SSO enforcement requires an external identity """ SAML_SSO_ENFORCEMENT_REQUIRES_EXTERNAL_IDENTITY """ The organization required 2FA of its billing managers and this user did not have 2FA enabled. """ TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE } """ Audit log entry for a org.remove_member event. """ type OrgRemoveMemberAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the OrgRemoveMemberAuditEntry object """ id: ID! """ The types of membership the member has with the organization. """ membershipTypes: [OrgRemoveMemberAuditEntryMembershipType!] """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The reason for the member being removed. """ reason: OrgRemoveMemberAuditEntryReason """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ The type of membership a user has with an Organization. """ enum OrgRemoveMemberAuditEntryMembershipType { """ Organization owners have full access and can change several settings, including the names of repositories that belong to the Organization and Owners team membership. In addition, organization owners can delete the organization and all of its repositories. """ ADMIN """ A billing manager is a user who manages the billing settings for the Organization, such as updating payment information. """ BILLING_MANAGER """ A direct member is a user that is a member of the Organization. """ DIRECT_MEMBER """ An outside collaborator is a person who isn't explicitly a member of the Organization, but who has Read, Write, or Admin permissions to one or more repositories in the organization. """ OUTSIDE_COLLABORATOR """ A suspended member. """ SUSPENDED """ An unaffiliated collaborator is a person who is not a member of the Organization and does not have access to any repositories in the Organization. """ UNAFFILIATED } """ The reason a member was removed from an Organization. """ enum OrgRemoveMemberAuditEntryReason { """ SAML external identity missing """ SAML_EXTERNAL_IDENTITY_MISSING """ SAML SSO enforcement requires an external identity """ SAML_SSO_ENFORCEMENT_REQUIRES_EXTERNAL_IDENTITY """ User was removed from organization during account recovery """ TWO_FACTOR_ACCOUNT_RECOVERY """ The organization required 2FA of its billing managers and this user did not have 2FA enabled. """ TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE """ User account has been deleted """ USER_ACCOUNT_DELETED } """ Audit log entry for a org.remove_outside_collaborator event. """ type OrgRemoveOutsideCollaboratorAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the OrgRemoveOutsideCollaboratorAuditEntry object """ id: ID! """ The types of membership the outside collaborator has with the organization. """ membershipTypes: [OrgRemoveOutsideCollaboratorAuditEntryMembershipType!] """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The reason for the outside collaborator being removed from the Organization. """ reason: OrgRemoveOutsideCollaboratorAuditEntryReason """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ The type of membership a user has with an Organization. """ enum OrgRemoveOutsideCollaboratorAuditEntryMembershipType { """ A billing manager is a user who manages the billing settings for the Organization, such as updating payment information. """ BILLING_MANAGER """ An outside collaborator is a person who isn't explicitly a member of the Organization, but who has Read, Write, or Admin permissions to one or more repositories in the organization. """ OUTSIDE_COLLABORATOR """ An unaffiliated collaborator is a person who is not a member of the Organization and does not have access to any repositories in the organization. """ UNAFFILIATED } """ The reason an outside collaborator was removed from an Organization. """ enum OrgRemoveOutsideCollaboratorAuditEntryReason { """ SAML external identity missing """ SAML_EXTERNAL_IDENTITY_MISSING """ The organization required 2FA of its billing managers and this user did not have 2FA enabled. """ TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE } """ Audit log entry for a org.restore_member event. """ type OrgRestoreMemberAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the OrgRestoreMemberAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The number of custom email routings for the restored member. """ restoredCustomEmailRoutingsCount: Int """ The number of issue assignments for the restored member. """ restoredIssueAssignmentsCount: Int """ Restored organization membership objects. """ restoredMemberships: [OrgRestoreMemberAuditEntryMembership!] """ The number of restored memberships. """ restoredMembershipsCount: Int """ The number of repositories of the restored member. """ restoredRepositoriesCount: Int """ The number of starred repositories for the restored member. """ restoredRepositoryStarsCount: Int """ The number of watched repositories for the restored member. """ restoredRepositoryWatchesCount: Int """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Types of memberships that can be restored for an Organization member. """ union OrgRestoreMemberAuditEntryMembership = OrgRestoreMemberMembershipOrganizationAuditEntryData | OrgRestoreMemberMembershipRepositoryAuditEntryData | OrgRestoreMemberMembershipTeamAuditEntryData """ Metadata for an organization membership for org.restore_member actions """ type OrgRestoreMemberMembershipOrganizationAuditEntryData implements OrganizationAuditEntryData { """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI } """ Metadata for a repository membership for org.restore_member actions """ type OrgRestoreMemberMembershipRepositoryAuditEntryData implements RepositoryAuditEntryData { """ The repository associated with the action """ repository: Repository """ The name of the repository """ repositoryName: String """ The HTTP path for the repository """ repositoryResourcePath: URI """ The HTTP URL for the repository """ repositoryUrl: URI } """ Metadata for a team membership for org.restore_member actions """ type OrgRestoreMemberMembershipTeamAuditEntryData implements TeamAuditEntryData { """ The team associated with the action """ team: Team """ The name of the team """ teamName: String """ The HTTP path for this team """ teamResourcePath: URI """ The HTTP URL for this team """ teamUrl: URI } """ Audit log entry for a org.unblock_user """ type OrgUnblockUserAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The user being unblocked by the organization. """ blockedUser: User """ The username of the blocked user. """ blockedUserName: String """ The HTTP path for the blocked user. """ blockedUserResourcePath: URI """ The HTTP URL for the blocked user. """ blockedUserUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the OrgUnblockUserAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a org.update_default_repository_permission """ type OrgUpdateDefaultRepositoryPermissionAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the OrgUpdateDefaultRepositoryPermissionAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The new base repository permission level for the organization. """ permission: OrgUpdateDefaultRepositoryPermissionAuditEntryPermission """ The former base repository permission level for the organization. """ permissionWas: OrgUpdateDefaultRepositoryPermissionAuditEntryPermission """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ The default permission a repository can have in an Organization. """ enum OrgUpdateDefaultRepositoryPermissionAuditEntryPermission { """ Can read, clone, push, and add collaborators to repositories. """ ADMIN """ No default permission value. """ NONE """ Can read and clone repositories. """ READ """ Can read, clone and push to repositories. """ WRITE } """ Audit log entry for a org.update_member event. """ type OrgUpdateMemberAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the OrgUpdateMemberAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The new member permission level for the organization. """ permission: OrgUpdateMemberAuditEntryPermission """ The former member permission level for the organization. """ permissionWas: OrgUpdateMemberAuditEntryPermission """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ The permissions available to members on an Organization. """ enum OrgUpdateMemberAuditEntryPermission { """ Can read, clone, push, and add collaborators to repositories. """ ADMIN """ Can read and clone repositories. """ READ } """ Audit log entry for a org.update_member_repository_creation_permission event. """ type OrgUpdateMemberRepositoryCreationPermissionAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ Can members create repositories in the organization. """ canCreateRepositories: Boolean """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the OrgUpdateMemberRepositoryCreationPermissionAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI """ The permission for visibility level of repositories for this organization. """ visibility: OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility } """ The permissions available for repository creation on an Organization. """ enum OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility { """ All organization members are restricted from creating any repositories. """ ALL """ All organization members are restricted from creating internal repositories. """ INTERNAL """ All organization members are allowed to create any repositories. """ NONE """ All organization members are restricted from creating private repositories. """ PRIVATE """ All organization members are restricted from creating private or internal repositories. """ PRIVATE_INTERNAL """ All organization members are restricted from creating public repositories. """ PUBLIC """ All organization members are restricted from creating public or internal repositories. """ PUBLIC_INTERNAL """ All organization members are restricted from creating public or private repositories. """ PUBLIC_PRIVATE } """ Audit log entry for a org.update_member_repository_invitation_permission event. """ type OrgUpdateMemberRepositoryInvitationPermissionAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ Can outside collaborators be invited to repositories in the organization. """ canInviteOutsideCollaboratorsToRepositories: Boolean """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the OrgUpdateMemberRepositoryInvitationPermissionAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ An account on GitHub, with one or more owners, that has repositories, members and teams. """ type Organization implements Actor & AnnouncementBanner & MemberStatusable & Node & PackageOwner & ProfileOwner & ProjectOwner & ProjectV2Owner & ProjectV2Recent & RepositoryDiscussionAuthor & RepositoryDiscussionCommentAuthor & RepositoryOwner & Sponsorable & UniformResourceLocatable { """ The text of the announcement """ announcement: String """ The expiration date of the announcement, if any """ announcementExpiresAt: DateTime """ Whether the announcement can be dismissed by the user """ announcementUserDismissible: Boolean """ Determine if this repository owner has any items that can be pinned to their profile. """ anyPinnableItems( """ Filter to only a particular kind of pinnable item. """ type: PinnableItemType ): Boolean! """ Identifies the date and time when the organization was archived. """ archivedAt: DateTime """ Audit log entries of the organization """ auditLog( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for the returned audit log entries. """ orderBy: AuditLogOrder = {field: CREATED_AT, direction: DESC} """ The query string to filter audit entries """ query: String ): OrganizationAuditEntryConnection! """ A URL pointing to the organization's public avatar. """ avatarUrl( """ The size of the resulting square image. """ size: Int ): URI! """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the primary key from the database. """ databaseId: Int """ The organization's public profile description. """ description: String """ The organization's public profile description rendered to HTML. """ descriptionHTML: String """ A list of domains owned by the organization. """ domains( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Filter by if the domain is approved. """ isApproved: Boolean = null """ Filter by if the domain is verified. """ isVerified: Boolean = null """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for verifiable domains returned. """ orderBy: VerifiableDomainOrder = {field: DOMAIN, direction: ASC} ): VerifiableDomainConnection """ The organization's public email. """ email: String """ A list of owners of the organization's enterprise account. """ enterpriseOwners( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for enterprise owners returned from the connection. """ orderBy: OrgEnterpriseOwnerOrder = {field: LOGIN, direction: ASC} """ The organization role to filter by. """ organizationRole: RoleInOrganization """ The search string to look for. """ query: String ): OrganizationEnterpriseOwnerConnection! """ The estimated next GitHub Sponsors payout for this user/organization in cents (USD). """ estimatedNextSponsorsPayoutInCents: Int! """ True if this user/organization has a GitHub Sponsors listing. """ hasSponsorsListing: Boolean! """ The Node ID of the Organization object """ id: ID! """ The interaction ability settings for this organization. """ interactionAbility: RepositoryInteractionAbility """ The setting value for whether the organization has an IP allow list enabled. """ ipAllowListEnabledSetting: IpAllowListEnabledSettingValue! """ The IP addresses that are allowed to access resources owned by the organization. """ ipAllowListEntries( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for IP allow list entries returned. """ orderBy: IpAllowListEntryOrder = {field: ALLOW_LIST_VALUE, direction: ASC} ): IpAllowListEntryConnection! """ The setting value for whether the organization has IP allow list configuration for installed GitHub Apps enabled. """ ipAllowListForInstalledAppsEnabledSetting: IpAllowListForInstalledAppsEnabledSettingValue! """ Whether the given account is sponsoring this user/organization. """ isSponsoredBy( """ The target account's login. """ accountLogin: String! ): Boolean! """ True if the viewer is sponsored by this user/organization. """ isSponsoringViewer: Boolean! """ Whether the organization has verified its profile email and website. """ isVerified: Boolean! """ Showcases a selection of repositories and gists that the profile owner has either curated or that have been selected automatically based on popularity. """ itemShowcase: ProfileItemShowcase! """ The organization's public profile location. """ location: String """ The organization's login name. """ login: String! """ A list of all mannequins for this organization. """ mannequins( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Filter mannequins by login. """ login: String """ Ordering options for mannequins returned from the connection. """ orderBy: MannequinOrder = {field: CREATED_AT, direction: ASC} ): MannequinConnection! """ Get the status messages members of this entity have set that are either public or visible only to the organization. """ memberStatuses( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for user statuses returned from the connection. """ orderBy: UserStatusOrder = {field: UPDATED_AT, direction: DESC} ): UserStatusConnection! """ Members can fork private repositories in this organization """ membersCanForkPrivateRepositories: Boolean! """ A list of users who are members of this organization. """ membersWithRole( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): OrganizationMemberConnection! """ The estimated monthly GitHub Sponsors income for this user/organization in cents (USD). """ monthlyEstimatedSponsorsIncomeInCents: Int! """ The organization's public profile name. """ name: String """ The HTTP path creating a new team """ newTeamResourcePath: URI! """ The HTTP URL creating a new team """ newTeamUrl: URI! """ Indicates if email notification delivery for this organization is restricted to verified or approved domains. """ notificationDeliveryRestrictionEnabledSetting: NotificationRestrictionSettingValue! """ The billing email for the organization. """ organizationBillingEmail: String """ A list of packages under the owner. """ packages( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Find packages by their names. """ names: [String] """ Ordering of the returned packages. """ orderBy: PackageOrder = {field: CREATED_AT, direction: DESC} """ Filter registry package by type. """ packageType: PackageType """ Find packages in a repository by ID. """ repositoryId: ID ): PackageConnection! """ A list of users who have been invited to join this organization. """ pendingMembers( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): UserConnection! """ A list of repositories and gists this profile owner can pin to their profile. """ pinnableItems( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Filter the types of pinnable items that are returned. """ types: [PinnableItemType!] ): PinnableItemConnection! """ A list of repositories and gists this profile owner has pinned to their profile """ pinnedItems( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Filter the types of pinned items that are returned. """ types: [PinnableItemType!] ): PinnableItemConnection! """ Returns how many more items this profile owner can pin to their profile. """ pinnedItemsRemaining: Int! """ Find project by number. """ project( """ The project number to find. """ number: Int! ): Project """ Find a project by number. """ projectV2( """ The project number. """ number: Int! ): ProjectV2 """ A list of projects under the owner. """ projects( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for projects returned from the connection """ orderBy: ProjectOrder """ Query to search projects by, currently only searching by name. """ search: String """ A list of states to filter the projects by. """ states: [ProjectState!] ): ProjectConnection! """ The HTTP path listing organization's projects """ projectsResourcePath: URI! """ The HTTP URL listing organization's projects """ projectsUrl: URI! """ A list of projects under the owner. """ projectsV2( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ How to order the returned projects. """ orderBy: ProjectV2Order = {field: NUMBER, direction: DESC} """ A project to search for under the the owner. """ query: String ): ProjectV2Connection! """ Recent projects that this user has modified in the context of the owner. """ recentProjects( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): ProjectV2Connection! """ A list of repositories that the user owns. """ repositories( """ Array of viewer's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the current viewer owns. """ affiliations: [RepositoryAffiliation] """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ If non-null, filters repositories according to whether they have issues enabled """ hasIssuesEnabled: Boolean """ If non-null, filters repositories according to whether they are archived and not maintained """ isArchived: Boolean """ If non-null, filters repositories according to whether they are forks of another repository """ isFork: Boolean """ If non-null, filters repositories according to whether they have been locked """ isLocked: Boolean """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for repositories returned from the connection """ orderBy: RepositoryOrder """ Array of owner's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the organization or user being viewed owns. """ ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR] """ If non-null, filters repositories according to privacy """ privacy: RepositoryPrivacy ): RepositoryConnection! """ Find Repository. """ repository( """ Follow repository renames. If disabled, a repository referenced by its old name will return an error. """ followRenames: Boolean = true """ Name of Repository to find. """ name: String! ): Repository """ Discussion comments this user has authored. """ repositoryDiscussionComments( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Filter discussion comments to only those that were marked as the answer """ onlyAnswers: Boolean = false """ Filter discussion comments to only those in a specific repository. """ repositoryId: ID ): DiscussionCommentConnection! """ Discussions this user has started. """ repositoryDiscussions( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Filter discussions to only those that have been answered or not. Defaults to including both answered and unanswered discussions. """ answered: Boolean = null """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for discussions returned from the connection. """ orderBy: DiscussionOrder = {field: CREATED_AT, direction: DESC} """ Filter discussions to only those in a specific repository. """ repositoryId: ID """ A list of states to filter the discussions by. """ states: [DiscussionState!] = [] ): DiscussionConnection! """ A list of all repository migrations for this organization. """ repositoryMigrations( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for repository migrations returned. """ orderBy: RepositoryMigrationOrder = {field: CREATED_AT, direction: ASC} """ Filter repository migrations by repository name. """ repositoryName: String """ Filter repository migrations by state. """ state: MigrationState ): RepositoryMigrationConnection! """ When true the organization requires all members, billing managers, and outside collaborators to enable two-factor authentication. """ requiresTwoFactorAuthentication: Boolean """ The HTTP path for this organization. """ resourcePath: URI! """ Returns a single ruleset from the current organization by ID. """ ruleset( """ The ID of the ruleset to be returned. """ databaseId: Int! ): RepositoryRuleset """ A list of rulesets for this organization. """ rulesets( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Return rulesets configured at higher levels that apply to this organization """ includeParents: Boolean = true """ Returns the last _n_ elements from the list. """ last: Int ): RepositoryRulesetConnection """ The Organization's SAML identity provider. Visible to (1) organization owners, (2) organization owners' personal access tokens (classic) with read:org or admin:org scope, (3) GitHub App with an installation token with read or write access to members. """ samlIdentityProvider: OrganizationIdentityProvider """ List of users and organizations this entity is sponsoring. """ sponsoring( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for the users and organizations returned from the connection. """ orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC} ): SponsorConnection! """ List of sponsors for this user or organization. """ sponsors( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for sponsors returned from the connection. """ orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC} """ If given, will filter for sponsors at the given tier. Will only return sponsors whose tier the viewer is permitted to see. """ tierId: ID ): SponsorConnection! """ Events involving this sponsorable, such as new sponsorships. """ sponsorsActivities( """ Filter activities to only the specified actions. """ actions: [SponsorsActivityAction!] = [] """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Whether to include those events where this sponsorable acted as the sponsor. Defaults to only including events where this sponsorable was the recipient of a sponsorship. """ includeAsSponsor: Boolean = false """ Whether or not to include private activities in the result set. Defaults to including public and private activities. """ includePrivate: Boolean = true """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for activity returned from the connection. """ orderBy: SponsorsActivityOrder = {field: TIMESTAMP, direction: DESC} """ Filter activities returned to only those that occurred in the most recent specified time period. Set to ALL to avoid filtering by when the activity occurred. Will be ignored if `since` or `until` is given. """ period: SponsorsActivityPeriod = MONTH """ Filter activities to those that occurred on or after this time. """ since: DateTime """ Filter activities to those that occurred before this time. """ until: DateTime ): SponsorsActivityConnection! """ The GitHub Sponsors listing for this user or organization. """ sponsorsListing: SponsorsListing """ The sponsorship from the viewer to this user/organization; that is, the sponsorship where you're the sponsor. """ sponsorshipForViewerAsSponsor( """ Whether to return the sponsorship only if it's still active. Pass false to get the viewer's sponsorship back even if it has been cancelled. """ activeOnly: Boolean = true ): Sponsorship """ The sponsorship from this user/organization to the viewer; that is, the sponsorship you're receiving. """ sponsorshipForViewerAsSponsorable( """ Whether to return the sponsorship only if it's still active. Pass false to get the sponsorship back even if it has been cancelled. """ activeOnly: Boolean = true ): Sponsorship """ List of sponsorship updates sent from this sponsorable to sponsors. """ sponsorshipNewsletters( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for sponsorship updates returned from the connection. """ orderBy: SponsorshipNewsletterOrder = {field: CREATED_AT, direction: DESC} ): SponsorshipNewsletterConnection! """ The sponsorships where this user or organization is the maintainer receiving the funds. """ sponsorshipsAsMaintainer( """ Whether to include only sponsorships that are active right now, versus all sponsorships this maintainer has ever received. """ activeOnly: Boolean = true """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Whether or not to include private sponsorships in the result set """ includePrivate: Boolean = false """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer. """ orderBy: SponsorshipOrder ): SponsorshipConnection! """ The sponsorships where this user or organization is the funder. """ sponsorshipsAsSponsor( """ Whether to include only sponsorships that are active right now, versus all sponsorships this sponsor has ever made. """ activeOnly: Boolean = true """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Filter sponsorships returned to those for the specified maintainers. That is, the recipient of the sponsorship is a user or organization with one of the given logins. """ maintainerLogins: [String!] """ Ordering options for sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer. """ orderBy: SponsorshipOrder ): SponsorshipConnection! """ Find an organization's team by its slug. """ team( """ The name or slug of the team to find. """ slug: String! ): Team """ A list of teams in this organization. """ teams( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ If true, filters teams that are mapped to an LDAP Group (Enterprise only) """ ldapMapped: Boolean """ If non-null, filters teams according to notification setting """ notificationSetting: TeamNotificationSetting """ Ordering options for teams returned from the connection """ orderBy: TeamOrder """ If non-null, filters teams according to privacy """ privacy: TeamPrivacy """ If non-null, filters teams with query on team name and team slug """ query: String """ If non-null, filters teams according to whether the viewer is an admin or member on team """ role: TeamRole """ If true, restrict to only root teams """ rootTeamsOnly: Boolean = false """ User logins to filter by """ userLogins: [String!] ): TeamConnection! """ The HTTP path listing organization's teams """ teamsResourcePath: URI! """ The HTTP URL listing organization's teams """ teamsUrl: URI! """ The amount in United States cents (e.g., 500 = $5.00 USD) that this entity has spent on GitHub to fund sponsorships. Only returns a value when viewed by the user themselves or by a user who can manage sponsorships for the requested organization. """ totalSponsorshipAmountAsSponsorInCents( """ Filter payments to those that occurred on or after this time. """ since: DateTime """ Filter payments to those made to the users or organizations with the specified usernames. """ sponsorableLogins: [String!] = [] """ Filter payments to those that occurred before this time. """ until: DateTime ): Int """ The organization's Twitter username. """ twitterUsername: String """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The HTTP URL for this organization. """ url: URI! """ Organization is adminable by the viewer. """ viewerCanAdminister: Boolean! """ Can the viewer pin repositories and gists to the profile? """ viewerCanChangePinnedItems: Boolean! """ Can the current viewer create new projects on this owner. """ viewerCanCreateProjects: Boolean! """ Viewer can create repositories on this organization """ viewerCanCreateRepositories: Boolean! """ Viewer can create teams on this organization. """ viewerCanCreateTeams: Boolean! """ Whether or not the viewer is able to sponsor this user/organization. """ viewerCanSponsor: Boolean! """ Viewer is an active member of this organization. """ viewerIsAMember: Boolean! """ Whether or not this Organization is followed by the viewer. """ viewerIsFollowing: Boolean! """ True if the viewer is sponsoring this user/organization. """ viewerIsSponsoring: Boolean! """ Whether contributors are required to sign off on web-based commits for repositories in this organization. """ webCommitSignoffRequired: Boolean! """ The organization's public profile URL. """ websiteUrl: URI } """ An audit entry in an organization audit log. """ union OrganizationAuditEntry = MembersCanDeleteReposClearAuditEntry | MembersCanDeleteReposDisableAuditEntry | MembersCanDeleteReposEnableAuditEntry | OauthApplicationCreateAuditEntry | OrgAddBillingManagerAuditEntry | OrgAddMemberAuditEntry | OrgBlockUserAuditEntry | OrgConfigDisableCollaboratorsOnlyAuditEntry | OrgConfigEnableCollaboratorsOnlyAuditEntry | OrgCreateAuditEntry | OrgDisableOauthAppRestrictionsAuditEntry | OrgDisableSamlAuditEntry | OrgDisableTwoFactorRequirementAuditEntry | OrgEnableOauthAppRestrictionsAuditEntry | OrgEnableSamlAuditEntry | OrgEnableTwoFactorRequirementAuditEntry | OrgInviteMemberAuditEntry | OrgInviteToBusinessAuditEntry | OrgOauthAppAccessApprovedAuditEntry | OrgOauthAppAccessBlockedAuditEntry | OrgOauthAppAccessDeniedAuditEntry | OrgOauthAppAccessRequestedAuditEntry | OrgOauthAppAccessUnblockedAuditEntry | OrgRemoveBillingManagerAuditEntry | OrgRemoveMemberAuditEntry | OrgRemoveOutsideCollaboratorAuditEntry | OrgRestoreMemberAuditEntry | OrgUnblockUserAuditEntry | OrgUpdateDefaultRepositoryPermissionAuditEntry | OrgUpdateMemberAuditEntry | OrgUpdateMemberRepositoryCreationPermissionAuditEntry | OrgUpdateMemberRepositoryInvitationPermissionAuditEntry | PrivateRepositoryForkingDisableAuditEntry | PrivateRepositoryForkingEnableAuditEntry | RepoAccessAuditEntry | RepoAddMemberAuditEntry | RepoAddTopicAuditEntry | RepoArchivedAuditEntry | RepoChangeMergeSettingAuditEntry | RepoConfigDisableAnonymousGitAccessAuditEntry | RepoConfigDisableCollaboratorsOnlyAuditEntry | RepoConfigDisableContributorsOnlyAuditEntry | RepoConfigDisableSockpuppetDisallowedAuditEntry | RepoConfigEnableAnonymousGitAccessAuditEntry | RepoConfigEnableCollaboratorsOnlyAuditEntry | RepoConfigEnableContributorsOnlyAuditEntry | RepoConfigEnableSockpuppetDisallowedAuditEntry | RepoConfigLockAnonymousGitAccessAuditEntry | RepoConfigUnlockAnonymousGitAccessAuditEntry | RepoCreateAuditEntry | RepoDestroyAuditEntry | RepoRemoveMemberAuditEntry | RepoRemoveTopicAuditEntry | RepositoryVisibilityChangeDisableAuditEntry | RepositoryVisibilityChangeEnableAuditEntry | TeamAddMemberAuditEntry | TeamAddRepositoryAuditEntry | TeamChangeParentTeamAuditEntry | TeamRemoveMemberAuditEntry | TeamRemoveRepositoryAuditEntry """ The connection type for OrganizationAuditEntry. """ type OrganizationAuditEntryConnection { """ A list of edges. """ edges: [OrganizationAuditEntryEdge] """ A list of nodes. """ nodes: [OrganizationAuditEntry] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ Metadata for an audit entry with action org.* """ interface OrganizationAuditEntryData { """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI } """ An edge in a connection. """ type OrganizationAuditEntryEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: OrganizationAuditEntry } """ A list of organizations managed by an enterprise. """ type OrganizationConnection { """ A list of edges. """ edges: [OrganizationEdge] """ A list of nodes. """ nodes: [Organization] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type OrganizationEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: Organization } """ The connection type for User. """ type OrganizationEnterpriseOwnerConnection { """ A list of edges. """ edges: [OrganizationEnterpriseOwnerEdge] """ A list of nodes. """ nodes: [User] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An enterprise owner in the context of an organization that is part of the enterprise. """ type OrganizationEnterpriseOwnerEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: User """ The role of the owner with respect to the organization. """ organizationRole: RoleInOrganization! } """ An Identity Provider configured to provision SAML and SCIM identities for Organizations. Visible to (1) organization owners, (2) organization owners' personal access tokens (classic) with read:org or admin:org scope, (3) GitHub App with an installation token with read or write access to members. """ type OrganizationIdentityProvider implements Node { """ The digest algorithm used to sign SAML requests for the Identity Provider. """ digestMethod: URI """ External Identities provisioned by this Identity Provider """ externalIdentities( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Filter to external identities with the users login """ login: String """ Filter to external identities with valid org membership only """ membersOnly: Boolean """ Filter to external identities with the users userName/NameID attribute """ userName: String ): ExternalIdentityConnection! """ The Node ID of the OrganizationIdentityProvider object """ id: ID! """ The x509 certificate used by the Identity Provider to sign assertions and responses. """ idpCertificate: X509Certificate """ The Issuer Entity ID for the SAML Identity Provider """ issuer: String """ Organization this Identity Provider belongs to """ organization: Organization """ The signature algorithm used to sign SAML requests for the Identity Provider. """ signatureMethod: URI """ The URL endpoint for the Identity Provider's SAML SSO. """ ssoUrl: URI } """ An Invitation for a user to an organization. """ type OrganizationInvitation implements Node { """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The email address of the user invited to the organization. """ email: String """ The Node ID of the OrganizationInvitation object """ id: ID! """ The source of the invitation. """ invitationSource: OrganizationInvitationSource! """ The type of invitation that was sent (e.g. email, user). """ invitationType: OrganizationInvitationType! """ The user who was invited to the organization. """ invitee: User """ The user who created the invitation. """ inviter: User! """ The organization the invite is for """ organization: Organization! """ The user's pending role in the organization (e.g. member, owner). """ role: OrganizationInvitationRole! } """ The connection type for OrganizationInvitation. """ type OrganizationInvitationConnection { """ A list of edges. """ edges: [OrganizationInvitationEdge] """ A list of nodes. """ nodes: [OrganizationInvitation] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type OrganizationInvitationEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: OrganizationInvitation } """ The possible organization invitation roles. """ enum OrganizationInvitationRole { """ The user is invited to be an admin of the organization. """ ADMIN """ The user is invited to be a billing manager of the organization. """ BILLING_MANAGER """ The user is invited to be a direct member of the organization. """ DIRECT_MEMBER """ The user's previous role will be reinstated. """ REINSTATE } """ The possible organization invitation sources. """ enum OrganizationInvitationSource { """ The invitation was created from the web interface or from API """ MEMBER """ The invitation was created from SCIM """ SCIM """ The invitation was sent before this feature was added """ UNKNOWN } """ The possible organization invitation types. """ enum OrganizationInvitationType { """ The invitation was to an email address. """ EMAIL """ The invitation was to an existing user. """ USER } """ The connection type for User. """ type OrganizationMemberConnection { """ A list of edges. """ edges: [OrganizationMemberEdge] """ A list of nodes. """ nodes: [User] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ Represents a user within an organization. """ type OrganizationMemberEdge { """ A cursor for use in pagination. """ cursor: String! """ Whether the organization member has two factor enabled or not. Returns null if information is not available to viewer. """ hasTwoFactorEnabled: Boolean """ The item at the end of the edge. """ node: User """ The role this user has in the organization. """ role: OrganizationMemberRole } """ The possible roles within an organization for its members. """ enum OrganizationMemberRole { """ The user is an administrator of the organization. """ ADMIN """ The user is a member of the organization. """ MEMBER } """ The possible values for the members can create repositories setting on an organization. """ enum OrganizationMembersCanCreateRepositoriesSettingValue { """ Members will be able to create public and private repositories. """ ALL """ Members will not be able to create public or private repositories. """ DISABLED """ Members will be able to create only internal repositories. """ INTERNAL """ Members will be able to create only private repositories. """ PRIVATE } """ A GitHub Enterprise Importer (GEI) organization migration. """ type OrganizationMigration implements Node { """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the primary key from the database. """ databaseId: String """ The reason the organization migration failed. """ failureReason: String """ The Node ID of the OrganizationMigration object """ id: ID! """ The remaining amount of repos to be migrated. """ remainingRepositoriesCount: Int """ The name of the source organization to be migrated. """ sourceOrgName: String! """ The URL of the source organization to migrate. """ sourceOrgUrl: URI! """ The migration state. """ state: OrganizationMigrationState! """ The name of the target organization. """ targetOrgName: String! """ The total amount of repositories to be migrated. """ totalRepositoriesCount: Int } """ The Octoshift Organization migration state. """ enum OrganizationMigrationState { """ The Octoshift migration has failed. """ FAILED """ The Octoshift migration has invalid credentials. """ FAILED_VALIDATION """ The Octoshift migration is in progress. """ IN_PROGRESS """ The Octoshift migration has not started. """ NOT_STARTED """ The Octoshift migration needs to have its credentials validated. """ PENDING_VALIDATION """ The Octoshift migration is performing post repository migrations. """ POST_REPO_MIGRATION """ The Octoshift migration is performing pre repository migrations. """ PRE_REPO_MIGRATION """ The Octoshift migration has been queued. """ QUEUED """ The Octoshift org migration is performing repository migrations. """ REPO_MIGRATION """ The Octoshift migration has succeeded. """ SUCCEEDED } """ Used for argument of CreateProjectV2 mutation. """ union OrganizationOrUser = Organization | User """ Ordering options for organization connections. """ input OrganizationOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order organizations by. """ field: OrganizationOrderField! } """ Properties by which organization connections can be ordered. """ enum OrganizationOrderField { """ Order organizations by creation time """ CREATED_AT """ Order organizations by login """ LOGIN } """ An organization teams hovercard context """ type OrganizationTeamsHovercardContext implements HovercardContext { """ A string describing this context """ message: String! """ An octicon to accompany this context """ octicon: String! """ Teams in this organization the user is a member of that are relevant """ relevantTeams( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): TeamConnection! """ The path for the full team list for this user """ teamsResourcePath: URI! """ The URL for the full team list for this user """ teamsUrl: URI! """ The total number of teams the user is on in the organization """ totalTeamCount: Int! } """ An organization list hovercard context """ type OrganizationsHovercardContext implements HovercardContext { """ A string describing this context """ message: String! """ An octicon to accompany this context """ octicon: String! """ Organizations this user is a member of that are relevant """ relevantOrganizations( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for the User's organizations. """ orderBy: OrganizationOrder = null ): OrganizationConnection! """ The total number of organizations this user is in """ totalOrganizationCount: Int! } """ Information for an uploaded package. """ type Package implements Node { """ The Node ID of the Package object """ id: ID! """ Find the latest version for the package. """ latestVersion: PackageVersion """ Identifies the name of the package. """ name: String! """ Identifies the type of the package. """ packageType: PackageType! """ The repository this package belongs to. """ repository: Repository """ Statistics about package activity. """ statistics: PackageStatistics """ Find package version by version string. """ version( """ The package version. """ version: String! ): PackageVersion """ list of versions for this package """ versions( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering of the returned packages. """ orderBy: PackageVersionOrder = {field: CREATED_AT, direction: DESC} ): PackageVersionConnection! } """ The connection type for Package. """ type PackageConnection { """ A list of edges. """ edges: [PackageEdge] """ A list of nodes. """ nodes: [Package] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type PackageEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: Package } """ A file in a package version. """ type PackageFile implements Node { """ The Node ID of the PackageFile object """ id: ID! """ MD5 hash of the file. """ md5: String """ Name of the file. """ name: String! """ The package version this file belongs to. """ packageVersion: PackageVersion """ SHA1 hash of the file. """ sha1: String """ SHA256 hash of the file. """ sha256: String """ Size of the file in bytes. """ size: Int """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ URL to download the asset. """ url: URI } """ The connection type for PackageFile. """ type PackageFileConnection { """ A list of edges. """ edges: [PackageFileEdge] """ A list of nodes. """ nodes: [PackageFile] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type PackageFileEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: PackageFile } """ Ways in which lists of package files can be ordered upon return. """ input PackageFileOrder { """ The direction in which to order package files by the specified field. """ direction: OrderDirection """ The field in which to order package files by. """ field: PackageFileOrderField } """ Properties by which package file connections can be ordered. """ enum PackageFileOrderField { """ Order package files by creation time """ CREATED_AT } """ Ways in which lists of packages can be ordered upon return. """ input PackageOrder { """ The direction in which to order packages by the specified field. """ direction: OrderDirection """ The field in which to order packages by. """ field: PackageOrderField } """ Properties by which package connections can be ordered. """ enum PackageOrderField { """ Order packages by creation time """ CREATED_AT } """ Represents an owner of a package. """ interface PackageOwner { """ The Node ID of the PackageOwner object """ id: ID! """ A list of packages under the owner. """ packages( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Find packages by their names. """ names: [String] """ Ordering of the returned packages. """ orderBy: PackageOrder = {field: CREATED_AT, direction: DESC} """ Filter registry package by type. """ packageType: PackageType """ Find packages in a repository by ID. """ repositoryId: ID ): PackageConnection! } """ Represents a object that contains package activity statistics such as downloads. """ type PackageStatistics { """ Number of times the package was downloaded since it was created. """ downloadsTotalCount: Int! } """ A version tag contains the mapping between a tag name and a version. """ type PackageTag implements Node { """ The Node ID of the PackageTag object """ id: ID! """ Identifies the tag name of the version. """ name: String! """ Version that the tag is associated with. """ version: PackageVersion } """ The possible types of a package. """ enum PackageType { """ A debian package. """ DEBIAN """ A docker image. """ DOCKER @deprecated( reason: "DOCKER will be removed from this enum as this type will be migrated to only be used by the Packages REST API. Removal on 2021-06-21 UTC." ) """ A maven package. """ MAVEN @deprecated( reason: "MAVEN will be removed from this enum as this type will be migrated to only be used by the Packages REST API. Removal on 2023-02-10 UTC." ) """ An npm package. """ NPM @deprecated( reason: "NPM will be removed from this enum as this type will be migrated to only be used by the Packages REST API. Removal on 2022-11-21 UTC." ) """ A nuget package. """ NUGET @deprecated( reason: "NUGET will be removed from this enum as this type will be migrated to only be used by the Packages REST API. Removal on 2022-11-21 UTC." ) """ A python package. """ PYPI """ A rubygems package. """ RUBYGEMS @deprecated( reason: "RUBYGEMS will be removed from this enum as this type will be migrated to only be used by the Packages REST API. Removal on 2022-12-28 UTC." ) } """ Information about a specific package version. """ type PackageVersion implements Node { """ List of files associated with this package version """ files( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering of the returned package files. """ orderBy: PackageFileOrder = {field: CREATED_AT, direction: ASC} ): PackageFileConnection! """ The Node ID of the PackageVersion object """ id: ID! """ The package associated with this version. """ package: Package """ The platform this version was built for. """ platform: String """ Whether or not this version is a pre-release. """ preRelease: Boolean! """ The README of this package version. """ readme: String """ The release associated with this package version. """ release: Release """ Statistics about package activity. """ statistics: PackageVersionStatistics """ The package version summary. """ summary: String """ The version string. """ version: String! } """ The connection type for PackageVersion. """ type PackageVersionConnection { """ A list of edges. """ edges: [PackageVersionEdge] """ A list of nodes. """ nodes: [PackageVersion] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type PackageVersionEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: PackageVersion } """ Ways in which lists of package versions can be ordered upon return. """ input PackageVersionOrder { """ The direction in which to order package versions by the specified field. """ direction: OrderDirection """ The field in which to order package versions by. """ field: PackageVersionOrderField } """ Properties by which package version connections can be ordered. """ enum PackageVersionOrderField { """ Order package versions by creation time """ CREATED_AT } """ Represents a object that contains package version activity statistics such as downloads. """ type PackageVersionStatistics { """ Number of times the package was downloaded since it was created. """ downloadsTotalCount: Int! } """ Information about pagination in a connection. """ type PageInfo { """ When paginating forwards, the cursor to continue. """ endCursor: String """ When paginating forwards, are there more items? """ hasNextPage: Boolean! """ When paginating backwards, are there more items? """ hasPreviousPage: Boolean! """ When paginating backwards, the cursor to continue. """ startCursor: String } """ The possible types of patch statuses. """ enum PatchStatus { """ The file was added. Git status 'A'. """ ADDED """ The file's type was changed. Git status 'T'. """ CHANGED """ The file was copied. Git status 'C'. """ COPIED """ The file was deleted. Git status 'D'. """ DELETED """ The file's contents were changed. Git status 'M'. """ MODIFIED """ The file was renamed. Git status 'R'. """ RENAMED } """ Types that can grant permissions on a repository to a user """ union PermissionGranter = Organization | Repository | Team """ A level of permission and source for a user's access to a repository. """ type PermissionSource { """ The organization the repository belongs to. """ organization: Organization! """ The level of access this source has granted to the user. """ permission: DefaultRepositoryPermissionField! """ The name of the role this source has granted to the user. """ roleName: String """ The source of this permission. """ source: PermissionGranter! } """ Autogenerated input type of PinIssue """ input PinIssueInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the issue to be pinned """ issueId: ID! @possibleTypes(concreteTypes: ["Issue"]) } """ Autogenerated return type of PinIssue """ type PinIssuePayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The issue that was pinned """ issue: Issue } """ Types that can be pinned to a profile page. """ union PinnableItem = Gist | Repository """ The connection type for PinnableItem. """ type PinnableItemConnection { """ A list of edges. """ edges: [PinnableItemEdge] """ A list of nodes. """ nodes: [PinnableItem] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type PinnableItemEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: PinnableItem } """ Represents items that can be pinned to a profile page or dashboard. """ enum PinnableItemType { """ A gist. """ GIST """ An issue. """ ISSUE """ An organization. """ ORGANIZATION """ A project. """ PROJECT """ A pull request. """ PULL_REQUEST """ A repository. """ REPOSITORY """ A team. """ TEAM """ A user. """ USER } """ A Pinned Discussion is a discussion pinned to a repository's index page. """ type PinnedDiscussion implements Node & RepositoryNode { """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the primary key from the database. """ databaseId: Int """ The discussion that was pinned. """ discussion: Discussion! """ Color stops of the chosen gradient """ gradientStopColors: [String!]! """ The Node ID of the PinnedDiscussion object """ id: ID! """ Background texture pattern """ pattern: PinnedDiscussionPattern! """ The actor that pinned this discussion. """ pinnedBy: Actor! """ Preconfigured background gradient option """ preconfiguredGradient: PinnedDiscussionGradient """ The repository associated with this node. """ repository: Repository! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! } """ The connection type for PinnedDiscussion. """ type PinnedDiscussionConnection { """ A list of edges. """ edges: [PinnedDiscussionEdge] """ A list of nodes. """ nodes: [PinnedDiscussion] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type PinnedDiscussionEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: PinnedDiscussion } """ Preconfigured gradients that may be used to style discussions pinned within a repository. """ enum PinnedDiscussionGradient { """ A gradient of blue to mint """ BLUE_MINT """ A gradient of blue to purple """ BLUE_PURPLE """ A gradient of pink to blue """ PINK_BLUE """ A gradient of purple to coral """ PURPLE_CORAL """ A gradient of red to orange """ RED_ORANGE } """ Preconfigured background patterns that may be used to style discussions pinned within a repository. """ enum PinnedDiscussionPattern { """ An upward-facing chevron pattern """ CHEVRON_UP """ A hollow dot pattern """ DOT """ A solid dot pattern """ DOT_FILL """ A heart pattern """ HEART_FILL """ A plus sign pattern """ PLUS """ A lightning bolt pattern """ ZAP } """ Represents a 'pinned' event on a given issue or pull request. """ type PinnedEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the PinnedEvent object """ id: ID! """ Identifies the issue associated with the event. """ issue: Issue! } """ A Pinned Issue is a issue pinned to a repository's index page. """ type PinnedIssue implements Node { """ Identifies the primary key from the database. """ databaseId: Int """ Identifies the primary key from the database as a BigInt. """ fullDatabaseId: BigInt """ The Node ID of the PinnedIssue object """ id: ID! """ The issue that was pinned. """ issue: Issue! """ The actor that pinned this issue. """ pinnedBy: Actor! """ The repository that this issue was pinned to. """ repository: Repository! } """ The connection type for PinnedIssue. """ type PinnedIssueConnection { """ A list of edges. """ edges: [PinnedIssueEdge] """ A list of nodes. """ nodes: [PinnedIssue] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type PinnedIssueEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: PinnedIssue } """ An ISO-8601 encoded UTC date string with millisecond precision. """ scalar PreciseDateTime """ Audit log entry for a private_repository_forking.disable event. """ type PrivateRepositoryForkingDisableAuditEntry implements AuditEntry & EnterpriseAuditEntryData & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The HTTP path for this enterprise. """ enterpriseResourcePath: URI """ The slug of the enterprise. """ enterpriseSlug: String """ The HTTP URL for this enterprise. """ enterpriseUrl: URI """ The Node ID of the PrivateRepositoryForkingDisableAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The repository associated with the action """ repository: Repository """ The name of the repository """ repositoryName: String """ The HTTP path for the repository """ repositoryResourcePath: URI """ The HTTP URL for the repository """ repositoryUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a private_repository_forking.enable event. """ type PrivateRepositoryForkingEnableAuditEntry implements AuditEntry & EnterpriseAuditEntryData & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The HTTP path for this enterprise. """ enterpriseResourcePath: URI """ The slug of the enterprise. """ enterpriseSlug: String """ The HTTP URL for this enterprise. """ enterpriseUrl: URI """ The Node ID of the PrivateRepositoryForkingEnableAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The repository associated with the action """ repository: Repository """ The name of the repository """ repositoryName: String """ The HTTP path for the repository """ repositoryResourcePath: URI """ The HTTP URL for the repository """ repositoryUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ A curatable list of repositories relating to a repository owner, which defaults to showing the most popular repositories they own. """ type ProfileItemShowcase { """ Whether or not the owner has pinned any repositories or gists. """ hasPinnedItems: Boolean! """ The repositories and gists in the showcase. If the profile owner has any pinned items, those will be returned. Otherwise, the profile owner's popular repositories will be returned. """ items( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): PinnableItemConnection! } """ Represents any entity on GitHub that has a profile page. """ interface ProfileOwner { """ Determine if this repository owner has any items that can be pinned to their profile. """ anyPinnableItems( """ Filter to only a particular kind of pinnable item. """ type: PinnableItemType ): Boolean! """ The public profile email. """ email: String """ The Node ID of the ProfileOwner object """ id: ID! """ Showcases a selection of repositories and gists that the profile owner has either curated or that have been selected automatically based on popularity. """ itemShowcase: ProfileItemShowcase! """ The public profile location. """ location: String """ The username used to login. """ login: String! """ The public profile name. """ name: String """ A list of repositories and gists this profile owner can pin to their profile. """ pinnableItems( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Filter the types of pinnable items that are returned. """ types: [PinnableItemType!] ): PinnableItemConnection! """ A list of repositories and gists this profile owner has pinned to their profile """ pinnedItems( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Filter the types of pinned items that are returned. """ types: [PinnableItemType!] ): PinnableItemConnection! """ Returns how many more items this profile owner can pin to their profile. """ pinnedItemsRemaining: Int! """ Can the viewer pin repositories and gists to the profile? """ viewerCanChangePinnedItems: Boolean! """ The public profile website URL. """ websiteUrl: URI } """ Projects manage issues, pull requests and notes within a project owner. """ type Project implements Closable & Node & Updatable { """ The project's description body. """ body: String """ The projects description body rendered to HTML. """ bodyHTML: HTML! """ Indicates if the object is closed (definition of closed may depend on type) """ closed: Boolean! """ Identifies the date and time when the object was closed. """ closedAt: DateTime """ List of columns in the project """ columns( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): ProjectColumnConnection! """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The actor who originally created the project. """ creator: Actor """ Identifies the primary key from the database. """ databaseId: Int """ The Node ID of the Project object """ id: ID! """ The project's name. """ name: String! """ The project's number. """ number: Int! """ The project's owner. Currently limited to repositories, organizations, and users. """ owner: ProjectOwner! """ List of pending cards in this project """ pendingCards( """ Returns the elements in the list that come after the specified cursor. """ after: String """ A list of archived states to filter the cards by """ archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED] """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): ProjectCardConnection! """ Project progress details. """ progress: ProjectProgress! """ The HTTP path for this project """ resourcePath: URI! """ Whether the project is open or closed. """ state: ProjectState! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The HTTP URL for this project """ url: URI! """ Indicates if the object can be closed by the viewer. """ viewerCanClose: Boolean! """ Indicates if the object can be reopened by the viewer. """ viewerCanReopen: Boolean! """ Check if the current viewer can update this object. """ viewerCanUpdate: Boolean! } """ A card in a project. """ type ProjectCard implements Node { """ The project column this card is associated under. A card may only belong to one project column at a time. The column field will be null if the card is created in a pending state and has yet to be associated with a column. Once cards are associated with a column, they will not become pending in the future. """ column: ProjectColumn """ The card content item """ content: ProjectCardItem """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The actor who created this card """ creator: Actor """ Identifies the primary key from the database. """ databaseId: Int """ The Node ID of the ProjectCard object """ id: ID! """ Whether the card is archived """ isArchived: Boolean! """ The card note """ note: String """ The project that contains this card. """ project: Project! """ The HTTP path for this card """ resourcePath: URI! """ The state of ProjectCard """ state: ProjectCardState """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The HTTP URL for this card """ url: URI! } """ The possible archived states of a project card. """ enum ProjectCardArchivedState { """ A project card that is archived """ ARCHIVED """ A project card that is not archived """ NOT_ARCHIVED } """ The connection type for ProjectCard. """ type ProjectCardConnection { """ A list of edges. """ edges: [ProjectCardEdge] """ A list of nodes. """ nodes: [ProjectCard] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type ProjectCardEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: ProjectCard } """ An issue or PR and its owning repository to be used in a project card. """ input ProjectCardImport { """ The issue or pull request number. """ number: Int! """ Repository name with owner (owner/repository). """ repository: String! } """ Types that can be inside Project Cards. """ union ProjectCardItem = Issue | PullRequest """ Various content states of a ProjectCard """ enum ProjectCardState { """ The card has content only. """ CONTENT_ONLY """ The card has a note only. """ NOTE_ONLY """ The card is redacted. """ REDACTED } """ A column inside a project. """ type ProjectColumn implements Node { """ List of cards in the column """ cards( """ Returns the elements in the list that come after the specified cursor. """ after: String """ A list of archived states to filter the cards by """ archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED] """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): ProjectCardConnection! """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the primary key from the database. """ databaseId: Int """ The Node ID of the ProjectColumn object """ id: ID! """ The project column's name. """ name: String! """ The project that contains this column. """ project: Project! """ The semantic purpose of the column """ purpose: ProjectColumnPurpose """ The HTTP path for this project column """ resourcePath: URI! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The HTTP URL for this project column """ url: URI! } """ The connection type for ProjectColumn. """ type ProjectColumnConnection { """ A list of edges. """ edges: [ProjectColumnEdge] """ A list of nodes. """ nodes: [ProjectColumn] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type ProjectColumnEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: ProjectColumn } """ A project column and a list of its issues and PRs. """ input ProjectColumnImport { """ The name of the column. """ columnName: String! """ A list of issues and pull requests in the column. """ issues: [ProjectCardImport!] """ The position of the column, starting from 0. """ position: Int! } """ The semantic purpose of the column - todo, in progress, or done. """ enum ProjectColumnPurpose { """ The column contains cards which are complete """ DONE """ The column contains cards which are currently being worked on """ IN_PROGRESS """ The column contains cards still to be worked on """ TODO } """ A list of projects associated with the owner. """ type ProjectConnection { """ A list of edges. """ edges: [ProjectEdge] """ A list of nodes. """ nodes: [Project] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type ProjectEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: Project } """ Ways in which lists of projects can be ordered upon return. """ input ProjectOrder { """ The direction in which to order projects by the specified field. """ direction: OrderDirection! """ The field in which to order projects by. """ field: ProjectOrderField! } """ Properties by which project connections can be ordered. """ enum ProjectOrderField { """ Order projects by creation time """ CREATED_AT """ Order projects by name """ NAME """ Order projects by update time """ UPDATED_AT } """ Represents an owner of a Project. """ interface ProjectOwner { """ The Node ID of the ProjectOwner object """ id: ID! """ Find project by number. """ project( """ The project number to find. """ number: Int! ): Project """ A list of projects under the owner. """ projects( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for projects returned from the connection """ orderBy: ProjectOrder """ Query to search projects by, currently only searching by name. """ search: String """ A list of states to filter the projects by. """ states: [ProjectState!] ): ProjectConnection! """ The HTTP path listing owners projects """ projectsResourcePath: URI! """ The HTTP URL listing owners projects """ projectsUrl: URI! """ Can the current viewer create new projects on this owner. """ viewerCanCreateProjects: Boolean! } """ Project progress stats. """ type ProjectProgress { """ The number of done cards. """ doneCount: Int! """ The percentage of done cards. """ donePercentage: Float! """ Whether progress tracking is enabled and cards with purpose exist for this project """ enabled: Boolean! """ The number of in-progress cards. """ inProgressCount: Int! """ The percentage of in-progress cards. """ inProgressPercentage: Float! """ The number of to do cards. """ todoCount: Int! """ The percentage of to do cards. """ todoPercentage: Float! } """ State of the project; either 'open' or 'closed' """ enum ProjectState { """ The project is closed. """ CLOSED """ The project is open. """ OPEN } """ GitHub-provided templates for Projects """ enum ProjectTemplate { """ Create a board with v2 triggers to automatically move cards across To do, In progress and Done columns. """ AUTOMATED_KANBAN_V2 """ Create a board with triggers to automatically move cards across columns with review automation. """ AUTOMATED_REVIEWS_KANBAN """ Create a board with columns for To do, In progress and Done. """ BASIC_KANBAN """ Create a board to triage and prioritize bugs with To do, priority, and Done columns. """ BUG_TRIAGE } """ New projects that manage issues, pull requests and drafts using tables and boards. """ type ProjectV2 implements Closable & Node & Updatable { """ Returns true if the project is closed. """ closed: Boolean! """ Identifies the date and time when the object was closed. """ closedAt: DateTime """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The actor who originally created the project. """ creator: Actor """ Identifies the primary key from the database. """ databaseId: Int """ A field of the project """ field( """ The name of the field """ name: String! ): ProjectV2FieldConfiguration """ List of fields and their constraints in the project """ fields( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for project v2 fields returned from the connection """ orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC} ): ProjectV2FieldConfigurationConnection! """ The Node ID of the ProjectV2 object """ id: ID! """ List of items in the project """ items( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for project v2 items returned from the connection """ orderBy: ProjectV2ItemOrder = {field: POSITION, direction: ASC} ): ProjectV2ItemConnection! """ The project's number. """ number: Int! """ The project's owner. Currently limited to organizations and users. """ owner: ProjectV2Owner! """ Returns true if the project is public. """ public: Boolean! """ The project's readme. """ readme: String """ The repositories the project is linked to. """ repositories( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for repositories returned from the connection """ orderBy: RepositoryOrder = {field: CREATED_AT, direction: DESC} ): RepositoryConnection! """ The HTTP path for this project """ resourcePath: URI! """ The project's short description. """ shortDescription: String """ The teams the project is linked to. """ teams( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for teams returned from this connection. """ orderBy: TeamOrder = {field: NAME, direction: ASC} ): TeamConnection! """ Returns true if this project is a template. """ template: Boolean! """ The project's name. """ title: String! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The HTTP URL for this project """ url: URI! """ A view of the project """ view( """ The number of a view belonging to the project """ number: Int! ): ProjectV2View """ Indicates if the object can be closed by the viewer. """ viewerCanClose: Boolean! """ Indicates if the object can be reopened by the viewer. """ viewerCanReopen: Boolean! """ Check if the current viewer can update this object. """ viewerCanUpdate: Boolean! """ List of views in the project """ views( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for project v2 views returned from the connection """ orderBy: ProjectV2ViewOrder = {field: POSITION, direction: ASC} ): ProjectV2ViewConnection! """ A workflow of the project """ workflow( """ The number of a workflow belonging to the project """ number: Int! ): ProjectV2Workflow """ List of the workflows in the project """ workflows( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for project v2 workflows returned from the connection """ orderBy: ProjectV2WorkflowOrder = {field: NAME, direction: ASC} ): ProjectV2WorkflowConnection! } """ Possible collaborators for a project. """ union ProjectV2Actor = Team | User """ The connection type for ProjectV2Actor. """ type ProjectV2ActorConnection { """ A list of edges. """ edges: [ProjectV2ActorEdge] """ A list of nodes. """ nodes: [ProjectV2Actor] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type ProjectV2ActorEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: ProjectV2Actor } """ A collaborator to update on a project. Only one of the userId or teamId should be provided. """ input ProjectV2Collaborator { """ The role to grant the collaborator """ role: ProjectV2Roles! """ The ID of the team as a collaborator. """ teamId: ID @possibleTypes(concreteTypes: ["Team"]) """ The ID of the user as a collaborator. """ userId: ID @possibleTypes(concreteTypes: ["User"]) } """ The connection type for ProjectV2. """ type ProjectV2Connection { """ A list of edges. """ edges: [ProjectV2Edge] """ A list of nodes. """ nodes: [ProjectV2] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ The type of a project field. """ enum ProjectV2CustomFieldType { """ Date """ DATE """ Number """ NUMBER """ Single Select """ SINGLE_SELECT """ Text """ TEXT } """ An edge in a connection. """ type ProjectV2Edge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: ProjectV2 } """ A field inside a project. """ type ProjectV2Field implements Node & ProjectV2FieldCommon { """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The field's type. """ dataType: ProjectV2FieldType! """ Identifies the primary key from the database. """ databaseId: Int """ The Node ID of the ProjectV2Field object """ id: ID! """ The project field's name. """ name: String! """ The project that contains this field. """ project: ProjectV2! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! } """ Common fields across different project field types """ interface ProjectV2FieldCommon { """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The field's type. """ dataType: ProjectV2FieldType! """ Identifies the primary key from the database. """ databaseId: Int """ The Node ID of the ProjectV2FieldCommon object """ id: ID! """ The project field's name. """ name: String! """ The project that contains this field. """ project: ProjectV2! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! } """ Configurations for project fields. """ union ProjectV2FieldConfiguration = ProjectV2Field | ProjectV2IterationField | ProjectV2SingleSelectField """ The connection type for ProjectV2FieldConfiguration. """ type ProjectV2FieldConfigurationConnection { """ A list of edges. """ edges: [ProjectV2FieldConfigurationEdge] """ A list of nodes. """ nodes: [ProjectV2FieldConfiguration] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type ProjectV2FieldConfigurationEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: ProjectV2FieldConfiguration } """ The connection type for ProjectV2Field. """ type ProjectV2FieldConnection { """ A list of edges. """ edges: [ProjectV2FieldEdge] """ A list of nodes. """ nodes: [ProjectV2Field] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type ProjectV2FieldEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: ProjectV2Field } """ Ordering options for project v2 field connections """ input ProjectV2FieldOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order the project v2 fields by. """ field: ProjectV2FieldOrderField! } """ Properties by which project v2 field connections can be ordered. """ enum ProjectV2FieldOrderField { """ Order project v2 fields by creation time """ CREATED_AT """ Order project v2 fields by name """ NAME """ Order project v2 fields by position """ POSITION } """ The type of a project field. """ enum ProjectV2FieldType { """ Assignees """ ASSIGNEES """ Date """ DATE """ Iteration """ ITERATION """ Labels """ LABELS """ Linked Pull Requests """ LINKED_PULL_REQUESTS """ Milestone """ MILESTONE """ Number """ NUMBER """ Repository """ REPOSITORY """ Reviewers """ REVIEWERS """ Single Select """ SINGLE_SELECT """ Text """ TEXT """ Title """ TITLE """ Tracked by """ TRACKED_BY """ Tracks """ TRACKS } """ The values that can be used to update a field of an item inside a Project. Only 1 value can be updated at a time. """ input ProjectV2FieldValue { """ The ISO 8601 date to set on the field. """ date: Date """ The id of the iteration to set on the field. """ iterationId: String """ The number to set on the field. """ number: Float """ The id of the single select option to set on the field. """ singleSelectOptionId: String """ The text to set on the field. """ text: String } """ Ways in which to filter lists of projects. """ input ProjectV2Filters { """ List project v2 filtered by the state given. """ state: ProjectV2State } """ An item within a Project. """ type ProjectV2Item implements Node { """ The content of the referenced draft issue, issue, or pull request """ content: ProjectV2ItemContent """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The actor who created the item. """ creator: Actor """ Identifies the primary key from the database. """ databaseId: Int """ The field value of the first project field which matches the 'name' argument that is set on the item. """ fieldValueByName( """ The name of the field to return the field value of """ name: String! ): ProjectV2ItemFieldValue """ The field values that are set on the item. """ fieldValues( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for project v2 item field values returned from the connection """ orderBy: ProjectV2ItemFieldValueOrder = {field: POSITION, direction: ASC} ): ProjectV2ItemFieldValueConnection! """ The Node ID of the ProjectV2Item object """ id: ID! """ Whether the item is archived. """ isArchived: Boolean! """ The project that contains this item. """ project: ProjectV2! """ The type of the item. """ type: ProjectV2ItemType! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! } """ The connection type for ProjectV2Item. """ type ProjectV2ItemConnection { """ A list of edges. """ edges: [ProjectV2ItemEdge] """ A list of nodes. """ nodes: [ProjectV2Item] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ Types that can be inside Project Items. """ union ProjectV2ItemContent = DraftIssue | Issue | PullRequest """ An edge in a connection. """ type ProjectV2ItemEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: ProjectV2Item } """ The value of a date field in a Project item. """ type ProjectV2ItemFieldDateValue implements Node & ProjectV2ItemFieldValueCommon { """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The actor who created the item. """ creator: Actor """ Identifies the primary key from the database. """ databaseId: Int """ Date value for the field """ date: Date """ The project field that contains this value. """ field: ProjectV2FieldConfiguration! """ The Node ID of the ProjectV2ItemFieldDateValue object """ id: ID! """ The project item that contains this value. """ item: ProjectV2Item! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! } """ The value of an iteration field in a Project item. """ type ProjectV2ItemFieldIterationValue implements Node & ProjectV2ItemFieldValueCommon { """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The actor who created the item. """ creator: Actor """ Identifies the primary key from the database. """ databaseId: Int """ The duration of the iteration in days. """ duration: Int! """ The project field that contains this value. """ field: ProjectV2FieldConfiguration! """ The Node ID of the ProjectV2ItemFieldIterationValue object """ id: ID! """ The project item that contains this value. """ item: ProjectV2Item! """ The ID of the iteration. """ iterationId: String! """ The start date of the iteration. """ startDate: Date! """ The title of the iteration. """ title: String! """ The title of the iteration, with HTML. """ titleHTML: String! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! } """ The value of the labels field in a Project item. """ type ProjectV2ItemFieldLabelValue { """ The field that contains this value. """ field: ProjectV2FieldConfiguration! """ Labels value of a field """ labels( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): LabelConnection } """ The value of a milestone field in a Project item. """ type ProjectV2ItemFieldMilestoneValue { """ The field that contains this value. """ field: ProjectV2FieldConfiguration! """ Milestone value of a field """ milestone: Milestone } """ The value of a number field in a Project item. """ type ProjectV2ItemFieldNumberValue implements Node & ProjectV2ItemFieldValueCommon { """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The actor who created the item. """ creator: Actor """ Identifies the primary key from the database. """ databaseId: Int """ The project field that contains this value. """ field: ProjectV2FieldConfiguration! """ The Node ID of the ProjectV2ItemFieldNumberValue object """ id: ID! """ The project item that contains this value. """ item: ProjectV2Item! """ Number as a float(8) """ number: Float """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! } """ The value of a pull request field in a Project item. """ type ProjectV2ItemFieldPullRequestValue { """ The field that contains this value. """ field: ProjectV2FieldConfiguration! """ The pull requests for this field """ pullRequests( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for pull requests. """ orderBy: PullRequestOrder = {field: CREATED_AT, direction: ASC} ): PullRequestConnection } """ The value of a repository field in a Project item. """ type ProjectV2ItemFieldRepositoryValue { """ The field that contains this value. """ field: ProjectV2FieldConfiguration! """ The repository for this field. """ repository: Repository } """ The value of a reviewers field in a Project item. """ type ProjectV2ItemFieldReviewerValue { """ The field that contains this value. """ field: ProjectV2FieldConfiguration! """ The reviewers for this field. """ reviewers( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): RequestedReviewerConnection } """ The value of a single select field in a Project item. """ type ProjectV2ItemFieldSingleSelectValue implements Node & ProjectV2ItemFieldValueCommon { """ The color applied to the selected single-select option. """ color: ProjectV2SingleSelectFieldOptionColor! """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The actor who created the item. """ creator: Actor """ Identifies the primary key from the database. """ databaseId: Int """ A plain-text description of the selected single-select option, such as what the option means. """ description: String """ The description of the selected single-select option, including HTML tags. """ descriptionHTML: String """ The project field that contains this value. """ field: ProjectV2FieldConfiguration! """ The Node ID of the ProjectV2ItemFieldSingleSelectValue object """ id: ID! """ The project item that contains this value. """ item: ProjectV2Item! """ The name of the selected single select option. """ name: String """ The html name of the selected single select option. """ nameHTML: String """ The id of the selected single select option. """ optionId: String """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! } """ The value of a text field in a Project item. """ type ProjectV2ItemFieldTextValue implements Node & ProjectV2ItemFieldValueCommon { """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The actor who created the item. """ creator: Actor """ Identifies the primary key from the database. """ databaseId: Int """ The project field that contains this value. """ field: ProjectV2FieldConfiguration! """ The Node ID of the ProjectV2ItemFieldTextValue object """ id: ID! """ The project item that contains this value. """ item: ProjectV2Item! """ Text value of a field """ text: String """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! } """ The value of a user field in a Project item. """ type ProjectV2ItemFieldUserValue { """ The field that contains this value. """ field: ProjectV2FieldConfiguration! """ The users for this field """ users( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): UserConnection } """ Project field values """ union ProjectV2ItemFieldValue = ProjectV2ItemFieldDateValue | ProjectV2ItemFieldIterationValue | ProjectV2ItemFieldLabelValue | ProjectV2ItemFieldMilestoneValue | ProjectV2ItemFieldNumberValue | ProjectV2ItemFieldPullRequestValue | ProjectV2ItemFieldRepositoryValue | ProjectV2ItemFieldReviewerValue | ProjectV2ItemFieldSingleSelectValue | ProjectV2ItemFieldTextValue | ProjectV2ItemFieldUserValue """ Common fields across different project field value types """ interface ProjectV2ItemFieldValueCommon { """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The actor who created the item. """ creator: Actor """ Identifies the primary key from the database. """ databaseId: Int """ The project field that contains this value. """ field: ProjectV2FieldConfiguration! """ The Node ID of the ProjectV2ItemFieldValueCommon object """ id: ID! """ The project item that contains this value. """ item: ProjectV2Item! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! } """ The connection type for ProjectV2ItemFieldValue. """ type ProjectV2ItemFieldValueConnection { """ A list of edges. """ edges: [ProjectV2ItemFieldValueEdge] """ A list of nodes. """ nodes: [ProjectV2ItemFieldValue] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type ProjectV2ItemFieldValueEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: ProjectV2ItemFieldValue } """ Ordering options for project v2 item field value connections """ input ProjectV2ItemFieldValueOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order the project v2 item field values by. """ field: ProjectV2ItemFieldValueOrderField! } """ Properties by which project v2 item field value connections can be ordered. """ enum ProjectV2ItemFieldValueOrderField { """ Order project v2 item field values by the their position in the project """ POSITION } """ Ordering options for project v2 item connections """ input ProjectV2ItemOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order the project v2 items by. """ field: ProjectV2ItemOrderField! } """ Properties by which project v2 item connections can be ordered. """ enum ProjectV2ItemOrderField { """ Order project v2 items by the their position in the project """ POSITION } """ The type of a project item. """ enum ProjectV2ItemType { """ Draft Issue """ DRAFT_ISSUE """ Issue """ ISSUE """ Pull Request """ PULL_REQUEST """ Redacted Item """ REDACTED } """ An iteration field inside a project. """ type ProjectV2IterationField implements Node & ProjectV2FieldCommon { """ Iteration configuration settings """ configuration: ProjectV2IterationFieldConfiguration! """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The field's type. """ dataType: ProjectV2FieldType! """ Identifies the primary key from the database. """ databaseId: Int """ The Node ID of the ProjectV2IterationField object """ id: ID! """ The project field's name. """ name: String! """ The project that contains this field. """ project: ProjectV2! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! } """ Iteration field configuration for a project. """ type ProjectV2IterationFieldConfiguration { """ The iteration's completed iterations """ completedIterations: [ProjectV2IterationFieldIteration!]! """ The iteration's duration in days """ duration: Int! """ The iteration's iterations """ iterations: [ProjectV2IterationFieldIteration!]! """ The iteration's start day of the week """ startDay: Int! } """ Iteration field iteration settings for a project. """ type ProjectV2IterationFieldIteration { """ The iteration's duration in days """ duration: Int! """ The iteration's ID. """ id: String! """ The iteration's start date """ startDate: Date! """ The iteration's title. """ title: String! """ The iteration's html title. """ titleHTML: String! } """ Ways in which lists of projects can be ordered upon return. """ input ProjectV2Order { """ The direction in which to order projects by the specified field. """ direction: OrderDirection! """ The field in which to order projects by. """ field: ProjectV2OrderField! } """ Properties by which projects can be ordered. """ enum ProjectV2OrderField { """ The project's date and time of creation """ CREATED_AT """ The project's number """ NUMBER """ The project's title """ TITLE """ The project's date and time of update """ UPDATED_AT } """ Represents an owner of a project. """ interface ProjectV2Owner { """ The Node ID of the ProjectV2Owner object """ id: ID! """ Find a project by number. """ projectV2( """ The project number. """ number: Int! ): ProjectV2 """ A list of projects under the owner. """ projectsV2( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ How to order the returned projects. """ orderBy: ProjectV2Order = {field: NUMBER, direction: DESC} """ A project to search for under the the owner. """ query: String ): ProjectV2Connection! } """ Recent projects for the owner. """ interface ProjectV2Recent { """ Recent projects that this user has modified in the context of the owner. """ recentProjects( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): ProjectV2Connection! } """ The possible roles of a collaborator on a project. """ enum ProjectV2Roles { """ The collaborator can view, edit, and maange the settings of the project """ ADMIN """ The collaborator has no direct access to the project """ NONE """ The collaborator can view the project """ READER """ The collaborator can view and edit the project """ WRITER } """ A single select field inside a project. """ type ProjectV2SingleSelectField implements Node & ProjectV2FieldCommon { """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The field's type. """ dataType: ProjectV2FieldType! """ Identifies the primary key from the database. """ databaseId: Int """ The Node ID of the ProjectV2SingleSelectField object """ id: ID! """ The project field's name. """ name: String! """ Options for the single select field """ options( """ Filter returned options to only those matching these names, case insensitive. """ names: [String!] ): [ProjectV2SingleSelectFieldOption!]! """ The project that contains this field. """ project: ProjectV2! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! } """ Single select field option for a configuration for a project. """ type ProjectV2SingleSelectFieldOption { """ The option's display color. """ color: ProjectV2SingleSelectFieldOptionColor! """ The option's plain-text description. """ description: String! """ The option's description, possibly containing HTML. """ descriptionHTML: String! """ The option's ID. """ id: String! """ The option's name. """ name: String! """ The option's html name. """ nameHTML: String! } """ The display color of a single-select field option. """ enum ProjectV2SingleSelectFieldOptionColor { """ BLUE """ BLUE """ GRAY """ GRAY """ GREEN """ GREEN """ ORANGE """ ORANGE """ PINK """ PINK """ PURPLE """ PURPLE """ RED """ RED """ YELLOW """ YELLOW } """ Represents a single select field option """ input ProjectV2SingleSelectFieldOptionInput { """ The display color of the option """ color: ProjectV2SingleSelectFieldOptionColor! """ The description text of the option """ description: String! """ The name of the option """ name: String! } """ Represents a sort by field and direction. """ type ProjectV2SortBy { """ The direction of the sorting. Possible values are ASC and DESC. """ direction: OrderDirection! """ The field by which items are sorted. """ field: ProjectV2Field! } """ The connection type for ProjectV2SortBy. """ type ProjectV2SortByConnection { """ A list of edges. """ edges: [ProjectV2SortByEdge] """ A list of nodes. """ nodes: [ProjectV2SortBy] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type ProjectV2SortByEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: ProjectV2SortBy } """ Represents a sort by field and direction. """ type ProjectV2SortByField { """ The direction of the sorting. Possible values are ASC and DESC. """ direction: OrderDirection! """ The field by which items are sorted. """ field: ProjectV2FieldConfiguration! } """ The connection type for ProjectV2SortByField. """ type ProjectV2SortByFieldConnection { """ A list of edges. """ edges: [ProjectV2SortByFieldEdge] """ A list of nodes. """ nodes: [ProjectV2SortByField] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type ProjectV2SortByFieldEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: ProjectV2SortByField } """ The possible states of a project v2. """ enum ProjectV2State { """ A project v2 that has been closed """ CLOSED """ A project v2 that is still open """ OPEN } """ A view within a ProjectV2. """ type ProjectV2View implements Node { """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the primary key from the database. """ databaseId: Int """ The view's visible fields. """ fields( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for the project v2 fields returned from the connection. """ orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC} ): ProjectV2FieldConfigurationConnection """ The project view's filter. """ filter: String """ The view's group-by field. """ groupBy( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for the project v2 fields returned from the connection. """ orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC} ): ProjectV2FieldConnection @deprecated( reason: "The `ProjectV2View#order_by` API is deprecated in favour of the more capable `ProjectV2View#group_by_field` API. Check out the `ProjectV2View#group_by_fields` API as an example for the more capable alternative. Removal on 2023-04-01 UTC." ) """ The view's group-by field. """ groupByFields( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for the project v2 fields returned from the connection. """ orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC} ): ProjectV2FieldConfigurationConnection """ The Node ID of the ProjectV2View object """ id: ID! """ The project view's layout. """ layout: ProjectV2ViewLayout! """ The project view's name. """ name: String! """ The project view's number. """ number: Int! """ The project that contains this view. """ project: ProjectV2! """ The view's sort-by config. """ sortBy( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): ProjectV2SortByConnection @deprecated( reason: "The `ProjectV2View#sort_by` API is deprecated in favour of the more capable `ProjectV2View#sort_by_fields` API. Check out the `ProjectV2View#sort_by_fields` API as an example for the more capable alternative. Removal on 2023-04-01 UTC." ) """ The view's sort-by config. """ sortByFields( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): ProjectV2SortByFieldConnection """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The view's vertical-group-by field. """ verticalGroupBy( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for the project v2 fields returned from the connection. """ orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC} ): ProjectV2FieldConnection @deprecated( reason: "The `ProjectV2View#vertical_group_by` API is deprecated in favour of the more capable `ProjectV2View#vertical_group_by_fields` API. Check out the `ProjectV2View#vertical_group_by_fields` API as an example for the more capable alternative. Removal on 2023-04-01 UTC." ) """ The view's vertical-group-by field. """ verticalGroupByFields( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for the project v2 fields returned from the connection. """ orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC} ): ProjectV2FieldConfigurationConnection """ The view's visible fields. """ visibleFields( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for the project v2 fields returned from the connection. """ orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC} ): ProjectV2FieldConnection @deprecated( reason: "The `ProjectV2View#visibleFields` API is deprecated in favour of the more capable `ProjectV2View#fields` API. Check out the `ProjectV2View#fields` API as an example for the more capable alternative. Removal on 2023-01-01 UTC." ) } """ The connection type for ProjectV2View. """ type ProjectV2ViewConnection { """ A list of edges. """ edges: [ProjectV2ViewEdge] """ A list of nodes. """ nodes: [ProjectV2View] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type ProjectV2ViewEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: ProjectV2View } """ The layout of a project v2 view. """ enum ProjectV2ViewLayout { """ Board layout """ BOARD_LAYOUT """ Roadmap layout """ ROADMAP_LAYOUT """ Table layout """ TABLE_LAYOUT } """ Ordering options for project v2 view connections """ input ProjectV2ViewOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order the project v2 views by. """ field: ProjectV2ViewOrderField! } """ Properties by which project v2 view connections can be ordered. """ enum ProjectV2ViewOrderField { """ Order project v2 views by creation time """ CREATED_AT """ Order project v2 views by name """ NAME """ Order project v2 views by position """ POSITION } """ A workflow inside a project. """ type ProjectV2Workflow implements Node { """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the primary key from the database. """ databaseId: Int """ Whether the workflow is enabled. """ enabled: Boolean! """ The Node ID of the ProjectV2Workflow object """ id: ID! """ The name of the workflow. """ name: String! """ The number of the workflow. """ number: Int! """ The project that contains this workflow. """ project: ProjectV2! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! } """ The connection type for ProjectV2Workflow. """ type ProjectV2WorkflowConnection { """ A list of edges. """ edges: [ProjectV2WorkflowEdge] """ A list of nodes. """ nodes: [ProjectV2Workflow] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type ProjectV2WorkflowEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: ProjectV2Workflow } """ Ordering options for project v2 workflows connections """ input ProjectV2WorkflowOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order the project v2 workflows by. """ field: ProjectV2WorkflowsOrderField! } """ Properties by which project workflows can be ordered. """ enum ProjectV2WorkflowsOrderField { """ The date and time of the workflow creation """ CREATED_AT """ The name of the workflow """ NAME """ The number of the workflow """ NUMBER """ The date and time of the workflow update """ UPDATED_AT } """ A user's public key. """ type PublicKey implements Node { """ The last time this authorization was used to perform an action. Values will be null for keys not owned by the user. """ accessedAt: DateTime """ Identifies the date and time when the key was created. Keys created before March 5th, 2014 have inaccurate values. Values will be null for keys not owned by the user. """ createdAt: DateTime """ The fingerprint for this PublicKey. """ fingerprint: String! """ The Node ID of the PublicKey object """ id: ID! """ Whether this PublicKey is read-only or not. Values will be null for keys not owned by the user. """ isReadOnly: Boolean """ The public key string. """ key: String! """ Identifies the date and time when the key was updated. Keys created before March 5th, 2014 may have inaccurate values. Values will be null for keys not owned by the user. """ updatedAt: DateTime } """ The connection type for PublicKey. """ type PublicKeyConnection { """ A list of edges. """ edges: [PublicKeyEdge] """ A list of nodes. """ nodes: [PublicKey] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type PublicKeyEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: PublicKey } """ Autogenerated input type of PublishSponsorsTier """ input PublishSponsorsTierInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the draft tier to publish. """ tierId: ID! @possibleTypes(concreteTypes: ["SponsorsTier"]) } """ Autogenerated return type of PublishSponsorsTier """ type PublishSponsorsTierPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The tier that was published. """ sponsorsTier: SponsorsTier } """ A repository pull request. """ type PullRequest implements Assignable & Closable & Comment & Labelable & Lockable & Node & ProjectV2Owner & Reactable & RepositoryNode & Subscribable & UniformResourceLocatable & Updatable & UpdatableComment { """ Reason that the conversation was locked. """ activeLockReason: LockReason """ The number of additions in this pull request. """ additions: Int! """ A list of Users assigned to this object. """ assignees( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): UserConnection! """ The actor who authored the comment. """ author: Actor """ Author's association with the subject of the comment. """ authorAssociation: CommentAuthorAssociation! """ Returns the auto-merge request object if one exists for this pull request. """ autoMergeRequest: AutoMergeRequest """ Identifies the base Ref associated with the pull request. """ baseRef: Ref """ Identifies the name of the base Ref associated with the pull request, even if the ref has been deleted. """ baseRefName: String! """ Identifies the oid of the base ref associated with the pull request, even if the ref has been deleted. """ baseRefOid: GitObjectID! """ The repository associated with this pull request's base Ref. """ baseRepository: Repository """ The body as Markdown. """ body: String! """ The body rendered to HTML. """ bodyHTML: HTML! """ The body rendered to text. """ bodyText: String! """ Whether or not the pull request is rebaseable. """ canBeRebased: Boolean! @preview(toggledBy: "merge-info-preview") """ The number of changed files in this pull request. """ changedFiles: Int! """ The HTTP path for the checks of this pull request. """ checksResourcePath: URI! """ The HTTP URL for the checks of this pull request. """ checksUrl: URI! """ `true` if the pull request is closed """ closed: Boolean! """ Identifies the date and time when the object was closed. """ closedAt: DateTime """ List of issues that were may be closed by this pull request """ closingIssuesReferences( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for issues returned from the connection """ orderBy: IssueOrder """ Return only manually linked Issues """ userLinkedOnly: Boolean = false ): IssueConnection """ A list of comments associated with the pull request. """ comments( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for issue comments returned from the connection. """ orderBy: IssueCommentOrder ): IssueCommentConnection! """ A list of commits present in this pull request's head branch not present in the base branch. """ commits( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): PullRequestCommitConnection! """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Check if this comment was created via an email reply. """ createdViaEmail: Boolean! """ Identifies the primary key from the database. """ databaseId: Int """ The number of deletions in this pull request. """ deletions: Int! """ The actor who edited this pull request's body. """ editor: Actor """ Lists the files changed within this pull request. """ files( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): PullRequestChangedFileConnection """ Identifies the head Ref associated with the pull request. """ headRef: Ref """ Identifies the name of the head Ref associated with the pull request, even if the ref has been deleted. """ headRefName: String! """ Identifies the oid of the head ref associated with the pull request, even if the ref has been deleted. """ headRefOid: GitObjectID! """ The repository associated with this pull request's head Ref. """ headRepository: Repository """ The owner of the repository associated with this pull request's head Ref. """ headRepositoryOwner: RepositoryOwner """ The hovercard information for this issue """ hovercard( """ Whether or not to include notification contexts """ includeNotificationContexts: Boolean = true ): Hovercard! """ The Node ID of the PullRequest object """ id: ID! """ Check if this comment was edited and includes an edit with the creation data """ includesCreatedEdit: Boolean! """ The head and base repositories are different. """ isCrossRepository: Boolean! """ Identifies if the pull request is a draft. """ isDraft: Boolean! """ Is this pull request read by the viewer """ isReadByViewer: Boolean """ A list of labels associated with the object. """ labels( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for labels returned from the connection. """ orderBy: LabelOrder = {field: CREATED_AT, direction: ASC} ): LabelConnection """ The moment the editor made the last edit """ lastEditedAt: DateTime """ A list of latest reviews per user associated with the pull request. """ latestOpinionatedReviews( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Only return reviews from user who have write access to the repository """ writersOnly: Boolean = false ): PullRequestReviewConnection """ A list of latest reviews per user associated with the pull request that are not also pending review. """ latestReviews( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): PullRequestReviewConnection """ `true` if the pull request is locked """ locked: Boolean! """ Indicates whether maintainers can modify the pull request. """ maintainerCanModify: Boolean! """ The commit that was created when this pull request was merged. """ mergeCommit: Commit """ The merge queue entry of the pull request in the base branch's merge queue """ mergeQueueEntry: MergeQueueEntry """ Detailed information about the current pull request merge state status. """ mergeStateStatus: MergeStateStatus! @preview(toggledBy: "merge-info-preview") """ Whether or not the pull request can be merged based on the existence of merge conflicts. """ mergeable: MergeableState! """ Whether or not the pull request was merged. """ merged: Boolean! """ The date and time that the pull request was merged. """ mergedAt: DateTime """ The actor who merged the pull request. """ mergedBy: Actor """ Identifies the milestone associated with the pull request. """ milestone: Milestone """ Identifies the pull request number. """ number: Int! """ A list of Users that are participating in the Pull Request conversation. """ participants( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): UserConnection! """ The permalink to the pull request. """ permalink: URI! """ The commit that GitHub automatically generated to test if this pull request could be merged. This field will not return a value if the pull request is merged, or if the test merge commit is still being generated. See the `mergeable` field for more details on the mergeability of the pull request. """ potentialMergeCommit: Commit """ List of project cards associated with this pull request. """ projectCards( """ Returns the elements in the list that come after the specified cursor. """ after: String """ A list of archived states to filter the cards by """ archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED] """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): ProjectCardConnection! """ List of project items associated with this pull request. """ projectItems( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Include archived items. """ includeArchived: Boolean = true """ Returns the last _n_ elements from the list. """ last: Int ): ProjectV2ItemConnection! """ Find a project by number. """ projectV2( """ The project number. """ number: Int! ): ProjectV2 """ A list of projects under the owner. """ projectsV2( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ How to order the returned projects. """ orderBy: ProjectV2Order = {field: NUMBER, direction: DESC} """ A project to search for under the the owner. """ query: String ): ProjectV2Connection! """ Identifies when the comment was published at. """ publishedAt: DateTime """ A list of reactions grouped by content left on the subject. """ reactionGroups: [ReactionGroup!] """ A list of Reactions left on the Issue. """ reactions( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Allows filtering Reactions by emoji. """ content: ReactionContent """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Allows specifying the order in which reactions are returned. """ orderBy: ReactionOrder ): ReactionConnection! """ The repository associated with this node. """ repository: Repository! """ The HTTP path for this pull request. """ resourcePath: URI! """ The HTTP path for reverting this pull request. """ revertResourcePath: URI! """ The HTTP URL for reverting this pull request. """ revertUrl: URI! """ The current status of this pull request with respect to code review. """ reviewDecision: PullRequestReviewDecision """ A list of review requests associated with the pull request. """ reviewRequests( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): ReviewRequestConnection """ The list of all review threads for this pull request. """ reviewThreads( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): PullRequestReviewThreadConnection! """ A list of reviews associated with the pull request. """ reviews( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Filter by author of the review. """ author: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ A list of states to filter the reviews. """ states: [PullRequestReviewState!] ): PullRequestReviewConnection """ Identifies the state of the pull request. """ state: PullRequestState! """ A list of reviewer suggestions based on commit history and past review comments. """ suggestedReviewers: [SuggestedReviewer]! """ A list of events, comments, commits, etc. associated with the pull request. """ timeline( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Allows filtering timeline events by a `since` timestamp. """ since: DateTime ): PullRequestTimelineConnection! @deprecated(reason: "`timeline` will be removed Use PullRequest.timelineItems instead. Removal on 2020-10-01 UTC.") """ A list of events, comments, commits, etc. associated with the pull request. """ timelineItems( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Filter timeline items by type. """ itemTypes: [PullRequestTimelineItemsItemType!] """ Returns the last _n_ elements from the list. """ last: Int """ Filter timeline items by a `since` timestamp. """ since: DateTime """ Skips the first _n_ elements in the list. """ skip: Int ): PullRequestTimelineItemsConnection! """ Identifies the pull request title. """ title: String! """ Identifies the pull request title rendered to HTML. """ titleHTML: HTML! """ Returns a count of how many comments this pull request has received. """ totalCommentsCount: Int """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The HTTP URL for this pull request. """ url: URI! """ A list of edits to this content. """ userContentEdits( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): UserContentEditConnection """ Whether or not the viewer can apply suggestion. """ viewerCanApplySuggestion: Boolean! """ Indicates if the object can be closed by the viewer. """ viewerCanClose: Boolean! """ Check if the viewer can restore the deleted head ref. """ viewerCanDeleteHeadRef: Boolean! """ Whether or not the viewer can disable auto-merge """ viewerCanDisableAutoMerge: Boolean! """ Can the viewer edit files within this pull request. """ viewerCanEditFiles: Boolean! """ Whether or not the viewer can enable auto-merge """ viewerCanEnableAutoMerge: Boolean! """ Indicates whether the viewer can bypass branch protections and merge the pull request immediately """ viewerCanMergeAsAdmin: Boolean! """ Can user react to this subject """ viewerCanReact: Boolean! """ Indicates if the object can be reopened by the viewer. """ viewerCanReopen: Boolean! """ Check if the viewer is able to change their subscription status for the repository. """ viewerCanSubscribe: Boolean! """ Check if the current viewer can update this object. """ viewerCanUpdate: Boolean! """ Whether or not the viewer can update the head ref of this PR, by merging or rebasing the base ref. If the head ref is up to date or unable to be updated by this user, this will return false. """ viewerCanUpdateBranch: Boolean! """ Reasons why the current viewer can not update this comment. """ viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! """ Did the viewer author this comment. """ viewerDidAuthor: Boolean! """ The latest review given from the viewer. """ viewerLatestReview: PullRequestReview """ The person who has requested the viewer for review on this pull request. """ viewerLatestReviewRequest: ReviewRequest """ The merge body text for the viewer and method. """ viewerMergeBodyText( """ The merge method for the message. """ mergeType: PullRequestMergeMethod ): String! """ The merge headline text for the viewer and method. """ viewerMergeHeadlineText( """ The merge method for the message. """ mergeType: PullRequestMergeMethod ): String! """ Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. """ viewerSubscription: SubscriptionState } """ The possible methods for updating a pull request's head branch with the base branch. """ enum PullRequestBranchUpdateMethod { """ Update branch via merge """ MERGE """ Update branch via rebase """ REBASE } """ A file changed in a pull request. """ type PullRequestChangedFile { """ The number of additions to the file. """ additions: Int! """ How the file was changed in this PullRequest """ changeType: PatchStatus! """ The number of deletions to the file. """ deletions: Int! """ The path of the file. """ path: String! """ The state of the file for the viewer. """ viewerViewedState: FileViewedState! } """ The connection type for PullRequestChangedFile. """ type PullRequestChangedFileConnection { """ A list of edges. """ edges: [PullRequestChangedFileEdge] """ A list of nodes. """ nodes: [PullRequestChangedFile] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type PullRequestChangedFileEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: PullRequestChangedFile } """ Represents a Git commit part of a pull request. """ type PullRequestCommit implements Node & UniformResourceLocatable { """ The Git commit object """ commit: Commit! """ The Node ID of the PullRequestCommit object """ id: ID! """ The pull request this commit belongs to """ pullRequest: PullRequest! """ The HTTP path for this pull request commit """ resourcePath: URI! """ The HTTP URL for this pull request commit """ url: URI! } """ Represents a commit comment thread part of a pull request. """ type PullRequestCommitCommentThread implements Node & RepositoryNode { """ The comments that exist in this thread. """ comments( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): CommitCommentConnection! """ The commit the comments were made on. """ commit: Commit! """ The Node ID of the PullRequestCommitCommentThread object """ id: ID! """ The file the comments were made on. """ path: String """ The position in the diff for the commit that the comment was made on. """ position: Int """ The pull request this commit comment thread belongs to """ pullRequest: PullRequest! """ The repository associated with this node. """ repository: Repository! } """ The connection type for PullRequestCommit. """ type PullRequestCommitConnection { """ A list of edges. """ edges: [PullRequestCommitEdge] """ A list of nodes. """ nodes: [PullRequestCommit] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type PullRequestCommitEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: PullRequestCommit } """ The connection type for PullRequest. """ type PullRequestConnection { """ A list of edges. """ edges: [PullRequestEdge] """ A list of nodes. """ nodes: [PullRequest] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ This aggregates pull requests opened by a user within one repository. """ type PullRequestContributionsByRepository { """ The pull request contributions. """ contributions( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for contributions returned from the connection. """ orderBy: ContributionOrder = {direction: DESC} ): CreatedPullRequestContributionConnection! """ The repository in which the pull requests were opened. """ repository: Repository! } """ An edge in a connection. """ type PullRequestEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: PullRequest } """ Represents available types of methods to use when merging a pull request. """ enum PullRequestMergeMethod { """ Add all commits from the head branch to the base branch with a merge commit. """ MERGE """ Add all commits from the head branch onto the base branch individually. """ REBASE """ Combine all commits from the head branch into a single commit in the base branch. """ SQUASH } """ Ways in which lists of issues can be ordered upon return. """ input PullRequestOrder { """ The direction in which to order pull requests by the specified field. """ direction: OrderDirection! """ The field in which to order pull requests by. """ field: PullRequestOrderField! } """ Properties by which pull_requests connections can be ordered. """ enum PullRequestOrderField { """ Order pull_requests by creation time """ CREATED_AT """ Order pull_requests by update time """ UPDATED_AT } """ Require all commits be made to a non-target branch and submitted via a pull request before they can be merged. """ type PullRequestParameters { """ New, reviewable commits pushed will dismiss previous pull request review approvals. """ dismissStaleReviewsOnPush: Boolean! """ Require an approving review in pull requests that modify files that have a designated code owner. """ requireCodeOwnerReview: Boolean! """ Whether the most recent reviewable push must be approved by someone other than the person who pushed it. """ requireLastPushApproval: Boolean! """ The number of approving reviews that are required before a pull request can be merged. """ requiredApprovingReviewCount: Int! """ All conversations on code must be resolved before a pull request can be merged. """ requiredReviewThreadResolution: Boolean! } """ Require all commits be made to a non-target branch and submitted via a pull request before they can be merged. """ input PullRequestParametersInput { """ New, reviewable commits pushed will dismiss previous pull request review approvals. """ dismissStaleReviewsOnPush: Boolean! """ Require an approving review in pull requests that modify files that have a designated code owner. """ requireCodeOwnerReview: Boolean! """ Whether the most recent reviewable push must be approved by someone other than the person who pushed it. """ requireLastPushApproval: Boolean! """ The number of approving reviews that are required before a pull request can be merged. """ requiredApprovingReviewCount: Int! """ All conversations on code must be resolved before a pull request can be merged. """ requiredReviewThreadResolution: Boolean! } """ A review object for a given pull request. """ type PullRequestReview implements Comment & Deletable & Minimizable & Node & Reactable & RepositoryNode & Updatable & UpdatableComment { """ The actor who authored the comment. """ author: Actor """ Author's association with the subject of the comment. """ authorAssociation: CommentAuthorAssociation! """ Indicates whether the author of this review has push access to the repository. """ authorCanPushToRepository: Boolean! """ Identifies the pull request review body. """ body: String! """ The body rendered to HTML. """ bodyHTML: HTML! """ The body of this review rendered as plain text. """ bodyText: String! """ A list of review comments for the current pull request review. """ comments( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): PullRequestReviewCommentConnection! """ Identifies the commit associated with this pull request review. """ commit: Commit """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Check if this comment was created via an email reply. """ createdViaEmail: Boolean! """ Identifies the primary key from the database. """ databaseId: Int """ The actor who edited the comment. """ editor: Actor """ The Node ID of the PullRequestReview object """ id: ID! """ Check if this comment was edited and includes an edit with the creation data """ includesCreatedEdit: Boolean! """ Returns whether or not a comment has been minimized. """ isMinimized: Boolean! """ The moment the editor made the last edit """ lastEditedAt: DateTime """ Returns why the comment was minimized. One of `abuse`, `off-topic`, `outdated`, `resolved`, `duplicate` and `spam`. Note that the case and formatting of these values differs from the inputs to the `MinimizeComment` mutation. """ minimizedReason: String """ A list of teams that this review was made on behalf of. """ onBehalfOf( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): TeamConnection! """ Identifies when the comment was published at. """ publishedAt: DateTime """ Identifies the pull request associated with this pull request review. """ pullRequest: PullRequest! """ A list of reactions grouped by content left on the subject. """ reactionGroups: [ReactionGroup!] """ A list of Reactions left on the Issue. """ reactions( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Allows filtering Reactions by emoji. """ content: ReactionContent """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Allows specifying the order in which reactions are returned. """ orderBy: ReactionOrder ): ReactionConnection! """ The repository associated with this node. """ repository: Repository! """ The HTTP path permalink for this PullRequestReview. """ resourcePath: URI! """ Identifies the current state of the pull request review. """ state: PullRequestReviewState! """ Identifies when the Pull Request Review was submitted """ submittedAt: DateTime """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The HTTP URL permalink for this PullRequestReview. """ url: URI! """ A list of edits to this content. """ userContentEdits( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): UserContentEditConnection """ Check if the current viewer can delete this object. """ viewerCanDelete: Boolean! """ Check if the current viewer can minimize this object. """ viewerCanMinimize: Boolean! """ Can user react to this subject """ viewerCanReact: Boolean! """ Check if the current viewer can update this object. """ viewerCanUpdate: Boolean! """ Reasons why the current viewer can not update this comment. """ viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! """ Did the viewer author this comment. """ viewerDidAuthor: Boolean! } """ A review comment associated with a given repository pull request. """ type PullRequestReviewComment implements Comment & Deletable & Minimizable & Node & Reactable & RepositoryNode & Updatable & UpdatableComment { """ The actor who authored the comment. """ author: Actor """ Author's association with the subject of the comment. """ authorAssociation: CommentAuthorAssociation! """ The comment body of this review comment. """ body: String! """ The body rendered to HTML. """ bodyHTML: HTML! """ The comment body of this review comment rendered as plain text. """ bodyText: String! """ Identifies the commit associated with the comment. """ commit: Commit """ Identifies when the comment was created. """ createdAt: DateTime! """ Check if this comment was created via an email reply. """ createdViaEmail: Boolean! """ Identifies the primary key from the database. """ databaseId: Int """ The diff hunk to which the comment applies. """ diffHunk: String! """ Identifies when the comment was created in a draft state. """ draftedAt: DateTime! """ The actor who edited the comment. """ editor: Actor """ The Node ID of the PullRequestReviewComment object """ id: ID! """ Check if this comment was edited and includes an edit with the creation data """ includesCreatedEdit: Boolean! """ Returns whether or not a comment has been minimized. """ isMinimized: Boolean! """ The moment the editor made the last edit """ lastEditedAt: DateTime """ The end line number on the file to which the comment applies """ line: Int """ Returns why the comment was minimized. One of `abuse`, `off-topic`, `outdated`, `resolved`, `duplicate` and `spam`. Note that the case and formatting of these values differs from the inputs to the `MinimizeComment` mutation. """ minimizedReason: String """ Identifies the original commit associated with the comment. """ originalCommit: Commit """ The end line number on the file to which the comment applied when it was first created """ originalLine: Int """ The original line index in the diff to which the comment applies. """ originalPosition: Int! @deprecated(reason: "We are phasing out diff-relative positioning for PR comments Removal on 2023-10-01 UTC.") """ The start line number on the file to which the comment applied when it was first created """ originalStartLine: Int """ Identifies when the comment body is outdated """ outdated: Boolean! """ The path to which the comment applies. """ path: String! """ The line index in the diff to which the comment applies. """ position: Int @deprecated( reason: "We are phasing out diff-relative positioning for PR comments Use the `line` and `startLine` fields instead, which are file line numbers instead of diff line numbers Removal on 2023-10-01 UTC." ) """ Identifies when the comment was published at. """ publishedAt: DateTime """ The pull request associated with this review comment. """ pullRequest: PullRequest! """ The pull request review associated with this review comment. """ pullRequestReview: PullRequestReview """ A list of reactions grouped by content left on the subject. """ reactionGroups: [ReactionGroup!] """ A list of Reactions left on the Issue. """ reactions( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Allows filtering Reactions by emoji. """ content: ReactionContent """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Allows specifying the order in which reactions are returned. """ orderBy: ReactionOrder ): ReactionConnection! """ The comment this is a reply to. """ replyTo: PullRequestReviewComment """ The repository associated with this node. """ repository: Repository! """ The HTTP path permalink for this review comment. """ resourcePath: URI! """ The start line number on the file to which the comment applies """ startLine: Int """ Identifies the state of the comment. """ state: PullRequestReviewCommentState! """ The level at which the comments in the corresponding thread are targeted, can be a diff line or a file """ subjectType: PullRequestReviewThreadSubjectType! """ Identifies when the comment was last updated. """ updatedAt: DateTime! """ The HTTP URL permalink for this review comment. """ url: URI! """ A list of edits to this content. """ userContentEdits( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): UserContentEditConnection """ Check if the current viewer can delete this object. """ viewerCanDelete: Boolean! """ Check if the current viewer can minimize this object. """ viewerCanMinimize: Boolean! """ Can user react to this subject """ viewerCanReact: Boolean! """ Check if the current viewer can update this object. """ viewerCanUpdate: Boolean! """ Reasons why the current viewer can not update this comment. """ viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! """ Did the viewer author this comment. """ viewerDidAuthor: Boolean! } """ The connection type for PullRequestReviewComment. """ type PullRequestReviewCommentConnection { """ A list of edges. """ edges: [PullRequestReviewCommentEdge] """ A list of nodes. """ nodes: [PullRequestReviewComment] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type PullRequestReviewCommentEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: PullRequestReviewComment } """ The possible states of a pull request review comment. """ enum PullRequestReviewCommentState { """ A comment that is part of a pending review """ PENDING """ A comment that is part of a submitted review """ SUBMITTED } """ The connection type for PullRequestReview. """ type PullRequestReviewConnection { """ A list of edges. """ edges: [PullRequestReviewEdge] """ A list of nodes. """ nodes: [PullRequestReview] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ This aggregates pull request reviews made by a user within one repository. """ type PullRequestReviewContributionsByRepository { """ The pull request review contributions. """ contributions( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for contributions returned from the connection. """ orderBy: ContributionOrder = {direction: DESC} ): CreatedPullRequestReviewContributionConnection! """ The repository in which the pull request reviews were made. """ repository: Repository! } """ The review status of a pull request. """ enum PullRequestReviewDecision { """ The pull request has received an approving review. """ APPROVED """ Changes have been requested on the pull request. """ CHANGES_REQUESTED """ A review is required before the pull request can be merged. """ REVIEW_REQUIRED } """ An edge in a connection. """ type PullRequestReviewEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: PullRequestReview } """ The possible events to perform on a pull request review. """ enum PullRequestReviewEvent { """ Submit feedback and approve merging these changes. """ APPROVE """ Submit general feedback without explicit approval. """ COMMENT """ Dismiss review so it now longer effects merging. """ DISMISS """ Submit feedback that must be addressed before merging. """ REQUEST_CHANGES } """ The possible states of a pull request review. """ enum PullRequestReviewState { """ A review allowing the pull request to merge. """ APPROVED """ A review blocking the pull request from merging. """ CHANGES_REQUESTED """ An informational review. """ COMMENTED """ A review that has been dismissed. """ DISMISSED """ A review that has not yet been submitted. """ PENDING } """ A threaded list of comments for a given pull request. """ type PullRequestReviewThread implements Node { """ A list of pull request comments associated with the thread. """ comments( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Skips the first _n_ elements in the list. """ skip: Int ): PullRequestReviewCommentConnection! """ The side of the diff on which this thread was placed. """ diffSide: DiffSide! """ The Node ID of the PullRequestReviewThread object """ id: ID! """ Whether or not the thread has been collapsed (resolved) """ isCollapsed: Boolean! """ Indicates whether this thread was outdated by newer changes. """ isOutdated: Boolean! """ Whether this thread has been resolved """ isResolved: Boolean! """ The line in the file to which this thread refers """ line: Int """ The original line in the file to which this thread refers. """ originalLine: Int """ The original start line in the file to which this thread refers (multi-line only). """ originalStartLine: Int """ Identifies the file path of this thread. """ path: String! """ Identifies the pull request associated with this thread. """ pullRequest: PullRequest! """ Identifies the repository associated with this thread. """ repository: Repository! """ The user who resolved this thread """ resolvedBy: User """ The side of the diff that the first line of the thread starts on (multi-line only) """ startDiffSide: DiffSide """ The start line in the file to which this thread refers (multi-line only) """ startLine: Int """ The level at which the comments in the corresponding thread are targeted, can be a diff line or a file """ subjectType: PullRequestReviewThreadSubjectType! """ Indicates whether the current viewer can reply to this thread. """ viewerCanReply: Boolean! """ Whether or not the viewer can resolve this thread """ viewerCanResolve: Boolean! """ Whether or not the viewer can unresolve this thread """ viewerCanUnresolve: Boolean! } """ Review comment threads for a pull request review. """ type PullRequestReviewThreadConnection { """ A list of edges. """ edges: [PullRequestReviewThreadEdge] """ A list of nodes. """ nodes: [PullRequestReviewThread] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type PullRequestReviewThreadEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: PullRequestReviewThread } """ The possible subject types of a pull request review comment. """ enum PullRequestReviewThreadSubjectType { """ A comment that has been made against the file of a pull request """ FILE """ A comment that has been made against the line of a pull request """ LINE } """ Represents the latest point in the pull request timeline for which the viewer has seen the pull request's commits. """ type PullRequestRevisionMarker { """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The last commit the viewer has seen. """ lastSeenCommit: Commit! """ The pull request to which the marker belongs. """ pullRequest: PullRequest! } """ The possible states of a pull request. """ enum PullRequestState { """ A pull request that has been closed without being merged. """ CLOSED """ A pull request that has been closed by being merged. """ MERGED """ A pull request that is still open. """ OPEN } """ A repository pull request template. """ type PullRequestTemplate { """ The body of the template """ body: String """ The filename of the template """ filename: String """ The repository the template belongs to """ repository: Repository! } """ A threaded list of comments for a given pull request. """ type PullRequestThread implements Node { """ A list of pull request comments associated with the thread. """ comments( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Skips the first _n_ elements in the list. """ skip: Int ): PullRequestReviewCommentConnection! """ The side of the diff on which this thread was placed. """ diffSide: DiffSide! """ The Node ID of the PullRequestThread object """ id: ID! """ Whether or not the thread has been collapsed (resolved) """ isCollapsed: Boolean! """ Indicates whether this thread was outdated by newer changes. """ isOutdated: Boolean! """ Whether this thread has been resolved """ isResolved: Boolean! """ The line in the file to which this thread refers """ line: Int """ Identifies the file path of this thread. """ path: String! """ Identifies the pull request associated with this thread. """ pullRequest: PullRequest! """ Identifies the repository associated with this thread. """ repository: Repository! """ The user who resolved this thread """ resolvedBy: User """ The side of the diff that the first line of the thread starts on (multi-line only) """ startDiffSide: DiffSide """ The line of the first file diff in the thread. """ startLine: Int """ The level at which the comments in the corresponding thread are targeted, can be a diff line or a file """ subjectType: PullRequestReviewThreadSubjectType! """ Indicates whether the current viewer can reply to this thread. """ viewerCanReply: Boolean! """ Whether or not the viewer can resolve this thread """ viewerCanResolve: Boolean! """ Whether or not the viewer can unresolve this thread """ viewerCanUnresolve: Boolean! } """ The connection type for PullRequestTimelineItem. """ type PullRequestTimelineConnection { """ A list of edges. """ edges: [PullRequestTimelineItemEdge] """ A list of nodes. """ nodes: [PullRequestTimelineItem] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An item in a pull request timeline """ union PullRequestTimelineItem = AssignedEvent | BaseRefDeletedEvent | BaseRefForcePushedEvent | ClosedEvent | Commit | CommitCommentThread | CrossReferencedEvent | DemilestonedEvent | DeployedEvent | DeploymentEnvironmentChangedEvent | HeadRefDeletedEvent | HeadRefForcePushedEvent | HeadRefRestoredEvent | IssueComment | LabeledEvent | LockedEvent | MergedEvent | MilestonedEvent | PullRequestReview | PullRequestReviewComment | PullRequestReviewThread | ReferencedEvent | RenamedTitleEvent | ReopenedEvent | ReviewDismissedEvent | ReviewRequestRemovedEvent | ReviewRequestedEvent | SubscribedEvent | UnassignedEvent | UnlabeledEvent | UnlockedEvent | UnsubscribedEvent | UserBlockedEvent """ An edge in a connection. """ type PullRequestTimelineItemEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: PullRequestTimelineItem } """ An item in a pull request timeline """ union PullRequestTimelineItems = AddedToMergeQueueEvent | AddedToProjectEvent | AssignedEvent | AutoMergeDisabledEvent | AutoMergeEnabledEvent | AutoRebaseEnabledEvent | AutoSquashEnabledEvent | AutomaticBaseChangeFailedEvent | AutomaticBaseChangeSucceededEvent | BaseRefChangedEvent | BaseRefDeletedEvent | BaseRefForcePushedEvent | ClosedEvent | CommentDeletedEvent | ConnectedEvent | ConvertToDraftEvent | ConvertedNoteToIssueEvent | ConvertedToDiscussionEvent | CrossReferencedEvent | DemilestonedEvent | DeployedEvent | DeploymentEnvironmentChangedEvent | DisconnectedEvent | HeadRefDeletedEvent | HeadRefForcePushedEvent | HeadRefRestoredEvent | IssueComment | LabeledEvent | LockedEvent | MarkedAsDuplicateEvent | MentionedEvent | MergedEvent | MilestonedEvent | MovedColumnsInProjectEvent | PinnedEvent | PullRequestCommit | PullRequestCommitCommentThread | PullRequestReview | PullRequestReviewThread | PullRequestRevisionMarker | ReadyForReviewEvent | ReferencedEvent | RemovedFromMergeQueueEvent | RemovedFromProjectEvent | RenamedTitleEvent | ReopenedEvent | ReviewDismissedEvent | ReviewRequestRemovedEvent | ReviewRequestedEvent | SubscribedEvent | TransferredEvent | UnassignedEvent | UnlabeledEvent | UnlockedEvent | UnmarkedAsDuplicateEvent | UnpinnedEvent | UnsubscribedEvent | UserBlockedEvent """ The connection type for PullRequestTimelineItems. """ type PullRequestTimelineItemsConnection { """ A list of edges. """ edges: [PullRequestTimelineItemsEdge] """ Identifies the count of items after applying `before` and `after` filters. """ filteredCount: Int! """ A list of nodes. """ nodes: [PullRequestTimelineItems] """ Identifies the count of items after applying `before`/`after` filters and `first`/`last`/`skip` slicing. """ pageCount: Int! """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! """ Identifies the date and time when the timeline was last updated. """ updatedAt: DateTime! } """ An edge in a connection. """ type PullRequestTimelineItemsEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: PullRequestTimelineItems } """ The possible item types found in a timeline. """ enum PullRequestTimelineItemsItemType { """ Represents an 'added_to_merge_queue' event on a given pull request. """ ADDED_TO_MERGE_QUEUE_EVENT """ Represents a 'added_to_project' event on a given issue or pull request. """ ADDED_TO_PROJECT_EVENT """ Represents an 'assigned' event on any assignable object. """ ASSIGNED_EVENT """ Represents a 'automatic_base_change_failed' event on a given pull request. """ AUTOMATIC_BASE_CHANGE_FAILED_EVENT """ Represents a 'automatic_base_change_succeeded' event on a given pull request. """ AUTOMATIC_BASE_CHANGE_SUCCEEDED_EVENT """ Represents a 'auto_merge_disabled' event on a given pull request. """ AUTO_MERGE_DISABLED_EVENT """ Represents a 'auto_merge_enabled' event on a given pull request. """ AUTO_MERGE_ENABLED_EVENT """ Represents a 'auto_rebase_enabled' event on a given pull request. """ AUTO_REBASE_ENABLED_EVENT """ Represents a 'auto_squash_enabled' event on a given pull request. """ AUTO_SQUASH_ENABLED_EVENT """ Represents a 'base_ref_changed' event on a given issue or pull request. """ BASE_REF_CHANGED_EVENT """ Represents a 'base_ref_deleted' event on a given pull request. """ BASE_REF_DELETED_EVENT """ Represents a 'base_ref_force_pushed' event on a given pull request. """ BASE_REF_FORCE_PUSHED_EVENT """ Represents a 'closed' event on any `Closable`. """ CLOSED_EVENT """ Represents a 'comment_deleted' event on a given issue or pull request. """ COMMENT_DELETED_EVENT """ Represents a 'connected' event on a given issue or pull request. """ CONNECTED_EVENT """ Represents a 'converted_note_to_issue' event on a given issue or pull request. """ CONVERTED_NOTE_TO_ISSUE_EVENT """ Represents a 'converted_to_discussion' event on a given issue. """ CONVERTED_TO_DISCUSSION_EVENT """ Represents a 'convert_to_draft' event on a given pull request. """ CONVERT_TO_DRAFT_EVENT """ Represents a mention made by one issue or pull request to another. """ CROSS_REFERENCED_EVENT """ Represents a 'demilestoned' event on a given issue or pull request. """ DEMILESTONED_EVENT """ Represents a 'deployed' event on a given pull request. """ DEPLOYED_EVENT """ Represents a 'deployment_environment_changed' event on a given pull request. """ DEPLOYMENT_ENVIRONMENT_CHANGED_EVENT """ Represents a 'disconnected' event on a given issue or pull request. """ DISCONNECTED_EVENT """ Represents a 'head_ref_deleted' event on a given pull request. """ HEAD_REF_DELETED_EVENT """ Represents a 'head_ref_force_pushed' event on a given pull request. """ HEAD_REF_FORCE_PUSHED_EVENT """ Represents a 'head_ref_restored' event on a given pull request. """ HEAD_REF_RESTORED_EVENT """ Represents a comment on an Issue. """ ISSUE_COMMENT """ Represents a 'labeled' event on a given issue or pull request. """ LABELED_EVENT """ Represents a 'locked' event on a given issue or pull request. """ LOCKED_EVENT """ Represents a 'marked_as_duplicate' event on a given issue or pull request. """ MARKED_AS_DUPLICATE_EVENT """ Represents a 'mentioned' event on a given issue or pull request. """ MENTIONED_EVENT """ Represents a 'merged' event on a given pull request. """ MERGED_EVENT """ Represents a 'milestoned' event on a given issue or pull request. """ MILESTONED_EVENT """ Represents a 'moved_columns_in_project' event on a given issue or pull request. """ MOVED_COLUMNS_IN_PROJECT_EVENT """ Represents a 'pinned' event on a given issue or pull request. """ PINNED_EVENT """ Represents a Git commit part of a pull request. """ PULL_REQUEST_COMMIT """ Represents a commit comment thread part of a pull request. """ PULL_REQUEST_COMMIT_COMMENT_THREAD """ A review object for a given pull request. """ PULL_REQUEST_REVIEW """ A threaded list of comments for a given pull request. """ PULL_REQUEST_REVIEW_THREAD """ Represents the latest point in the pull request timeline for which the viewer has seen the pull request's commits. """ PULL_REQUEST_REVISION_MARKER """ Represents a 'ready_for_review' event on a given pull request. """ READY_FOR_REVIEW_EVENT """ Represents a 'referenced' event on a given `ReferencedSubject`. """ REFERENCED_EVENT """ Represents a 'removed_from_merge_queue' event on a given pull request. """ REMOVED_FROM_MERGE_QUEUE_EVENT """ Represents a 'removed_from_project' event on a given issue or pull request. """ REMOVED_FROM_PROJECT_EVENT """ Represents a 'renamed' event on a given issue or pull request """ RENAMED_TITLE_EVENT """ Represents a 'reopened' event on any `Closable`. """ REOPENED_EVENT """ Represents a 'review_dismissed' event on a given issue or pull request. """ REVIEW_DISMISSED_EVENT """ Represents an 'review_requested' event on a given pull request. """ REVIEW_REQUESTED_EVENT """ Represents an 'review_request_removed' event on a given pull request. """ REVIEW_REQUEST_REMOVED_EVENT """ Represents a 'subscribed' event on a given `Subscribable`. """ SUBSCRIBED_EVENT """ Represents a 'transferred' event on a given issue or pull request. """ TRANSFERRED_EVENT """ Represents an 'unassigned' event on any assignable object. """ UNASSIGNED_EVENT """ Represents an 'unlabeled' event on a given issue or pull request. """ UNLABELED_EVENT """ Represents an 'unlocked' event on a given issue or pull request. """ UNLOCKED_EVENT """ Represents an 'unmarked_as_duplicate' event on a given issue or pull request. """ UNMARKED_AS_DUPLICATE_EVENT """ Represents an 'unpinned' event on a given issue or pull request. """ UNPINNED_EVENT """ Represents an 'unsubscribed' event on a given `Subscribable`. """ UNSUBSCRIBED_EVENT """ Represents a 'user_blocked' event on a given user. """ USER_BLOCKED_EVENT } """ The possible target states when updating a pull request. """ enum PullRequestUpdateState { """ A pull request that has been closed without being merged. """ CLOSED """ A pull request that is still open. """ OPEN } """ A Git push. """ type Push implements Node { """ The Node ID of the Push object """ id: ID! """ The SHA after the push """ nextSha: GitObjectID """ The permalink for this push. """ permalink: URI! """ The SHA before the push """ previousSha: GitObjectID """ The actor who pushed """ pusher: Actor! """ The repository that was pushed to """ repository: Repository! } """ A team, user, or app who has the ability to push to a protected branch. """ type PushAllowance implements Node { """ The actor that can push. """ actor: PushAllowanceActor """ Identifies the branch protection rule associated with the allowed user, team, or app. """ branchProtectionRule: BranchProtectionRule """ The Node ID of the PushAllowance object """ id: ID! } """ Types that can be an actor. """ union PushAllowanceActor = App | Team | User """ The connection type for PushAllowance. """ type PushAllowanceConnection { """ A list of edges. """ edges: [PushAllowanceEdge] """ A list of nodes. """ nodes: [PushAllowance] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type PushAllowanceEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: PushAllowance } """ The query root of GitHub's GraphQL interface. """ type Query { """ Look up a code of conduct by its key """ codeOfConduct( """ The code of conduct's key """ key: String! ): CodeOfConduct """ Look up a code of conduct by its key """ codesOfConduct: [CodeOfConduct] """ Look up an enterprise by URL slug. """ enterprise( """ The enterprise invitation token. """ invitationToken: String """ The enterprise URL slug. """ slug: String! ): Enterprise """ Look up a pending enterprise administrator invitation by invitee, enterprise and role. """ enterpriseAdministratorInvitation( """ The slug of the enterprise the user was invited to join. """ enterpriseSlug: String! """ The role for the business member invitation. """ role: EnterpriseAdministratorRole! """ The login of the user invited to join the business. """ userLogin: String! ): EnterpriseAdministratorInvitation """ Look up a pending enterprise administrator invitation by invitation token. """ enterpriseAdministratorInvitationByToken( """ The invitation token sent with the invitation email. """ invitationToken: String! ): EnterpriseAdministratorInvitation """ Look up an open source license by its key """ license( """ The license's downcased SPDX ID """ key: String! ): License """ Return a list of known open source licenses """ licenses: [License]! """ Get alphabetically sorted list of Marketplace categories """ marketplaceCategories( """ Exclude categories with no listings. """ excludeEmpty: Boolean """ Returns top level categories only, excluding any subcategories. """ excludeSubcategories: Boolean """ Return only the specified categories. """ includeCategories: [String!] ): [MarketplaceCategory!]! """ Look up a Marketplace category by its slug. """ marketplaceCategory( """ The URL slug of the category. """ slug: String! """ Also check topic aliases for the category slug """ useTopicAliases: Boolean ): MarketplaceCategory """ Look up a single Marketplace listing """ marketplaceListing( """ Select the listing that matches this slug. It's the short name of the listing used in its URL. """ slug: String! ): MarketplaceListing """ Look up Marketplace listings """ marketplaceListings( """ Select listings that can be administered by the specified user. """ adminId: ID """ Returns the elements in the list that come after the specified cursor. """ after: String """ Select listings visible to the viewer even if they are not approved. If omitted or false, only approved listings will be returned. """ allStates: Boolean """ Returns the elements in the list that come before the specified cursor. """ before: String """ Select only listings with the given category. """ categorySlug: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Select listings for products owned by the specified organization. """ organizationId: ID """ Select only listings where the primary category matches the given category slug. """ primaryCategoryOnly: Boolean = false """ Select the listings with these slugs, if they are visible to the viewer. """ slugs: [String] """ Also check topic aliases for the category slug """ useTopicAliases: Boolean """ Select listings to which user has admin access. If omitted, listings visible to the viewer are returned. """ viewerCanAdmin: Boolean """ Select only listings that offer a free trial. """ withFreeTrialsOnly: Boolean = false ): MarketplaceListingConnection! """ Return information about the GitHub instance """ meta: GitHubMetadata! """ Fetches an object given its ID. """ node( """ ID of the object. """ id: ID! ): Node """ Lookup nodes by a list of IDs. """ nodes( """ The list of node IDs. """ ids: [ID!]! ): [Node]! """ Lookup a organization by login. """ organization( """ The organization's login. """ login: String! ): Organization """ The client's rate limit information. """ rateLimit( """ If true, calculate the cost for the query without evaluating it """ dryRun: Boolean = false ): RateLimit """ Workaround for re-exposing the root query object. (Refer to https://github.com/facebook/relay/issues/112 for more information.) """ relay: Query! """ Lookup a given repository by the owner and repository name. """ repository( """ Follow repository renames. If disabled, a repository referenced by its old name will return an error. """ followRenames: Boolean = true """ The name of the repository """ name: String! """ The login field of a user or organization """ owner: String! ): Repository """ Lookup a repository owner (ie. either a User or an Organization) by login. """ repositoryOwner( """ The username to lookup the owner by. """ login: String! ): RepositoryOwner """ Lookup resource by a URL. """ resource( """ The URL. """ url: URI! ): UniformResourceLocatable """ Perform a search across resources, returning a maximum of 1,000 results. """ search( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ The search string to look for. """ query: String! """ The types of search items to search within. """ type: SearchType! ): SearchResultItemConnection! """ GitHub Security Advisories """ securityAdvisories( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ A list of classifications to filter advisories by. """ classifications: [SecurityAdvisoryClassification!] """ Returns the first _n_ elements from the list. """ first: Int """ Filter advisories by identifier, e.g. GHSA or CVE. """ identifier: SecurityAdvisoryIdentifierFilter """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for the returned topics. """ orderBy: SecurityAdvisoryOrder = {field: UPDATED_AT, direction: DESC} """ Filter advisories to those published since a time in the past. """ publishedSince: DateTime """ Filter advisories to those updated since a time in the past. """ updatedSince: DateTime ): SecurityAdvisoryConnection! """ Fetch a Security Advisory by its GHSA ID """ securityAdvisory( """ GitHub Security Advisory ID. """ ghsaId: String! ): SecurityAdvisory """ Software Vulnerabilities documented by GitHub Security Advisories """ securityVulnerabilities( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ A list of advisory classifications to filter vulnerabilities by. """ classifications: [SecurityAdvisoryClassification!] """ An ecosystem to filter vulnerabilities by. """ ecosystem: SecurityAdvisoryEcosystem """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for the returned topics. """ orderBy: SecurityVulnerabilityOrder = {field: UPDATED_AT, direction: DESC} """ A package name to filter vulnerabilities by. """ package: String """ A list of severities to filter vulnerabilities by. """ severities: [SecurityAdvisorySeverity!] ): SecurityVulnerabilityConnection! """ Users and organizations who can be sponsored via GitHub Sponsors. """ sponsorables( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Optional filter for which dependencies should be checked for sponsorable owners. Only sponsorable owners of dependencies in this ecosystem will be included. Used when onlyDependencies = true. **Upcoming Change on 2022-07-01 UTC** **Description:** `dependencyEcosystem` will be removed. Use the ecosystem argument instead. **Reason:** The type is switching from SecurityAdvisoryEcosystem to DependencyGraphEcosystem. """ dependencyEcosystem: SecurityAdvisoryEcosystem """ Optional filter for which dependencies should be checked for sponsorable owners. Only sponsorable owners of dependencies in this ecosystem will be included. Used when onlyDependencies = true. """ ecosystem: DependencyGraphEcosystem """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Whether only sponsorables who own the viewer's dependencies will be returned. Must be authenticated to use. Can check an organization instead for their dependencies owned by sponsorables by passing orgLoginForDependencies. """ onlyDependencies: Boolean = false """ Ordering options for users and organizations returned from the connection. """ orderBy: SponsorableOrder = {field: LOGIN, direction: ASC} """ Optional organization username for whose dependencies should be checked. Used when onlyDependencies = true. Omit to check your own dependencies. If you are not an administrator of the organization, only dependencies from its public repositories will be considered. """ orgLoginForDependencies: String ): SponsorableItemConnection! """ Look up a topic by name. """ topic( """ The topic's name. """ name: String! ): Topic """ Lookup a user by login. """ user( """ The user's login. """ login: String! ): User """ The currently authenticated user. """ viewer: User! } """ Represents the client's rate limit. """ type RateLimit { """ The point cost for the current query counting against the rate limit. """ cost: Int! """ The maximum number of points the client is permitted to consume in a 60 minute window. """ limit: Int! """ The maximum number of nodes this query may return """ nodeCount: Int! """ The number of points remaining in the current rate limit window. """ remaining: Int! """ The time at which the current rate limit window resets in UTC epoch seconds. """ resetAt: DateTime! """ The number of points used in the current rate limit window. """ used: Int! } """ Represents a subject that can be reacted on. """ interface Reactable { """ Identifies the primary key from the database. """ databaseId: Int """ The Node ID of the Reactable object """ id: ID! """ A list of reactions grouped by content left on the subject. """ reactionGroups: [ReactionGroup!] """ A list of Reactions left on the Issue. """ reactions( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Allows filtering Reactions by emoji. """ content: ReactionContent """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Allows specifying the order in which reactions are returned. """ orderBy: ReactionOrder ): ReactionConnection! """ Can user react to this subject """ viewerCanReact: Boolean! } """ The connection type for User. """ type ReactingUserConnection { """ A list of edges. """ edges: [ReactingUserEdge] """ A list of nodes. """ nodes: [User] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ Represents a user that's made a reaction. """ type ReactingUserEdge { """ A cursor for use in pagination. """ cursor: String! node: User! """ The moment when the user made the reaction. """ reactedAt: DateTime! } """ An emoji reaction to a particular piece of content. """ type Reaction implements Node { """ Identifies the emoji reaction. """ content: ReactionContent! """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the primary key from the database. """ databaseId: Int """ The Node ID of the Reaction object """ id: ID! """ The reactable piece of content """ reactable: Reactable! """ Identifies the user who created this reaction. """ user: User } """ A list of reactions that have been left on the subject. """ type ReactionConnection { """ A list of edges. """ edges: [ReactionEdge] """ A list of nodes. """ nodes: [Reaction] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! """ Whether or not the authenticated user has left a reaction on the subject. """ viewerHasReacted: Boolean! } """ Emojis that can be attached to Issues, Pull Requests and Comments. """ enum ReactionContent { """ Represents the `:confused:` emoji. """ CONFUSED """ Represents the `:eyes:` emoji. """ EYES """ Represents the `:heart:` emoji. """ HEART """ Represents the `:hooray:` emoji. """ HOORAY """ Represents the `:laugh:` emoji. """ LAUGH """ Represents the `:rocket:` emoji. """ ROCKET """ Represents the `:-1:` emoji. """ THUMBS_DOWN """ Represents the `:+1:` emoji. """ THUMBS_UP } """ An edge in a connection. """ type ReactionEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: Reaction } """ A group of emoji reactions to a particular piece of content. """ type ReactionGroup { """ Identifies the emoji reaction. """ content: ReactionContent! """ Identifies when the reaction was created. """ createdAt: DateTime """ Reactors to the reaction subject with the emotion represented by this reaction group. """ reactors( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): ReactorConnection! """ The subject that was reacted to. """ subject: Reactable! """ Users who have reacted to the reaction subject with the emotion represented by this reaction group """ users( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): ReactingUserConnection! @deprecated( reason: "Reactors can now be mannequins, bots, and organizations. Use the `reactors` field instead. Removal on 2021-10-01 UTC." ) """ Whether or not the authenticated user has left a reaction on the subject. """ viewerHasReacted: Boolean! } """ Ways in which lists of reactions can be ordered upon return. """ input ReactionOrder { """ The direction in which to order reactions by the specified field. """ direction: OrderDirection! """ The field in which to order reactions by. """ field: ReactionOrderField! } """ A list of fields that reactions can be ordered by. """ enum ReactionOrderField { """ Allows ordering a list of reactions by when they were created. """ CREATED_AT } """ Types that can be assigned to reactions. """ union Reactor = Bot | Mannequin | Organization | User """ The connection type for Reactor. """ type ReactorConnection { """ A list of edges. """ edges: [ReactorEdge] """ A list of nodes. """ nodes: [Reactor] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ Represents an author of a reaction. """ type ReactorEdge { """ A cursor for use in pagination. """ cursor: String! """ The author of the reaction. """ node: Reactor! """ The moment when the user made the reaction. """ reactedAt: DateTime! } """ Represents a 'ready_for_review' event on a given pull request. """ type ReadyForReviewEvent implements Node & UniformResourceLocatable { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the ReadyForReviewEvent object """ id: ID! """ PullRequest referenced by event. """ pullRequest: PullRequest! """ The HTTP path for this ready for review event. """ resourcePath: URI! """ The HTTP URL for this ready for review event. """ url: URI! } """ Represents a Git reference. """ type Ref implements Node { """ A list of pull requests with this ref as the head ref. """ associatedPullRequests( """ Returns the elements in the list that come after the specified cursor. """ after: String """ The base ref name to filter the pull requests by. """ baseRefName: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ The head ref name to filter the pull requests by. """ headRefName: String """ A list of label names to filter the pull requests by. """ labels: [String!] """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for pull requests returned from the connection. """ orderBy: IssueOrder """ A list of states to filter the pull requests by. """ states: [PullRequestState!] ): PullRequestConnection! """ Branch protection rules for this ref """ branchProtectionRule: BranchProtectionRule """ Compares the current ref as a base ref to another head ref, if the comparison can be made. """ compare( """ The head ref to compare against. """ headRef: String! ): Comparison """ The Node ID of the Ref object """ id: ID! """ The ref name. """ name: String! """ The ref's prefix, such as `refs/heads/` or `refs/tags/`. """ prefix: String! """ Branch protection rules that are viewable by non-admins """ refUpdateRule: RefUpdateRule """ The repository the ref belongs to. """ repository: Repository! """ The object the ref points to. Returns null when object does not exist. """ target: GitObject } """ The connection type for Ref. """ type RefConnection { """ A list of edges. """ edges: [RefEdge] """ A list of nodes. """ nodes: [Ref] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type RefEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: Ref } """ Parameters to be used for the ref_name condition """ type RefNameConditionTarget { """ Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match. """ exclude: [String!]! """ Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches. """ include: [String!]! } """ Parameters to be used for the ref_name condition """ input RefNameConditionTargetInput { """ Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match. """ exclude: [String!]! """ Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches. """ include: [String!]! } """ Ways in which lists of git refs can be ordered upon return. """ input RefOrder { """ The direction in which to order refs by the specified field. """ direction: OrderDirection! """ The field in which to order refs by. """ field: RefOrderField! } """ Properties by which ref connections can be ordered. """ enum RefOrderField { """ Order refs by their alphanumeric name """ ALPHABETICAL """ Order refs by underlying commit date if the ref prefix is refs/tags/ """ TAG_COMMIT_DATE } """ A ref update """ input RefUpdate @preview(toggledBy: "update-refs-preview") { """ The value this ref should be updated to. """ afterOid: GitObjectID! """ The value this ref needs to point to before the update. """ beforeOid: GitObjectID """ Force a non fast-forward update. """ force: Boolean = false """ The fully qualified name of the ref to be update. For example `refs/heads/branch-name` """ name: GitRefname! } """ Branch protection rules that are enforced on the viewer. """ type RefUpdateRule { """ Can this branch be deleted. """ allowsDeletions: Boolean! """ Are force pushes allowed on this branch. """ allowsForcePushes: Boolean! """ Can matching branches be created. """ blocksCreations: Boolean! """ Identifies the protection rule pattern. """ pattern: String! """ Number of approving reviews required to update matching branches. """ requiredApprovingReviewCount: Int """ List of required status check contexts that must pass for commits to be accepted to matching branches. """ requiredStatusCheckContexts: [String] """ Are reviews from code owners required to update matching branches. """ requiresCodeOwnerReviews: Boolean! """ Are conversations required to be resolved before merging. """ requiresConversationResolution: Boolean! """ Are merge commits prohibited from being pushed to this branch. """ requiresLinearHistory: Boolean! """ Are commits required to be signed. """ requiresSignatures: Boolean! """ Is the viewer allowed to dismiss reviews. """ viewerAllowedToDismissReviews: Boolean! """ Can the viewer push to the branch """ viewerCanPush: Boolean! } """ Represents a 'referenced' event on a given `ReferencedSubject`. """ type ReferencedEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the commit associated with the 'referenced' event. """ commit: Commit """ Identifies the repository associated with the 'referenced' event. """ commitRepository: Repository! """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the ReferencedEvent object """ id: ID! """ Reference originated in a different repository. """ isCrossRepository: Boolean! """ Checks if the commit message itself references the subject. Can be false in the case of a commit comment reference. """ isDirectReference: Boolean! """ Object referenced by event. """ subject: ReferencedSubject! } """ Any referencable object """ union ReferencedSubject = Issue | PullRequest """ Autogenerated input type of RegenerateEnterpriseIdentityProviderRecoveryCodes """ input RegenerateEnterpriseIdentityProviderRecoveryCodesInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the enterprise on which to set an identity provider. """ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) } """ Autogenerated return type of RegenerateEnterpriseIdentityProviderRecoveryCodes """ type RegenerateEnterpriseIdentityProviderRecoveryCodesPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The identity provider for the enterprise. """ identityProvider: EnterpriseIdentityProvider } """ Autogenerated input type of RegenerateVerifiableDomainToken """ input RegenerateVerifiableDomainTokenInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the verifiable domain to regenerate the verification token of. """ id: ID! @possibleTypes(concreteTypes: ["VerifiableDomain"]) } """ Autogenerated return type of RegenerateVerifiableDomainToken """ type RegenerateVerifiableDomainTokenPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The verification token that was generated. """ verificationToken: String } """ Autogenerated input type of RejectDeployments """ input RejectDeploymentsInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Optional comment for rejecting deployments """ comment: String = "" """ The ids of environments to reject deployments """ environmentIds: [ID!]! """ The node ID of the workflow run containing the pending deployments. """ workflowRunId: ID! @possibleTypes(concreteTypes: ["WorkflowRun"]) } """ Autogenerated return type of RejectDeployments """ type RejectDeploymentsPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The affected deployments. """ deployments: [Deployment!] } """ A release contains the content for a release. """ type Release implements Node & Reactable & UniformResourceLocatable { """ The author of the release """ author: User """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the primary key from the database. """ databaseId: Int """ The description of the release. """ description: String """ The description of this release rendered to HTML. """ descriptionHTML: HTML """ The Node ID of the Release object """ id: ID! """ Whether or not the release is a draft """ isDraft: Boolean! """ Whether or not the release is the latest releast """ isLatest: Boolean! """ Whether or not the release is a prerelease """ isPrerelease: Boolean! """ A list of users mentioned in the release description """ mentions( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): UserConnection """ The title of the release. """ name: String """ Identifies the date and time when the release was created. """ publishedAt: DateTime """ A list of reactions grouped by content left on the subject. """ reactionGroups: [ReactionGroup!] """ A list of Reactions left on the Issue. """ reactions( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Allows filtering Reactions by emoji. """ content: ReactionContent """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Allows specifying the order in which reactions are returned. """ orderBy: ReactionOrder ): ReactionConnection! """ List of releases assets which are dependent on this release. """ releaseAssets( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ A list of names to filter the assets by. """ name: String ): ReleaseAssetConnection! """ The repository that the release belongs to. """ repository: Repository! """ The HTTP path for this issue """ resourcePath: URI! """ A description of the release, rendered to HTML without any links in it. """ shortDescriptionHTML( """ How many characters to return. """ limit: Int = 200 ): HTML """ The Git tag the release points to """ tag: Ref """ The tag commit for this release. """ tagCommit: Commit """ The name of the release's Git tag """ tagName: String! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The HTTP URL for this issue """ url: URI! """ Can user react to this subject """ viewerCanReact: Boolean! } """ A release asset contains the content for a release asset. """ type ReleaseAsset implements Node { """ The asset's content-type """ contentType: String! """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The number of times this asset was downloaded """ downloadCount: Int! """ Identifies the URL where you can download the release asset via the browser. """ downloadUrl: URI! """ The Node ID of the ReleaseAsset object """ id: ID! """ Identifies the title of the release asset. """ name: String! """ Release that the asset is associated with """ release: Release """ The size (in bytes) of the asset """ size: Int! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The user that performed the upload """ uploadedBy: User! """ Identifies the URL of the release asset. """ url: URI! } """ The connection type for ReleaseAsset. """ type ReleaseAssetConnection { """ A list of edges. """ edges: [ReleaseAssetEdge] """ A list of nodes. """ nodes: [ReleaseAsset] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type ReleaseAssetEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: ReleaseAsset } """ The connection type for Release. """ type ReleaseConnection { """ A list of edges. """ edges: [ReleaseEdge] """ A list of nodes. """ nodes: [Release] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type ReleaseEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: Release } """ Ways in which lists of releases can be ordered upon return. """ input ReleaseOrder { """ The direction in which to order releases by the specified field. """ direction: OrderDirection! """ The field in which to order releases by. """ field: ReleaseOrderField! } """ Properties by which release connections can be ordered. """ enum ReleaseOrderField { """ Order releases by creation time """ CREATED_AT """ Order releases alphabetically by name """ NAME } """ Autogenerated input type of RemoveAssigneesFromAssignable """ input RemoveAssigneesFromAssignableInput { """ The id of the assignable object to remove assignees from. """ assignableId: ID! @possibleTypes(concreteTypes: ["Issue", "PullRequest"], abstractType: "Assignable") """ The id of users to remove as assignees. """ assigneeIds: [ID!]! @possibleTypes(concreteTypes: ["User"]) """ A unique identifier for the client performing the mutation. """ clientMutationId: String } """ Autogenerated return type of RemoveAssigneesFromAssignable """ type RemoveAssigneesFromAssignablePayload { """ The item that was unassigned. """ assignable: Assignable """ A unique identifier for the client performing the mutation. """ clientMutationId: String } """ Autogenerated input type of RemoveEnterpriseAdmin """ input RemoveEnterpriseAdminInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Enterprise ID from which to remove the administrator. """ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) """ The login of the user to remove as an administrator. """ login: String! } """ Autogenerated return type of RemoveEnterpriseAdmin """ type RemoveEnterpriseAdminPayload { """ The user who was removed as an administrator. """ admin: User """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The updated enterprise. """ enterprise: Enterprise """ A message confirming the result of removing an administrator. """ message: String """ The viewer performing the mutation. """ viewer: User } """ Autogenerated input type of RemoveEnterpriseIdentityProvider """ input RemoveEnterpriseIdentityProviderInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the enterprise from which to remove the identity provider. """ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) } """ Autogenerated return type of RemoveEnterpriseIdentityProvider """ type RemoveEnterpriseIdentityProviderPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The identity provider that was removed from the enterprise. """ identityProvider: EnterpriseIdentityProvider } """ Autogenerated input type of RemoveEnterpriseMember """ input RemoveEnterpriseMemberInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the enterprise from which the user should be removed. """ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) """ The ID of the user to remove from the enterprise. """ userId: ID! @possibleTypes(concreteTypes: ["User"]) } """ Autogenerated return type of RemoveEnterpriseMember """ type RemoveEnterpriseMemberPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The updated enterprise. """ enterprise: Enterprise """ The user that was removed from the enterprise. """ user: User """ The viewer performing the mutation. """ viewer: User } """ Autogenerated input type of RemoveEnterpriseOrganization """ input RemoveEnterpriseOrganizationInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the enterprise from which the organization should be removed. """ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) """ The ID of the organization to remove from the enterprise. """ organizationId: ID! @possibleTypes(concreteTypes: ["Organization"]) } """ Autogenerated return type of RemoveEnterpriseOrganization """ type RemoveEnterpriseOrganizationPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The updated enterprise. """ enterprise: Enterprise """ The organization that was removed from the enterprise. """ organization: Organization """ The viewer performing the mutation. """ viewer: User } """ Autogenerated input type of RemoveEnterpriseSupportEntitlement """ input RemoveEnterpriseSupportEntitlementInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the Enterprise which the admin belongs to. """ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) """ The login of a member who will lose the support entitlement. """ login: String! } """ Autogenerated return type of RemoveEnterpriseSupportEntitlement """ type RemoveEnterpriseSupportEntitlementPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ A message confirming the result of removing the support entitlement. """ message: String } """ Autogenerated input type of RemoveLabelsFromLabelable """ input RemoveLabelsFromLabelableInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ids of labels to remove. """ labelIds: [ID!]! @possibleTypes(concreteTypes: ["Label"]) """ The id of the Labelable to remove labels from. """ labelableId: ID! @possibleTypes(concreteTypes: ["Discussion", "Issue", "PullRequest"], abstractType: "Labelable") } """ Autogenerated return type of RemoveLabelsFromLabelable """ type RemoveLabelsFromLabelablePayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Labelable the labels were removed from. """ labelable: Labelable } """ Autogenerated input type of RemoveOutsideCollaborator """ input RemoveOutsideCollaboratorInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the organization to remove the outside collaborator from. """ organizationId: ID! @possibleTypes(concreteTypes: ["Organization"]) """ The ID of the outside collaborator to remove. """ userId: ID! @possibleTypes(concreteTypes: ["User"]) } """ Autogenerated return type of RemoveOutsideCollaborator """ type RemoveOutsideCollaboratorPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The user that was removed as an outside collaborator. """ removedUser: User } """ Autogenerated input type of RemoveReaction """ input RemoveReactionInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The name of the emoji reaction to remove. """ content: ReactionContent! """ The Node ID of the subject to modify. """ subjectId: ID! @possibleTypes( concreteTypes: [ "CommitComment" "Discussion" "DiscussionComment" "Issue" "IssueComment" "PullRequest" "PullRequestReview" "PullRequestReviewComment" "Release" "TeamDiscussion" "TeamDiscussionComment" ] abstractType: "Reactable" ) } """ Autogenerated return type of RemoveReaction """ type RemoveReactionPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The reaction object. """ reaction: Reaction """ The reaction groups for the subject. """ reactionGroups: [ReactionGroup!] """ The reactable subject. """ subject: Reactable } """ Autogenerated input type of RemoveStar """ input RemoveStarInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Starrable ID to unstar. """ starrableId: ID! @possibleTypes(concreteTypes: ["Gist", "Repository", "Topic"], abstractType: "Starrable") } """ Autogenerated return type of RemoveStar """ type RemoveStarPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The starrable. """ starrable: Starrable } """ Autogenerated input type of RemoveUpvote """ input RemoveUpvoteInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Node ID of the discussion or comment to remove upvote. """ subjectId: ID! @possibleTypes(concreteTypes: ["Discussion", "DiscussionComment"], abstractType: "Votable") } """ Autogenerated return type of RemoveUpvote """ type RemoveUpvotePayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The votable subject. """ subject: Votable } """ Represents a 'removed_from_merge_queue' event on a given pull request. """ type RemovedFromMergeQueueEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the before commit SHA for the 'removed_from_merge_queue' event. """ beforeCommit: Commit """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The user who removed this Pull Request from the merge queue """ enqueuer: User """ The Node ID of the RemovedFromMergeQueueEvent object """ id: ID! """ The merge queue where this pull request was removed from. """ mergeQueue: MergeQueue """ PullRequest referenced by event. """ pullRequest: PullRequest """ The reason this pull request was removed from the queue. """ reason: String } """ Represents a 'removed_from_project' event on a given issue or pull request. """ type RemovedFromProjectEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the primary key from the database. """ databaseId: Int """ The Node ID of the RemovedFromProjectEvent object """ id: ID! """ Project referenced by event. """ project: Project @preview(toggledBy: "starfox-preview") """ Column name referenced by this project event. """ projectColumnName: String! @preview(toggledBy: "starfox-preview") } """ Represents a 'renamed' event on a given issue or pull request """ type RenamedTitleEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the current title of the issue or pull request. """ currentTitle: String! """ The Node ID of the RenamedTitleEvent object """ id: ID! """ Identifies the previous title of the issue or pull request. """ previousTitle: String! """ Subject that was renamed. """ subject: RenamedTitleSubject! } """ An object which has a renamable title """ union RenamedTitleSubject = Issue | PullRequest """ Autogenerated input type of ReopenDiscussion """ input ReopenDiscussionInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ ID of the discussion to be reopened. """ discussionId: ID! @possibleTypes(concreteTypes: ["Discussion"]) } """ Autogenerated return type of ReopenDiscussion """ type ReopenDiscussionPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The discussion that was reopened. """ discussion: Discussion } """ Autogenerated input type of ReopenIssue """ input ReopenIssueInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ ID of the issue to be opened. """ issueId: ID! @possibleTypes(concreteTypes: ["Issue"]) } """ Autogenerated return type of ReopenIssue """ type ReopenIssuePayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The issue that was opened. """ issue: Issue } """ Autogenerated input type of ReopenPullRequest """ input ReopenPullRequestInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ ID of the pull request to be reopened. """ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"]) } """ Autogenerated return type of ReopenPullRequest """ type ReopenPullRequestPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The pull request that was reopened. """ pullRequest: PullRequest } """ Represents a 'reopened' event on any `Closable`. """ type ReopenedEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Object that was reopened. """ closable: Closable! """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the ReopenedEvent object """ id: ID! """ The reason the issue state was changed to open. """ stateReason: IssueStateReason } """ Audit log entry for a repo.access event. """ type RepoAccessAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the RepoAccessAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The repository associated with the action """ repository: Repository """ The name of the repository """ repositoryName: String """ The HTTP path for the repository """ repositoryResourcePath: URI """ The HTTP URL for the repository """ repositoryUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI """ The visibility of the repository """ visibility: RepoAccessAuditEntryVisibility } """ The privacy of a repository """ enum RepoAccessAuditEntryVisibility { """ The repository is visible only to users in the same business. """ INTERNAL """ The repository is visible only to those with explicit access. """ PRIVATE """ The repository is visible to everyone. """ PUBLIC } """ Audit log entry for a repo.add_member event. """ type RepoAddMemberAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the RepoAddMemberAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The repository associated with the action """ repository: Repository """ The name of the repository """ repositoryName: String """ The HTTP path for the repository """ repositoryResourcePath: URI """ The HTTP URL for the repository """ repositoryUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI """ The visibility of the repository """ visibility: RepoAddMemberAuditEntryVisibility } """ The privacy of a repository """ enum RepoAddMemberAuditEntryVisibility { """ The repository is visible only to users in the same business. """ INTERNAL """ The repository is visible only to those with explicit access. """ PRIVATE """ The repository is visible to everyone. """ PUBLIC } """ Audit log entry for a repo.add_topic event. """ type RepoAddTopicAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData & TopicAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the RepoAddTopicAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The repository associated with the action """ repository: Repository """ The name of the repository """ repositoryName: String """ The HTTP path for the repository """ repositoryResourcePath: URI """ The HTTP URL for the repository """ repositoryUrl: URI """ The name of the topic added to the repository """ topic: Topic """ The name of the topic added to the repository """ topicName: String """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a repo.archived event. """ type RepoArchivedAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the RepoArchivedAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The repository associated with the action """ repository: Repository """ The name of the repository """ repositoryName: String """ The HTTP path for the repository """ repositoryResourcePath: URI """ The HTTP URL for the repository """ repositoryUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI """ The visibility of the repository """ visibility: RepoArchivedAuditEntryVisibility } """ The privacy of a repository """ enum RepoArchivedAuditEntryVisibility { """ The repository is visible only to users in the same business. """ INTERNAL """ The repository is visible only to those with explicit access. """ PRIVATE """ The repository is visible to everyone. """ PUBLIC } """ Audit log entry for a repo.change_merge_setting event. """ type RepoChangeMergeSettingAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the RepoChangeMergeSettingAuditEntry object """ id: ID! """ Whether the change was to enable (true) or disable (false) the merge type """ isEnabled: Boolean """ The merge method affected by the change """ mergeType: RepoChangeMergeSettingAuditEntryMergeType """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The repository associated with the action """ repository: Repository """ The name of the repository """ repositoryName: String """ The HTTP path for the repository """ repositoryResourcePath: URI """ The HTTP URL for the repository """ repositoryUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ The merge options available for pull requests to this repository. """ enum RepoChangeMergeSettingAuditEntryMergeType { """ The pull request is added to the base branch in a merge commit. """ MERGE """ Commits from the pull request are added onto the base branch individually without a merge commit. """ REBASE """ The pull request's commits are squashed into a single commit before they are merged to the base branch. """ SQUASH } """ Audit log entry for a repo.config.disable_anonymous_git_access event. """ type RepoConfigDisableAnonymousGitAccessAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the RepoConfigDisableAnonymousGitAccessAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The repository associated with the action """ repository: Repository """ The name of the repository """ repositoryName: String """ The HTTP path for the repository """ repositoryResourcePath: URI """ The HTTP URL for the repository """ repositoryUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a repo.config.disable_collaborators_only event. """ type RepoConfigDisableCollaboratorsOnlyAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the RepoConfigDisableCollaboratorsOnlyAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The repository associated with the action """ repository: Repository """ The name of the repository """ repositoryName: String """ The HTTP path for the repository """ repositoryResourcePath: URI """ The HTTP URL for the repository """ repositoryUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a repo.config.disable_contributors_only event. """ type RepoConfigDisableContributorsOnlyAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the RepoConfigDisableContributorsOnlyAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The repository associated with the action """ repository: Repository """ The name of the repository """ repositoryName: String """ The HTTP path for the repository """ repositoryResourcePath: URI """ The HTTP URL for the repository """ repositoryUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a repo.config.disable_sockpuppet_disallowed event. """ type RepoConfigDisableSockpuppetDisallowedAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the RepoConfigDisableSockpuppetDisallowedAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The repository associated with the action """ repository: Repository """ The name of the repository """ repositoryName: String """ The HTTP path for the repository """ repositoryResourcePath: URI """ The HTTP URL for the repository """ repositoryUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a repo.config.enable_anonymous_git_access event. """ type RepoConfigEnableAnonymousGitAccessAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the RepoConfigEnableAnonymousGitAccessAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The repository associated with the action """ repository: Repository """ The name of the repository """ repositoryName: String """ The HTTP path for the repository """ repositoryResourcePath: URI """ The HTTP URL for the repository """ repositoryUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a repo.config.enable_collaborators_only event. """ type RepoConfigEnableCollaboratorsOnlyAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the RepoConfigEnableCollaboratorsOnlyAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The repository associated with the action """ repository: Repository """ The name of the repository """ repositoryName: String """ The HTTP path for the repository """ repositoryResourcePath: URI """ The HTTP URL for the repository """ repositoryUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a repo.config.enable_contributors_only event. """ type RepoConfigEnableContributorsOnlyAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the RepoConfigEnableContributorsOnlyAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The repository associated with the action """ repository: Repository """ The name of the repository """ repositoryName: String """ The HTTP path for the repository """ repositoryResourcePath: URI """ The HTTP URL for the repository """ repositoryUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a repo.config.enable_sockpuppet_disallowed event. """ type RepoConfigEnableSockpuppetDisallowedAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the RepoConfigEnableSockpuppetDisallowedAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The repository associated with the action """ repository: Repository """ The name of the repository """ repositoryName: String """ The HTTP path for the repository """ repositoryResourcePath: URI """ The HTTP URL for the repository """ repositoryUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a repo.config.lock_anonymous_git_access event. """ type RepoConfigLockAnonymousGitAccessAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the RepoConfigLockAnonymousGitAccessAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The repository associated with the action """ repository: Repository """ The name of the repository """ repositoryName: String """ The HTTP path for the repository """ repositoryResourcePath: URI """ The HTTP URL for the repository """ repositoryUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a repo.config.unlock_anonymous_git_access event. """ type RepoConfigUnlockAnonymousGitAccessAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the RepoConfigUnlockAnonymousGitAccessAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The repository associated with the action """ repository: Repository """ The name of the repository """ repositoryName: String """ The HTTP path for the repository """ repositoryResourcePath: URI """ The HTTP URL for the repository """ repositoryUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a repo.create event. """ type RepoCreateAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The name of the parent repository for this forked repository. """ forkParentName: String """ The name of the root repository for this network. """ forkSourceName: String """ The Node ID of the RepoCreateAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The repository associated with the action """ repository: Repository """ The name of the repository """ repositoryName: String """ The HTTP path for the repository """ repositoryResourcePath: URI """ The HTTP URL for the repository """ repositoryUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI """ The visibility of the repository """ visibility: RepoCreateAuditEntryVisibility } """ The privacy of a repository """ enum RepoCreateAuditEntryVisibility { """ The repository is visible only to users in the same business. """ INTERNAL """ The repository is visible only to those with explicit access. """ PRIVATE """ The repository is visible to everyone. """ PUBLIC } """ Audit log entry for a repo.destroy event. """ type RepoDestroyAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the RepoDestroyAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The repository associated with the action """ repository: Repository """ The name of the repository """ repositoryName: String """ The HTTP path for the repository """ repositoryResourcePath: URI """ The HTTP URL for the repository """ repositoryUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI """ The visibility of the repository """ visibility: RepoDestroyAuditEntryVisibility } """ The privacy of a repository """ enum RepoDestroyAuditEntryVisibility { """ The repository is visible only to users in the same business. """ INTERNAL """ The repository is visible only to those with explicit access. """ PRIVATE """ The repository is visible to everyone. """ PUBLIC } """ Audit log entry for a repo.remove_member event. """ type RepoRemoveMemberAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the RepoRemoveMemberAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The repository associated with the action """ repository: Repository """ The name of the repository """ repositoryName: String """ The HTTP path for the repository """ repositoryResourcePath: URI """ The HTTP URL for the repository """ repositoryUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI """ The visibility of the repository """ visibility: RepoRemoveMemberAuditEntryVisibility } """ The privacy of a repository """ enum RepoRemoveMemberAuditEntryVisibility { """ The repository is visible only to users in the same business. """ INTERNAL """ The repository is visible only to those with explicit access. """ PRIVATE """ The repository is visible to everyone. """ PUBLIC } """ Audit log entry for a repo.remove_topic event. """ type RepoRemoveTopicAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData & TopicAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the RepoRemoveTopicAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The repository associated with the action """ repository: Repository """ The name of the repository """ repositoryName: String """ The HTTP path for the repository """ repositoryResourcePath: URI """ The HTTP URL for the repository """ repositoryUrl: URI """ The name of the topic added to the repository """ topic: Topic """ The name of the topic added to the repository """ topicName: String """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ The reasons a piece of content can be reported or minimized. """ enum ReportedContentClassifiers { """ An abusive or harassing piece of content """ ABUSE """ A duplicated piece of content """ DUPLICATE """ An irrelevant piece of content """ OFF_TOPIC """ An outdated piece of content """ OUTDATED """ The content has been resolved """ RESOLVED """ A spammy piece of content """ SPAM } """ A repository contains the content for a project. """ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent & RepositoryInfo & Starrable & Subscribable & UniformResourceLocatable { """ Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. """ allowUpdateBranch: Boolean! """ Identifies the date and time when the repository was archived. """ archivedAt: DateTime """ A list of users that can be assigned to issues in this repository. """ assignableUsers( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Filters users with query on user name and login. """ query: String ): UserConnection! """ Whether or not Auto-merge can be enabled on pull requests in this repository. """ autoMergeAllowed: Boolean! """ A list of branch protection rules for this repository. """ branchProtectionRules( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): BranchProtectionRuleConnection! """ Returns the code of conduct for this repository """ codeOfConduct: CodeOfConduct """ Information extracted from the repository's `CODEOWNERS` file. """ codeowners( """ The ref name used to return the associated `CODEOWNERS` file. """ refName: String ): RepositoryCodeowners """ A list of collaborators associated with the repository. """ collaborators( """ Collaborators affiliation level with a repository. """ affiliation: CollaboratorAffiliation """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ The login of one specific collaborator. """ login: String """ Filters users with query on user name and login """ query: String ): RepositoryCollaboratorConnection """ A list of commit comments associated with the repository. """ commitComments( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): CommitCommentConnection! """ Returns a list of contact links associated to the repository """ contactLinks: [RepositoryContactLink!] """ Returns the contributing guidelines for this repository. """ contributingGuidelines: ContributingGuidelines """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the primary key from the database. """ databaseId: Int """ The Ref associated with the repository's default branch. """ defaultBranchRef: Ref """ Whether or not branches are automatically deleted when merged in this repository. """ deleteBranchOnMerge: Boolean! """ A list of dependency manifests contained in the repository """ dependencyGraphManifests( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Cursor to paginate dependencies """ dependenciesAfter: String """ Number of dependencies to fetch """ dependenciesFirst: Int """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Flag to scope to only manifests with dependencies """ withDependencies: Boolean ): DependencyGraphManifestConnection @preview(toggledBy: "hawkgirl-preview") """ A list of deploy keys that are on this repository. """ deployKeys( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): DeployKeyConnection! """ Deployments associated with the repository """ deployments( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Environments to list deployments for """ environments: [String!] """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for deployments returned from the connection. """ orderBy: DeploymentOrder = {field: CREATED_AT, direction: ASC} ): DeploymentConnection! """ The description of the repository. """ description: String """ The description of the repository rendered to HTML. """ descriptionHTML: HTML! """ Returns a single discussion from the current repository by number. """ discussion( """ The number for the discussion to be returned. """ number: Int! ): Discussion """ A list of discussion categories that are available in the repository. """ discussionCategories( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Filter by categories that are assignable by the viewer. """ filterByAssignable: Boolean = false """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): DiscussionCategoryConnection! """ A discussion category by slug. """ discussionCategory( """ The slug of the discussion category to be returned. """ slug: String! ): DiscussionCategory """ A list of discussions that have been opened in the repository. """ discussions( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Only show answered or unanswered discussions """ answered: Boolean = null """ Returns the elements in the list that come before the specified cursor. """ before: String """ Only include discussions that belong to the category with this ID. """ categoryId: ID = null """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for discussions returned from the connection. """ orderBy: DiscussionOrder = {field: UPDATED_AT, direction: DESC} """ A list of states to filter the discussions by. """ states: [DiscussionState!] = [] ): DiscussionConnection! """ The number of kilobytes this repository occupies on disk. """ diskUsage: Int """ Returns a single active environment from the current repository by name. """ environment( """ The name of the environment to be returned. """ name: String! ): Environment """ A list of environments that are in this repository. """ environments( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for the environments """ orderBy: Environments = {field: NAME, direction: ASC} ): EnvironmentConnection! """ Returns how many forks there are of this repository in the whole network. """ forkCount: Int! """ Whether this repository allows forks. """ forkingAllowed: Boolean! """ A list of direct forked repositories. """ forks( """ Array of viewer's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the current viewer owns. """ affiliations: [RepositoryAffiliation] """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ If non-null, filters repositories according to whether they have issues enabled """ hasIssuesEnabled: Boolean """ If non-null, filters repositories according to whether they have been locked """ isLocked: Boolean """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for repositories returned from the connection """ orderBy: RepositoryOrder """ Array of owner's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the organization or user being viewed owns. """ ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR] """ If non-null, filters repositories according to privacy """ privacy: RepositoryPrivacy ): RepositoryConnection! """ The funding links for this repository """ fundingLinks: [FundingLink!]! """ Indicates if the repository has the Discussions feature enabled. """ hasDiscussionsEnabled: Boolean! """ Indicates if the repository has issues feature enabled. """ hasIssuesEnabled: Boolean! """ Indicates if the repository has the Projects feature enabled. """ hasProjectsEnabled: Boolean! """ Whether vulnerability alerts are enabled for the repository. """ hasVulnerabilityAlertsEnabled: Boolean! """ Indicates if the repository has wiki feature enabled. """ hasWikiEnabled: Boolean! """ The repository's URL. """ homepageUrl: URI """ The Node ID of the Repository object """ id: ID! """ The interaction ability settings for this repository. """ interactionAbility: RepositoryInteractionAbility """ Indicates if the repository is unmaintained. """ isArchived: Boolean! """ Returns true if blank issue creation is allowed """ isBlankIssuesEnabled: Boolean! """ Returns whether or not this repository disabled. """ isDisabled: Boolean! """ Returns whether or not this repository is empty. """ isEmpty: Boolean! """ Identifies if the repository is a fork. """ isFork: Boolean! """ Indicates if a repository is either owned by an organization, or is a private fork of an organization repository. """ isInOrganization: Boolean! """ Indicates if the repository has been locked or not. """ isLocked: Boolean! """ Identifies if the repository is a mirror. """ isMirror: Boolean! """ Identifies if the repository is private or internal. """ isPrivate: Boolean! """ Returns true if this repository has a security policy """ isSecurityPolicyEnabled: Boolean """ Identifies if the repository is a template that can be used to generate new repositories. """ isTemplate: Boolean! """ Is this repository a user configuration repository? """ isUserConfigurationRepository: Boolean! """ Returns a single issue from the current repository by number. """ issue( """ The number for the issue to be returned. """ number: Int! ): Issue """ Returns a single issue-like object from the current repository by number. """ issueOrPullRequest( """ The number for the issue to be returned. """ number: Int! ): IssueOrPullRequest """ Returns a list of issue templates associated to the repository """ issueTemplates: [IssueTemplate!] """ A list of issues that have been opened in the repository. """ issues( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Filtering options for issues returned from the connection. """ filterBy: IssueFilters """ Returns the first _n_ elements from the list. """ first: Int """ A list of label names to filter the pull requests by. """ labels: [String!] """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for issues returned from the connection. """ orderBy: IssueOrder """ A list of states to filter the issues by. """ states: [IssueState!] ): IssueConnection! """ Returns a single label by name """ label( """ Label name """ name: String! ): Label """ A list of labels associated with the repository. """ labels( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for labels returned from the connection. """ orderBy: LabelOrder = {field: CREATED_AT, direction: ASC} """ If provided, searches labels by name and description. """ query: String ): LabelConnection """ A list containing a breakdown of the language composition of the repository. """ languages( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Order for connection """ orderBy: LanguageOrder ): LanguageConnection """ Get the latest release for the repository if one exists. """ latestRelease: Release """ The license associated with the repository """ licenseInfo: License """ The reason the repository has been locked. """ lockReason: RepositoryLockReason """ A list of Users that can be mentioned in the context of the repository. """ mentionableUsers( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Filters users with query on user name and login """ query: String ): UserConnection! """ Whether or not PRs are merged with a merge commit on this repository. """ mergeCommitAllowed: Boolean! """ How the default commit message will be generated when merging a pull request. """ mergeCommitMessage: MergeCommitMessage! """ How the default commit title will be generated when merging a pull request. """ mergeCommitTitle: MergeCommitTitle! """ The merge queue for a specified branch, otherwise the default branch if not provided. """ mergeQueue( """ The name of the branch to get the merge queue for. Case sensitive. """ branch: String ): MergeQueue """ Returns a single milestone from the current repository by number. """ milestone( """ The number for the milestone to be returned. """ number: Int! ): Milestone """ A list of milestones associated with the repository. """ milestones( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for milestones. """ orderBy: MilestoneOrder """ Filters milestones with a query on the title """ query: String """ Filter by the state of the milestones. """ states: [MilestoneState!] ): MilestoneConnection """ The repository's original mirror URL. """ mirrorUrl: URI """ The name of the repository. """ name: String! """ The repository's name with owner. """ nameWithOwner: String! """ A Git object in the repository """ object( """ A Git revision expression suitable for rev-parse """ expression: String """ The Git object ID """ oid: GitObjectID ): GitObject """ The image used to represent this repository in Open Graph data. """ openGraphImageUrl: URI! """ The User owner of the repository. """ owner: RepositoryOwner! """ A list of packages under the owner. """ packages( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Find packages by their names. """ names: [String] """ Ordering of the returned packages. """ orderBy: PackageOrder = {field: CREATED_AT, direction: DESC} """ Filter registry package by type. """ packageType: PackageType """ Find packages in a repository by ID. """ repositoryId: ID ): PackageConnection! """ The repository parent, if this is a fork. """ parent: Repository """ A list of discussions that have been pinned in this repository. """ pinnedDiscussions( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): PinnedDiscussionConnection! """ A list of pinned issues for this repository. """ pinnedIssues( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): PinnedIssueConnection """ The primary language of the repository's code. """ primaryLanguage: Language """ Find project by number. """ project( """ The project number to find. """ number: Int! ): Project """ Finds and returns the Project according to the provided Project number. """ projectV2( """ The Project number. """ number: Int! ): ProjectV2 """ A list of projects under the owner. """ projects( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for projects returned from the connection """ orderBy: ProjectOrder """ Query to search projects by, currently only searching by name. """ search: String """ A list of states to filter the projects by. """ states: [ProjectState!] ): ProjectConnection! """ The HTTP path listing the repository's projects """ projectsResourcePath: URI! """ The HTTP URL listing the repository's projects """ projectsUrl: URI! """ List of projects linked to this repository. """ projectsV2( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ How to order the returned projects. """ orderBy: ProjectV2Order = {field: NUMBER, direction: DESC} """ A project to search for linked to the repo. """ query: String ): ProjectV2Connection! """ Returns a single pull request from the current repository by number. """ pullRequest( """ The number for the pull request to be returned. """ number: Int! ): PullRequest """ Returns a list of pull request templates associated to the repository """ pullRequestTemplates: [PullRequestTemplate!] """ A list of pull requests that have been opened in the repository. """ pullRequests( """ Returns the elements in the list that come after the specified cursor. """ after: String """ The base ref name to filter the pull requests by. """ baseRefName: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ The head ref name to filter the pull requests by. """ headRefName: String """ A list of label names to filter the pull requests by. """ labels: [String!] """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for pull requests returned from the connection. """ orderBy: IssueOrder """ A list of states to filter the pull requests by. """ states: [PullRequestState!] ): PullRequestConnection! """ Identifies the date and time when the repository was last pushed to. """ pushedAt: DateTime """ Whether or not rebase-merging is enabled on this repository. """ rebaseMergeAllowed: Boolean! """ Recent projects that this user has modified in the context of the owner. """ recentProjects( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): ProjectV2Connection! """ Fetch a given ref from the repository """ ref( """ The ref to retrieve. Fully qualified matches are checked in order (`refs/heads/master`) before falling back onto checks for short name matches (`master`). """ qualifiedName: String! ): Ref """ Fetch a list of refs from the repository """ refs( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ DEPRECATED: use orderBy. The ordering direction. """ direction: OrderDirection """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for refs returned from the connection. """ orderBy: RefOrder """ Filters refs with query on name """ query: String """ A ref name prefix like `refs/heads/`, `refs/tags/`, etc. """ refPrefix: String! ): RefConnection """ Lookup a single release given various criteria. """ release( """ The name of the Tag the Release was created from """ tagName: String! ): Release """ List of releases which are dependent on this repository. """ releases( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Order for connection """ orderBy: ReleaseOrder ): ReleaseConnection! """ A list of applied repository-topic associations for this repository. """ repositoryTopics( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): RepositoryTopicConnection! """ The HTTP path for this repository """ resourcePath: URI! """ Returns a single ruleset from the current repository by ID. """ ruleset( """ The ID of the ruleset to be returned. """ databaseId: Int! """ Include rulesets configured at higher levels that apply to this repository """ includeParents: Boolean = true ): RepositoryRuleset """ A list of rulesets for this repository. """ rulesets( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Return rulesets configured at higher levels that apply to this repository """ includeParents: Boolean = true """ Returns the last _n_ elements from the list. """ last: Int ): RepositoryRulesetConnection """ The security policy URL. """ securityPolicyUrl: URI """ A description of the repository, rendered to HTML without any links in it. """ shortDescriptionHTML( """ How many characters to return. """ limit: Int = 200 ): HTML! """ Whether or not squash-merging is enabled on this repository. """ squashMergeAllowed: Boolean! """ How the default commit message will be generated when squash merging a pull request. """ squashMergeCommitMessage: SquashMergeCommitMessage! """ How the default commit title will be generated when squash merging a pull request. """ squashMergeCommitTitle: SquashMergeCommitTitle! """ Whether a squash merge commit can use the pull request title as default. """ squashPrTitleUsedAsDefault: Boolean! @deprecated( reason: "`squashPrTitleUsedAsDefault` will be removed. Use `Repository.squashMergeCommitTitle` instead. Removal on 2023-04-01 UTC." ) """ The SSH URL to clone this repository """ sshUrl: GitSSHRemote! """ Returns a count of how many stargazers there are on this object """ stargazerCount: Int! """ A list of users who have starred this starrable. """ stargazers( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Order for connection """ orderBy: StarOrder ): StargazerConnection! """ Returns a list of all submodules in this repository parsed from the .gitmodules file as of the default branch's HEAD commit. """ submodules( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): SubmoduleConnection! """ Temporary authentication token for cloning this repository. """ tempCloneToken: String """ The repository from which this repository was generated, if any. """ templateRepository: Repository """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The HTTP URL for this repository """ url: URI! """ Whether this repository has a custom image to use with Open Graph as opposed to being represented by the owner's avatar. """ usesCustomOpenGraphImage: Boolean! """ Indicates whether the viewer has admin permissions on this repository. """ viewerCanAdminister: Boolean! """ Can the current viewer create new projects on this owner. """ viewerCanCreateProjects: Boolean! """ Check if the viewer is able to change their subscription status for the repository. """ viewerCanSubscribe: Boolean! """ Indicates whether the viewer can update the topics of this repository. """ viewerCanUpdateTopics: Boolean! """ The last commit email for the viewer. """ viewerDefaultCommitEmail: String """ The last used merge method by the viewer or the default for the repository. """ viewerDefaultMergeMethod: PullRequestMergeMethod! """ Returns a boolean indicating whether the viewing user has starred this starrable. """ viewerHasStarred: Boolean! """ The users permission level on the repository. Will return null if authenticated as an GitHub App. """ viewerPermission: RepositoryPermission """ A list of emails this viewer can commit with. """ viewerPossibleCommitEmails: [String!] """ Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. """ viewerSubscription: SubscriptionState """ Indicates the repository's visibility level. """ visibility: RepositoryVisibility! """ Returns a single vulnerability alert from the current repository by number. """ vulnerabilityAlert( """ The number for the vulnerability alert to be returned. """ number: Int! ): RepositoryVulnerabilityAlert """ A list of vulnerability alerts that are on this repository. """ vulnerabilityAlerts( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Filter by the scope of the alert's dependency """ dependencyScopes: [RepositoryVulnerabilityAlertDependencyScope!] """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Filter by the state of the alert """ states: [RepositoryVulnerabilityAlertState!] ): RepositoryVulnerabilityAlertConnection """ A list of users watching the repository. """ watchers( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): UserConnection! """ Whether contributors are required to sign off on web-based commits in this repository. """ webCommitSignoffRequired: Boolean! } """ The affiliation of a user to a repository """ enum RepositoryAffiliation { """ Repositories that the user has been added to as a collaborator. """ COLLABORATOR """ Repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on. """ ORGANIZATION_MEMBER """ Repositories that are owned by the authenticated user. """ OWNER } """ Metadata for an audit entry with action repo.* """ interface RepositoryAuditEntryData { """ The repository associated with the action """ repository: Repository """ The name of the repository """ repositoryName: String """ The HTTP path for the repository """ repositoryResourcePath: URI """ The HTTP URL for the repository """ repositoryUrl: URI } """ Information extracted from a repository's `CODEOWNERS` file. """ type RepositoryCodeowners { """ Any problems that were encountered while parsing the `CODEOWNERS` file. """ errors: [RepositoryCodeownersError!]! } """ An error in a `CODEOWNERS` file. """ type RepositoryCodeownersError { """ The column number where the error occurs. """ column: Int! """ A short string describing the type of error. """ kind: String! """ The line number where the error occurs. """ line: Int! """ A complete description of the error, combining information from other fields. """ message: String! """ The path to the file when the error occurs. """ path: String! """ The content of the line where the error occurs. """ source: String! """ A suggestion of how to fix the error. """ suggestion: String } """ The connection type for User. """ type RepositoryCollaboratorConnection { """ A list of edges. """ edges: [RepositoryCollaboratorEdge] """ A list of nodes. """ nodes: [User] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ Represents a user who is a collaborator of a repository. """ type RepositoryCollaboratorEdge { """ A cursor for use in pagination. """ cursor: String! node: User! """ The permission the user has on the repository. """ permission: RepositoryPermission! """ A list of sources for the user's access to the repository. """ permissionSources: [PermissionSource!] } """ A list of repositories owned by the subject. """ type RepositoryConnection { """ A list of edges. """ edges: [RepositoryEdge] """ A list of nodes. """ nodes: [Repository] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! """ The total size in kilobytes of all repositories in the connection. Value will never be larger than max 32-bit signed integer. """ totalDiskUsage: Int! } """ A repository contact link. """ type RepositoryContactLink { """ The contact link purpose. """ about: String! """ The contact link name. """ name: String! """ The contact link URL. """ url: URI! } """ The reason a repository is listed as 'contributed'. """ enum RepositoryContributionType { """ Created a commit """ COMMIT """ Created an issue """ ISSUE """ Created a pull request """ PULL_REQUEST """ Reviewed a pull request """ PULL_REQUEST_REVIEW """ Created the repository """ REPOSITORY } """ Represents an author of discussions in repositories. """ interface RepositoryDiscussionAuthor { """ Discussions this user has started. """ repositoryDiscussions( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Filter discussions to only those that have been answered or not. Defaults to including both answered and unanswered discussions. """ answered: Boolean = null """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for discussions returned from the connection. """ orderBy: DiscussionOrder = {field: CREATED_AT, direction: DESC} """ Filter discussions to only those in a specific repository. """ repositoryId: ID """ A list of states to filter the discussions by. """ states: [DiscussionState!] = [] ): DiscussionConnection! } """ Represents an author of discussion comments in repositories. """ interface RepositoryDiscussionCommentAuthor { """ Discussion comments this user has authored. """ repositoryDiscussionComments( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Filter discussion comments to only those that were marked as the answer """ onlyAnswers: Boolean = false """ Filter discussion comments to only those in a specific repository. """ repositoryId: ID ): DiscussionCommentConnection! } """ An edge in a connection. """ type RepositoryEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: Repository } """ Parameters to be used for the repository_id condition """ type RepositoryIdConditionTarget { """ One of these repo IDs must match the repo. """ repositoryIds: [ID!]! } """ Parameters to be used for the repository_id condition """ input RepositoryIdConditionTargetInput { """ One of these repo IDs must match the repo. """ repositoryIds: [ID!]! } """ A subset of repository info. """ interface RepositoryInfo { """ Identifies the date and time when the repository was archived. """ archivedAt: DateTime """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The description of the repository. """ description: String """ The description of the repository rendered to HTML. """ descriptionHTML: HTML! """ Returns how many forks there are of this repository in the whole network. """ forkCount: Int! """ Indicates if the repository has the Discussions feature enabled. """ hasDiscussionsEnabled: Boolean! """ Indicates if the repository has issues feature enabled. """ hasIssuesEnabled: Boolean! """ Indicates if the repository has the Projects feature enabled. """ hasProjectsEnabled: Boolean! """ Indicates if the repository has wiki feature enabled. """ hasWikiEnabled: Boolean! """ The repository's URL. """ homepageUrl: URI """ Indicates if the repository is unmaintained. """ isArchived: Boolean! """ Identifies if the repository is a fork. """ isFork: Boolean! """ Indicates if a repository is either owned by an organization, or is a private fork of an organization repository. """ isInOrganization: Boolean! """ Indicates if the repository has been locked or not. """ isLocked: Boolean! """ Identifies if the repository is a mirror. """ isMirror: Boolean! """ Identifies if the repository is private or internal. """ isPrivate: Boolean! """ Identifies if the repository is a template that can be used to generate new repositories. """ isTemplate: Boolean! """ The license associated with the repository """ licenseInfo: License """ The reason the repository has been locked. """ lockReason: RepositoryLockReason """ The repository's original mirror URL. """ mirrorUrl: URI """ The name of the repository. """ name: String! """ The repository's name with owner. """ nameWithOwner: String! """ The image used to represent this repository in Open Graph data. """ openGraphImageUrl: URI! """ The User owner of the repository. """ owner: RepositoryOwner! """ Identifies the date and time when the repository was last pushed to. """ pushedAt: DateTime """ The HTTP path for this repository """ resourcePath: URI! """ A description of the repository, rendered to HTML without any links in it. """ shortDescriptionHTML( """ How many characters to return. """ limit: Int = 200 ): HTML! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The HTTP URL for this repository """ url: URI! """ Whether this repository has a custom image to use with Open Graph as opposed to being represented by the owner's avatar. """ usesCustomOpenGraphImage: Boolean! """ Indicates the repository's visibility level. """ visibility: RepositoryVisibility! } """ Repository interaction limit that applies to this object. """ type RepositoryInteractionAbility { """ The time the currently active limit expires. """ expiresAt: DateTime """ The current limit that is enabled on this object. """ limit: RepositoryInteractionLimit! """ The origin of the currently active interaction limit. """ origin: RepositoryInteractionLimitOrigin! } """ A repository interaction limit. """ enum RepositoryInteractionLimit { """ Users that are not collaborators will not be able to interact with the repository. """ COLLABORATORS_ONLY """ Users that have not previously committed to a repository’s default branch will be unable to interact with the repository. """ CONTRIBUTORS_ONLY """ Users that have recently created their account will be unable to interact with the repository. """ EXISTING_USERS """ No interaction limits are enabled. """ NO_LIMIT } """ The length for a repository interaction limit to be enabled for. """ enum RepositoryInteractionLimitExpiry { """ The interaction limit will expire after 1 day. """ ONE_DAY """ The interaction limit will expire after 1 month. """ ONE_MONTH """ The interaction limit will expire after 1 week. """ ONE_WEEK """ The interaction limit will expire after 6 months. """ SIX_MONTHS """ The interaction limit will expire after 3 days. """ THREE_DAYS } """ Indicates where an interaction limit is configured. """ enum RepositoryInteractionLimitOrigin { """ A limit that is configured at the organization level. """ ORGANIZATION """ A limit that is configured at the repository level. """ REPOSITORY """ A limit that is configured at the user-wide level. """ USER } """ An invitation for a user to be added to a repository. """ type RepositoryInvitation implements Node { """ The email address that received the invitation. """ email: String """ The Node ID of the RepositoryInvitation object """ id: ID! """ The user who received the invitation. """ invitee: User """ The user who created the invitation. """ inviter: User! """ The permalink for this repository invitation. """ permalink: URI! """ The permission granted on this repository by this invitation. """ permission: RepositoryPermission! """ The Repository the user is invited to. """ repository: RepositoryInfo } """ A list of repository invitations. """ type RepositoryInvitationConnection { """ A list of edges. """ edges: [RepositoryInvitationEdge] """ A list of nodes. """ nodes: [RepositoryInvitation] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type RepositoryInvitationEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: RepositoryInvitation } """ Ordering options for repository invitation connections. """ input RepositoryInvitationOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order repository invitations by. """ field: RepositoryInvitationOrderField! } """ Properties by which repository invitation connections can be ordered. """ enum RepositoryInvitationOrderField { """ Order repository invitations by creation time """ CREATED_AT } """ The possible reasons a given repository could be in a locked state. """ enum RepositoryLockReason { """ The repository is locked due to a billing related reason. """ BILLING """ The repository is locked due to a migration. """ MIGRATING """ The repository is locked due to a move. """ MOVING """ The repository is locked due to a rename. """ RENAME """ The repository is locked due to a trade controls related reason. """ TRADE_RESTRICTION """ The repository is locked due to an ownership transfer. """ TRANSFERRING_OWNERSHIP } """ A GitHub Enterprise Importer (GEI) repository migration. """ type RepositoryMigration implements Migration & Node { """ The migration flag to continue on error. """ continueOnError: Boolean! """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the primary key from the database. """ databaseId: String """ The reason the migration failed. """ failureReason: String """ The Node ID of the RepositoryMigration object """ id: ID! """ The URL for the migration log (expires 1 day after migration completes). """ migrationLogUrl: URI """ The migration source. """ migrationSource: MigrationSource! """ The target repository name. """ repositoryName: String! """ The migration source URL, for example `https://github.com` or `https://monalisa.ghe.com`. """ sourceUrl: URI! """ The migration state. """ state: MigrationState! """ The number of warnings encountered for this migration. To review the warnings, check the [Migration Log](https://docs.github.com/en/migrations/using-github-enterprise-importer/completing-your-migration-with-github-enterprise-importer/accessing-your-migration-logs-for-github-enterprise-importer). """ warningsCount: Int! } """ The connection type for RepositoryMigration. """ type RepositoryMigrationConnection { """ A list of edges. """ edges: [RepositoryMigrationEdge] """ A list of nodes. """ nodes: [RepositoryMigration] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ Represents a repository migration. """ type RepositoryMigrationEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: RepositoryMigration } """ Ordering options for repository migrations. """ input RepositoryMigrationOrder { """ The ordering direction. """ direction: RepositoryMigrationOrderDirection! """ The field to order repository migrations by. """ field: RepositoryMigrationOrderField! } """ Possible directions in which to order a list of repository migrations when provided an `orderBy` argument. """ enum RepositoryMigrationOrderDirection { """ Specifies an ascending order for a given `orderBy` argument. """ ASC """ Specifies a descending order for a given `orderBy` argument. """ DESC } """ Properties by which repository migrations can be ordered. """ enum RepositoryMigrationOrderField { """ Order mannequins why when they were created. """ CREATED_AT } """ Parameters to be used for the repository_name condition """ type RepositoryNameConditionTarget { """ Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match. """ exclude: [String!]! """ Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all repositories. """ include: [String!]! """ Target changes that match these patterns will be prevented except by those with bypass permissions. """ protected: Boolean! } """ Parameters to be used for the repository_name condition """ input RepositoryNameConditionTargetInput { """ Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match. """ exclude: [String!]! """ Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all repositories. """ include: [String!]! """ Target changes that match these patterns will be prevented except by those with bypass permissions. """ protected: Boolean } """ Represents a object that belongs to a repository. """ interface RepositoryNode { """ The repository associated with this node. """ repository: Repository! } """ Ordering options for repository connections """ input RepositoryOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order repositories by. """ field: RepositoryOrderField! } """ Properties by which repository connections can be ordered. """ enum RepositoryOrderField { """ Order repositories by creation time """ CREATED_AT """ Order repositories by name """ NAME """ Order repositories by push time """ PUSHED_AT """ Order repositories by number of stargazers """ STARGAZERS """ Order repositories by update time """ UPDATED_AT } """ Represents an owner of a Repository. """ interface RepositoryOwner { """ A URL pointing to the owner's public avatar. """ avatarUrl( """ The size of the resulting square image. """ size: Int ): URI! """ The Node ID of the RepositoryOwner object """ id: ID! """ The username used to login. """ login: String! """ A list of repositories that the user owns. """ repositories( """ Array of viewer's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the current viewer owns. """ affiliations: [RepositoryAffiliation] """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ If non-null, filters repositories according to whether they have issues enabled """ hasIssuesEnabled: Boolean """ If non-null, filters repositories according to whether they are archived and not maintained """ isArchived: Boolean """ If non-null, filters repositories according to whether they are forks of another repository """ isFork: Boolean """ If non-null, filters repositories according to whether they have been locked """ isLocked: Boolean """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for repositories returned from the connection """ orderBy: RepositoryOrder """ Array of owner's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the organization or user being viewed owns. """ ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR] """ If non-null, filters repositories according to privacy """ privacy: RepositoryPrivacy ): RepositoryConnection! """ Find Repository. """ repository( """ Follow repository renames. If disabled, a repository referenced by its old name will return an error. """ followRenames: Boolean = true """ Name of Repository to find. """ name: String! ): Repository """ The HTTP URL for the owner. """ resourcePath: URI! """ The HTTP URL for the owner. """ url: URI! } """ The access level to a repository """ enum RepositoryPermission { """ Can read, clone, and push to this repository. Can also manage issues, pull requests, and repository settings, including adding collaborators """ ADMIN """ Can read, clone, and push to this repository. They can also manage issues, pull requests, and some repository settings """ MAINTAIN """ Can read and clone this repository. Can also open and comment on issues and pull requests """ READ """ Can read and clone this repository. Can also manage issues and pull requests """ TRIAGE """ Can read, clone, and push to this repository. Can also manage issues and pull requests """ WRITE } """ The privacy of a repository """ enum RepositoryPrivacy { """ Private """ PRIVATE """ Public """ PUBLIC } """ A repository rule. """ type RepositoryRule implements Node { """ The Node ID of the RepositoryRule object """ id: ID! """ The parameters for this rule. """ parameters: RuleParameters """ The repository ruleset associated with this rule configuration """ repositoryRuleset: RepositoryRuleset """ The type of rule. """ type: RepositoryRuleType! } """ Set of conditions that determine if a ruleset will evaluate """ type RepositoryRuleConditions { """ Configuration for the ref_name condition """ refName: RefNameConditionTarget """ Configuration for the repository_id condition """ repositoryId: RepositoryIdConditionTarget """ Configuration for the repository_name condition """ repositoryName: RepositoryNameConditionTarget } """ Specifies the conditions required for a ruleset to evaluate """ input RepositoryRuleConditionsInput { """ Configuration for the ref_name condition """ refName: RefNameConditionTargetInput """ Configuration for the repository_id condition """ repositoryId: RepositoryIdConditionTargetInput """ Configuration for the repository_name condition """ repositoryName: RepositoryNameConditionTargetInput } """ The connection type for RepositoryRule. """ type RepositoryRuleConnection { """ A list of edges. """ edges: [RepositoryRuleEdge] """ A list of nodes. """ nodes: [RepositoryRule] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type RepositoryRuleEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: RepositoryRule } """ Specifies the attributes for a new or updated rule. """ input RepositoryRuleInput { """ Optional ID of this rule when updating """ id: ID @possibleTypes(concreteTypes: ["RepositoryRule"]) """ The parameters for the rule. """ parameters: RuleParametersInput """ The type of rule to create. """ type: RepositoryRuleType! } """ The rule types supported in rulesets """ enum RepositoryRuleType { """ Authorization """ AUTHORIZATION """ Branch name pattern """ BRANCH_NAME_PATTERN """ Committer email pattern """ COMMITTER_EMAIL_PATTERN """ Commit author email pattern """ COMMIT_AUTHOR_EMAIL_PATTERN """ Commit message pattern """ COMMIT_MESSAGE_PATTERN """ Only allow users with bypass permission to create matching refs. """ CREATION """ Only allow users with bypass permissions to delete matching refs. """ DELETION """ Branch is read-only. Users cannot push to the branch. """ LOCK_BRANCH """ Max ref updates """ MAX_REF_UPDATES """ Merges must be performed via a merge queue. """ MERGE_QUEUE """ Merge queue locked ref """ MERGE_QUEUE_LOCKED_REF """ Prevent users with push access from force pushing to refs. """ NON_FAST_FORWARD """ Require all commits be made to a non-target branch and submitted via a pull request before they can be merged. """ PULL_REQUEST """ Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule. """ REQUIRED_DEPLOYMENTS """ Prevent merge commits from being pushed to matching refs. """ REQUIRED_LINEAR_HISTORY """ When enabled, all conversations on code must be resolved before a pull request can be merged into a branch that matches this rule. """ REQUIRED_REVIEW_THREAD_RESOLUTION """ Commits pushed to matching refs must have verified signatures. """ REQUIRED_SIGNATURES """ Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass. """ REQUIRED_STATUS_CHECKS """ Require all commits be made to a non-target branch and submitted via a pull request and required workflow checks to pass before they can be merged. """ REQUIRED_WORKFLOW_STATUS_CHECKS """ Commits pushed to matching refs must have verified signatures. """ RULESET_REQUIRED_SIGNATURES """ Secret scanning """ SECRET_SCANNING """ Tag """ TAG """ Tag name pattern """ TAG_NAME_PATTERN """ Only allow users with bypass permission to update matching refs. """ UPDATE """ Require all changes made to a targeted branch to pass the specified workflows before they can be merged. """ WORKFLOWS """ Workflow files cannot be modified. """ WORKFLOW_UPDATES } """ A repository ruleset. """ type RepositoryRuleset implements Node { """ The actors that can bypass this ruleset """ bypassActors( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): RepositoryRulesetBypassActorConnection """ The set of conditions that must evaluate to true for this ruleset to apply """ conditions: RepositoryRuleConditions! """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the primary key from the database. """ databaseId: Int """ The enforcement level of this ruleset """ enforcement: RuleEnforcement! """ The Node ID of the RepositoryRuleset object """ id: ID! """ Name of the ruleset. """ name: String! """ List of rules. """ rules( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ The type of rule. """ type: RepositoryRuleType ): RepositoryRuleConnection """ Source of ruleset. """ source: RuleSource! """ Target of the ruleset. """ target: RepositoryRulesetTarget """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! } """ A team or app that has the ability to bypass a rules defined on a ruleset """ type RepositoryRulesetBypassActor implements Node { """ The actor that can bypass rules. """ actor: BypassActor """ The mode for the bypass actor """ bypassMode: RepositoryRulesetBypassActorBypassMode """ The Node ID of the RepositoryRulesetBypassActor object """ id: ID! """ This actor represents the ability for an organization owner to bypass """ organizationAdmin: Boolean! """ If the actor is a repository role, the repository role's ID that can bypass """ repositoryRoleDatabaseId: Int """ If the actor is a repository role, the repository role's name that can bypass """ repositoryRoleName: String """ Identifies the ruleset associated with the allowed actor """ repositoryRuleset: RepositoryRuleset } """ The bypass mode for a specific actor on a ruleset. """ enum RepositoryRulesetBypassActorBypassMode { """ The actor can always bypass rules """ ALWAYS """ The actor can only bypass rules via a pull request """ PULL_REQUEST } """ The connection type for RepositoryRulesetBypassActor. """ type RepositoryRulesetBypassActorConnection { """ A list of edges. """ edges: [RepositoryRulesetBypassActorEdge] """ A list of nodes. """ nodes: [RepositoryRulesetBypassActor] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type RepositoryRulesetBypassActorEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: RepositoryRulesetBypassActor } """ Specifies the attributes for a new or updated ruleset bypass actor. Only one of `actor_id`, `repository_role_database_id`, or `organization_admin` should be specified. """ input RepositoryRulesetBypassActorInput { """ For Team and Integration bypasses, the Team or Integration ID """ actorId: ID """ The bypass mode for this actor. """ bypassMode: RepositoryRulesetBypassActorBypassMode! """ For organization owner bypasses, true """ organizationAdmin: Boolean """ For role bypasses, the role database ID """ repositoryRoleDatabaseId: Int } """ The connection type for RepositoryRuleset. """ type RepositoryRulesetConnection { """ A list of edges. """ edges: [RepositoryRulesetEdge] """ A list of nodes. """ nodes: [RepositoryRuleset] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type RepositoryRulesetEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: RepositoryRuleset } """ The targets supported for rulesets """ enum RepositoryRulesetTarget { """ Branch """ BRANCH """ Tag """ TAG } """ A repository-topic connects a repository to a topic. """ type RepositoryTopic implements Node & UniformResourceLocatable { """ The Node ID of the RepositoryTopic object """ id: ID! """ The HTTP path for this repository-topic. """ resourcePath: URI! """ The topic. """ topic: Topic! """ The HTTP URL for this repository-topic. """ url: URI! } """ The connection type for RepositoryTopic. """ type RepositoryTopicConnection { """ A list of edges. """ edges: [RepositoryTopicEdge] """ A list of nodes. """ nodes: [RepositoryTopic] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type RepositoryTopicEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: RepositoryTopic } """ The repository's visibility level. """ enum RepositoryVisibility { """ The repository is visible only to users in the same business. """ INTERNAL """ The repository is visible only to those with explicit access. """ PRIVATE """ The repository is visible to everyone. """ PUBLIC } """ Audit log entry for a repository_visibility_change.disable event. """ type RepositoryVisibilityChangeDisableAuditEntry implements AuditEntry & EnterpriseAuditEntryData & Node & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The HTTP path for this enterprise. """ enterpriseResourcePath: URI """ The slug of the enterprise. """ enterpriseSlug: String """ The HTTP URL for this enterprise. """ enterpriseUrl: URI """ The Node ID of the RepositoryVisibilityChangeDisableAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a repository_visibility_change.enable event. """ type RepositoryVisibilityChangeEnableAuditEntry implements AuditEntry & EnterpriseAuditEntryData & Node & OrganizationAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The HTTP path for this enterprise. """ enterpriseResourcePath: URI """ The slug of the enterprise. """ enterpriseSlug: String """ The HTTP URL for this enterprise. """ enterpriseUrl: URI """ The Node ID of the RepositoryVisibilityChangeEnableAuditEntry object """ id: ID! """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ A Dependabot alert for a repository with a dependency affected by a security vulnerability. """ type RepositoryVulnerabilityAlert implements Node & RepositoryNode { """ When was the alert auto-dismissed? """ autoDismissedAt: DateTime """ When was the alert created? """ createdAt: DateTime! """ The associated Dependabot update """ dependabotUpdate: DependabotUpdate """ The scope of an alert's dependency """ dependencyScope: RepositoryVulnerabilityAlertDependencyScope """ Comment explaining the reason the alert was dismissed """ dismissComment: String """ The reason the alert was dismissed """ dismissReason: String """ When was the alert dismissed? """ dismissedAt: DateTime """ The user who dismissed the alert """ dismisser: User """ When was the alert fixed? """ fixedAt: DateTime """ The Node ID of the RepositoryVulnerabilityAlert object """ id: ID! """ Identifies the alert number. """ number: Int! """ The associated repository """ repository: Repository! """ The associated security advisory """ securityAdvisory: SecurityAdvisory """ The associated security vulnerability """ securityVulnerability: SecurityVulnerability """ Identifies the state of the alert. """ state: RepositoryVulnerabilityAlertState! """ The vulnerable manifest filename """ vulnerableManifestFilename: String! """ The vulnerable manifest path """ vulnerableManifestPath: String! """ The vulnerable requirements """ vulnerableRequirements: String } """ The connection type for RepositoryVulnerabilityAlert. """ type RepositoryVulnerabilityAlertConnection { """ A list of edges. """ edges: [RepositoryVulnerabilityAlertEdge] """ A list of nodes. """ nodes: [RepositoryVulnerabilityAlert] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ The possible scopes of an alert's dependency. """ enum RepositoryVulnerabilityAlertDependencyScope { """ A dependency that is only used in development """ DEVELOPMENT """ A dependency that is leveraged during application runtime """ RUNTIME } """ An edge in a connection. """ type RepositoryVulnerabilityAlertEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: RepositoryVulnerabilityAlert } """ The possible states of an alert """ enum RepositoryVulnerabilityAlertState { """ An alert that has been automatically closed by Dependabot. """ AUTO_DISMISSED """ An alert that has been manually closed by a user. """ DISMISSED """ An alert that has been resolved by a code change. """ FIXED """ An alert that is still open. """ OPEN } """ Autogenerated input type of RequestReviews """ input RequestReviewsInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Node ID of the pull request to modify. """ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"]) """ The Node IDs of the team to request. """ teamIds: [ID!] @possibleTypes(concreteTypes: ["Team"]) """ Add users to the set rather than replace. """ union: Boolean = false """ The Node IDs of the user to request. """ userIds: [ID!] @possibleTypes(concreteTypes: ["User"]) } """ Autogenerated return type of RequestReviews """ type RequestReviewsPayload { """ Identifies the actor who performed the event. """ actor: Actor """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The pull request that is getting requests. """ pullRequest: PullRequest """ The edge from the pull request to the requested reviewers. """ requestedReviewersEdge: UserEdge } """ The possible states that can be requested when creating a check run. """ enum RequestableCheckStatusState { """ The check suite or run has been completed. """ COMPLETED """ The check suite or run is in progress. """ IN_PROGRESS """ The check suite or run is in pending state. """ PENDING """ The check suite or run has been queued. """ QUEUED """ The check suite or run is in waiting state. """ WAITING } """ Types that can be requested reviewers. """ union RequestedReviewer = Bot | Mannequin | Team | User """ The connection type for RequestedReviewer. """ type RequestedReviewerConnection { """ A list of edges. """ edges: [RequestedReviewerEdge] """ A list of nodes. """ nodes: [RequestedReviewer] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type RequestedReviewerEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: RequestedReviewer } """ Represents a type that can be required by a pull request for merging. """ interface RequirableByPullRequest { """ Whether this is required to pass before merging for a specific pull request. """ isRequired( """ The id of the pull request this is required for """ pullRequestId: ID """ The number of the pull request this is required for """ pullRequestNumber: Int ): Boolean! } """ Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule. """ type RequiredDeploymentsParameters { """ The environments that must be successfully deployed to before branches can be merged. """ requiredDeploymentEnvironments: [String!]! } """ Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule. """ input RequiredDeploymentsParametersInput { """ The environments that must be successfully deployed to before branches can be merged. """ requiredDeploymentEnvironments: [String!]! } """ Represents a required status check for a protected branch, but not any specific run of that check. """ type RequiredStatusCheckDescription { """ The App that must provide this status in order for it to be accepted. """ app: App """ The name of this status. """ context: String! } """ Specifies the attributes for a new or updated required status check. """ input RequiredStatusCheckInput { """ The ID of the App that must set the status in order for it to be accepted. Omit this value to use whichever app has recently been setting this status, or use "any" to allow any app to set the status. """ appId: ID """ Status check context that must pass for commits to be accepted to the matching branch. """ context: String! } """ Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass. """ type RequiredStatusChecksParameters { """ Status checks that are required. """ requiredStatusChecks: [StatusCheckConfiguration!]! """ Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled. """ strictRequiredStatusChecksPolicy: Boolean! } """ Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass. """ input RequiredStatusChecksParametersInput { """ Status checks that are required. """ requiredStatusChecks: [StatusCheckConfigurationInput!]! """ Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled. """ strictRequiredStatusChecksPolicy: Boolean! } """ Autogenerated input type of RerequestCheckSuite """ input RerequestCheckSuiteInput { """ The Node ID of the check suite. """ checkSuiteId: ID! @possibleTypes(concreteTypes: ["CheckSuite"]) """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Node ID of the repository. """ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"]) } """ Autogenerated return type of RerequestCheckSuite """ type RerequestCheckSuitePayload { """ The requested check suite. """ checkSuite: CheckSuite """ A unique identifier for the client performing the mutation. """ clientMutationId: String } """ Autogenerated input type of ResolveReviewThread """ input ResolveReviewThreadInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the thread to resolve """ threadId: ID! @possibleTypes(concreteTypes: ["PullRequestReviewThread"]) } """ Autogenerated return type of ResolveReviewThread """ type ResolveReviewThreadPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The thread to resolve. """ thread: PullRequestReviewThread } """ Represents a private contribution a user made on GitHub. """ type RestrictedContribution implements Contribution { """ Whether this contribution is associated with a record you do not have access to. For example, your own 'first issue' contribution may have been made on a repository you can no longer access. """ isRestricted: Boolean! """ When this contribution was made. """ occurredAt: DateTime! """ The HTTP path for this contribution. """ resourcePath: URI! """ The HTTP URL for this contribution. """ url: URI! """ The user who made this contribution. """ user: User! } """ Autogenerated input type of RetireSponsorsTier """ input RetireSponsorsTierInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the published tier to retire. """ tierId: ID! @possibleTypes(concreteTypes: ["SponsorsTier"]) } """ Autogenerated return type of RetireSponsorsTier """ type RetireSponsorsTierPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The tier that was retired. """ sponsorsTier: SponsorsTier } """ Autogenerated input type of RevertPullRequest """ input RevertPullRequestInput { """ The description of the revert pull request. """ body: String """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Indicates whether the revert pull request should be a draft. """ draft: Boolean = false """ The ID of the pull request to revert. """ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"]) """ The title of the revert pull request. """ title: String } """ Autogenerated return type of RevertPullRequest """ type RevertPullRequestPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The pull request that was reverted. """ pullRequest: PullRequest """ The new pull request that reverts the input pull request. """ revertPullRequest: PullRequest } """ A user, team, or app who has the ability to dismiss a review on a protected branch. """ type ReviewDismissalAllowance implements Node { """ The actor that can dismiss. """ actor: ReviewDismissalAllowanceActor """ Identifies the branch protection rule associated with the allowed user, team, or app. """ branchProtectionRule: BranchProtectionRule """ The Node ID of the ReviewDismissalAllowance object """ id: ID! } """ Types that can be an actor. """ union ReviewDismissalAllowanceActor = App | Team | User """ The connection type for ReviewDismissalAllowance. """ type ReviewDismissalAllowanceConnection { """ A list of edges. """ edges: [ReviewDismissalAllowanceEdge] """ A list of nodes. """ nodes: [ReviewDismissalAllowance] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type ReviewDismissalAllowanceEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: ReviewDismissalAllowance } """ Represents a 'review_dismissed' event on a given issue or pull request. """ type ReviewDismissedEvent implements Node & UniformResourceLocatable { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the primary key from the database. """ databaseId: Int """ Identifies the optional message associated with the 'review_dismissed' event. """ dismissalMessage: String """ Identifies the optional message associated with the event, rendered to HTML. """ dismissalMessageHTML: String """ The Node ID of the ReviewDismissedEvent object """ id: ID! """ Identifies the previous state of the review with the 'review_dismissed' event. """ previousReviewState: PullRequestReviewState! """ PullRequest referenced by event. """ pullRequest: PullRequest! """ Identifies the commit which caused the review to become stale. """ pullRequestCommit: PullRequestCommit """ The HTTP path for this review dismissed event. """ resourcePath: URI! """ Identifies the review associated with the 'review_dismissed' event. """ review: PullRequestReview """ The HTTP URL for this review dismissed event. """ url: URI! } """ A request for a user to review a pull request. """ type ReviewRequest implements Node { """ Whether this request was created for a code owner """ asCodeOwner: Boolean! """ Identifies the primary key from the database. """ databaseId: Int """ The Node ID of the ReviewRequest object """ id: ID! """ Identifies the pull request associated with this review request. """ pullRequest: PullRequest! """ The reviewer that is requested. """ requestedReviewer: RequestedReviewer } """ The connection type for ReviewRequest. """ type ReviewRequestConnection { """ A list of edges. """ edges: [ReviewRequestEdge] """ A list of nodes. """ nodes: [ReviewRequest] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type ReviewRequestEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: ReviewRequest } """ Represents an 'review_request_removed' event on a given pull request. """ type ReviewRequestRemovedEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the ReviewRequestRemovedEvent object """ id: ID! """ PullRequest referenced by event. """ pullRequest: PullRequest! """ Identifies the reviewer whose review request was removed. """ requestedReviewer: RequestedReviewer } """ Represents an 'review_requested' event on a given pull request. """ type ReviewRequestedEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the ReviewRequestedEvent object """ id: ID! """ PullRequest referenced by event. """ pullRequest: PullRequest! """ Identifies the reviewer whose review was requested. """ requestedReviewer: RequestedReviewer } """ A hovercard context with a message describing the current code review state of the pull request. """ type ReviewStatusHovercardContext implements HovercardContext { """ A string describing this context """ message: String! """ An octicon to accompany this context """ octicon: String! """ The current status of the pull request with respect to code review. """ reviewDecision: PullRequestReviewDecision } """ Autogenerated input type of RevokeEnterpriseOrganizationsMigratorRole """ input RevokeEnterpriseOrganizationsMigratorRoleInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the enterprise to which all organizations managed by it will be granted the migrator role. """ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) """ The login of the user to revoke the migrator role """ login: String! } """ Autogenerated return type of RevokeEnterpriseOrganizationsMigratorRole """ type RevokeEnterpriseOrganizationsMigratorRolePayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The organizations that had the migrator role revoked for the given user. """ organizations( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): OrganizationConnection } """ Autogenerated input type of RevokeMigratorRole """ input RevokeMigratorRoleInput { """ The user login or Team slug to revoke the migrator role from. """ actor: String! """ Specifies the type of the actor, can be either USER or TEAM. """ actorType: ActorType! """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the organization that the user/team belongs to. """ organizationId: ID! @possibleTypes(concreteTypes: ["Organization"]) } """ Autogenerated return type of RevokeMigratorRole """ type RevokeMigratorRolePayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Did the operation succeed? """ success: Boolean } """ Possible roles a user may have in relation to an organization. """ enum RoleInOrganization { """ A user who is a direct member of the organization. """ DIRECT_MEMBER """ A user with full administrative access to the organization. """ OWNER """ A user who is unaffiliated with the organization. """ UNAFFILIATED } """ The level of enforcement for a rule or ruleset. """ enum RuleEnforcement { """ Rules will be enforced """ ACTIVE """ Do not evaluate or enforce rules """ DISABLED """ Allow admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise). """ EVALUATE } """ Types which can be parameters for `RepositoryRule` objects. """ union RuleParameters = BranchNamePatternParameters | CommitAuthorEmailPatternParameters | CommitMessagePatternParameters | CommitterEmailPatternParameters | PullRequestParameters | RequiredDeploymentsParameters | RequiredStatusChecksParameters | TagNamePatternParameters | UpdateParameters | WorkflowsParameters """ Specifies the parameters for a `RepositoryRule` object. Only one of the fields should be specified. """ input RuleParametersInput { """ Parameters used for the `branch_name_pattern` rule type """ branchNamePattern: BranchNamePatternParametersInput """ Parameters used for the `commit_author_email_pattern` rule type """ commitAuthorEmailPattern: CommitAuthorEmailPatternParametersInput """ Parameters used for the `commit_message_pattern` rule type """ commitMessagePattern: CommitMessagePatternParametersInput """ Parameters used for the `committer_email_pattern` rule type """ committerEmailPattern: CommitterEmailPatternParametersInput """ Parameters used for the `pull_request` rule type """ pullRequest: PullRequestParametersInput """ Parameters used for the `required_deployments` rule type """ requiredDeployments: RequiredDeploymentsParametersInput """ Parameters used for the `required_status_checks` rule type """ requiredStatusChecks: RequiredStatusChecksParametersInput """ Parameters used for the `tag_name_pattern` rule type """ tagNamePattern: TagNamePatternParametersInput """ Parameters used for the `update` rule type """ update: UpdateParametersInput """ Parameters used for the `workflows` rule type """ workflows: WorkflowsParametersInput } """ Types which can have `RepositoryRule` objects. """ union RuleSource = Organization | Repository """ The possible digest algorithms used to sign SAML requests for an identity provider. """ enum SamlDigestAlgorithm { """ SHA1 """ SHA1 """ SHA256 """ SHA256 """ SHA384 """ SHA384 """ SHA512 """ SHA512 } """ The possible signature algorithms used to sign SAML requests for a Identity Provider. """ enum SamlSignatureAlgorithm { """ RSA-SHA1 """ RSA_SHA1 """ RSA-SHA256 """ RSA_SHA256 """ RSA-SHA384 """ RSA_SHA384 """ RSA-SHA512 """ RSA_SHA512 } """ A Saved Reply is text a user can use to reply quickly. """ type SavedReply implements Node { """ The body of the saved reply. """ body: String! """ The saved reply body rendered to HTML. """ bodyHTML: HTML! """ Identifies the primary key from the database. """ databaseId: Int """ The Node ID of the SavedReply object """ id: ID! """ The title of the saved reply. """ title: String! """ The user that saved this reply. """ user: Actor } """ The connection type for SavedReply. """ type SavedReplyConnection { """ A list of edges. """ edges: [SavedReplyEdge] """ A list of nodes. """ nodes: [SavedReply] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type SavedReplyEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: SavedReply } """ Ordering options for saved reply connections. """ input SavedReplyOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order saved replies by. """ field: SavedReplyOrderField! } """ Properties by which saved reply connections can be ordered. """ enum SavedReplyOrderField { """ Order saved reply by when they were updated. """ UPDATED_AT } """ The results of a search. """ union SearchResultItem = App | Discussion | Issue | MarketplaceListing | Organization | PullRequest | Repository | User """ A list of results that matched against a search query. Regardless of the number of matches, a maximum of 1,000 results will be available across all types, potentially split across many pages. """ type SearchResultItemConnection { """ The total number of pieces of code that matched the search query. Regardless of the total number of matches, a maximum of 1,000 results will be available across all types. """ codeCount: Int! """ The total number of discussions that matched the search query. Regardless of the total number of matches, a maximum of 1,000 results will be available across all types. """ discussionCount: Int! """ A list of edges. """ edges: [SearchResultItemEdge] """ The total number of issues that matched the search query. Regardless of the total number of matches, a maximum of 1,000 results will be available across all types. """ issueCount: Int! """ A list of nodes. """ nodes: [SearchResultItem] """ Information to aid in pagination. """ pageInfo: PageInfo! """ The total number of repositories that matched the search query. Regardless of the total number of matches, a maximum of 1,000 results will be available across all types. """ repositoryCount: Int! """ The total number of users that matched the search query. Regardless of the total number of matches, a maximum of 1,000 results will be available across all types. """ userCount: Int! """ The total number of wiki pages that matched the search query. Regardless of the total number of matches, a maximum of 1,000 results will be available across all types. """ wikiCount: Int! } """ An edge in a connection. """ type SearchResultItemEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: SearchResultItem """ Text matches on the result found. """ textMatches: [TextMatch] } """ Represents the individual results of a search. """ enum SearchType { """ Returns matching discussions in repositories. """ DISCUSSION """ Returns results matching issues in repositories. """ ISSUE """ Returns results matching repositories. """ REPOSITORY """ Returns results matching users and organizations on GitHub. """ USER } """ A GitHub Security Advisory """ type SecurityAdvisory implements Node { """ The classification of the advisory """ classification: SecurityAdvisoryClassification! """ The CVSS associated with this advisory """ cvss: CVSS! """ CWEs associated with this Advisory """ cwes( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): CWEConnection! """ Identifies the primary key from the database. """ databaseId: Int """ This is a long plaintext description of the advisory """ description: String! """ The GitHub Security Advisory ID """ ghsaId: String! """ The Node ID of the SecurityAdvisory object """ id: ID! """ A list of identifiers for this advisory """ identifiers: [SecurityAdvisoryIdentifier!]! """ The permalink for the advisory's dependabot alerts page """ notificationsPermalink: URI """ The organization that originated the advisory """ origin: String! """ The permalink for the advisory """ permalink: URI """ When the advisory was published """ publishedAt: DateTime! """ A list of references for this advisory """ references: [SecurityAdvisoryReference!]! """ The severity of the advisory """ severity: SecurityAdvisorySeverity! """ A short plaintext summary of the advisory """ summary: String! """ When the advisory was last updated """ updatedAt: DateTime! """ Vulnerabilities associated with this Advisory """ vulnerabilities( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ A list of advisory classifications to filter vulnerabilities by. """ classifications: [SecurityAdvisoryClassification!] """ An ecosystem to filter vulnerabilities by. """ ecosystem: SecurityAdvisoryEcosystem """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for the returned topics. """ orderBy: SecurityVulnerabilityOrder = {field: UPDATED_AT, direction: DESC} """ A package name to filter vulnerabilities by. """ package: String """ A list of severities to filter vulnerabilities by. """ severities: [SecurityAdvisorySeverity!] ): SecurityVulnerabilityConnection! """ When the advisory was withdrawn, if it has been withdrawn """ withdrawnAt: DateTime } """ Classification of the advisory. """ enum SecurityAdvisoryClassification { """ Classification of general advisories. """ GENERAL """ Classification of malware advisories. """ MALWARE } """ The connection type for SecurityAdvisory. """ type SecurityAdvisoryConnection { """ A list of edges. """ edges: [SecurityAdvisoryEdge] """ A list of nodes. """ nodes: [SecurityAdvisory] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ The possible ecosystems of a security vulnerability's package. """ enum SecurityAdvisoryEcosystem { """ GitHub Actions """ ACTIONS """ PHP packages hosted at packagist.org """ COMPOSER """ Erlang/Elixir packages hosted at hex.pm """ ERLANG """ Go modules """ GO """ Java artifacts hosted at the Maven central repository """ MAVEN """ JavaScript packages hosted at npmjs.com """ NPM """ .NET packages hosted at the NuGet Gallery """ NUGET """ Python packages hosted at PyPI.org """ PIP """ Dart packages hosted at pub.dev """ PUB """ Ruby gems hosted at RubyGems.org """ RUBYGEMS """ Rust crates """ RUST """ Swift packages """ SWIFT } """ An edge in a connection. """ type SecurityAdvisoryEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: SecurityAdvisory } """ A GitHub Security Advisory Identifier """ type SecurityAdvisoryIdentifier { """ The identifier type, e.g. GHSA, CVE """ type: String! """ The identifier """ value: String! } """ An advisory identifier to filter results on. """ input SecurityAdvisoryIdentifierFilter { """ The identifier type. """ type: SecurityAdvisoryIdentifierType! """ The identifier string. Supports exact or partial matching. """ value: String! } """ Identifier formats available for advisories. """ enum SecurityAdvisoryIdentifierType { """ Common Vulnerabilities and Exposures Identifier. """ CVE """ GitHub Security Advisory ID. """ GHSA } """ Ordering options for security advisory connections """ input SecurityAdvisoryOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order security advisories by. """ field: SecurityAdvisoryOrderField! } """ Properties by which security advisory connections can be ordered. """ enum SecurityAdvisoryOrderField { """ Order advisories by publication time """ PUBLISHED_AT """ Order advisories by update time """ UPDATED_AT } """ An individual package """ type SecurityAdvisoryPackage { """ The ecosystem the package belongs to, e.g. RUBYGEMS, NPM """ ecosystem: SecurityAdvisoryEcosystem! """ The package name """ name: String! } """ An individual package version """ type SecurityAdvisoryPackageVersion { """ The package name or version """ identifier: String! } """ A GitHub Security Advisory Reference """ type SecurityAdvisoryReference { """ A publicly accessible reference """ url: URI! } """ Severity of the vulnerability. """ enum SecurityAdvisorySeverity { """ Critical. """ CRITICAL """ High. """ HIGH """ Low. """ LOW """ Moderate. """ MODERATE } """ An individual vulnerability within an Advisory """ type SecurityVulnerability { """ The Advisory associated with this Vulnerability """ advisory: SecurityAdvisory! """ The first version containing a fix for the vulnerability """ firstPatchedVersion: SecurityAdvisoryPackageVersion """ A description of the vulnerable package """ package: SecurityAdvisoryPackage! """ The severity of the vulnerability within this package """ severity: SecurityAdvisorySeverity! """ When the vulnerability was last updated """ updatedAt: DateTime! """ A string that describes the vulnerable package versions. This string follows a basic syntax with a few forms. + `= 0.2.0` denotes a single vulnerable version. + `<= 1.0.8` denotes a version range up to and including the specified version + `< 0.1.11` denotes a version range up to, but excluding, the specified version + `>= 4.3.0, < 4.3.5` denotes a version range with a known minimum and maximum version. + `>= 0.0.1` denotes a version range with a known minimum, but no known maximum """ vulnerableVersionRange: String! } """ The connection type for SecurityVulnerability. """ type SecurityVulnerabilityConnection { """ A list of edges. """ edges: [SecurityVulnerabilityEdge] """ A list of nodes. """ nodes: [SecurityVulnerability] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type SecurityVulnerabilityEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: SecurityVulnerability } """ Ordering options for security vulnerability connections """ input SecurityVulnerabilityOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order security vulnerabilities by. """ field: SecurityVulnerabilityOrderField! } """ Properties by which security vulnerability connections can be ordered. """ enum SecurityVulnerabilityOrderField { """ Order vulnerability by update time """ UPDATED_AT } """ Autogenerated input type of SetEnterpriseIdentityProvider """ input SetEnterpriseIdentityProviderInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The digest algorithm used to sign SAML requests for the identity provider. """ digestMethod: SamlDigestAlgorithm! """ The ID of the enterprise on which to set an identity provider. """ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) """ The x509 certificate used by the identity provider to sign assertions and responses. """ idpCertificate: String! """ The Issuer Entity ID for the SAML identity provider """ issuer: String """ The signature algorithm used to sign SAML requests for the identity provider. """ signatureMethod: SamlSignatureAlgorithm! """ The URL endpoint for the identity provider's SAML SSO. """ ssoUrl: URI! } """ Autogenerated return type of SetEnterpriseIdentityProvider """ type SetEnterpriseIdentityProviderPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The identity provider for the enterprise. """ identityProvider: EnterpriseIdentityProvider } """ Autogenerated input type of SetOrganizationInteractionLimit """ input SetOrganizationInteractionLimitInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ When this limit should expire. """ expiry: RepositoryInteractionLimitExpiry """ The limit to set. """ limit: RepositoryInteractionLimit! """ The ID of the organization to set a limit for. """ organizationId: ID! @possibleTypes(concreteTypes: ["Organization"]) } """ Autogenerated return type of SetOrganizationInteractionLimit """ type SetOrganizationInteractionLimitPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The organization that the interaction limit was set for. """ organization: Organization } """ Autogenerated input type of SetRepositoryInteractionLimit """ input SetRepositoryInteractionLimitInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ When this limit should expire. """ expiry: RepositoryInteractionLimitExpiry """ The limit to set. """ limit: RepositoryInteractionLimit! """ The ID of the repository to set a limit for. """ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"]) } """ Autogenerated return type of SetRepositoryInteractionLimit """ type SetRepositoryInteractionLimitPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The repository that the interaction limit was set for. """ repository: Repository } """ Autogenerated input type of SetUserInteractionLimit """ input SetUserInteractionLimitInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ When this limit should expire. """ expiry: RepositoryInteractionLimitExpiry """ The limit to set. """ limit: RepositoryInteractionLimit! """ The ID of the user to set a limit for. """ userId: ID! @possibleTypes(concreteTypes: ["User"]) } """ Autogenerated return type of SetUserInteractionLimit """ type SetUserInteractionLimitPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The user that the interaction limit was set for. """ user: User } """ Represents an S/MIME signature on a Commit or Tag. """ type SmimeSignature implements GitSignature { """ Email used to sign this object. """ email: String! """ True if the signature is valid and verified by GitHub. """ isValid: Boolean! """ Payload for GPG signing object. Raw ODB object without the signature header. """ payload: String! """ ASCII-armored signature header from object. """ signature: String! """ GitHub user corresponding to the email signing this commit. """ signer: User """ The state of this signature. `VALID` if signature is valid and verified by GitHub, otherwise represents reason why signature is considered invalid. """ state: GitSignatureState! """ True if the signature was made with GitHub's signing key. """ wasSignedByGitHub: Boolean! } """ Social media profile associated with a user. """ type SocialAccount { """ Name of the social media account as it appears on the profile. """ displayName: String! """ Software or company that hosts the social media account. """ provider: SocialAccountProvider! """ URL of the social media account. """ url: URI! } """ The connection type for SocialAccount. """ type SocialAccountConnection { """ A list of edges. """ edges: [SocialAccountEdge] """ A list of nodes. """ nodes: [SocialAccount] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type SocialAccountEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: SocialAccount } """ Software or company that hosts social media accounts. """ enum SocialAccountProvider { """ Social media and networking website. """ FACEBOOK """ Catch-all for social media providers that do not yet have specific handling. """ GENERIC """ Fork of Mastodon with a greater focus on local posting. """ HOMETOWN """ Social media website with a focus on photo and video sharing. """ INSTAGRAM """ Professional networking website. """ LINKEDIN """ Open-source federated microblogging service. """ MASTODON """ JavaScript package registry. """ NPM """ Social news aggregation and discussion website. """ REDDIT """ Live-streaming service. """ TWITCH """ Microblogging website. """ TWITTER """ Online video platform. """ YOUTUBE } """ Entities that can sponsor others via GitHub Sponsors """ union Sponsor = Organization | User """ The connection type for Sponsor. """ type SponsorConnection { """ A list of edges. """ edges: [SponsorEdge] """ A list of nodes. """ nodes: [Sponsor] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ Represents a user or organization who is sponsoring someone in GitHub Sponsors. """ type SponsorEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: Sponsor } """ Ordering options for connections to get sponsor entities for GitHub Sponsors. """ input SponsorOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order sponsor entities by. """ field: SponsorOrderField! } """ Properties by which sponsor connections can be ordered. """ enum SponsorOrderField { """ Order sponsorable entities by login (username). """ LOGIN """ Order sponsors by their relevance to the viewer. """ RELEVANCE } """ Entities that can sponsor or be sponsored through GitHub Sponsors. """ interface Sponsorable { """ The estimated next GitHub Sponsors payout for this user/organization in cents (USD). """ estimatedNextSponsorsPayoutInCents: Int! """ True if this user/organization has a GitHub Sponsors listing. """ hasSponsorsListing: Boolean! """ Whether the given account is sponsoring this user/organization. """ isSponsoredBy( """ The target account's login. """ accountLogin: String! ): Boolean! """ True if the viewer is sponsored by this user/organization. """ isSponsoringViewer: Boolean! """ The estimated monthly GitHub Sponsors income for this user/organization in cents (USD). """ monthlyEstimatedSponsorsIncomeInCents: Int! """ List of users and organizations this entity is sponsoring. """ sponsoring( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for the users and organizations returned from the connection. """ orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC} ): SponsorConnection! """ List of sponsors for this user or organization. """ sponsors( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for sponsors returned from the connection. """ orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC} """ If given, will filter for sponsors at the given tier. Will only return sponsors whose tier the viewer is permitted to see. """ tierId: ID ): SponsorConnection! """ Events involving this sponsorable, such as new sponsorships. """ sponsorsActivities( """ Filter activities to only the specified actions. """ actions: [SponsorsActivityAction!] = [] """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Whether to include those events where this sponsorable acted as the sponsor. Defaults to only including events where this sponsorable was the recipient of a sponsorship. """ includeAsSponsor: Boolean = false """ Whether or not to include private activities in the result set. Defaults to including public and private activities. """ includePrivate: Boolean = true """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for activity returned from the connection. """ orderBy: SponsorsActivityOrder = {field: TIMESTAMP, direction: DESC} """ Filter activities returned to only those that occurred in the most recent specified time period. Set to ALL to avoid filtering by when the activity occurred. Will be ignored if `since` or `until` is given. """ period: SponsorsActivityPeriod = MONTH """ Filter activities to those that occurred on or after this time. """ since: DateTime """ Filter activities to those that occurred before this time. """ until: DateTime ): SponsorsActivityConnection! """ The GitHub Sponsors listing for this user or organization. """ sponsorsListing: SponsorsListing """ The sponsorship from the viewer to this user/organization; that is, the sponsorship where you're the sponsor. """ sponsorshipForViewerAsSponsor( """ Whether to return the sponsorship only if it's still active. Pass false to get the viewer's sponsorship back even if it has been cancelled. """ activeOnly: Boolean = true ): Sponsorship """ The sponsorship from this user/organization to the viewer; that is, the sponsorship you're receiving. """ sponsorshipForViewerAsSponsorable( """ Whether to return the sponsorship only if it's still active. Pass false to get the sponsorship back even if it has been cancelled. """ activeOnly: Boolean = true ): Sponsorship """ List of sponsorship updates sent from this sponsorable to sponsors. """ sponsorshipNewsletters( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for sponsorship updates returned from the connection. """ orderBy: SponsorshipNewsletterOrder = {field: CREATED_AT, direction: DESC} ): SponsorshipNewsletterConnection! """ The sponsorships where this user or organization is the maintainer receiving the funds. """ sponsorshipsAsMaintainer( """ Whether to include only sponsorships that are active right now, versus all sponsorships this maintainer has ever received. """ activeOnly: Boolean = true """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Whether or not to include private sponsorships in the result set """ includePrivate: Boolean = false """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer. """ orderBy: SponsorshipOrder ): SponsorshipConnection! """ The sponsorships where this user or organization is the funder. """ sponsorshipsAsSponsor( """ Whether to include only sponsorships that are active right now, versus all sponsorships this sponsor has ever made. """ activeOnly: Boolean = true """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Filter sponsorships returned to those for the specified maintainers. That is, the recipient of the sponsorship is a user or organization with one of the given logins. """ maintainerLogins: [String!] """ Ordering options for sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer. """ orderBy: SponsorshipOrder ): SponsorshipConnection! """ The amount in United States cents (e.g., 500 = $5.00 USD) that this entity has spent on GitHub to fund sponsorships. Only returns a value when viewed by the user themselves or by a user who can manage sponsorships for the requested organization. """ totalSponsorshipAmountAsSponsorInCents( """ Filter payments to those that occurred on or after this time. """ since: DateTime """ Filter payments to those made to the users or organizations with the specified usernames. """ sponsorableLogins: [String!] = [] """ Filter payments to those that occurred before this time. """ until: DateTime ): Int """ Whether or not the viewer is able to sponsor this user/organization. """ viewerCanSponsor: Boolean! """ True if the viewer is sponsoring this user/organization. """ viewerIsSponsoring: Boolean! } """ Entities that can be sponsored via GitHub Sponsors """ union SponsorableItem = Organization | User """ The connection type for SponsorableItem. """ type SponsorableItemConnection { """ A list of edges. """ edges: [SponsorableItemEdge] """ A list of nodes. """ nodes: [SponsorableItem] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type SponsorableItemEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: SponsorableItem } """ Ordering options for connections to get sponsorable entities for GitHub Sponsors. """ input SponsorableOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order sponsorable entities by. """ field: SponsorableOrderField! } """ Properties by which sponsorable connections can be ordered. """ enum SponsorableOrderField { """ Order sponsorable entities by login (username). """ LOGIN } """ An event related to sponsorship activity. """ type SponsorsActivity implements Node { """ What action this activity indicates took place. """ action: SponsorsActivityAction! """ The sponsor's current privacy level. """ currentPrivacyLevel: SponsorshipPrivacy """ The Node ID of the SponsorsActivity object """ id: ID! """ The platform that was used to pay for the sponsorship. """ paymentSource: SponsorshipPaymentSource """ The tier that the sponsorship used to use, for tier change events. """ previousSponsorsTier: SponsorsTier """ The user or organization who triggered this activity and was/is sponsoring the sponsorable. """ sponsor: Sponsor """ The user or organization that is being sponsored, the maintainer. """ sponsorable: Sponsorable! """ The associated sponsorship tier. """ sponsorsTier: SponsorsTier """ The timestamp of this event. """ timestamp: DateTime """ Was this sponsorship made alongside other sponsorships at the same time from the same sponsor? """ viaBulkSponsorship: Boolean! } """ The possible actions that GitHub Sponsors activities can represent. """ enum SponsorsActivityAction { """ The activity was cancelling a sponsorship. """ CANCELLED_SPONSORSHIP """ The activity was starting a sponsorship. """ NEW_SPONSORSHIP """ The activity was scheduling a downgrade or cancellation. """ PENDING_CHANGE """ The activity was funds being refunded to the sponsor or GitHub. """ REFUND """ The activity was disabling matching for a previously matched sponsorship. """ SPONSOR_MATCH_DISABLED """ The activity was changing the sponsorship tier, either directly by the sponsor or by a scheduled/pending change. """ TIER_CHANGE } """ The connection type for SponsorsActivity. """ type SponsorsActivityConnection { """ A list of edges. """ edges: [SponsorsActivityEdge] """ A list of nodes. """ nodes: [SponsorsActivity] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type SponsorsActivityEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: SponsorsActivity } """ Ordering options for GitHub Sponsors activity connections. """ input SponsorsActivityOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order activity by. """ field: SponsorsActivityOrderField! } """ Properties by which GitHub Sponsors activity connections can be ordered. """ enum SponsorsActivityOrderField { """ Order activities by when they happened. """ TIMESTAMP } """ The possible time periods for which Sponsors activities can be requested. """ enum SponsorsActivityPeriod { """ Don't restrict the activity to any date range, include all activity. """ ALL """ The previous calendar day. """ DAY """ The previous thirty days. """ MONTH """ The previous seven days. """ WEEK } """ Represents countries or regions for billing and residence for a GitHub Sponsors profile. """ enum SponsorsCountryOrRegionCode { """ Andorra """ AD """ United Arab Emirates """ AE """ Afghanistan """ AF """ Antigua and Barbuda """ AG """ Anguilla """ AI """ Albania """ AL """ Armenia """ AM """ Angola """ AO """ Antarctica """ AQ """ Argentina """ AR """ American Samoa """ AS """ Austria """ AT """ Australia """ AU """ Aruba """ AW """ Åland """ AX """ Azerbaijan """ AZ """ Bosnia and Herzegovina """ BA """ Barbados """ BB """ Bangladesh """ BD """ Belgium """ BE """ Burkina Faso """ BF """ Bulgaria """ BG """ Bahrain """ BH """ Burundi """ BI """ Benin """ BJ """ Saint Barthélemy """ BL """ Bermuda """ BM """ Brunei Darussalam """ BN """ Bolivia """ BO """ Bonaire, Sint Eustatius and Saba """ BQ """ Brazil """ BR """ Bahamas """ BS """ Bhutan """ BT """ Bouvet Island """ BV """ Botswana """ BW """ Belarus """ BY """ Belize """ BZ """ Canada """ CA """ Cocos (Keeling) Islands """ CC """ Congo (Kinshasa) """ CD """ Central African Republic """ CF """ Congo (Brazzaville) """ CG """ Switzerland """ CH """ Côte d'Ivoire """ CI """ Cook Islands """ CK """ Chile """ CL """ Cameroon """ CM """ China """ CN """ Colombia """ CO """ Costa Rica """ CR """ Cape Verde """ CV """ Curaçao """ CW """ Christmas Island """ CX """ Cyprus """ CY """ Czech Republic """ CZ """ Germany """ DE """ Djibouti """ DJ """ Denmark """ DK """ Dominica """ DM """ Dominican Republic """ DO """ Algeria """ DZ """ Ecuador """ EC """ Estonia """ EE """ Egypt """ EG """ Western Sahara """ EH """ Eritrea """ ER """ Spain """ ES """ Ethiopia """ ET """ Finland """ FI """ Fiji """ FJ """ Falkland Islands """ FK """ Micronesia """ FM """ Faroe Islands """ FO """ France """ FR """ Gabon """ GA """ United Kingdom """ GB """ Grenada """ GD """ Georgia """ GE """ French Guiana """ GF """ Guernsey """ GG """ Ghana """ GH """ Gibraltar """ GI """ Greenland """ GL """ Gambia """ GM """ Guinea """ GN """ Guadeloupe """ GP """ Equatorial Guinea """ GQ """ Greece """ GR """ South Georgia and South Sandwich Islands """ GS """ Guatemala """ GT """ Guam """ GU """ Guinea-Bissau """ GW """ Guyana """ GY """ Hong Kong """ HK """ Heard and McDonald Islands """ HM """ Honduras """ HN """ Croatia """ HR """ Haiti """ HT """ Hungary """ HU """ Indonesia """ ID """ Ireland """ IE """ Israel """ IL """ Isle of Man """ IM """ India """ IN """ British Indian Ocean Territory """ IO """ Iraq """ IQ """ Iran """ IR """ Iceland """ IS """ Italy """ IT """ Jersey """ JE """ Jamaica """ JM """ Jordan """ JO """ Japan """ JP """ Kenya """ KE """ Kyrgyzstan """ KG """ Cambodia """ KH """ Kiribati """ KI """ Comoros """ KM """ Saint Kitts and Nevis """ KN """ Korea, South """ KR """ Kuwait """ KW """ Cayman Islands """ KY """ Kazakhstan """ KZ """ Laos """ LA """ Lebanon """ LB """ Saint Lucia """ LC """ Liechtenstein """ LI """ Sri Lanka """ LK """ Liberia """ LR """ Lesotho """ LS """ Lithuania """ LT """ Luxembourg """ LU """ Latvia """ LV """ Libya """ LY """ Morocco """ MA """ Monaco """ MC """ Moldova """ MD """ Montenegro """ ME """ Saint Martin (French part) """ MF """ Madagascar """ MG """ Marshall Islands """ MH """ Macedonia """ MK """ Mali """ ML """ Myanmar """ MM """ Mongolia """ MN """ Macau """ MO """ Northern Mariana Islands """ MP """ Martinique """ MQ """ Mauritania """ MR """ Montserrat """ MS """ Malta """ MT """ Mauritius """ MU """ Maldives """ MV """ Malawi """ MW """ Mexico """ MX """ Malaysia """ MY """ Mozambique """ MZ """ Namibia """ NA """ New Caledonia """ NC """ Niger """ NE """ Norfolk Island """ NF """ Nigeria """ NG """ Nicaragua """ NI """ Netherlands """ NL """ Norway """ NO """ Nepal """ NP """ Nauru """ NR """ Niue """ NU """ New Zealand """ NZ """ Oman """ OM """ Panama """ PA """ Peru """ PE """ French Polynesia """ PF """ Papua New Guinea """ PG """ Philippines """ PH """ Pakistan """ PK """ Poland """ PL """ Saint Pierre and Miquelon """ PM """ Pitcairn """ PN """ Puerto Rico """ PR """ Palestine """ PS """ Portugal """ PT """ Palau """ PW """ Paraguay """ PY """ Qatar """ QA """ Reunion """ RE """ Romania """ RO """ Serbia """ RS """ Russian Federation """ RU """ Rwanda """ RW """ Saudi Arabia """ SA """ Solomon Islands """ SB """ Seychelles """ SC """ Sudan """ SD """ Sweden """ SE """ Singapore """ SG """ Saint Helena """ SH """ Slovenia """ SI """ Svalbard and Jan Mayen Islands """ SJ """ Slovakia """ SK """ Sierra Leone """ SL """ San Marino """ SM """ Senegal """ SN """ Somalia """ SO """ Suriname """ SR """ South Sudan """ SS """ Sao Tome and Principe """ ST """ El Salvador """ SV """ Sint Maarten (Dutch part) """ SX """ Swaziland """ SZ """ Turks and Caicos Islands """ TC """ Chad """ TD """ French Southern Lands """ TF """ Togo """ TG """ Thailand """ TH """ Tajikistan """ TJ """ Tokelau """ TK """ Timor-Leste """ TL """ Turkmenistan """ TM """ Tunisia """ TN """ Tonga """ TO """ Türkiye """ TR """ Trinidad and Tobago """ TT """ Tuvalu """ TV """ Taiwan """ TW """ Tanzania """ TZ """ Ukraine """ UA """ Uganda """ UG """ United States Minor Outlying Islands """ UM """ United States of America """ US """ Uruguay """ UY """ Uzbekistan """ UZ """ Vatican City """ VA """ Saint Vincent and the Grenadines """ VC """ Venezuela """ VE """ Virgin Islands, British """ VG """ Virgin Islands, U.S. """ VI """ Vietnam """ VN """ Vanuatu """ VU """ Wallis and Futuna Islands """ WF """ Samoa """ WS """ Yemen """ YE """ Mayotte """ YT """ South Africa """ ZA """ Zambia """ ZM """ Zimbabwe """ ZW } """ A goal associated with a GitHub Sponsors listing, representing a target the sponsored maintainer would like to attain. """ type SponsorsGoal { """ A description of the goal from the maintainer. """ description: String """ What the objective of this goal is. """ kind: SponsorsGoalKind! """ The percentage representing how complete this goal is, between 0-100. """ percentComplete: Int! """ What the goal amount is. Represents an amount in USD for monthly sponsorship amount goals. Represents a count of unique sponsors for total sponsors count goals. """ targetValue: Int! """ A brief summary of the kind and target value of this goal. """ title: String! } """ The different kinds of goals a GitHub Sponsors member can have. """ enum SponsorsGoalKind { """ The goal is about getting a certain amount in USD from sponsorships each month. """ MONTHLY_SPONSORSHIP_AMOUNT """ The goal is about reaching a certain number of sponsors. """ TOTAL_SPONSORS_COUNT } """ A GitHub Sponsors listing. """ type SponsorsListing implements Node { """ The current goal the maintainer is trying to reach with GitHub Sponsors, if any. """ activeGoal: SponsorsGoal """ The Stripe Connect account currently in use for payouts for this Sponsors listing, if any. Will only return a value when queried by the maintainer themselves, or by an admin of the sponsorable organization. """ activeStripeConnectAccount: StripeConnectAccount """ The name of the country or region with the maintainer's bank account or fiscal host. Will only return a value when queried by the maintainer themselves, or by an admin of the sponsorable organization. """ billingCountryOrRegion: String """ The email address used by GitHub to contact the sponsorable about their GitHub Sponsors profile. Will only return a value when queried by the maintainer themselves, or by an admin of the sponsorable organization. """ contactEmailAddress: String """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The HTTP path for the Sponsors dashboard for this Sponsors listing. """ dashboardResourcePath: URI! """ The HTTP URL for the Sponsors dashboard for this Sponsors listing. """ dashboardUrl: URI! """ The records featured on the GitHub Sponsors profile. """ featuredItems( """ The types of featured items to return. """ featureableTypes: [SponsorsListingFeaturedItemFeatureableType!] = [REPOSITORY, USER] ): [SponsorsListingFeaturedItem!]! """ The fiscal host used for payments, if any. Will only return a value when queried by the maintainer themselves, or by an admin of the sponsorable organization. """ fiscalHost: Organization """ The full description of the listing. """ fullDescription: String! """ The full description of the listing rendered to HTML. """ fullDescriptionHTML: HTML! """ The Node ID of the SponsorsListing object """ id: ID! """ Whether this listing is publicly visible. """ isPublic: Boolean! """ The listing's full name. """ name: String! """ A future date on which this listing is eligible to receive a payout. """ nextPayoutDate: Date """ The name of the country or region where the maintainer resides. Will only return a value when queried by the maintainer themselves, or by an admin of the sponsorable organization. """ residenceCountryOrRegion: String """ The HTTP path for this Sponsors listing. """ resourcePath: URI! """ The short description of the listing. """ shortDescription: String! """ The short name of the listing. """ slug: String! """ The entity this listing represents who can be sponsored on GitHub Sponsors. """ sponsorable: Sponsorable! """ The tiers for this GitHub Sponsors profile. """ tiers( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Whether to include tiers that aren't published. Only admins of the Sponsors listing can see draft tiers. Only admins of the Sponsors listing and viewers who are currently sponsoring on a retired tier can see those retired tiers. Defaults to including only published tiers, which are visible to anyone who can see the GitHub Sponsors profile. """ includeUnpublished: Boolean = false """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for Sponsors tiers returned from the connection. """ orderBy: SponsorsTierOrder = {field: MONTHLY_PRICE_IN_CENTS, direction: ASC} ): SponsorsTierConnection """ The HTTP URL for this Sponsors listing. """ url: URI! } """ A record that can be featured on a GitHub Sponsors profile. """ union SponsorsListingFeatureableItem = Repository | User """ A record that is promoted on a GitHub Sponsors profile. """ type SponsorsListingFeaturedItem implements Node { """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Will either be a description from the sponsorable maintainer about why they featured this item, or the item's description itself, such as a user's bio from their GitHub profile page. """ description: String """ The record that is featured on the GitHub Sponsors profile. """ featureable: SponsorsListingFeatureableItem! """ The Node ID of the SponsorsListingFeaturedItem object """ id: ID! """ The position of this featured item on the GitHub Sponsors profile with a lower position indicating higher precedence. Starts at 1. """ position: Int! """ The GitHub Sponsors profile that features this record. """ sponsorsListing: SponsorsListing! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! } """ The different kinds of records that can be featured on a GitHub Sponsors profile page. """ enum SponsorsListingFeaturedItemFeatureableType { """ A repository owned by the user or organization with the GitHub Sponsors profile. """ REPOSITORY """ A user who belongs to the organization with the GitHub Sponsors profile. """ USER } """ A GitHub Sponsors tier associated with a GitHub Sponsors listing. """ type SponsorsTier implements Node { """ SponsorsTier information only visible to users that can administer the associated Sponsors listing. """ adminInfo: SponsorsTierAdminInfo """ Get a different tier for this tier's maintainer that is at the same frequency as this tier but with an equal or lesser cost. Returns the published tier with the monthly price closest to this tier's without going over. """ closestLesserValueTier: SponsorsTier """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The description of the tier. """ description: String! """ The tier description rendered to HTML """ descriptionHTML: HTML! """ The Node ID of the SponsorsTier object """ id: ID! """ Whether this tier was chosen at checkout time by the sponsor rather than defined ahead of time by the maintainer who manages the Sponsors listing. """ isCustomAmount: Boolean! """ Whether this tier is only for use with one-time sponsorships. """ isOneTime: Boolean! """ How much this tier costs per month in cents. """ monthlyPriceInCents: Int! """ How much this tier costs per month in USD. """ monthlyPriceInDollars: Int! """ The name of the tier. """ name: String! """ The sponsors listing that this tier belongs to. """ sponsorsListing: SponsorsListing! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! } """ SponsorsTier information only visible to users that can administer the associated Sponsors listing. """ type SponsorsTierAdminInfo { """ Indicates whether this tier is still a work in progress by the sponsorable and not yet published to the associated GitHub Sponsors profile. Draft tiers cannot be used for new sponsorships and will not be in use on existing sponsorships. Draft tiers cannot be seen by anyone but the admins of the GitHub Sponsors profile. """ isDraft: Boolean! """ Indicates whether this tier is published to the associated GitHub Sponsors profile. Published tiers are visible to anyone who can see the GitHub Sponsors profile, and are available for use in sponsorships if the GitHub Sponsors profile is publicly visible. """ isPublished: Boolean! """ Indicates whether this tier has been retired from the associated GitHub Sponsors profile. Retired tiers are no longer shown on the GitHub Sponsors profile and cannot be chosen for new sponsorships. Existing sponsorships may still use retired tiers if the sponsor selected the tier before it was retired. """ isRetired: Boolean! """ The sponsorships using this tier. """ sponsorships( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Whether or not to return private sponsorships using this tier. Defaults to only returning public sponsorships on this tier. """ includePrivate: Boolean = false """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer. """ orderBy: SponsorshipOrder ): SponsorshipConnection! } """ The connection type for SponsorsTier. """ type SponsorsTierConnection { """ A list of edges. """ edges: [SponsorsTierEdge] """ A list of nodes. """ nodes: [SponsorsTier] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type SponsorsTierEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: SponsorsTier } """ Ordering options for Sponsors tiers connections. """ input SponsorsTierOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order tiers by. """ field: SponsorsTierOrderField! } """ Properties by which Sponsors tiers connections can be ordered. """ enum SponsorsTierOrderField { """ Order tiers by creation time. """ CREATED_AT """ Order tiers by their monthly price in cents """ MONTHLY_PRICE_IN_CENTS } """ A sponsorship relationship between a sponsor and a maintainer """ type Sponsorship implements Node { """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the Sponsorship object """ id: ID! """ Whether the sponsorship is active. False implies the sponsor is a past sponsor of the maintainer, while true implies they are a current sponsor. """ isActive: Boolean! """ Whether this sponsorship represents a one-time payment versus a recurring sponsorship. """ isOneTimePayment: Boolean! """ Whether the sponsor has chosen to receive sponsorship update emails sent from the sponsorable. Only returns a non-null value when the viewer has permission to know this. """ isSponsorOptedIntoEmail: Boolean """ The entity that is being sponsored """ maintainer: User! @deprecated( reason: "`Sponsorship.maintainer` will be removed. Use `Sponsorship.sponsorable` instead. Removal on 2020-04-01 UTC." ) """ The platform that was most recently used to pay for the sponsorship. """ paymentSource: SponsorshipPaymentSource """ The privacy level for this sponsorship. """ privacyLevel: SponsorshipPrivacy! """ The user that is sponsoring. Returns null if the sponsorship is private or if sponsor is not a user. """ sponsor: User @deprecated( reason: "`Sponsorship.sponsor` will be removed. Use `Sponsorship.sponsorEntity` instead. Removal on 2020-10-01 UTC." ) """ The user or organization that is sponsoring, if you have permission to view them. """ sponsorEntity: Sponsor """ The entity that is being sponsored """ sponsorable: Sponsorable! """ The associated sponsorship tier """ tier: SponsorsTier """ Identifies the date and time when the current tier was chosen for this sponsorship. """ tierSelectedAt: DateTime } """ The connection type for Sponsorship. """ type SponsorshipConnection { """ A list of edges. """ edges: [SponsorshipEdge] """ A list of nodes. """ nodes: [Sponsorship] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! """ The total amount in cents of all recurring sponsorships in the connection whose amount you can view. Does not include one-time sponsorships. """ totalRecurringMonthlyPriceInCents: Int! """ The total amount in USD of all recurring sponsorships in the connection whose amount you can view. Does not include one-time sponsorships. """ totalRecurringMonthlyPriceInDollars: Int! } """ An edge in a connection. """ type SponsorshipEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: Sponsorship } """ An update sent to sponsors of a user or organization on GitHub Sponsors. """ type SponsorshipNewsletter implements Node { """ The author of the newsletter. """ author: User """ The contents of the newsletter, the message the sponsorable wanted to give. """ body: String! """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the SponsorshipNewsletter object """ id: ID! """ Indicates if the newsletter has been made available to sponsors. """ isPublished: Boolean! """ The user or organization this newsletter is from. """ sponsorable: Sponsorable! """ The subject of the newsletter, what it's about. """ subject: String! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! } """ The connection type for SponsorshipNewsletter. """ type SponsorshipNewsletterConnection { """ A list of edges. """ edges: [SponsorshipNewsletterEdge] """ A list of nodes. """ nodes: [SponsorshipNewsletter] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type SponsorshipNewsletterEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: SponsorshipNewsletter } """ Ordering options for sponsorship newsletter connections. """ input SponsorshipNewsletterOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order sponsorship newsletters by. """ field: SponsorshipNewsletterOrderField! } """ Properties by which sponsorship update connections can be ordered. """ enum SponsorshipNewsletterOrderField { """ Order sponsorship newsletters by when they were created. """ CREATED_AT } """ Ordering options for sponsorship connections. """ input SponsorshipOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order sponsorship by. """ field: SponsorshipOrderField! } """ Properties by which sponsorship connections can be ordered. """ enum SponsorshipOrderField { """ Order sponsorship by creation time. """ CREATED_AT } """ How payment was made for funding a GitHub Sponsors sponsorship. """ enum SponsorshipPaymentSource { """ Payment was made through GitHub. """ GITHUB """ Payment was made through Patreon. """ PATREON } """ The privacy of a sponsorship """ enum SponsorshipPrivacy { """ Private """ PRIVATE """ Public """ PUBLIC } """ The possible default commit messages for squash merges. """ enum SquashMergeCommitMessage { """ Default to a blank commit message. """ BLANK """ Default to the branch's commit messages. """ COMMIT_MESSAGES """ Default to the pull request's body. """ PR_BODY } """ The possible default commit titles for squash merges. """ enum SquashMergeCommitTitle { """ Default to the commit's title (if only one commit) or the pull request's title (when more than one commit). """ COMMIT_OR_PR_TITLE """ Default to the pull request's title. """ PR_TITLE } """ Represents an SSH signature on a Commit or Tag. """ type SshSignature implements GitSignature { """ Email used to sign this object. """ email: String! """ True if the signature is valid and verified by GitHub. """ isValid: Boolean! """ Hex-encoded fingerprint of the key that signed this object. """ keyFingerprint: String """ Payload for GPG signing object. Raw ODB object without the signature header. """ payload: String! """ ASCII-armored signature header from object. """ signature: String! """ GitHub user corresponding to the email signing this commit. """ signer: User """ The state of this signature. `VALID` if signature is valid and verified by GitHub, otherwise represents reason why signature is considered invalid. """ state: GitSignatureState! """ True if the signature was made with GitHub's signing key. """ wasSignedByGitHub: Boolean! } """ Ways in which star connections can be ordered. """ input StarOrder { """ The direction in which to order nodes. """ direction: OrderDirection! """ The field in which to order nodes by. """ field: StarOrderField! } """ Properties by which star connections can be ordered. """ enum StarOrderField { """ Allows ordering a list of stars by when they were created. """ STARRED_AT } """ The connection type for User. """ type StargazerConnection { """ A list of edges. """ edges: [StargazerEdge] """ A list of nodes. """ nodes: [User] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ Represents a user that's starred a repository. """ type StargazerEdge { """ A cursor for use in pagination. """ cursor: String! node: User! """ Identifies when the item was starred. """ starredAt: DateTime! } """ Things that can be starred. """ interface Starrable { """ The Node ID of the Starrable object """ id: ID! """ Returns a count of how many stargazers there are on this object """ stargazerCount: Int! """ A list of users who have starred this starrable. """ stargazers( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Order for connection """ orderBy: StarOrder ): StargazerConnection! """ Returns a boolean indicating whether the viewing user has starred this starrable. """ viewerHasStarred: Boolean! } """ The connection type for Repository. """ type StarredRepositoryConnection { """ A list of edges. """ edges: [StarredRepositoryEdge] """ Is the list of stars for this user truncated? This is true for users that have many stars. """ isOverLimit: Boolean! """ A list of nodes. """ nodes: [Repository] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ Represents a starred repository. """ type StarredRepositoryEdge { """ A cursor for use in pagination. """ cursor: String! node: Repository! """ Identifies when the item was starred. """ starredAt: DateTime! } """ Autogenerated input type of StartOrganizationMigration """ input StartOrganizationMigrationInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The migration source access token. """ sourceAccessToken: String! """ The URL of the organization to migrate. """ sourceOrgUrl: URI! """ The ID of the enterprise the target organization belongs to. """ targetEnterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) """ The name of the target organization. """ targetOrgName: String! } """ Autogenerated return type of StartOrganizationMigration """ type StartOrganizationMigrationPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The new organization migration. """ orgMigration: OrganizationMigration } """ Autogenerated input type of StartRepositoryMigration """ input StartRepositoryMigrationInput { """ The migration source access token. """ accessToken: String """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Whether to continue the migration on error. Defaults to `true`. """ continueOnError: Boolean """ The signed URL to access the user-uploaded git archive. """ gitArchiveUrl: String """ The GitHub personal access token of the user importing to the target repository. """ githubPat: String """ Whether to lock the source repository. """ lockSource: Boolean """ The signed URL to access the user-uploaded metadata archive. """ metadataArchiveUrl: String """ The ID of the organization that will own the imported repository. """ ownerId: ID! @possibleTypes(concreteTypes: ["Organization"]) """ The name of the imported repository. """ repositoryName: String! """ Whether to skip migrating releases for the repository. """ skipReleases: Boolean """ The ID of the migration source. """ sourceId: ID! @possibleTypes(concreteTypes: ["MigrationSource"]) """ The URL of the source repository. """ sourceRepositoryUrl: URI """ The visibility of the imported repository. """ targetRepoVisibility: String } """ Autogenerated return type of StartRepositoryMigration """ type StartRepositoryMigrationPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The new repository migration. """ repositoryMigration: RepositoryMigration } """ Represents a commit status. """ type Status implements Node { """ A list of status contexts and check runs for this commit. """ combinedContexts( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): StatusCheckRollupContextConnection! """ The commit this status is attached to. """ commit: Commit """ Looks up an individual status context by context name. """ context( """ The context name. """ name: String! ): StatusContext """ The individual status contexts for this commit. """ contexts: [StatusContext!]! """ The Node ID of the Status object """ id: ID! """ The combined commit status. """ state: StatusState! } """ Required status check """ type StatusCheckConfiguration { """ The status check context name that must be present on the commit. """ context: String! """ The optional integration ID that this status check must originate from. """ integrationId: Int } """ Required status check """ input StatusCheckConfigurationInput { """ The status check context name that must be present on the commit. """ context: String! """ The optional integration ID that this status check must originate from. """ integrationId: Int } """ Represents the rollup for both the check runs and status for a commit. """ type StatusCheckRollup implements Node { """ The commit the status and check runs are attached to. """ commit: Commit """ A list of status contexts and check runs for this commit. """ contexts( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): StatusCheckRollupContextConnection! """ The Node ID of the StatusCheckRollup object """ id: ID! """ The combined status for the commit. """ state: StatusState! } """ Types that can be inside a StatusCheckRollup context. """ union StatusCheckRollupContext = CheckRun | StatusContext """ The connection type for StatusCheckRollupContext. """ type StatusCheckRollupContextConnection { """ The number of check runs in this rollup. """ checkRunCount: Int! """ Counts of check runs by state. """ checkRunCountsByState: [CheckRunStateCount!] """ A list of edges. """ edges: [StatusCheckRollupContextEdge] """ A list of nodes. """ nodes: [StatusCheckRollupContext] """ Information to aid in pagination. """ pageInfo: PageInfo! """ The number of status contexts in this rollup. """ statusContextCount: Int! """ Counts of status contexts by state. """ statusContextCountsByState: [StatusContextStateCount!] """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type StatusCheckRollupContextEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: StatusCheckRollupContext } """ Represents an individual commit status context """ type StatusContext implements Node & RequirableByPullRequest { """ The avatar of the OAuth application or the user that created the status """ avatarUrl( """ The size of the resulting square image. """ size: Int = 40 ): URI """ This commit this status context is attached to. """ commit: Commit """ The name of this status context. """ context: String! """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The actor who created this status context. """ creator: Actor """ The description for this status context. """ description: String """ The Node ID of the StatusContext object """ id: ID! """ Whether this is required to pass before merging for a specific pull request. """ isRequired( """ The id of the pull request this is required for """ pullRequestId: ID """ The number of the pull request this is required for """ pullRequestNumber: Int ): Boolean! """ The state of this status context. """ state: StatusState! """ The URL for this status context. """ targetUrl: URI } """ Represents a count of the state of a status context. """ type StatusContextStateCount { """ The number of statuses with this state. """ count: Int! """ The state of a status context. """ state: StatusState! } """ The possible commit status states. """ enum StatusState { """ Status is errored. """ ERROR """ Status is expected. """ EXPECTED """ Status is failing. """ FAILURE """ Status is pending. """ PENDING """ Status is successful. """ SUCCESS } """ A Stripe Connect account for receiving sponsorship funds from GitHub Sponsors. """ type StripeConnectAccount { """ The account number used to identify this Stripe Connect account. """ accountId: String! """ The name of the country or region of an external account, such as a bank account, tied to the Stripe Connect account. Will only return a value when queried by the maintainer of the associated GitHub Sponsors profile themselves, or by an admin of the sponsorable organization. """ billingCountryOrRegion: String """ The name of the country or region of the Stripe Connect account. Will only return a value when queried by the maintainer of the associated GitHub Sponsors profile themselves, or by an admin of the sponsorable organization. """ countryOrRegion: String """ Whether this Stripe Connect account is currently in use for the associated GitHub Sponsors profile. """ isActive: Boolean! """ The GitHub Sponsors profile associated with this Stripe Connect account. """ sponsorsListing: SponsorsListing! """ The URL to access this Stripe Connect account on Stripe's website. """ stripeDashboardUrl: URI! } """ Autogenerated input type of SubmitPullRequestReview """ input SubmitPullRequestReviewInput { """ The text field to set on the Pull Request Review. """ body: String """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The event to send to the Pull Request Review. """ event: PullRequestReviewEvent! """ The Pull Request ID to submit any pending reviews. """ pullRequestId: ID @possibleTypes(concreteTypes: ["PullRequest"]) """ The Pull Request Review ID to submit. """ pullRequestReviewId: ID @possibleTypes(concreteTypes: ["PullRequestReview"]) } """ Autogenerated return type of SubmitPullRequestReview """ type SubmitPullRequestReviewPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The submitted pull request review. """ pullRequestReview: PullRequestReview } """ A pointer to a repository at a specific revision embedded inside another repository. """ type Submodule { """ The branch of the upstream submodule for tracking updates """ branch: String """ The git URL of the submodule repository """ gitUrl: URI! """ The name of the submodule in .gitmodules """ name: String! """ The name of the submodule in .gitmodules (Base64-encoded) """ nameRaw: Base64String! """ The path in the superproject that this submodule is located in """ path: String! """ The path in the superproject that this submodule is located in (Base64-encoded) """ pathRaw: Base64String! """ The commit revision of the subproject repository being tracked by the submodule """ subprojectCommitOid: GitObjectID } """ The connection type for Submodule. """ type SubmoduleConnection { """ A list of edges. """ edges: [SubmoduleEdge] """ A list of nodes. """ nodes: [Submodule] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type SubmoduleEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: Submodule } """ Entities that can be subscribed to for web and email notifications. """ interface Subscribable { """ The Node ID of the Subscribable object """ id: ID! """ Check if the viewer is able to change their subscription status for the repository. """ viewerCanSubscribe: Boolean! """ Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. """ viewerSubscription: SubscriptionState } """ Entities that can be subscribed to for web and email notifications. """ interface SubscribableThread { """ The Node ID of the SubscribableThread object """ id: ID! """ Identifies the viewer's thread subscription form action. """ viewerThreadSubscriptionFormAction: ThreadSubscriptionFormAction """ Identifies the viewer's thread subscription status. """ viewerThreadSubscriptionStatus: ThreadSubscriptionState } """ Represents a 'subscribed' event on a given `Subscribable`. """ type SubscribedEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the SubscribedEvent object """ id: ID! """ Object referenced by event. """ subscribable: Subscribable! } """ The possible states of a subscription. """ enum SubscriptionState { """ The User is never notified. """ IGNORED """ The User is notified of all conversations. """ SUBSCRIBED """ The User is only notified when participating or @mentioned. """ UNSUBSCRIBED } """ A suggestion to review a pull request based on a user's commit history and review comments. """ type SuggestedReviewer { """ Is this suggestion based on past commits? """ isAuthor: Boolean! """ Is this suggestion based on past review comments? """ isCommenter: Boolean! """ Identifies the user suggested to review the pull request. """ reviewer: User! } """ Represents a Git tag. """ type Tag implements GitObject & Node { """ An abbreviated version of the Git object ID """ abbreviatedOid: String! """ The HTTP path for this Git object """ commitResourcePath: URI! """ The HTTP URL for this Git object """ commitUrl: URI! """ The Node ID of the Tag object """ id: ID! """ The Git tag message. """ message: String """ The Git tag name. """ name: String! """ The Git object ID """ oid: GitObjectID! """ The Repository the Git object belongs to """ repository: Repository! """ Details about the tag author. """ tagger: GitActor """ The Git object the tag points to. """ target: GitObject! } """ Parameters to be used for the tag_name_pattern rule """ type TagNamePatternParameters { """ How this rule will appear to users. """ name: String """ If true, the rule will fail if the pattern matches. """ negate: Boolean! """ The operator to use for matching. """ operator: String! """ The pattern to match with. """ pattern: String! } """ Parameters to be used for the tag_name_pattern rule """ input TagNamePatternParametersInput { """ How this rule will appear to users. """ name: String """ If true, the rule will fail if the pattern matches. """ negate: Boolean """ The operator to use for matching. """ operator: String! """ The pattern to match with. """ pattern: String! } """ A team of users in an organization. """ type Team implements MemberStatusable & Node & Subscribable { """ A list of teams that are ancestors of this team. """ ancestors( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): TeamConnection! """ A URL pointing to the team's avatar. """ avatarUrl( """ The size in pixels of the resulting square image. """ size: Int = 400 ): URI """ List of child teams belonging to this team """ childTeams( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Whether to list immediate child teams or all descendant child teams. """ immediateOnly: Boolean = true """ Returns the last _n_ elements from the list. """ last: Int """ Order for connection """ orderBy: TeamOrder """ User logins to filter by """ userLogins: [String!] ): TeamConnection! """ The slug corresponding to the organization and team. """ combinedSlug: String! """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the primary key from the database. """ databaseId: Int """ The description of the team. """ description: String """ Find a team discussion by its number. """ discussion( """ The sequence number of the discussion to find. """ number: Int! ): TeamDiscussion """ A list of team discussions. """ discussions( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ If provided, filters discussions according to whether or not they are pinned. """ isPinned: Boolean """ Returns the last _n_ elements from the list. """ last: Int """ Order for connection """ orderBy: TeamDiscussionOrder ): TeamDiscussionConnection! """ The HTTP path for team discussions """ discussionsResourcePath: URI! """ The HTTP URL for team discussions """ discussionsUrl: URI! """ The HTTP path for editing this team """ editTeamResourcePath: URI! """ The HTTP URL for editing this team """ editTeamUrl: URI! """ The Node ID of the Team object """ id: ID! """ A list of pending invitations for users to this team """ invitations( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): OrganizationInvitationConnection """ Get the status messages members of this entity have set that are either public or visible only to the organization. """ memberStatuses( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for user statuses returned from the connection. """ orderBy: UserStatusOrder = {field: UPDATED_AT, direction: DESC} ): UserStatusConnection! """ A list of users who are members of this team. """ members( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Filter by membership type """ membership: TeamMembershipType = ALL """ Order for the connection. """ orderBy: TeamMemberOrder """ The search string to look for. """ query: String """ Filter by team member role """ role: TeamMemberRole ): TeamMemberConnection! """ The HTTP path for the team' members """ membersResourcePath: URI! """ The HTTP URL for the team' members """ membersUrl: URI! """ The name of the team. """ name: String! """ The HTTP path creating a new team """ newTeamResourcePath: URI! """ The HTTP URL creating a new team """ newTeamUrl: URI! """ The notification setting that the team has set. """ notificationSetting: TeamNotificationSetting! """ The organization that owns this team. """ organization: Organization! """ The parent team of the team. """ parentTeam: Team """ The level of privacy the team has. """ privacy: TeamPrivacy! """ Finds and returns the project according to the provided project number. """ projectV2( """ The Project number. """ number: Int! ): ProjectV2 """ List of projects this team has collaborator access to. """ projectsV2( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Filtering options for projects returned from this connection """ filterBy: ProjectV2Filters = {} """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ How to order the returned projects. """ orderBy: ProjectV2Order = {field: NUMBER, direction: DESC} """ The query to search projects by. """ query: String = "" ): ProjectV2Connection! """ A list of repositories this team has access to. """ repositories( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Order for the connection. """ orderBy: TeamRepositoryOrder """ The search string to look for. Repositories will be returned where the name contains your search string. """ query: String ): TeamRepositoryConnection! """ The HTTP path for this team's repositories """ repositoriesResourcePath: URI! """ The HTTP URL for this team's repositories """ repositoriesUrl: URI! """ The HTTP path for this team """ resourcePath: URI! """ What algorithm is used for review assignment for this team """ reviewRequestDelegationAlgorithm: TeamReviewAssignmentAlgorithm @preview(toggledBy: "stone-crop-preview") """ True if review assignment is enabled for this team """ reviewRequestDelegationEnabled: Boolean! @preview(toggledBy: "stone-crop-preview") """ How many team members are required for review assignment for this team """ reviewRequestDelegationMemberCount: Int @preview(toggledBy: "stone-crop-preview") """ When assigning team members via delegation, whether the entire team should be notified as well. """ reviewRequestDelegationNotifyTeam: Boolean! @preview(toggledBy: "stone-crop-preview") """ The slug corresponding to the team. """ slug: String! """ The HTTP path for this team's teams """ teamsResourcePath: URI! """ The HTTP URL for this team's teams """ teamsUrl: URI! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The HTTP URL for this team """ url: URI! """ Team is adminable by the viewer. """ viewerCanAdminister: Boolean! """ Check if the viewer is able to change their subscription status for the repository. """ viewerCanSubscribe: Boolean! """ Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. """ viewerSubscription: SubscriptionState } """ Audit log entry for a team.add_member event. """ type TeamAddMemberAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & TeamAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the TeamAddMemberAuditEntry object """ id: ID! """ Whether the team was mapped to an LDAP Group. """ isLdapMapped: Boolean """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The team associated with the action """ team: Team """ The name of the team """ teamName: String """ The HTTP path for this team """ teamResourcePath: URI """ The HTTP URL for this team """ teamUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a team.add_repository event. """ type TeamAddRepositoryAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData & TeamAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the TeamAddRepositoryAuditEntry object """ id: ID! """ Whether the team was mapped to an LDAP Group. """ isLdapMapped: Boolean """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The repository associated with the action """ repository: Repository """ The name of the repository """ repositoryName: String """ The HTTP path for the repository """ repositoryResourcePath: URI """ The HTTP URL for the repository """ repositoryUrl: URI """ The team associated with the action """ team: Team """ The name of the team """ teamName: String """ The HTTP path for this team """ teamResourcePath: URI """ The HTTP URL for this team """ teamUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Metadata for an audit entry with action team.* """ interface TeamAuditEntryData { """ The team associated with the action """ team: Team """ The name of the team """ teamName: String """ The HTTP path for this team """ teamResourcePath: URI """ The HTTP URL for this team """ teamUrl: URI } """ Audit log entry for a team.change_parent_team event. """ type TeamChangeParentTeamAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & TeamAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the TeamChangeParentTeamAuditEntry object """ id: ID! """ Whether the team was mapped to an LDAP Group. """ isLdapMapped: Boolean """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The new parent team. """ parentTeam: Team """ The name of the new parent team """ parentTeamName: String """ The name of the former parent team """ parentTeamNameWas: String """ The HTTP path for the parent team """ parentTeamResourcePath: URI """ The HTTP URL for the parent team """ parentTeamUrl: URI """ The former parent team. """ parentTeamWas: Team """ The HTTP path for the previous parent team """ parentTeamWasResourcePath: URI """ The HTTP URL for the previous parent team """ parentTeamWasUrl: URI """ The team associated with the action """ team: Team """ The name of the team """ teamName: String """ The HTTP path for this team """ teamResourcePath: URI """ The HTTP URL for this team """ teamUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ The connection type for Team. """ type TeamConnection { """ A list of edges. """ edges: [TeamEdge] """ A list of nodes. """ nodes: [Team] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ A team discussion. """ type TeamDiscussion implements Comment & Deletable & Node & Reactable & Subscribable & UniformResourceLocatable & Updatable & UpdatableComment { """ The actor who authored the comment. """ author: Actor """ Author's association with the discussion's team. """ authorAssociation: CommentAuthorAssociation! @deprecated( reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." ) """ The body as Markdown. """ body: String! """ The body rendered to HTML. """ bodyHTML: HTML! """ The body rendered to text. """ bodyText: String! """ Identifies the discussion body hash. """ bodyVersion: String! @deprecated( reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." ) """ A list of comments on this discussion. """ comments( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ When provided, filters the connection such that results begin with the comment with this number. """ fromComment: Int """ Returns the last _n_ elements from the list. """ last: Int """ Order for connection """ orderBy: TeamDiscussionCommentOrder ): TeamDiscussionCommentConnection! @deprecated( reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." ) """ The HTTP path for discussion comments """ commentsResourcePath: URI! @deprecated( reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." ) """ The HTTP URL for discussion comments """ commentsUrl: URI! @deprecated( reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." ) """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Check if this comment was created via an email reply. """ createdViaEmail: Boolean! """ Identifies the primary key from the database. """ databaseId: Int """ The actor who edited the comment. """ editor: Actor """ The Node ID of the TeamDiscussion object """ id: ID! """ Check if this comment was edited and includes an edit with the creation data """ includesCreatedEdit: Boolean! """ Whether or not the discussion is pinned. """ isPinned: Boolean! @deprecated( reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." ) """ Whether or not the discussion is only visible to team members and organization owners. """ isPrivate: Boolean! @deprecated( reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." ) """ The moment the editor made the last edit """ lastEditedAt: DateTime """ Identifies the discussion within its team. """ number: Int! @deprecated( reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." ) """ Identifies when the comment was published at. """ publishedAt: DateTime """ A list of reactions grouped by content left on the subject. """ reactionGroups: [ReactionGroup!] """ A list of Reactions left on the Issue. """ reactions( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Allows filtering Reactions by emoji. """ content: ReactionContent """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Allows specifying the order in which reactions are returned. """ orderBy: ReactionOrder ): ReactionConnection! """ The HTTP path for this discussion """ resourcePath: URI! @deprecated( reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." ) """ The team that defines the context of this discussion. """ team: Team! @deprecated( reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." ) """ The title of the discussion """ title: String! @deprecated( reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." ) """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The HTTP URL for this discussion """ url: URI! @deprecated( reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." ) """ A list of edits to this content. """ userContentEdits( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): UserContentEditConnection """ Check if the current viewer can delete this object. """ viewerCanDelete: Boolean! """ Whether or not the current viewer can pin this discussion. """ viewerCanPin: Boolean! @deprecated( reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." ) """ Can user react to this subject """ viewerCanReact: Boolean! """ Check if the viewer is able to change their subscription status for the repository. """ viewerCanSubscribe: Boolean! """ Check if the current viewer can update this object. """ viewerCanUpdate: Boolean! """ Reasons why the current viewer can not update this comment. """ viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! """ Did the viewer author this comment. """ viewerDidAuthor: Boolean! """ Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. """ viewerSubscription: SubscriptionState } """ A comment on a team discussion. """ type TeamDiscussionComment implements Comment & Deletable & Node & Reactable & UniformResourceLocatable & Updatable & UpdatableComment { """ The actor who authored the comment. """ author: Actor """ Author's association with the comment's team. """ authorAssociation: CommentAuthorAssociation! @deprecated( reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." ) """ The body as Markdown. """ body: String! """ The body rendered to HTML. """ bodyHTML: HTML! """ The body rendered to text. """ bodyText: String! """ The current version of the body content. """ bodyVersion: String! @deprecated( reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." ) """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Check if this comment was created via an email reply. """ createdViaEmail: Boolean! """ Identifies the primary key from the database. """ databaseId: Int """ The discussion this comment is about. """ discussion: TeamDiscussion! @deprecated( reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." ) """ The actor who edited the comment. """ editor: Actor """ The Node ID of the TeamDiscussionComment object """ id: ID! """ Check if this comment was edited and includes an edit with the creation data """ includesCreatedEdit: Boolean! """ The moment the editor made the last edit """ lastEditedAt: DateTime """ Identifies the comment number. """ number: Int! @deprecated( reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." ) """ Identifies when the comment was published at. """ publishedAt: DateTime """ A list of reactions grouped by content left on the subject. """ reactionGroups: [ReactionGroup!] """ A list of Reactions left on the Issue. """ reactions( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Allows filtering Reactions by emoji. """ content: ReactionContent """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Allows specifying the order in which reactions are returned. """ orderBy: ReactionOrder ): ReactionConnection! """ The HTTP path for this comment """ resourcePath: URI! @deprecated( reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." ) """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The HTTP URL for this comment """ url: URI! @deprecated( reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC." ) """ A list of edits to this content. """ userContentEdits( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): UserContentEditConnection """ Check if the current viewer can delete this object. """ viewerCanDelete: Boolean! """ Can user react to this subject """ viewerCanReact: Boolean! """ Check if the current viewer can update this object. """ viewerCanUpdate: Boolean! """ Reasons why the current viewer can not update this comment. """ viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! """ Did the viewer author this comment. """ viewerDidAuthor: Boolean! } """ The connection type for TeamDiscussionComment. """ type TeamDiscussionCommentConnection { """ A list of edges. """ edges: [TeamDiscussionCommentEdge] """ A list of nodes. """ nodes: [TeamDiscussionComment] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type TeamDiscussionCommentEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: TeamDiscussionComment } """ Ways in which team discussion comment connections can be ordered. """ input TeamDiscussionCommentOrder { """ The direction in which to order nodes. """ direction: OrderDirection! """ The field by which to order nodes. """ field: TeamDiscussionCommentOrderField! } """ Properties by which team discussion comment connections can be ordered. """ enum TeamDiscussionCommentOrderField { """ Allows sequential ordering of team discussion comments (which is equivalent to chronological ordering). """ NUMBER } """ The connection type for TeamDiscussion. """ type TeamDiscussionConnection { """ A list of edges. """ edges: [TeamDiscussionEdge] """ A list of nodes. """ nodes: [TeamDiscussion] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type TeamDiscussionEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: TeamDiscussion } """ Ways in which team discussion connections can be ordered. """ input TeamDiscussionOrder { """ The direction in which to order nodes. """ direction: OrderDirection! """ The field by which to order nodes. """ field: TeamDiscussionOrderField! } """ Properties by which team discussion connections can be ordered. """ enum TeamDiscussionOrderField { """ Allows chronological ordering of team discussions. """ CREATED_AT } """ An edge in a connection. """ type TeamEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: Team } """ The connection type for User. """ type TeamMemberConnection { """ A list of edges. """ edges: [TeamMemberEdge] """ A list of nodes. """ nodes: [User] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ Represents a user who is a member of a team. """ type TeamMemberEdge { """ A cursor for use in pagination. """ cursor: String! """ The HTTP path to the organization's member access page. """ memberAccessResourcePath: URI! """ The HTTP URL to the organization's member access page. """ memberAccessUrl: URI! node: User! """ The role the member has on the team. """ role: TeamMemberRole! } """ Ordering options for team member connections """ input TeamMemberOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order team members by. """ field: TeamMemberOrderField! } """ Properties by which team member connections can be ordered. """ enum TeamMemberOrderField { """ Order team members by creation time """ CREATED_AT """ Order team members by login """ LOGIN } """ The possible team member roles; either 'maintainer' or 'member'. """ enum TeamMemberRole { """ A team maintainer has permission to add and remove team members. """ MAINTAINER """ A team member has no administrative permissions on the team. """ MEMBER } """ Defines which types of team members are included in the returned list. Can be one of IMMEDIATE, CHILD_TEAM or ALL. """ enum TeamMembershipType { """ Includes immediate and child team members for the team. """ ALL """ Includes only child team members for the team. """ CHILD_TEAM """ Includes only immediate members of the team. """ IMMEDIATE } """ The possible team notification values. """ enum TeamNotificationSetting { """ No one will receive notifications. """ NOTIFICATIONS_DISABLED """ Everyone will receive notifications when the team is @mentioned. """ NOTIFICATIONS_ENABLED } """ Ways in which team connections can be ordered. """ input TeamOrder { """ The direction in which to order nodes. """ direction: OrderDirection! """ The field in which to order nodes by. """ field: TeamOrderField! } """ Properties by which team connections can be ordered. """ enum TeamOrderField { """ Allows ordering a list of teams by name. """ NAME } """ The possible team privacy values. """ enum TeamPrivacy { """ A secret team can only be seen by its members. """ SECRET """ A visible team can be seen and @mentioned by every member of the organization. """ VISIBLE } """ Audit log entry for a team.remove_member event. """ type TeamRemoveMemberAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & TeamAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the TeamRemoveMemberAuditEntry object """ id: ID! """ Whether the team was mapped to an LDAP Group. """ isLdapMapped: Boolean """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The team associated with the action """ team: Team """ The name of the team """ teamName: String """ The HTTP path for this team """ teamResourcePath: URI """ The HTTP URL for this team """ teamUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ Audit log entry for a team.remove_repository event. """ type TeamRemoveRepositoryAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData & TeamAuditEntryData { """ The action name """ action: String! """ The user who initiated the action """ actor: AuditEntryActor """ The IP address of the actor """ actorIp: String """ A readable representation of the actor's location """ actorLocation: ActorLocation """ The username of the user who initiated the action """ actorLogin: String """ The HTTP path for the actor. """ actorResourcePath: URI """ The HTTP URL for the actor. """ actorUrl: URI """ The time the action was initiated """ createdAt: PreciseDateTime! """ The Node ID of the TeamRemoveRepositoryAuditEntry object """ id: ID! """ Whether the team was mapped to an LDAP Group. """ isLdapMapped: Boolean """ The corresponding operation type for the action """ operationType: OperationType """ The Organization associated with the Audit Entry. """ organization: Organization """ The name of the Organization. """ organizationName: String """ The HTTP path for the organization """ organizationResourcePath: URI """ The HTTP URL for the organization """ organizationUrl: URI """ The repository associated with the action """ repository: Repository """ The name of the repository """ repositoryName: String """ The HTTP path for the repository """ repositoryResourcePath: URI """ The HTTP URL for the repository """ repositoryUrl: URI """ The team associated with the action """ team: Team """ The name of the team """ teamName: String """ The HTTP path for this team """ teamResourcePath: URI """ The HTTP URL for this team """ teamUrl: URI """ The user affected by the action """ user: User """ For actions involving two users, the actor is the initiator and the user is the affected user. """ userLogin: String """ The HTTP path for the user. """ userResourcePath: URI """ The HTTP URL for the user. """ userUrl: URI } """ The connection type for Repository. """ type TeamRepositoryConnection { """ A list of edges. """ edges: [TeamRepositoryEdge] """ A list of nodes. """ nodes: [Repository] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ Represents a team repository. """ type TeamRepositoryEdge { """ A cursor for use in pagination. """ cursor: String! node: Repository! """ The permission level the team has on the repository """ permission: RepositoryPermission! } """ Ordering options for team repository connections """ input TeamRepositoryOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order repositories by. """ field: TeamRepositoryOrderField! } """ Properties by which team repository connections can be ordered. """ enum TeamRepositoryOrderField { """ Order repositories by creation time """ CREATED_AT """ Order repositories by name """ NAME """ Order repositories by permission """ PERMISSION """ Order repositories by push time """ PUSHED_AT """ Order repositories by number of stargazers """ STARGAZERS """ Order repositories by update time """ UPDATED_AT } """ The possible team review assignment algorithms """ enum TeamReviewAssignmentAlgorithm @preview(toggledBy: "stone-crop-preview") { """ Balance review load across the entire team """ LOAD_BALANCE """ Alternate reviews between each team member """ ROUND_ROBIN } """ The role of a user on a team. """ enum TeamRole { """ User has admin rights on the team. """ ADMIN """ User is a member of the team. """ MEMBER } """ A text match within a search result. """ type TextMatch { """ The specific text fragment within the property matched on. """ fragment: String! """ Highlights within the matched fragment. """ highlights: [TextMatchHighlight!]! """ The property matched on. """ property: String! } """ Represents a single highlight in a search result match. """ type TextMatchHighlight { """ The indice in the fragment where the matched text begins. """ beginIndice: Int! """ The indice in the fragment where the matched text ends. """ endIndice: Int! """ The text matched. """ text: String! } """ The possible states of a thread subscription form action """ enum ThreadSubscriptionFormAction { """ The User cannot subscribe or unsubscribe to the thread """ NONE """ The User can subscribe to the thread """ SUBSCRIBE """ The User can unsubscribe to the thread """ UNSUBSCRIBE } """ The possible states of a subscription. """ enum ThreadSubscriptionState { """ The subscription status is currently disabled. """ DISABLED """ The User is never notified because they are ignoring the list """ IGNORING_LIST """ The User is never notified because they are ignoring the thread """ IGNORING_THREAD """ The User is not receiving notifications from this thread """ NONE """ The User is notified because they are watching the list """ SUBSCRIBED_TO_LIST """ The User is notified because they are subscribed to the thread """ SUBSCRIBED_TO_THREAD """ The User is notified because they chose custom settings for this thread. """ SUBSCRIBED_TO_THREAD_EVENTS """ The User is notified because they chose custom settings for this thread. """ SUBSCRIBED_TO_THREAD_TYPE """ The subscription status is currently unavailable. """ UNAVAILABLE } """ A topic aggregates entities that are related to a subject. """ type Topic implements Node & Starrable { """ The Node ID of the Topic object """ id: ID! """ The topic's name. """ name: String! """ A list of related topics, including aliases of this topic, sorted with the most relevant first. Returns up to 10 Topics. """ relatedTopics( """ How many topics to return. """ first: Int = 3 ): [Topic!]! """ A list of repositories. """ repositories( """ Array of viewer's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the current viewer owns. """ affiliations: [RepositoryAffiliation] """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ If non-null, filters repositories according to whether they have issues enabled """ hasIssuesEnabled: Boolean """ If non-null, filters repositories according to whether they have been locked """ isLocked: Boolean """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for repositories returned from the connection """ orderBy: RepositoryOrder """ Array of owner's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the organization or user being viewed owns. """ ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR] """ If non-null, filters repositories according to privacy """ privacy: RepositoryPrivacy """ If true, only repositories whose owner can be sponsored via GitHub Sponsors will be returned. """ sponsorableOnly: Boolean = false ): RepositoryConnection! """ Returns a count of how many stargazers there are on this object """ stargazerCount: Int! """ A list of users who have starred this starrable. """ stargazers( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Order for connection """ orderBy: StarOrder ): StargazerConnection! """ Returns a boolean indicating whether the viewing user has starred this starrable. """ viewerHasStarred: Boolean! } """ Metadata for an audit entry with a topic. """ interface TopicAuditEntryData { """ The name of the topic added to the repository """ topic: Topic """ The name of the topic added to the repository """ topicName: String } """ Reason that the suggested topic is declined. """ enum TopicSuggestionDeclineReason { """ The suggested topic is not relevant to the repository. """ NOT_RELEVANT """ The viewer does not like the suggested topic. """ PERSONAL_PREFERENCE """ The suggested topic is too general for the repository. """ TOO_GENERAL """ The suggested topic is too specific for the repository (e.g. #ruby-on-rails-version-4-2-1). """ TOO_SPECIFIC } """ The possible states of a tracked issue. """ enum TrackedIssueStates { """ The tracked issue is closed """ CLOSED """ The tracked issue is open """ OPEN } """ Autogenerated input type of TransferEnterpriseOrganization """ input TransferEnterpriseOrganizationInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the enterprise where the organization should be transferred. """ destinationEnterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) """ The ID of the organization to transfer. """ organizationId: ID! @possibleTypes(concreteTypes: ["Organization"]) } """ Autogenerated return type of TransferEnterpriseOrganization """ type TransferEnterpriseOrganizationPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The organization for which a transfer was initiated. """ organization: Organization } """ Autogenerated input type of TransferIssue """ input TransferIssueInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Whether to create labels if they don't exist in the target repository (matched by name) """ createLabelsIfMissing: Boolean = false """ The Node ID of the issue to be transferred """ issueId: ID! @possibleTypes(concreteTypes: ["Issue"]) """ The Node ID of the repository the issue should be transferred to """ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"]) } """ Autogenerated return type of TransferIssue """ type TransferIssuePayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The issue that was transferred """ issue: Issue } """ Represents a 'transferred' event on a given issue or pull request. """ type TransferredEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The repository this came from """ fromRepository: Repository """ The Node ID of the TransferredEvent object """ id: ID! """ Identifies the issue associated with the event. """ issue: Issue! } """ Represents a Git tree. """ type Tree implements GitObject & Node { """ An abbreviated version of the Git object ID """ abbreviatedOid: String! """ The HTTP path for this Git object """ commitResourcePath: URI! """ The HTTP URL for this Git object """ commitUrl: URI! """ A list of tree entries. """ entries: [TreeEntry!] """ The Node ID of the Tree object """ id: ID! """ The Git object ID """ oid: GitObjectID! """ The Repository the Git object belongs to """ repository: Repository! } """ Represents a Git tree entry. """ type TreeEntry { """ The extension of the file """ extension: String """ Whether or not this tree entry is generated """ isGenerated: Boolean! """ The programming language this file is written in. """ language: Language """ Number of lines in the file. """ lineCount: Int """ Entry file mode. """ mode: Int! """ Entry file name. """ name: String! """ Entry file name. (Base64-encoded) """ nameRaw: Base64String! """ Entry file object. """ object: GitObject """ Entry file Git object ID. """ oid: GitObjectID! """ The full path of the file. """ path: String """ The full path of the file. (Base64-encoded) """ pathRaw: Base64String """ The Repository the tree entry belongs to """ repository: Repository! """ Entry byte size """ size: Int! """ If the TreeEntry is for a directory occupied by a submodule project, this returns the corresponding submodule """ submodule: Submodule """ Entry file type. """ type: String! } """ An RFC 3986, RFC 3987, and RFC 6570 (level 4) compliant URI string. """ scalar URI """ Autogenerated input type of UnarchiveProjectV2Item """ input UnarchiveProjectV2ItemInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the ProjectV2Item to unarchive. """ itemId: ID! @possibleTypes(concreteTypes: ["ProjectV2Item"]) """ The ID of the Project to archive the item from. """ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"]) } """ Autogenerated return type of UnarchiveProjectV2Item """ type UnarchiveProjectV2ItemPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The item unarchived from the project. """ item: ProjectV2Item } """ Autogenerated input type of UnarchiveRepository """ input UnarchiveRepositoryInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the repository to unarchive. """ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"]) } """ Autogenerated return type of UnarchiveRepository """ type UnarchiveRepositoryPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The repository that was unarchived. """ repository: Repository } """ Represents an 'unassigned' event on any assignable object. """ type UnassignedEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the assignable associated with the event. """ assignable: Assignable! """ Identifies the user or mannequin that was unassigned. """ assignee: Assignee """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the UnassignedEvent object """ id: ID! """ Identifies the subject (user) who was unassigned. """ user: User @deprecated(reason: "Assignees can now be mannequins. Use the `assignee` field instead. Removal on 2020-01-01 UTC.") } """ Autogenerated input type of UnfollowOrganization """ input UnfollowOrganizationInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ ID of the organization to unfollow. """ organizationId: ID! @possibleTypes(concreteTypes: ["Organization"]) } """ Autogenerated return type of UnfollowOrganization """ type UnfollowOrganizationPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The organization that was unfollowed. """ organization: Organization } """ Autogenerated input type of UnfollowUser """ input UnfollowUserInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ ID of the user to unfollow. """ userId: ID! @possibleTypes(concreteTypes: ["User"]) } """ Autogenerated return type of UnfollowUser """ type UnfollowUserPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The user that was unfollowed. """ user: User } """ Represents a type that can be retrieved by a URL. """ interface UniformResourceLocatable { """ The HTML path to this resource. """ resourcePath: URI! """ The URL to this resource. """ url: URI! } """ Represents an unknown signature on a Commit or Tag. """ type UnknownSignature implements GitSignature { """ Email used to sign this object. """ email: String! """ True if the signature is valid and verified by GitHub. """ isValid: Boolean! """ Payload for GPG signing object. Raw ODB object without the signature header. """ payload: String! """ ASCII-armored signature header from object. """ signature: String! """ GitHub user corresponding to the email signing this commit. """ signer: User """ The state of this signature. `VALID` if signature is valid and verified by GitHub, otherwise represents reason why signature is considered invalid. """ state: GitSignatureState! """ True if the signature was made with GitHub's signing key. """ wasSignedByGitHub: Boolean! } """ Represents an 'unlabeled' event on a given issue or pull request. """ type UnlabeledEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the UnlabeledEvent object """ id: ID! """ Identifies the label associated with the 'unlabeled' event. """ label: Label! """ Identifies the `Labelable` associated with the event. """ labelable: Labelable! } """ Autogenerated input type of UnlinkProjectV2FromRepository """ input UnlinkProjectV2FromRepositoryInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the project to unlink from the repository. """ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"]) """ The ID of the repository to unlink from the project. """ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"]) } """ Autogenerated return type of UnlinkProjectV2FromRepository """ type UnlinkProjectV2FromRepositoryPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The repository the project is no longer linked to. """ repository: Repository } """ Autogenerated input type of UnlinkProjectV2FromTeam """ input UnlinkProjectV2FromTeamInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the project to unlink from the team. """ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"]) """ The ID of the team to unlink from the project. """ teamId: ID! @possibleTypes(concreteTypes: ["Team"]) } """ Autogenerated return type of UnlinkProjectV2FromTeam """ type UnlinkProjectV2FromTeamPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The team the project is unlinked from """ team: Team } """ Autogenerated input type of UnlinkRepositoryFromProject """ input UnlinkRepositoryFromProjectInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the Project linked to the Repository. """ projectId: ID! @possibleTypes(concreteTypes: ["Project"]) """ The ID of the Repository linked to the Project. """ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"]) } """ Autogenerated return type of UnlinkRepositoryFromProject """ type UnlinkRepositoryFromProjectPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The linked Project. """ project: Project """ The linked Repository. """ repository: Repository } """ Autogenerated input type of UnlockLockable """ input UnlockLockableInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ ID of the item to be unlocked. """ lockableId: ID! @possibleTypes(concreteTypes: ["Discussion", "Issue", "PullRequest"], abstractType: "Lockable") } """ Autogenerated return type of UnlockLockable """ type UnlockLockablePayload { """ Identifies the actor who performed the event. """ actor: Actor """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The item that was unlocked. """ unlockedRecord: Lockable } """ Represents an 'unlocked' event on a given issue or pull request. """ type UnlockedEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the UnlockedEvent object """ id: ID! """ Object that was unlocked. """ lockable: Lockable! } """ Autogenerated input type of UnmarkDiscussionCommentAsAnswer """ input UnmarkDiscussionCommentAsAnswerInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Node ID of the discussion comment to unmark as an answer. """ id: ID! @possibleTypes(concreteTypes: ["DiscussionComment"]) } """ Autogenerated return type of UnmarkDiscussionCommentAsAnswer """ type UnmarkDiscussionCommentAsAnswerPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The discussion that includes the comment. """ discussion: Discussion } """ Autogenerated input type of UnmarkFileAsViewed """ input UnmarkFileAsViewedInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The path of the file to mark as unviewed """ path: String! """ The Node ID of the pull request. """ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"]) } """ Autogenerated return type of UnmarkFileAsViewed """ type UnmarkFileAsViewedPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The updated pull request. """ pullRequest: PullRequest } """ Autogenerated input type of UnmarkIssueAsDuplicate """ input UnmarkIssueAsDuplicateInput { """ ID of the issue or pull request currently considered canonical/authoritative/original. """ canonicalId: ID! @possibleTypes(concreteTypes: ["Issue", "PullRequest"], abstractType: "IssueOrPullRequest") """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ ID of the issue or pull request currently marked as a duplicate. """ duplicateId: ID! @possibleTypes(concreteTypes: ["Issue", "PullRequest"], abstractType: "IssueOrPullRequest") } """ Autogenerated return type of UnmarkIssueAsDuplicate """ type UnmarkIssueAsDuplicatePayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The issue or pull request that was marked as a duplicate. """ duplicate: IssueOrPullRequest } """ Autogenerated input type of UnmarkProjectV2AsTemplate """ input UnmarkProjectV2AsTemplateInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the Project to unmark as a template. """ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"]) } """ Autogenerated return type of UnmarkProjectV2AsTemplate """ type UnmarkProjectV2AsTemplatePayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The project. """ projectV2: ProjectV2 } """ Represents an 'unmarked_as_duplicate' event on a given issue or pull request. """ type UnmarkedAsDuplicateEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ The authoritative issue or pull request which has been duplicated by another. """ canonical: IssueOrPullRequest """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The issue or pull request which has been marked as a duplicate of another. """ duplicate: IssueOrPullRequest """ The Node ID of the UnmarkedAsDuplicateEvent object """ id: ID! """ Canonical and duplicate belong to different repositories. """ isCrossRepository: Boolean! } """ Autogenerated input type of UnminimizeComment """ input UnminimizeCommentInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Node ID of the subject to modify. """ subjectId: ID! @possibleTypes( concreteTypes: [ "CommitComment" "DiscussionComment" "GistComment" "IssueComment" "PullRequestReview" "PullRequestReviewComment" ] abstractType: "Minimizable" ) } """ Autogenerated return type of UnminimizeComment """ type UnminimizeCommentPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The comment that was unminimized. """ unminimizedComment: Minimizable } """ Autogenerated input type of UnpinIssue """ input UnpinIssueInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the issue to be unpinned """ issueId: ID! @possibleTypes(concreteTypes: ["Issue"]) } """ Autogenerated return type of UnpinIssue """ type UnpinIssuePayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The issue that was unpinned """ issue: Issue } """ Represents an 'unpinned' event on a given issue or pull request. """ type UnpinnedEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the UnpinnedEvent object """ id: ID! """ Identifies the issue associated with the event. """ issue: Issue! } """ Autogenerated input type of UnresolveReviewThread """ input UnresolveReviewThreadInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the thread to unresolve """ threadId: ID! @possibleTypes(concreteTypes: ["PullRequestReviewThread"]) } """ Autogenerated return type of UnresolveReviewThread """ type UnresolveReviewThreadPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The thread to resolve. """ thread: PullRequestReviewThread } """ Autogenerated input type of UnsubscribeFromNotifications """ input UnsubscribeFromNotificationsInput @requiredCapabilities(requiredCapabilities: ["access_internal_graphql_notifications"]) { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The NotificationThread IDs of the objects to unsubscribe from. """ ids: [ID!]! @possibleTypes( concreteTypes: ["Commit", "Discussion", "Issue", "PullRequest", "Repository", "Team", "TeamDiscussion"] abstractType: "Subscribable" ) } """ Autogenerated return type of UnsubscribeFromNotifications """ type UnsubscribeFromNotificationsPayload @requiredCapabilities(requiredCapabilities: ["access_internal_graphql_notifications"]) { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Did the operation succeed? """ success: Boolean } """ Represents an 'unsubscribed' event on a given `Subscribable`. """ type UnsubscribedEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the UnsubscribedEvent object """ id: ID! """ Object referenced by event. """ subscribable: Subscribable! } """ Entities that can be updated. """ interface Updatable { """ Check if the current viewer can update this object. """ viewerCanUpdate: Boolean! } """ Comments that can be updated. """ interface UpdatableComment { """ Reasons why the current viewer can not update this comment. """ viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! } """ Autogenerated input type of UpdateBranchProtectionRule """ input UpdateBranchProtectionRuleInput { """ Can this branch be deleted. """ allowsDeletions: Boolean """ Are force pushes allowed on this branch. """ allowsForcePushes: Boolean """ Is branch creation a protected operation. """ blocksCreations: Boolean """ The global relay id of the branch protection rule to be updated. """ branchProtectionRuleId: ID! @possibleTypes(concreteTypes: ["BranchProtectionRule"]) """ A list of User, Team, or App IDs allowed to bypass force push targeting matching branches. """ bypassForcePushActorIds: [ID!] """ A list of User, Team, or App IDs allowed to bypass pull requests targeting matching branches. """ bypassPullRequestActorIds: [ID!] """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Will new commits pushed to matching branches dismiss pull request review approvals. """ dismissesStaleReviews: Boolean """ Can admins override branch protection. """ isAdminEnforced: Boolean """ Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. """ lockAllowsFetchAndMerge: Boolean """ Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. """ lockBranch: Boolean """ The glob-like pattern used to determine matching branches. """ pattern: String """ A list of User, Team, or App IDs allowed to push to matching branches. """ pushActorIds: [ID!] """ Whether the most recent push must be approved by someone other than the person who pushed it """ requireLastPushApproval: Boolean """ Number of approving reviews required to update matching branches. """ requiredApprovingReviewCount: Int """ The list of required deployment environments """ requiredDeploymentEnvironments: [String!] """ List of required status check contexts that must pass for commits to be accepted to matching branches. """ requiredStatusCheckContexts: [String!] """ The list of required status checks """ requiredStatusChecks: [RequiredStatusCheckInput!] """ Are approving reviews required to update matching branches. """ requiresApprovingReviews: Boolean """ Are reviews from code owners required to update matching branches. """ requiresCodeOwnerReviews: Boolean """ Are commits required to be signed. """ requiresCommitSignatures: Boolean """ Are conversations required to be resolved before merging. """ requiresConversationResolution: Boolean """ Are successful deployments required before merging. """ requiresDeployments: Boolean """ Are merge commits prohibited from being pushed to this branch. """ requiresLinearHistory: Boolean """ Are status checks required to update matching branches. """ requiresStatusChecks: Boolean """ Are branches required to be up to date before merging. """ requiresStrictStatusChecks: Boolean """ Is pushing to matching branches restricted. """ restrictsPushes: Boolean """ Is dismissal of pull request reviews restricted. """ restrictsReviewDismissals: Boolean """ A list of User, Team, or App IDs allowed to dismiss reviews on pull requests targeting matching branches. """ reviewDismissalActorIds: [ID!] } """ Autogenerated return type of UpdateBranchProtectionRule """ type UpdateBranchProtectionRulePayload { """ The newly created BranchProtectionRule. """ branchProtectionRule: BranchProtectionRule """ A unique identifier for the client performing the mutation. """ clientMutationId: String } """ Autogenerated input type of UpdateCheckRun """ input UpdateCheckRunInput { """ Possible further actions the integrator can perform, which a user may trigger. """ actions: [CheckRunAction!] """ The node of the check. """ checkRunId: ID! @possibleTypes(concreteTypes: ["CheckRun"]) """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The time that the check run finished. """ completedAt: DateTime """ The final conclusion of the check. """ conclusion: CheckConclusionState """ The URL of the integrator's site that has the full details of the check. """ detailsUrl: URI """ A reference for the run on the integrator's system. """ externalId: String """ The name of the check. """ name: String """ Descriptive details about the run. """ output: CheckRunOutput """ The node ID of the repository. """ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"]) """ The time that the check run began. """ startedAt: DateTime """ The current status. """ status: RequestableCheckStatusState } """ Autogenerated return type of UpdateCheckRun """ type UpdateCheckRunPayload { """ The updated check run. """ checkRun: CheckRun """ A unique identifier for the client performing the mutation. """ clientMutationId: String } """ Autogenerated input type of UpdateCheckSuitePreferences """ input UpdateCheckSuitePreferencesInput { """ The check suite preferences to modify. """ autoTriggerPreferences: [CheckSuiteAutoTriggerPreference!]! """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Node ID of the repository. """ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"]) } """ Autogenerated return type of UpdateCheckSuitePreferences """ type UpdateCheckSuitePreferencesPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The updated repository. """ repository: Repository } """ Autogenerated input type of UpdateDiscussionComment """ input UpdateDiscussionCommentInput { """ The new contents of the comment body. """ body: String! """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Node ID of the discussion comment to update. """ commentId: ID! @possibleTypes(concreteTypes: ["DiscussionComment"]) } """ Autogenerated return type of UpdateDiscussionComment """ type UpdateDiscussionCommentPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The modified discussion comment. """ comment: DiscussionComment } """ Autogenerated input type of UpdateDiscussion """ input UpdateDiscussionInput { """ The new contents of the discussion body. """ body: String """ The Node ID of a discussion category within the same repository to change this discussion to. """ categoryId: ID @possibleTypes(concreteTypes: ["DiscussionCategory"]) """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Node ID of the discussion to update. """ discussionId: ID! @possibleTypes(concreteTypes: ["Discussion"]) """ The new discussion title. """ title: String } """ Autogenerated return type of UpdateDiscussion """ type UpdateDiscussionPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The modified discussion. """ discussion: Discussion } """ Autogenerated input type of UpdateEnterpriseAdministratorRole """ input UpdateEnterpriseAdministratorRoleInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the Enterprise which the admin belongs to. """ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) """ The login of a administrator whose role is being changed. """ login: String! """ The new role for the Enterprise administrator. """ role: EnterpriseAdministratorRole! } """ Autogenerated return type of UpdateEnterpriseAdministratorRole """ type UpdateEnterpriseAdministratorRolePayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ A message confirming the result of changing the administrator's role. """ message: String } """ Autogenerated input type of UpdateEnterpriseAllowPrivateRepositoryForkingSetting """ input UpdateEnterpriseAllowPrivateRepositoryForkingSettingInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the enterprise on which to set the allow private repository forking setting. """ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) """ The value for the allow private repository forking policy on the enterprise. """ policyValue: EnterpriseAllowPrivateRepositoryForkingPolicyValue """ The value for the allow private repository forking setting on the enterprise. """ settingValue: EnterpriseEnabledDisabledSettingValue! } """ Autogenerated return type of UpdateEnterpriseAllowPrivateRepositoryForkingSetting """ type UpdateEnterpriseAllowPrivateRepositoryForkingSettingPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The enterprise with the updated allow private repository forking setting. """ enterprise: Enterprise """ A message confirming the result of updating the allow private repository forking setting. """ message: String } """ Autogenerated input type of UpdateEnterpriseDefaultRepositoryPermissionSetting """ input UpdateEnterpriseDefaultRepositoryPermissionSettingInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the enterprise on which to set the base repository permission setting. """ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) """ The value for the base repository permission setting on the enterprise. """ settingValue: EnterpriseDefaultRepositoryPermissionSettingValue! } """ Autogenerated return type of UpdateEnterpriseDefaultRepositoryPermissionSetting """ type UpdateEnterpriseDefaultRepositoryPermissionSettingPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The enterprise with the updated base repository permission setting. """ enterprise: Enterprise """ A message confirming the result of updating the base repository permission setting. """ message: String } """ Autogenerated input type of UpdateEnterpriseMembersCanChangeRepositoryVisibilitySetting """ input UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the enterprise on which to set the members can change repository visibility setting. """ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) """ The value for the members can change repository visibility setting on the enterprise. """ settingValue: EnterpriseEnabledDisabledSettingValue! } """ Autogenerated return type of UpdateEnterpriseMembersCanChangeRepositoryVisibilitySetting """ type UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The enterprise with the updated members can change repository visibility setting. """ enterprise: Enterprise """ A message confirming the result of updating the members can change repository visibility setting. """ message: String } """ Autogenerated input type of UpdateEnterpriseMembersCanCreateRepositoriesSetting """ input UpdateEnterpriseMembersCanCreateRepositoriesSettingInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the enterprise on which to set the members can create repositories setting. """ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) """ Allow members to create internal repositories. Defaults to current value. """ membersCanCreateInternalRepositories: Boolean """ Allow members to create private repositories. Defaults to current value. """ membersCanCreatePrivateRepositories: Boolean """ Allow members to create public repositories. Defaults to current value. """ membersCanCreatePublicRepositories: Boolean """ When false, allow member organizations to set their own repository creation member privileges. """ membersCanCreateRepositoriesPolicyEnabled: Boolean """ Value for the members can create repositories setting on the enterprise. This or the granular public/private/internal allowed fields (but not both) must be provided. """ settingValue: EnterpriseMembersCanCreateRepositoriesSettingValue } """ Autogenerated return type of UpdateEnterpriseMembersCanCreateRepositoriesSetting """ type UpdateEnterpriseMembersCanCreateRepositoriesSettingPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The enterprise with the updated members can create repositories setting. """ enterprise: Enterprise """ A message confirming the result of updating the members can create repositories setting. """ message: String } """ Autogenerated input type of UpdateEnterpriseMembersCanDeleteIssuesSetting """ input UpdateEnterpriseMembersCanDeleteIssuesSettingInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the enterprise on which to set the members can delete issues setting. """ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) """ The value for the members can delete issues setting on the enterprise. """ settingValue: EnterpriseEnabledDisabledSettingValue! } """ Autogenerated return type of UpdateEnterpriseMembersCanDeleteIssuesSetting """ type UpdateEnterpriseMembersCanDeleteIssuesSettingPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The enterprise with the updated members can delete issues setting. """ enterprise: Enterprise """ A message confirming the result of updating the members can delete issues setting. """ message: String } """ Autogenerated input type of UpdateEnterpriseMembersCanDeleteRepositoriesSetting """ input UpdateEnterpriseMembersCanDeleteRepositoriesSettingInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the enterprise on which to set the members can delete repositories setting. """ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) """ The value for the members can delete repositories setting on the enterprise. """ settingValue: EnterpriseEnabledDisabledSettingValue! } """ Autogenerated return type of UpdateEnterpriseMembersCanDeleteRepositoriesSetting """ type UpdateEnterpriseMembersCanDeleteRepositoriesSettingPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The enterprise with the updated members can delete repositories setting. """ enterprise: Enterprise """ A message confirming the result of updating the members can delete repositories setting. """ message: String } """ Autogenerated input type of UpdateEnterpriseMembersCanInviteCollaboratorsSetting """ input UpdateEnterpriseMembersCanInviteCollaboratorsSettingInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the enterprise on which to set the members can invite collaborators setting. """ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) """ The value for the members can invite collaborators setting on the enterprise. """ settingValue: EnterpriseEnabledDisabledSettingValue! } """ Autogenerated return type of UpdateEnterpriseMembersCanInviteCollaboratorsSetting """ type UpdateEnterpriseMembersCanInviteCollaboratorsSettingPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The enterprise with the updated members can invite collaborators setting. """ enterprise: Enterprise """ A message confirming the result of updating the members can invite collaborators setting. """ message: String } """ Autogenerated input type of UpdateEnterpriseMembersCanMakePurchasesSetting """ input UpdateEnterpriseMembersCanMakePurchasesSettingInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the enterprise on which to set the members can make purchases setting. """ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) """ The value for the members can make purchases setting on the enterprise. """ settingValue: EnterpriseMembersCanMakePurchasesSettingValue! } """ Autogenerated return type of UpdateEnterpriseMembersCanMakePurchasesSetting """ type UpdateEnterpriseMembersCanMakePurchasesSettingPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The enterprise with the updated members can make purchases setting. """ enterprise: Enterprise """ A message confirming the result of updating the members can make purchases setting. """ message: String } """ Autogenerated input type of UpdateEnterpriseMembersCanUpdateProtectedBranchesSetting """ input UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the enterprise on which to set the members can update protected branches setting. """ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) """ The value for the members can update protected branches setting on the enterprise. """ settingValue: EnterpriseEnabledDisabledSettingValue! } """ Autogenerated return type of UpdateEnterpriseMembersCanUpdateProtectedBranchesSetting """ type UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The enterprise with the updated members can update protected branches setting. """ enterprise: Enterprise """ A message confirming the result of updating the members can update protected branches setting. """ message: String } """ Autogenerated input type of UpdateEnterpriseMembersCanViewDependencyInsightsSetting """ input UpdateEnterpriseMembersCanViewDependencyInsightsSettingInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the enterprise on which to set the members can view dependency insights setting. """ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) """ The value for the members can view dependency insights setting on the enterprise. """ settingValue: EnterpriseEnabledDisabledSettingValue! } """ Autogenerated return type of UpdateEnterpriseMembersCanViewDependencyInsightsSetting """ type UpdateEnterpriseMembersCanViewDependencyInsightsSettingPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The enterprise with the updated members can view dependency insights setting. """ enterprise: Enterprise """ A message confirming the result of updating the members can view dependency insights setting. """ message: String } """ Autogenerated input type of UpdateEnterpriseOrganizationProjectsSetting """ input UpdateEnterpriseOrganizationProjectsSettingInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the enterprise on which to set the organization projects setting. """ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) """ The value for the organization projects setting on the enterprise. """ settingValue: EnterpriseEnabledDisabledSettingValue! } """ Autogenerated return type of UpdateEnterpriseOrganizationProjectsSetting """ type UpdateEnterpriseOrganizationProjectsSettingPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The enterprise with the updated organization projects setting. """ enterprise: Enterprise """ A message confirming the result of updating the organization projects setting. """ message: String } """ Autogenerated input type of UpdateEnterpriseOwnerOrganizationRole """ input UpdateEnterpriseOwnerOrganizationRoleInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the Enterprise which the owner belongs to. """ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) """ The ID of the organization for membership change. """ organizationId: ID! @possibleTypes(concreteTypes: ["Organization"]) """ The role to assume in the organization. """ organizationRole: RoleInOrganization! } """ Autogenerated return type of UpdateEnterpriseOwnerOrganizationRole """ type UpdateEnterpriseOwnerOrganizationRolePayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ A message confirming the result of changing the owner's organization role. """ message: String } """ Autogenerated input type of UpdateEnterpriseProfile """ input UpdateEnterpriseProfileInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The description of the enterprise. """ description: String """ The Enterprise ID to update. """ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) """ The location of the enterprise. """ location: String """ The name of the enterprise. """ name: String """ The URL of the enterprise's website. """ websiteUrl: String } """ Autogenerated return type of UpdateEnterpriseProfile """ type UpdateEnterpriseProfilePayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The updated enterprise. """ enterprise: Enterprise } """ Autogenerated input type of UpdateEnterpriseRepositoryProjectsSetting """ input UpdateEnterpriseRepositoryProjectsSettingInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the enterprise on which to set the repository projects setting. """ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) """ The value for the repository projects setting on the enterprise. """ settingValue: EnterpriseEnabledDisabledSettingValue! } """ Autogenerated return type of UpdateEnterpriseRepositoryProjectsSetting """ type UpdateEnterpriseRepositoryProjectsSettingPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The enterprise with the updated repository projects setting. """ enterprise: Enterprise """ A message confirming the result of updating the repository projects setting. """ message: String } """ Autogenerated input type of UpdateEnterpriseTeamDiscussionsSetting """ input UpdateEnterpriseTeamDiscussionsSettingInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the enterprise on which to set the team discussions setting. """ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) """ The value for the team discussions setting on the enterprise. """ settingValue: EnterpriseEnabledDisabledSettingValue! } """ Autogenerated return type of UpdateEnterpriseTeamDiscussionsSetting """ type UpdateEnterpriseTeamDiscussionsSettingPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The enterprise with the updated team discussions setting. """ enterprise: Enterprise """ A message confirming the result of updating the team discussions setting. """ message: String } """ Autogenerated input type of UpdateEnterpriseTwoFactorAuthenticationRequiredSetting """ input UpdateEnterpriseTwoFactorAuthenticationRequiredSettingInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the enterprise on which to set the two factor authentication required setting. """ enterpriseId: ID! @possibleTypes(concreteTypes: ["Enterprise"]) """ The value for the two factor authentication required setting on the enterprise. """ settingValue: EnterpriseEnabledSettingValue! } """ Autogenerated return type of UpdateEnterpriseTwoFactorAuthenticationRequiredSetting """ type UpdateEnterpriseTwoFactorAuthenticationRequiredSettingPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The enterprise with the updated two factor authentication required setting. """ enterprise: Enterprise """ A message confirming the result of updating the two factor authentication required setting. """ message: String } """ Autogenerated input type of UpdateEnvironment """ input UpdateEnvironmentInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The node ID of the environment. """ environmentId: ID! @possibleTypes(concreteTypes: ["Environment"]) """ Whether deployments to this environment can be approved by the user who created the deployment. """ preventSelfReview: Boolean """ The ids of users or teams that can approve deployments to this environment """ reviewers: [ID!] """ The wait timer in minutes. """ waitTimer: Int } """ Autogenerated return type of UpdateEnvironment """ type UpdateEnvironmentPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The updated environment. """ environment: Environment } """ Autogenerated input type of UpdateIpAllowListEnabledSetting """ input UpdateIpAllowListEnabledSettingInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the owner on which to set the IP allow list enabled setting. """ ownerId: ID! @possibleTypes(concreteTypes: ["App", "Enterprise", "Organization"], abstractType: "IpAllowListOwner") """ The value for the IP allow list enabled setting. """ settingValue: IpAllowListEnabledSettingValue! } """ Autogenerated return type of UpdateIpAllowListEnabledSetting """ type UpdateIpAllowListEnabledSettingPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The IP allow list owner on which the setting was updated. """ owner: IpAllowListOwner } """ Autogenerated input type of UpdateIpAllowListEntry """ input UpdateIpAllowListEntryInput { """ An IP address or range of addresses in CIDR notation. """ allowListValue: String! """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the IP allow list entry to update. """ ipAllowListEntryId: ID! @possibleTypes(concreteTypes: ["IpAllowListEntry"]) """ Whether the IP allow list entry is active when an IP allow list is enabled. """ isActive: Boolean! """ An optional name for the IP allow list entry. """ name: String } """ Autogenerated return type of UpdateIpAllowListEntry """ type UpdateIpAllowListEntryPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The IP allow list entry that was updated. """ ipAllowListEntry: IpAllowListEntry } """ Autogenerated input type of UpdateIpAllowListForInstalledAppsEnabledSetting """ input UpdateIpAllowListForInstalledAppsEnabledSettingInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the owner. """ ownerId: ID! @possibleTypes(concreteTypes: ["App", "Enterprise", "Organization"], abstractType: "IpAllowListOwner") """ The value for the IP allow list configuration for installed GitHub Apps setting. """ settingValue: IpAllowListForInstalledAppsEnabledSettingValue! } """ Autogenerated return type of UpdateIpAllowListForInstalledAppsEnabledSetting """ type UpdateIpAllowListForInstalledAppsEnabledSettingPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The IP allow list owner on which the setting was updated. """ owner: IpAllowListOwner } """ Autogenerated input type of UpdateIssueComment """ input UpdateIssueCommentInput { """ The updated text of the comment. """ body: String! """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the IssueComment to modify. """ id: ID! @possibleTypes(concreteTypes: ["IssueComment"]) } """ Autogenerated return type of UpdateIssueComment """ type UpdateIssueCommentPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The updated comment. """ issueComment: IssueComment } """ Autogenerated input type of UpdateIssue """ input UpdateIssueInput { """ An array of Node IDs of users for this issue. """ assigneeIds: [ID!] @possibleTypes(concreteTypes: ["User"]) """ The body for the issue description. """ body: String """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the Issue to modify. """ id: ID! @possibleTypes(concreteTypes: ["Issue"]) """ An array of Node IDs of labels for this issue. """ labelIds: [ID!] @possibleTypes(concreteTypes: ["Label"]) """ The Node ID of the milestone for this issue. """ milestoneId: ID @possibleTypes(concreteTypes: ["Milestone"]) """ An array of Node IDs for projects associated with this issue. """ projectIds: [ID!] """ The desired issue state. """ state: IssueState """ The title for the issue. """ title: String } """ Autogenerated return type of UpdateIssue """ type UpdateIssuePayload { """ Identifies the actor who performed the event. """ actor: Actor """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The issue. """ issue: Issue } """ Autogenerated input type of UpdateLabel """ input UpdateLabelInput @preview(toggledBy: "bane-preview") { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ A 6 character hex code, without the leading #, identifying the updated color of the label. """ color: String """ A brief description of the label, such as its purpose. """ description: String """ The Node ID of the label to be updated. """ id: ID! @possibleTypes(concreteTypes: ["Label"]) """ The updated name of the label. """ name: String } """ Autogenerated return type of UpdateLabel """ type UpdateLabelPayload @preview(toggledBy: "bane-preview") { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The updated label. """ label: Label } """ Autogenerated input type of UpdateNotificationRestrictionSetting """ input UpdateNotificationRestrictionSettingInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the owner on which to set the restrict notifications setting. """ ownerId: ID! @possibleTypes(concreteTypes: ["Enterprise", "Organization"], abstractType: "VerifiableDomainOwner") """ The value for the restrict notifications setting. """ settingValue: NotificationRestrictionSettingValue! } """ Autogenerated return type of UpdateNotificationRestrictionSetting """ type UpdateNotificationRestrictionSettingPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The owner on which the setting was updated. """ owner: VerifiableDomainOwner } """ Autogenerated input type of UpdateOrganizationAllowPrivateRepositoryForkingSetting """ input UpdateOrganizationAllowPrivateRepositoryForkingSettingInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Enable forking of private repositories in the organization? """ forkingEnabled: Boolean! """ The ID of the organization on which to set the allow private repository forking setting. """ organizationId: ID! @possibleTypes(concreteTypes: ["Organization"]) } """ Autogenerated return type of UpdateOrganizationAllowPrivateRepositoryForkingSetting """ type UpdateOrganizationAllowPrivateRepositoryForkingSettingPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ A message confirming the result of updating the allow private repository forking setting. """ message: String """ The organization with the updated allow private repository forking setting. """ organization: Organization } """ Autogenerated input type of UpdateOrganizationWebCommitSignoffSetting """ input UpdateOrganizationWebCommitSignoffSettingInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the organization on which to set the web commit signoff setting. """ organizationId: ID! @possibleTypes(concreteTypes: ["Organization"]) """ Enable signoff on web-based commits for repositories in the organization? """ webCommitSignoffRequired: Boolean! } """ Autogenerated return type of UpdateOrganizationWebCommitSignoffSetting """ type UpdateOrganizationWebCommitSignoffSettingPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ A message confirming the result of updating the web commit signoff setting. """ message: String """ The organization with the updated web commit signoff setting. """ organization: Organization } """ Only allow users with bypass permission to update matching refs. """ type UpdateParameters { """ Branch can pull changes from its upstream repository """ updateAllowsFetchAndMerge: Boolean! } """ Only allow users with bypass permission to update matching refs. """ input UpdateParametersInput { """ Branch can pull changes from its upstream repository """ updateAllowsFetchAndMerge: Boolean! } """ Autogenerated input type of UpdatePatreonSponsorability """ input UpdatePatreonSponsorabilityInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Whether Patreon tiers should be shown on the GitHub Sponsors profile page, allowing potential sponsors to make their payment through Patreon instead of GitHub. """ enablePatreonSponsorships: Boolean! """ The username of the organization with the GitHub Sponsors profile, if any. Defaults to the GitHub Sponsors profile for the authenticated user if omitted. """ sponsorableLogin: String } """ Autogenerated return type of UpdatePatreonSponsorability """ type UpdatePatreonSponsorabilityPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The GitHub Sponsors profile. """ sponsorsListing: SponsorsListing } """ Autogenerated input type of UpdateProjectCard """ input UpdateProjectCardInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Whether or not the ProjectCard should be archived """ isArchived: Boolean """ The note of ProjectCard. """ note: String """ The ProjectCard ID to update. """ projectCardId: ID! @possibleTypes(concreteTypes: ["ProjectCard"]) } """ Autogenerated return type of UpdateProjectCard """ type UpdateProjectCardPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The updated ProjectCard. """ projectCard: ProjectCard } """ Autogenerated input type of UpdateProjectColumn """ input UpdateProjectColumnInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The name of project column. """ name: String! """ The ProjectColumn ID to update. """ projectColumnId: ID! @possibleTypes(concreteTypes: ["ProjectColumn"]) } """ Autogenerated return type of UpdateProjectColumn """ type UpdateProjectColumnPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The updated project column. """ projectColumn: ProjectColumn } """ Autogenerated input type of UpdateProject """ input UpdateProjectInput { """ The description of project. """ body: String """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The name of project. """ name: String """ The Project ID to update. """ projectId: ID! @possibleTypes(concreteTypes: ["Project"]) """ Whether the project is public or not. """ public: Boolean """ Whether the project is open or closed. """ state: ProjectState } """ Autogenerated return type of UpdateProject """ type UpdateProjectPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The updated project. """ project: Project } """ Autogenerated input type of UpdateProjectV2Collaborators """ input UpdateProjectV2CollaboratorsInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The collaborators to update. """ collaborators: [ProjectV2Collaborator!]! """ The ID of the project to update the collaborators for. """ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"]) } """ Autogenerated return type of UpdateProjectV2Collaborators """ type UpdateProjectV2CollaboratorsPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The collaborators granted a role """ collaborators( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): ProjectV2ActorConnection } """ Autogenerated input type of UpdateProjectV2DraftIssue """ input UpdateProjectV2DraftIssueInput { """ The IDs of the assignees of the draft issue. """ assigneeIds: [ID!] @possibleTypes(concreteTypes: ["User"]) """ The body of the draft issue. """ body: String """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the draft issue to update. """ draftIssueId: ID! @possibleTypes(concreteTypes: ["DraftIssue"]) """ The title of the draft issue. """ title: String } """ Autogenerated return type of UpdateProjectV2DraftIssue """ type UpdateProjectV2DraftIssuePayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The draft issue updated in the project. """ draftIssue: DraftIssue } """ Autogenerated input type of UpdateProjectV2 """ input UpdateProjectV2Input { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Set the project to closed or open. """ closed: Boolean """ The ID of the Project to update. """ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"]) """ Set the project to public or private. """ public: Boolean """ Set the readme description of the project. """ readme: String """ Set the short description of the project. """ shortDescription: String """ Set the title of the project. """ title: String } """ Autogenerated input type of UpdateProjectV2ItemFieldValue """ input UpdateProjectV2ItemFieldValueInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the field to be updated. """ fieldId: ID! @possibleTypes( concreteTypes: ["ProjectV2Field", "ProjectV2IterationField", "ProjectV2SingleSelectField"] abstractType: "ProjectV2FieldConfiguration" ) """ The ID of the item to be updated. """ itemId: ID! @possibleTypes(concreteTypes: ["ProjectV2Item"]) """ The ID of the Project. """ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"]) """ The value which will be set on the field. """ value: ProjectV2FieldValue! } """ Autogenerated return type of UpdateProjectV2ItemFieldValue """ type UpdateProjectV2ItemFieldValuePayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The updated item. """ projectV2Item: ProjectV2Item } """ Autogenerated input type of UpdateProjectV2ItemPosition """ input UpdateProjectV2ItemPositionInput { """ The ID of the item to position this item after. If omitted or set to null the item will be moved to top. """ afterId: ID @possibleTypes(concreteTypes: ["ProjectV2Item"]) """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the item to be moved. """ itemId: ID! @possibleTypes(concreteTypes: ["ProjectV2Item"]) """ The ID of the Project. """ projectId: ID! @possibleTypes(concreteTypes: ["ProjectV2"]) } """ Autogenerated return type of UpdateProjectV2ItemPosition """ type UpdateProjectV2ItemPositionPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The items in the new order """ items( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): ProjectV2ItemConnection } """ Autogenerated return type of UpdateProjectV2 """ type UpdateProjectV2Payload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The updated Project. """ projectV2: ProjectV2 } """ Autogenerated input type of UpdatePullRequestBranch """ input UpdatePullRequestBranchInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The head ref oid for the upstream branch. """ expectedHeadOid: GitObjectID """ The Node ID of the pull request. """ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"]) """ The update branch method to use. If omitted, defaults to 'MERGE' """ updateMethod: PullRequestBranchUpdateMethod } """ Autogenerated return type of UpdatePullRequestBranch """ type UpdatePullRequestBranchPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The updated pull request. """ pullRequest: PullRequest } """ Autogenerated input type of UpdatePullRequest """ input UpdatePullRequestInput { """ An array of Node IDs of users for this pull request. """ assigneeIds: [ID!] @possibleTypes(concreteTypes: ["User"]) """ The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. """ baseRefName: String """ The contents of the pull request. """ body: String """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ An array of Node IDs of labels for this pull request. """ labelIds: [ID!] @possibleTypes(concreteTypes: ["Label"]) """ Indicates whether maintainers can modify the pull request. """ maintainerCanModify: Boolean """ The Node ID of the milestone for this pull request. """ milestoneId: ID @possibleTypes(concreteTypes: ["Milestone"]) """ An array of Node IDs for projects associated with this pull request. """ projectIds: [ID!] """ The Node ID of the pull request. """ pullRequestId: ID! @possibleTypes(concreteTypes: ["PullRequest"]) """ The target state of the pull request. """ state: PullRequestUpdateState """ The title of the pull request. """ title: String } """ Autogenerated return type of UpdatePullRequest """ type UpdatePullRequestPayload { """ Identifies the actor who performed the event. """ actor: Actor """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The updated pull request. """ pullRequest: PullRequest } """ Autogenerated input type of UpdatePullRequestReviewComment """ input UpdatePullRequestReviewCommentInput { """ The text of the comment. """ body: String! """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Node ID of the comment to modify. """ pullRequestReviewCommentId: ID! @possibleTypes(concreteTypes: ["PullRequestReviewComment"]) } """ Autogenerated return type of UpdatePullRequestReviewComment """ type UpdatePullRequestReviewCommentPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The updated comment. """ pullRequestReviewComment: PullRequestReviewComment } """ Autogenerated input type of UpdatePullRequestReview """ input UpdatePullRequestReviewInput { """ The contents of the pull request review body. """ body: String! """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Node ID of the pull request review to modify. """ pullRequestReviewId: ID! @possibleTypes(concreteTypes: ["PullRequestReview"]) } """ Autogenerated return type of UpdatePullRequestReview """ type UpdatePullRequestReviewPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The updated pull request review. """ pullRequestReview: PullRequestReview } """ Autogenerated input type of UpdateRef """ input UpdateRefInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Permit updates of branch Refs that are not fast-forwards? """ force: Boolean = false """ The GitObjectID that the Ref shall be updated to target. """ oid: GitObjectID! """ The Node ID of the Ref to be updated. """ refId: ID! @possibleTypes(concreteTypes: ["Ref"]) } """ Autogenerated return type of UpdateRef """ type UpdateRefPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The updated Ref. """ ref: Ref } """ Autogenerated input type of UpdateRefs """ input UpdateRefsInput @preview(toggledBy: "update-refs-preview") { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ A list of ref updates. """ refUpdates: [RefUpdate!]! """ The Node ID of the repository. """ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"]) } """ Autogenerated return type of UpdateRefs """ type UpdateRefsPayload @preview(toggledBy: "update-refs-preview") { """ A unique identifier for the client performing the mutation. """ clientMutationId: String } """ Autogenerated input type of UpdateRepository """ input UpdateRepositoryInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ A new description for the repository. Pass an empty string to erase the existing description. """ description: String """ Indicates if the repository should have the discussions feature enabled. """ hasDiscussionsEnabled: Boolean """ Indicates if the repository should have the issues feature enabled. """ hasIssuesEnabled: Boolean """ Indicates if the repository should have the project boards feature enabled. """ hasProjectsEnabled: Boolean """ Indicates if the repository should have the wiki feature enabled. """ hasWikiEnabled: Boolean """ The URL for a web page about this repository. Pass an empty string to erase the existing URL. """ homepageUrl: URI """ The new name of the repository. """ name: String """ The ID of the repository to update. """ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"]) """ Whether this repository should be marked as a template such that anyone who can access it can create new repositories with the same files and directory structure. """ template: Boolean } """ Autogenerated return type of UpdateRepository """ type UpdateRepositoryPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The updated repository. """ repository: Repository } """ Autogenerated input type of UpdateRepositoryRuleset """ input UpdateRepositoryRulesetInput { """ A list of actors that are allowed to bypass rules in this ruleset. """ bypassActors: [RepositoryRulesetBypassActorInput!] """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The list of conditions for this ruleset """ conditions: RepositoryRuleConditionsInput """ The enforcement level for this ruleset """ enforcement: RuleEnforcement """ The name of the ruleset. """ name: String """ The global relay id of the repository ruleset to be updated. """ repositoryRulesetId: ID! @possibleTypes(concreteTypes: ["RepositoryRuleset"]) """ The list of rules for this ruleset """ rules: [RepositoryRuleInput!] """ The target of the ruleset. """ target: RepositoryRulesetTarget } """ Autogenerated return type of UpdateRepositoryRuleset """ type UpdateRepositoryRulesetPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The newly created Ruleset. """ ruleset: RepositoryRuleset } """ Autogenerated input type of UpdateRepositoryWebCommitSignoffSetting """ input UpdateRepositoryWebCommitSignoffSettingInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the repository to update. """ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"]) """ Indicates if the repository should require signoff on web-based commits. """ webCommitSignoffRequired: Boolean! } """ Autogenerated return type of UpdateRepositoryWebCommitSignoffSetting """ type UpdateRepositoryWebCommitSignoffSettingPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ A message confirming the result of updating the web commit signoff setting. """ message: String """ The updated repository. """ repository: Repository } """ Autogenerated input type of UpdateSponsorshipPreferences """ input UpdateSponsorshipPreferencesInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Specify whether others should be able to see that the sponsor is sponsoring the sponsorable. Public visibility still does not reveal which tier is used. """ privacyLevel: SponsorshipPrivacy = PUBLIC """ Whether the sponsor should receive email updates from the sponsorable. """ receiveEmails: Boolean = true """ The ID of the user or organization who is acting as the sponsor, paying for the sponsorship. Required if sponsorLogin is not given. """ sponsorId: ID @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "Sponsor") """ The username of the user or organization who is acting as the sponsor, paying for the sponsorship. Required if sponsorId is not given. """ sponsorLogin: String """ The ID of the user or organization who is receiving the sponsorship. Required if sponsorableLogin is not given. """ sponsorableId: ID @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "Sponsorable") """ The username of the user or organization who is receiving the sponsorship. Required if sponsorableId is not given. """ sponsorableLogin: String } """ Autogenerated return type of UpdateSponsorshipPreferences """ type UpdateSponsorshipPreferencesPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The sponsorship that was updated. """ sponsorship: Sponsorship } """ Autogenerated input type of UpdateSubscription """ input UpdateSubscriptionInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The new state of the subscription. """ state: SubscriptionState! """ The Node ID of the subscribable object to modify. """ subscribableId: ID! @possibleTypes( concreteTypes: ["Commit", "Discussion", "Issue", "PullRequest", "Repository", "Team", "TeamDiscussion"] abstractType: "Subscribable" ) } """ Autogenerated return type of UpdateSubscription """ type UpdateSubscriptionPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The input subscribable entity. """ subscribable: Subscribable } """ Autogenerated input type of UpdateTeamDiscussionComment """ input UpdateTeamDiscussionCommentInput { """ The updated text of the comment. """ body: String! """ The current version of the body content. """ bodyVersion: String """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the comment to modify. """ id: ID! @possibleTypes(concreteTypes: ["TeamDiscussionComment"]) } """ Autogenerated return type of UpdateTeamDiscussionComment """ type UpdateTeamDiscussionCommentPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The updated comment. """ teamDiscussionComment: TeamDiscussionComment } """ Autogenerated input type of UpdateTeamDiscussion """ input UpdateTeamDiscussionInput { """ The updated text of the discussion. """ body: String """ The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server. """ bodyVersion: String """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Node ID of the discussion to modify. """ id: ID! @possibleTypes(concreteTypes: ["TeamDiscussion"]) """ If provided, sets the pinned state of the updated discussion. """ pinned: Boolean """ The updated title of the discussion. """ title: String } """ Autogenerated return type of UpdateTeamDiscussion """ type UpdateTeamDiscussionPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The updated discussion. """ teamDiscussion: TeamDiscussion } """ Autogenerated input type of UpdateTeamReviewAssignment """ input UpdateTeamReviewAssignmentInput @preview(toggledBy: "stone-crop-preview") { """ The algorithm to use for review assignment """ algorithm: TeamReviewAssignmentAlgorithm = ROUND_ROBIN """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Turn on or off review assignment """ enabled: Boolean! """ An array of team member IDs to exclude """ excludedTeamMemberIds: [ID!] @possibleTypes(concreteTypes: ["User"]) """ The Node ID of the team to update review assignments of """ id: ID! @possibleTypes(concreteTypes: ["Team"]) """ Notify the entire team of the PR if it is delegated """ notifyTeam: Boolean = true """ The number of team members to assign """ teamMemberCount: Int = 1 } """ Autogenerated return type of UpdateTeamReviewAssignment """ type UpdateTeamReviewAssignmentPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The team that was modified """ team: Team } """ Autogenerated input type of UpdateTeamsRepository """ input UpdateTeamsRepositoryInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Permission that should be granted to the teams. """ permission: RepositoryPermission! """ Repository ID being granted access to. """ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"]) """ A list of teams being granted access. Limit: 10 """ teamIds: [ID!]! @possibleTypes(concreteTypes: ["Team"]) } """ Autogenerated return type of UpdateTeamsRepository """ type UpdateTeamsRepositoryPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The repository that was updated. """ repository: Repository """ The teams granted permission on the repository. """ teams: [Team!] } """ Autogenerated input type of UpdateTopics """ input UpdateTopicsInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The Node ID of the repository. """ repositoryId: ID! @possibleTypes(concreteTypes: ["Repository"]) """ An array of topic names. """ topicNames: [String!]! } """ Autogenerated return type of UpdateTopics """ type UpdateTopicsPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ Names of the provided topics that are not valid. """ invalidTopicNames: [String!] """ The updated repository. """ repository: Repository } """ Autogenerated input type of UpdateUserList """ input UpdateUserListInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ A description of the list """ description: String """ Whether or not the list is private """ isPrivate: Boolean """ The ID of the list to update. """ listId: ID! @possibleTypes(concreteTypes: ["UserList"]) """ The name of the list """ name: String } """ Autogenerated return type of UpdateUserList """ type UpdateUserListPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The list that was just updated """ list: UserList } """ Autogenerated input type of UpdateUserListsForItem """ input UpdateUserListsForItemInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The item to add to the list """ itemId: ID! @possibleTypes(concreteTypes: ["Repository"], abstractType: "UserListItems") """ The lists to which this item should belong """ listIds: [ID!]! @possibleTypes(concreteTypes: ["UserList"]) """ The suggested lists to create and add this item to """ suggestedListIds: [ID!] @possibleTypes(concreteTypes: ["UserListSuggestion"]) } """ Autogenerated return type of UpdateUserListsForItem """ type UpdateUserListsForItemPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The item that was added """ item: UserListItems """ The lists to which this item belongs """ lists: [UserList!] """ The user who owns the lists """ user: User } """ A user is an individual's account on GitHub that owns repositories and can make new content. """ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner & ProjectV2Owner & ProjectV2Recent & RepositoryDiscussionAuthor & RepositoryDiscussionCommentAuthor & RepositoryOwner & Sponsorable & UniformResourceLocatable { """ Determine if this repository owner has any items that can be pinned to their profile. """ anyPinnableItems( """ Filter to only a particular kind of pinnable item. """ type: PinnableItemType ): Boolean! """ A URL pointing to the user's public avatar. """ avatarUrl( """ The size of the resulting square image. """ size: Int ): URI! """ The user's public profile bio. """ bio: String """ The user's public profile bio as HTML. """ bioHTML: HTML! """ Could this user receive email notifications, if the organization had notification restrictions enabled? """ canReceiveOrganizationEmailsWhenNotificationsRestricted( """ The login of the organization to check. """ login: String! ): Boolean! """ A list of commit comments made by this user. """ commitComments( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): CommitCommentConnection! """ The user's public profile company. """ company: String """ The user's public profile company as HTML. """ companyHTML: HTML! """ The collection of contributions this user has made to different repositories. """ contributionsCollection( """ Only contributions made at this time or later will be counted. If omitted, defaults to a year ago. """ from: DateTime """ The ID of the organization used to filter contributions. """ organizationID: ID """ Only contributions made before and up to (including) this time will be counted. If omitted, defaults to the current time or one year from the provided from argument. """ to: DateTime ): ContributionsCollection! """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the primary key from the database. """ databaseId: Int """ The user's publicly visible profile email. """ email: String! """ A list of enterprises that the user belongs to. """ enterprises( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Filter enterprises returned based on the user's membership type. """ membershipType: EnterpriseMembershipType = ALL """ Ordering options for the User's enterprises. """ orderBy: EnterpriseOrder = {field: NAME, direction: ASC} ): EnterpriseConnection """ The estimated next GitHub Sponsors payout for this user/organization in cents (USD). """ estimatedNextSponsorsPayoutInCents: Int! """ A list of users the given user is followed by. """ followers( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): FollowerConnection! """ A list of users the given user is following. """ following( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): FollowingConnection! """ Find gist by repo name. """ gist( """ The gist name to find. """ name: String! ): Gist """ A list of gist comments made by this user. """ gistComments( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): GistCommentConnection! """ A list of the Gists the user has created. """ gists( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for gists returned from the connection """ orderBy: GistOrder """ Filters Gists according to privacy. """ privacy: GistPrivacy ): GistConnection! """ True if this user/organization has a GitHub Sponsors listing. """ hasSponsorsListing: Boolean! """ The hovercard information for this user in a given context """ hovercard( """ The ID of the subject to get the hovercard in the context of """ primarySubjectId: ID ): Hovercard! """ The Node ID of the User object """ id: ID! """ The interaction ability settings for this user. """ interactionAbility: RepositoryInteractionAbility """ Whether or not this user is a participant in the GitHub Security Bug Bounty. """ isBountyHunter: Boolean! """ Whether or not this user is a participant in the GitHub Campus Experts Program. """ isCampusExpert: Boolean! """ Whether or not this user is a GitHub Developer Program member. """ isDeveloperProgramMember: Boolean! """ Whether or not this user is a GitHub employee. """ isEmployee: Boolean! """ Whether or not this user is following the viewer. Inverse of viewerIsFollowing """ isFollowingViewer: Boolean! """ Whether or not this user is a member of the GitHub Stars Program. """ isGitHubStar: Boolean! """ Whether or not the user has marked themselves as for hire. """ isHireable: Boolean! """ Whether or not this user is a site administrator. """ isSiteAdmin: Boolean! """ Whether the given account is sponsoring this user/organization. """ isSponsoredBy( """ The target account's login. """ accountLogin: String! ): Boolean! """ True if the viewer is sponsored by this user/organization. """ isSponsoringViewer: Boolean! """ Whether or not this user is the viewing user. """ isViewer: Boolean! """ A list of issue comments made by this user. """ issueComments( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for issue comments returned from the connection. """ orderBy: IssueCommentOrder ): IssueCommentConnection! """ A list of issues associated with this user. """ issues( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Filtering options for issues returned from the connection. """ filterBy: IssueFilters """ Returns the first _n_ elements from the list. """ first: Int """ A list of label names to filter the pull requests by. """ labels: [String!] """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for issues returned from the connection. """ orderBy: IssueOrder """ A list of states to filter the issues by. """ states: [IssueState!] ): IssueConnection! """ Showcases a selection of repositories and gists that the profile owner has either curated or that have been selected automatically based on popularity. """ itemShowcase: ProfileItemShowcase! """ A user-curated list of repositories """ lists( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): UserListConnection! """ The user's public profile location. """ location: String """ The username used to login. """ login: String! """ The estimated monthly GitHub Sponsors income for this user/organization in cents (USD). """ monthlyEstimatedSponsorsIncomeInCents: Int! """ The user's public profile name. """ name: String """ Find an organization by its login that the user belongs to. """ organization( """ The login of the organization to find. """ login: String! ): Organization """ Verified email addresses that match verified domains for a specified organization the user is a member of. """ organizationVerifiedDomainEmails( """ The login of the organization to match verified domains from. """ login: String! ): [String!]! """ A list of organizations the user belongs to. """ organizations( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for the User's organizations. """ orderBy: OrganizationOrder = null ): OrganizationConnection! """ A list of packages under the owner. """ packages( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Find packages by their names. """ names: [String] """ Ordering of the returned packages. """ orderBy: PackageOrder = {field: CREATED_AT, direction: DESC} """ Filter registry package by type. """ packageType: PackageType """ Find packages in a repository by ID. """ repositoryId: ID ): PackageConnection! """ A list of repositories and gists this profile owner can pin to their profile. """ pinnableItems( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Filter the types of pinnable items that are returned. """ types: [PinnableItemType!] ): PinnableItemConnection! """ A list of repositories and gists this profile owner has pinned to their profile """ pinnedItems( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Filter the types of pinned items that are returned. """ types: [PinnableItemType!] ): PinnableItemConnection! """ Returns how many more items this profile owner can pin to their profile. """ pinnedItemsRemaining: Int! """ Find project by number. """ project( """ The project number to find. """ number: Int! ): Project """ Find a project by number. """ projectV2( """ The project number. """ number: Int! ): ProjectV2 """ A list of projects under the owner. """ projects( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for projects returned from the connection """ orderBy: ProjectOrder """ Query to search projects by, currently only searching by name. """ search: String """ A list of states to filter the projects by. """ states: [ProjectState!] ): ProjectConnection! """ The HTTP path listing user's projects """ projectsResourcePath: URI! """ The HTTP URL listing user's projects """ projectsUrl: URI! """ A list of projects under the owner. """ projectsV2( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ How to order the returned projects. """ orderBy: ProjectV2Order = {field: NUMBER, direction: DESC} """ A project to search for under the the owner. """ query: String ): ProjectV2Connection! """ The user's profile pronouns """ pronouns: String """ A list of public keys associated with this user. """ publicKeys( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): PublicKeyConnection! """ A list of pull requests associated with this user. """ pullRequests( """ Returns the elements in the list that come after the specified cursor. """ after: String """ The base ref name to filter the pull requests by. """ baseRefName: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ The head ref name to filter the pull requests by. """ headRefName: String """ A list of label names to filter the pull requests by. """ labels: [String!] """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for pull requests returned from the connection. """ orderBy: IssueOrder """ A list of states to filter the pull requests by. """ states: [PullRequestState!] ): PullRequestConnection! """ Recent projects that this user has modified in the context of the owner. """ recentProjects( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): ProjectV2Connection! """ A list of repositories that the user owns. """ repositories( """ Array of viewer's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the current viewer owns. """ affiliations: [RepositoryAffiliation] """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ If non-null, filters repositories according to whether they have issues enabled """ hasIssuesEnabled: Boolean """ If non-null, filters repositories according to whether they are archived and not maintained """ isArchived: Boolean """ If non-null, filters repositories according to whether they are forks of another repository """ isFork: Boolean """ If non-null, filters repositories according to whether they have been locked """ isLocked: Boolean """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for repositories returned from the connection """ orderBy: RepositoryOrder """ Array of owner's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the organization or user being viewed owns. """ ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR] """ If non-null, filters repositories according to privacy """ privacy: RepositoryPrivacy ): RepositoryConnection! """ A list of repositories that the user recently contributed to. """ repositoriesContributedTo( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ If non-null, include only the specified types of contributions. The GitHub.com UI uses [COMMIT, ISSUE, PULL_REQUEST, REPOSITORY] """ contributionTypes: [RepositoryContributionType] """ Returns the first _n_ elements from the list. """ first: Int """ If non-null, filters repositories according to whether they have issues enabled """ hasIssues: Boolean """ If true, include user repositories """ includeUserRepositories: Boolean """ If non-null, filters repositories according to whether they have been locked """ isLocked: Boolean """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for repositories returned from the connection """ orderBy: RepositoryOrder """ If non-null, filters repositories according to privacy """ privacy: RepositoryPrivacy ): RepositoryConnection! """ Find Repository. """ repository( """ Follow repository renames. If disabled, a repository referenced by its old name will return an error. """ followRenames: Boolean = true """ Name of Repository to find. """ name: String! ): Repository """ Discussion comments this user has authored. """ repositoryDiscussionComments( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Filter discussion comments to only those that were marked as the answer """ onlyAnswers: Boolean = false """ Filter discussion comments to only those in a specific repository. """ repositoryId: ID ): DiscussionCommentConnection! """ Discussions this user has started. """ repositoryDiscussions( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Filter discussions to only those that have been answered or not. Defaults to including both answered and unanswered discussions. """ answered: Boolean = null """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for discussions returned from the connection. """ orderBy: DiscussionOrder = {field: CREATED_AT, direction: DESC} """ Filter discussions to only those in a specific repository. """ repositoryId: ID """ A list of states to filter the discussions by. """ states: [DiscussionState!] = [] ): DiscussionConnection! """ The HTTP path for this user """ resourcePath: URI! """ Replies this user has saved """ savedReplies( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ The field to order saved replies by. """ orderBy: SavedReplyOrder = {field: UPDATED_AT, direction: DESC} ): SavedReplyConnection """ The user's social media accounts, ordered as they appear on the user's profile. """ socialAccounts( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): SocialAccountConnection! """ List of users and organizations this entity is sponsoring. """ sponsoring( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for the users and organizations returned from the connection. """ orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC} ): SponsorConnection! """ List of sponsors for this user or organization. """ sponsors( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for sponsors returned from the connection. """ orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC} """ If given, will filter for sponsors at the given tier. Will only return sponsors whose tier the viewer is permitted to see. """ tierId: ID ): SponsorConnection! """ Events involving this sponsorable, such as new sponsorships. """ sponsorsActivities( """ Filter activities to only the specified actions. """ actions: [SponsorsActivityAction!] = [] """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Whether to include those events where this sponsorable acted as the sponsor. Defaults to only including events where this sponsorable was the recipient of a sponsorship. """ includeAsSponsor: Boolean = false """ Whether or not to include private activities in the result set. Defaults to including public and private activities. """ includePrivate: Boolean = true """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for activity returned from the connection. """ orderBy: SponsorsActivityOrder = {field: TIMESTAMP, direction: DESC} """ Filter activities returned to only those that occurred in the most recent specified time period. Set to ALL to avoid filtering by when the activity occurred. Will be ignored if `since` or `until` is given. """ period: SponsorsActivityPeriod = MONTH """ Filter activities to those that occurred on or after this time. """ since: DateTime """ Filter activities to those that occurred before this time. """ until: DateTime ): SponsorsActivityConnection! """ The GitHub Sponsors listing for this user or organization. """ sponsorsListing: SponsorsListing """ The sponsorship from the viewer to this user/organization; that is, the sponsorship where you're the sponsor. """ sponsorshipForViewerAsSponsor( """ Whether to return the sponsorship only if it's still active. Pass false to get the viewer's sponsorship back even if it has been cancelled. """ activeOnly: Boolean = true ): Sponsorship """ The sponsorship from this user/organization to the viewer; that is, the sponsorship you're receiving. """ sponsorshipForViewerAsSponsorable( """ Whether to return the sponsorship only if it's still active. Pass false to get the sponsorship back even if it has been cancelled. """ activeOnly: Boolean = true ): Sponsorship """ List of sponsorship updates sent from this sponsorable to sponsors. """ sponsorshipNewsletters( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for sponsorship updates returned from the connection. """ orderBy: SponsorshipNewsletterOrder = {field: CREATED_AT, direction: DESC} ): SponsorshipNewsletterConnection! """ The sponsorships where this user or organization is the maintainer receiving the funds. """ sponsorshipsAsMaintainer( """ Whether to include only sponsorships that are active right now, versus all sponsorships this maintainer has ever received. """ activeOnly: Boolean = true """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Whether or not to include private sponsorships in the result set """ includePrivate: Boolean = false """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer. """ orderBy: SponsorshipOrder ): SponsorshipConnection! """ The sponsorships where this user or organization is the funder. """ sponsorshipsAsSponsor( """ Whether to include only sponsorships that are active right now, versus all sponsorships this sponsor has ever made. """ activeOnly: Boolean = true """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Filter sponsorships returned to those for the specified maintainers. That is, the recipient of the sponsorship is a user or organization with one of the given logins. """ maintainerLogins: [String!] """ Ordering options for sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer. """ orderBy: SponsorshipOrder ): SponsorshipConnection! """ Repositories the user has starred. """ starredRepositories( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Order for connection """ orderBy: StarOrder """ Filters starred repositories to only return repositories owned by the viewer. """ ownedByViewer: Boolean ): StarredRepositoryConnection! """ The user's description of what they're currently doing. """ status: UserStatus """ Suggested names for user lists """ suggestedListNames: [UserListSuggestion!]! """ Repositories the user has contributed to, ordered by contribution rank, plus repositories the user has created """ topRepositories( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for repositories returned from the connection """ orderBy: RepositoryOrder! """ How far back in time to fetch contributed repositories """ since: DateTime ): RepositoryConnection! """ The amount in United States cents (e.g., 500 = $5.00 USD) that this entity has spent on GitHub to fund sponsorships. Only returns a value when viewed by the user themselves or by a user who can manage sponsorships for the requested organization. """ totalSponsorshipAmountAsSponsorInCents( """ Filter payments to those that occurred on or after this time. """ since: DateTime """ Filter payments to those made to the users or organizations with the specified usernames. """ sponsorableLogins: [String!] = [] """ Filter payments to those that occurred before this time. """ until: DateTime ): Int """ The user's Twitter username. """ twitterUsername: String """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The HTTP URL for this user """ url: URI! """ Can the viewer pin repositories and gists to the profile? """ viewerCanChangePinnedItems: Boolean! """ Can the current viewer create new projects on this owner. """ viewerCanCreateProjects: Boolean! """ Whether or not the viewer is able to follow the user. """ viewerCanFollow: Boolean! """ Whether or not the viewer is able to sponsor this user/organization. """ viewerCanSponsor: Boolean! """ Whether or not this user is followed by the viewer. Inverse of isFollowingViewer. """ viewerIsFollowing: Boolean! """ True if the viewer is sponsoring this user/organization. """ viewerIsSponsoring: Boolean! """ A list of repositories the given user is watching. """ watching( """ Affiliation options for repositories returned from the connection. If none specified, the results will include repositories for which the current viewer is an owner or collaborator, or member. """ affiliations: [RepositoryAffiliation] """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ If non-null, filters repositories according to whether they have issues enabled """ hasIssuesEnabled: Boolean """ If non-null, filters repositories according to whether they have been locked """ isLocked: Boolean """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for repositories returned from the connection """ orderBy: RepositoryOrder """ Array of owner's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the organization or user being viewed owns. """ ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR] """ If non-null, filters repositories according to privacy """ privacy: RepositoryPrivacy ): RepositoryConnection! """ A URL pointing to the user's public website/blog. """ websiteUrl: URI } """ The possible durations that a user can be blocked for. """ enum UserBlockDuration { """ The user was blocked for 1 day """ ONE_DAY """ The user was blocked for 30 days """ ONE_MONTH """ The user was blocked for 7 days """ ONE_WEEK """ The user was blocked permanently """ PERMANENT """ The user was blocked for 3 days """ THREE_DAYS } """ Represents a 'user_blocked' event on a given user. """ type UserBlockedEvent implements Node { """ Identifies the actor who performed the event. """ actor: Actor """ Number of days that the user was blocked for. """ blockDuration: UserBlockDuration! """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The Node ID of the UserBlockedEvent object """ id: ID! """ The user who was blocked. """ subject: User } """ The connection type for User. """ type UserConnection { """ A list of edges. """ edges: [UserEdge] """ A list of nodes. """ nodes: [User] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edit on user content """ type UserContentEdit implements Node { """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the date and time when the object was deleted. """ deletedAt: DateTime """ The actor who deleted this content """ deletedBy: Actor """ A summary of the changes for this edit """ diff: String """ When this content was edited """ editedAt: DateTime! """ The actor who edited this content """ editor: Actor """ The Node ID of the UserContentEdit object """ id: ID! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! } """ A list of edits to content. """ type UserContentEditConnection { """ A list of edges. """ edges: [UserContentEditEdge] """ A list of nodes. """ nodes: [UserContentEdit] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type UserContentEditEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: UserContentEdit } """ Represents a user. """ type UserEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: User } """ Email attributes from External Identity """ type UserEmailMetadata { """ Boolean to identify primary emails """ primary: Boolean """ Type of email """ type: String """ Email id """ value: String! } """ A user-curated list of repositories """ type UserList implements Node { """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ The description of this list """ description: String """ The Node ID of the UserList object """ id: ID! """ Whether or not this list is private """ isPrivate: Boolean! """ The items associated with this list """ items( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): UserListItemsConnection! """ The date and time at which this list was created or last had items added to it """ lastAddedAt: DateTime! """ The name of this list """ name: String! """ The slug of this list """ slug: String! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The user to which this list belongs """ user: User! } """ The connection type for UserList. """ type UserListConnection { """ A list of edges. """ edges: [UserListEdge] """ A list of nodes. """ nodes: [UserList] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type UserListEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: UserList } """ Types that can be added to a user list. """ union UserListItems = Repository """ The connection type for UserListItems. """ type UserListItemsConnection { """ A list of edges. """ edges: [UserListItemsEdge] """ A list of nodes. """ nodes: [UserListItems] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type UserListItemsEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: UserListItems } """ Represents a suggested user list. """ type UserListSuggestion { """ The ID of the suggested user list """ id: ID """ The name of the suggested user list """ name: String } """ The user's description of what they're currently doing. """ type UserStatus implements Node { """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ An emoji summarizing the user's status. """ emoji: String """ The status emoji as HTML. """ emojiHTML: HTML """ If set, the status will not be shown after this date. """ expiresAt: DateTime """ The Node ID of the UserStatus object """ id: ID! """ Whether this status indicates the user is not fully available on GitHub. """ indicatesLimitedAvailability: Boolean! """ A brief message describing what the user is doing. """ message: String """ The organization whose members can see this status. If null, this status is publicly visible. """ organization: Organization """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The user who has this status. """ user: User! } """ The connection type for UserStatus. """ type UserStatusConnection { """ A list of edges. """ edges: [UserStatusEdge] """ A list of nodes. """ nodes: [UserStatus] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type UserStatusEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: UserStatus } """ Ordering options for user status connections. """ input UserStatusOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order user statuses by. """ field: UserStatusOrderField! } """ Properties by which user status connections can be ordered. """ enum UserStatusOrderField { """ Order user statuses by when they were updated. """ UPDATED_AT } """ A domain that can be verified or approved for an organization or an enterprise. """ type VerifiableDomain implements Node { """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the primary key from the database. """ databaseId: Int """ The DNS host name that should be used for verification. """ dnsHostName: URI """ The unicode encoded domain. """ domain: URI! """ Whether a TXT record for verification with the expected host name was found. """ hasFoundHostName: Boolean! """ Whether a TXT record for verification with the expected verification token was found. """ hasFoundVerificationToken: Boolean! """ The Node ID of the VerifiableDomain object """ id: ID! """ Whether or not the domain is approved. """ isApproved: Boolean! """ Whether this domain is required to exist for an organization or enterprise policy to be enforced. """ isRequiredForPolicyEnforcement: Boolean! """ Whether or not the domain is verified. """ isVerified: Boolean! """ The owner of the domain. """ owner: VerifiableDomainOwner! """ The punycode encoded domain. """ punycodeEncodedDomain: URI! """ The time that the current verification token will expire. """ tokenExpirationTime: DateTime """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The current verification token for the domain. """ verificationToken: String } """ The connection type for VerifiableDomain. """ type VerifiableDomainConnection { """ A list of edges. """ edges: [VerifiableDomainEdge] """ A list of nodes. """ nodes: [VerifiableDomain] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type VerifiableDomainEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: VerifiableDomain } """ Ordering options for verifiable domain connections. """ input VerifiableDomainOrder { """ The ordering direction. """ direction: OrderDirection! """ The field to order verifiable domains by. """ field: VerifiableDomainOrderField! } """ Properties by which verifiable domain connections can be ordered. """ enum VerifiableDomainOrderField { """ Order verifiable domains by their creation date. """ CREATED_AT """ Order verifiable domains by the domain name. """ DOMAIN } """ Types that can own a verifiable domain. """ union VerifiableDomainOwner = Enterprise | Organization """ Autogenerated input type of VerifyVerifiableDomain """ input VerifyVerifiableDomainInput { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The ID of the verifiable domain to verify. """ id: ID! @possibleTypes(concreteTypes: ["VerifiableDomain"]) } """ Autogenerated return type of VerifyVerifiableDomain """ type VerifyVerifiableDomainPayload { """ A unique identifier for the client performing the mutation. """ clientMutationId: String """ The verifiable domain that was verified. """ domain: VerifiableDomain } """ A hovercard context with a message describing how the viewer is related. """ type ViewerHovercardContext implements HovercardContext { """ A string describing this context """ message: String! """ An octicon to accompany this context """ octicon: String! """ Identifies the user who is related to this context. """ viewer: User! } """ A subject that may be upvoted. """ interface Votable { """ Number of upvotes that this subject has received. """ upvoteCount: Int! """ Whether or not the current user can add or remove an upvote on this subject. """ viewerCanUpvote: Boolean! """ Whether or not the current user has already upvoted this subject. """ viewerHasUpvoted: Boolean! } """ A workflow contains meta information about an Actions workflow file. """ type Workflow implements Node & UniformResourceLocatable { """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the primary key from the database. """ databaseId: Int """ The Node ID of the Workflow object """ id: ID! """ The name of the workflow. """ name: String! """ The HTTP path for this workflow """ resourcePath: URI! """ The runs of the workflow. """ runs( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int """ Ordering options for the connection """ orderBy: WorkflowRunOrder = {field: CREATED_AT, direction: DESC} ): WorkflowRunConnection! """ The state of the workflow. """ state: WorkflowState! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The HTTP URL for this workflow """ url: URI! } """ A workflow that must run for this rule to pass """ type WorkflowFileReference { """ The path to the workflow file """ path: String! """ The ref (branch or tag) of the workflow file to use """ ref: String """ The ID of the repository where the workflow is defined """ repositoryId: Int! """ The commit SHA of the workflow file to use """ sha: String } """ A workflow that must run for this rule to pass """ input WorkflowFileReferenceInput { """ The path to the workflow file """ path: String! """ The ref (branch or tag) of the workflow file to use """ ref: String """ The ID of the repository where the workflow is defined """ repositoryId: Int! """ The commit SHA of the workflow file to use """ sha: String } """ A workflow run. """ type WorkflowRun implements Node & UniformResourceLocatable { """ The check suite this workflow run belongs to. """ checkSuite: CheckSuite! """ Identifies the date and time when the object was created. """ createdAt: DateTime! """ Identifies the primary key from the database. """ databaseId: Int """ The log of deployment reviews """ deploymentReviews( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): DeploymentReviewConnection! """ The event that triggered the workflow run """ event: String! """ The workflow file """ file: WorkflowRunFile """ The Node ID of the WorkflowRun object """ id: ID! """ The pending deployment requests of all check runs in this workflow run """ pendingDeploymentRequests( """ Returns the elements in the list that come after the specified cursor. """ after: String """ Returns the elements in the list that come before the specified cursor. """ before: String """ Returns the first _n_ elements from the list. """ first: Int """ Returns the last _n_ elements from the list. """ last: Int ): DeploymentRequestConnection! """ The HTTP path for this workflow run """ resourcePath: URI! """ A number that uniquely identifies this workflow run in its parent workflow. """ runNumber: Int! """ Identifies the date and time when the object was last updated. """ updatedAt: DateTime! """ The HTTP URL for this workflow run """ url: URI! """ The workflow executed in this workflow run. """ workflow: Workflow! } """ The connection type for WorkflowRun. """ type WorkflowRunConnection { """ A list of edges. """ edges: [WorkflowRunEdge] """ A list of nodes. """ nodes: [WorkflowRun] """ Information to aid in pagination. """ pageInfo: PageInfo! """ Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ type WorkflowRunEdge { """ A cursor for use in pagination. """ cursor: String! """ The item at the end of the edge. """ node: WorkflowRun } """ An executed workflow file for a workflow run. """ type WorkflowRunFile implements Node & UniformResourceLocatable { """ The Node ID of the WorkflowRunFile object """ id: ID! """ The path of the workflow file relative to its repository. """ path: String! """ The direct link to the file in the repository which stores the workflow file. """ repositoryFileUrl: URI! """ The repository name and owner which stores the workflow file. """ repositoryName: URI! """ The HTTP path for this workflow run file """ resourcePath: URI! """ The parent workflow run execution for this file. """ run: WorkflowRun! """ The HTTP URL for this workflow run file """ url: URI! """ If the viewer has permissions to push to the repository which stores the workflow. """ viewerCanPushRepository: Boolean! """ If the viewer has permissions to read the repository which stores the workflow. """ viewerCanReadRepository: Boolean! } """ Ways in which lists of workflow runs can be ordered upon return. """ input WorkflowRunOrder { """ The direction in which to order workflow runs by the specified field. """ direction: OrderDirection! """ The field by which to order workflows. """ field: WorkflowRunOrderField! } """ Properties by which workflow run connections can be ordered. """ enum WorkflowRunOrderField { """ Order workflow runs by most recently created """ CREATED_AT } """ The possible states for a workflow. """ enum WorkflowState { """ The workflow is active. """ ACTIVE """ The workflow was deleted from the git repository. """ DELETED """ The workflow was disabled by default on a fork. """ DISABLED_FORK """ The workflow was disabled for inactivity in the repository. """ DISABLED_INACTIVITY """ The workflow was disabled manually. """ DISABLED_MANUALLY } """ Require all changes made to a targeted branch to pass the specified workflows before they can be merged. """ type WorkflowsParameters { """ Workflows that must pass for this rule to pass. """ workflows: [WorkflowFileReference!]! } """ Require all changes made to a targeted branch to pass the specified workflows before they can be merged. """ input WorkflowsParametersInput { """ Workflows that must pass for this rule to pass. """ workflows: [WorkflowFileReferenceInput!]! } """ A valid x509 certificate string """ scalar X509Certificate ================================================ FILE: examples/language/gremlin.gremlin ================================================ // social_graph.gremlin // Example traversal to test scc complexity definitions for Gremlin. // Find a person named "Marko" and get his age marko = g.V().has('person','name','marko').values('age') // This traversal finds Marko's friends and their friends, // but emits the path along the way, which adds complexity. g.V().has('person', 'name', 'marko'). repeat(out('knows')). emit(). path().by('name') // A more complex query to find people Marko knows who are over 30 // and also know someone who created software. // The .where() and .and() steps increase complexity. g.V().has('person','name','marko').out('knows').as('friend'). where( values('age').is(gt(30)) ). and( out('created').has('name', 'lop') ). values('name') // Using .union() to combine two different traversal paths g.V().has('person','name','josh'). union( out('created').values('name'), // what he created in('created').values('name') // who created things with him ) ================================================ FILE: examples/language/gwion.gw ================================================ #import Std #import Math #import Modules fun int get_ncycles() { if(me.args()) return me.arg(0) => Std.atoi; return 2; } fun float get_user_duration() { if(me.args() > 1) return me.arg(1) => Std.atof; return 1; } fun dur get_duration() { return get_user_duration()::second; } get_ncycles() :=> const int ncycles; get_duration() :=> var dur duration; 1 :=> var int compensate; const SinOsc s ~> dac; while(duration >= samp) { repeat(ncycles * compensate) { Math.rand2f(220, 880) :=> s.freq; duration => now; } duration/2. :=> duration; 2 *=> compensate; } ================================================ FILE: examples/language/haml.haml ================================================ # file: app/controllers/movies_controller.rb class MoviesController < ApplicationController def index @title = "Teen Wolf" end end -# file: app/views/movies/index.html.haml #content .title %h1= @title = link_to 'Home', home_url ================================================ FILE: examples/language/hare.ha ================================================ use fmt; use strings; export type error = !str; type example = struct { number: i64, error: error, }; fn function(a: i32, b: i32) i32 = a + b; export fn main() void = { for (true) { break; }; const string = "A string"; // a comment const another_string = `aaa`; let iter = strings::iter(string); let r = match (strings::next(&iter)) { case void => return; case let r: rune => // comment yield r; }; switch (r) { case 'a' => abort(); case => if (r != 'd') fmt::println("not d!")! else fmt::println("d!")!; }; for (let i = 0z; i <= 10; i += 1) { fmt::print(i, ' ')!; }; }; ================================================ FILE: examples/language/haskell.hs ================================================ module RBTree ( RBTree , empty , insert , member , fromList ) where data Color = Red | Black deriving (Show, Eq) data RBTree a = Empty | Node Color (RBTree a) a (RBTree a) deriving (Show, Eq) empty :: RBTree a empty = Empty member :: (Ord a) => a -> RBTree a -> Bool member _ Empty = False member x (Node _ left val right) = case compare x val of LT -> member x left GT -> member x right EQ -> True insert :: (Ord a) => a -> RBTree a -> RBTree a insert x s = makeBlack (ins s) where makeBlack Empty = Empty -- never come here makeBlack (Node _ l v r) = Node Black l v r ins Empty = Node Red Empty x Empty ins (Node color l v r) | x < v = balance color (ins l) v r | x > v = balance color l v (ins r) | otherwise = Node color l v r -- discard duplicated value balance :: Color -> RBTree a -> a -> RBTree a -> RBTree a balance Black (Node Red (Node Red a x b) y c) z d = Node Red (Node Black a x b) y (Node Black c z d) balance Black (Node Red a x (Node Red b y c)) z d = Node Red (Node Black a x b) y (Node Black c z d) balance Black a x (Node Red (Node Red b y c) z d) = Node Red (Node Black a x b) y (Node Black c z d) balance Black a x (Node Red b y (Node Red c z d)) = Node Red (Node Black a x b) y (Node Black c z d) balance color l v r = Node color l v r fromList :: (Ord a) => [a] -> RBTree a fromList = foldr insert empty ================================================ FILE: examples/language/hcl.hcl ================================================ #!/usr/bin/env packer build --force # # Author: Hari Sekhon # Date: 2023-06-13 02:46:59 +0100 (Tue, 13 Jun 2023) # # vim:ts=2:sts=2:sw=2:et:filetype=conf # # https://github.com/HariSekhon/Templates # # License: see accompanying Hari Sekhon LICENSE file # # If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish # # https://www.linkedin.com/in/HariSekhon # # Uses adjacent Debian Preseed from installers/ # # 'packer' command must be run from the same directory as this file so the preseed.cfg provided is auto-served via HTTP # ============================================================================ # # P a c k e r - F e d o r a - Q e m u # ============================================================================ # packer { # Data sources only available in 1.7+ required_version = ">= 1.7.0, < 2.0.0" required_plugins { qemu = { version = "~> 1.1" source = "github.com/hashicorp/qemu" } } } # https://alt.fedoraproject.org/alt/ variable "version" { type = string default = "38" } variable "iso" { type = string default = "Fedora-Server-dvd-x86_64-38-1.6.iso" } variable "checksum" { type = string default = "09dee2cd626a269aefc67b69e63a30bd0baa52d4" } locals { name = "fedora" url = "https://download.fedoraproject.org/pub/fedora/linux/releases/${var.version}/Server/x86_64/iso/${var.iso}" vm_name = "${local.name}-${var.version}" arch = "x86_64" } # https://developer.hashicorp.com/packer/plugins/builders/qemu source "qemu" "fedora" { vm_name = local.vm_name qemu_binary = "qemu-system-x86_64" machine_type = "pc" iso_url = local.url iso_checksum = var.checksum cpus = 2 memory = 2048 net_device = "virtio-net" disk_interface = "virtio-scsi" # or virtio? format = "qcow2" disk_discard = "unmap" disk_image = true disk_size = 40960 disk_additional_size = [] output_directory = "output-${local.vm_name}-${local.arch}" headless = false use_default_display = true # might be needed on Mac to avoid errors about sdl not being available http_directory = "installers" ssh_timeout = "30m" ssh_password = "packer" ssh_username = "packer" shutdown_command = "echo 'packer' | sudo -S shutdown -P now" boot_wait = "5s" boot_command = [ "", "e", "", # leave a space from last arg " inst.ks=http://{{.HTTPIP}}:{{.HTTPPort}}/anaconda-ks.cfg " ] qemuargs = [ #["-smbios", "type=1,serial=ds=nocloud-net;instance-id=packer;seedfrom=http://{{ .HTTPIP }}:{{ .HTTPPort }}/"], # spice-app isn't respected despite doc https://www.qemu.org/docs/master/system/invocation.html#hxtool-3 # packer-builder-qemu plugin: Qemu stderr: qemu-system-x86_64: -display spice-app: Parameter 'type' does not accept value 'spice-app' #["-display", "spice-app"], #["-display", "cocoa"], # Mac only #["-display", "vnc:0"], # starts VNC by default, but doesn't launch user's vncviewer - ubuntu-x86_64.qemu.pkr.hcl ] # Only on ARM Macs #machine_type = "virt" # packer-builder-qemu plugin: Qemu stderr: qemu-system-x86_64: unsupported machine type } build { name = local.name sources = ["source.qemu.fedora"] # https://developer.hashicorp.com/packer/docs/provisioners/shell-local # #provisioner "shell-local" { # environment_vars = [ # "VM_NAME=${local.vm_name}" # ] # script = "./scripts/local_vboxsf.sh" #} # https://developer.hashicorp.com/packer/docs/provisioners/shell # provisioner "shell" { scripts = [ "./scripts/version.sh", #"./scripts/mount_vboxsf.sh", #"./scripts/collect_anaconda.sh", "./scripts/final.sh", ] execute_command = "{{ .Vars }} echo 'packer' | sudo -S -E bash '{{ .Path }}' '${packer.version}'" } post-processor "checksum" { checksum_types = ["md5", "sha512"] keep_input_artifact = true output = "output-{{.BuildName}}/{{.BuildName}}.{{.ChecksumType}}" } } ================================================ FILE: examples/language/ini.ini ================================================ ; last modified 1 April 2001 by John Doe [owner] name = John Doe organization = Acme Widgets Inc. [database] ; use IP address in case network name resolution is not working server = 192.0.2.62 port = 143 file = "payroll.dat" ================================================ FILE: examples/language/javascript.js ================================================ class Person { constructor(name) { this.name = name; } } class Student extends Person { constructor(name, id) { super(name); this.id = id; } } function PrintName(student) { console.log(student.name); } function PrintID(student) { console.log(student.id); } const bob = new Student("Robert", 12345); PrintName(bob) // Robert PrintID(bob) // 12345 ================================================ FILE: examples/language/jcl.jcl ================================================ //MTLUSR00 JOB (999,POK),'METAL',CLASS=A,MSGCLASS=H,NOTIFY=&SYSUID //* example from: https://www.ibm.com/docs/en/zos/2.4.0?topic=examples-jcl-example //* Lines starting with '//*' are comments //* the comment sign was included in quotes //* BINDER USING THE METAL XPI SAMPLE PROGRAM //* //LKED EXEC PGM=IEWL,REGION=256K, // PARM='LIST,LET,XREF,MAP,AC(0),RENT,REUS,AMODE(31)' //SYSPRINT DD SYSOUT=* //SYSUT1 DD SPACE=(CYL,(10,10)),UNIT=SYSDA //SYSLMOD DD DSN=MTLUSR.XPLINK.LOAD,DISP=SHR //SYSLIB DD DSN=CICSTS41.CICS.SDFHLOAD,DISP=SHR // DD DISP=SHR,DSN=MTLUSR.METAL.OBJ // DD DISP=SHR,DSN=MTLUSR.METALC.SCCNOBJ //USROBJ DD DSN=MTLUSR.METAL.OBJ,DISP=SHR //SYSLIN DD * INCLUDE USROBJ(MTLBTXPI) INCLUDE USROBJ(MTL2XPI) ENTRY MTLBTXPI NAME MTLBTXPI(R) /* ================================================ FILE: examples/language/jq.jq ================================================ # Use gojq for infinite precision integer arithmetic def tobase($b): def digit: "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"[.:.+1]; def mod: . % $b; def div: ((. - mod) / $b); def digits: recurse( select(. >= $b) | div) | mod ; select(2 <= $b and $b <= 36) | [digits | digit] | reverse | add; def send_more_money: def choose(m;n;used): ([range(m;n+1)] - used)[]; def num(a;b;c;d): 1000*a + 100*b + 10*c + d; def num(a;b;c;d;e): 10*num(a;b;c;d) + e; first( 1 as $m | 0 as $o | choose(8;9;[]) as $s | choose(2;9;[$s]) as $e | choose(2;9;[$s,$e]) as $n | choose(2;9;[$s,$e,$n]) as $d | choose(2;9;[$s,$e,$n,$d]) as $r | choose(2;9;[$s,$e,$n,$d,$r]) as $y | select(num($s;$e;$n;$d) + num($m;$o;$r;$e) == num($m;$o;$n;$e;$y)) | [$s,$e,$n,$d,$m,$o,$r,$e,$m,$o,$n,$e,$y] ); ================================================ FILE: examples/language/jsonc.jsonc ================================================ // Line comment { /* * Multi * Line * Comment */ "text": "JSON with comments" } ================================================ FILE: examples/language/jsonnet.jsonnet ================================================ local foo = "bar"; // This is a comment # This is another comment /* * This is a bigger comment */ { local bar = "foo", array: [ "foo", "bar", 123, { foo: "bar" }, ], number: 3e10, anotherNumber: 3.14, yetAnotherNumber: 4, bool: true, f:: function(x) x > 0, object: { foo: $.f(1) || $.f(-1), bar: if std.objectHas(self, "foo") then "foo" else "bar", another: { foo: self["bar.bar"], }, } + { another+: { "bar.bar": ||| foo %(bar)s ||| % $.object, }, }, } ================================================ FILE: examples/language/kitchen-sink.json5 ================================================ // example from https://json5.org/ { // comments unquoted: 'and you can quote me on that', singleQuotes: 'I can use "double quotes" here', lineBreaks: "Look, Mom! \ No \\n's!", hexadecimal: 0xdecaf, leadingDecimalPoint: .8675309, andTrailing: 8675309., positiveSign: +1, trailingComma: 'in objects', andIn: ['arrays',], "backwardsCompatible": "with JSON", } ================================================ FILE: examples/language/koto.koto ================================================ get_primes = |n: Number| -> Iterator if n <= 1 return sieve = [] sieve.resize (n + 1), true for x in 2..=n.sqrt() if sieve[x] i = x * x while i <= n sieve[i] = false i += x (2..=n).keep |x| sieve[x] assert_eq (get_primes 20).to_tuple(), (2, 3, 5, 7, 11, 13, 17, 19) ================================================ FILE: examples/language/lalrpop.lalrpop ================================================ // 37 lines 26 code 3 comments 8 blanks use crate::ast::{ExprSymbol, Opcode}; use crate::tok9::Tok; grammar<'input>(input: &'input str); // line comment pub Expr: Box> = { // comment 1 Expr r##"verbatim2"## Factor => Box::new(ExprSymbol::Op(<>)), Factor, // comment 2 }; Factor: Box> = { // comment 3 Factor "FactorOp" Term => Box::new(ExprSymbol::Op(<>)), Term, }; // comment 4 Term: Box> = { r#"verbatim"# => Box::new(ExprSymbol::NumSymbol(<>)), "(" ")" }; extern { type Location = usize; type Error = (); enum Tok<'input> { r#"verbatim"# => Tok::NumSymbol(<&'input str>), "FactorOp" => Tok::FactorOp(), r##"verbatim2"## => Tok::ExprOp(), "(" => Tok::ParenOpen, ")" => Tok::ParenClose, } } ================================================ FILE: examples/language/license ================================================ ================================================ FILE: examples/language/linear_solve.fut ================================================ -- Solving a linear system using Gauss-Jordan elimination without pivoting. -- -- Taken from https://www.cs.cmu.edu/~scandal/nesl/alg-numerical.html#solve -- -- == -- input { [[1.0f32, 2.0f32, 1.0f32], [2.0f32, 1.0f32, 1.0f32], [1.0f32, 1.0f32, 2.0f32]] -- [1.0f32, 2.0f32, 3.0f32] } -- output { [0.5f32, -0.5f32, 1.5f32] } let Gauss_Jordan [n][m] (A: [n][m]f32): [n][m]f32 = loop (A) for i < n do let irow = A[0] let Ap = A[1:n] let v1 = irow[i] let irow = map (/v1) irow let Ap = map (\jrow -> let scale = jrow[i] in map2 (\x y -> y - scale * x) irow jrow) Ap in concat Ap ([irow]) let linear_solve [n][m] (A: [n][m]f32) (b: [n]f32): [n]f32 = -- Pad the matrix with b. let Ap = map2 (++) A (transpose [b]) let Ap' = Gauss_Jordan Ap -- Extract last column. in Ap'[0:n,m] let main [n][m] (A: [n][m]f32) (b: [n]f32): [n]f32 = linear_solve A b ================================================ FILE: examples/language/livescript.ls ================================================ # Easy listing of implicit objects table1 = * id: 1 name: 'george' * id: 2 name: 'mike' * id: 3 name: 'donald' table2 = * id: 2 age: 21 * id: 1 age: 20 * id: 3 age: 26 # Implicit access, accessignment up-case-name = (.name .= to-upper-case!) # List comprehensions, destructuring, piping [{id:id1, name, age} for {id:id1, name} in table1 for {id:id2, age} in table2 when id1 is id2] |> sort-by (.id) # using 'sort-by' from prelude.ls |> each up-case-name # using 'each' from prelude.ls |> JSON.stringify #=> #[{"id":1,"name":"GEORGE","age":20}, # {"id":2,"name":"MIKE", "age":21}, # {"id":3,"name":"DONALD","age":26}] # operators as functions, piping map (.age), table2 |> fold1 (+) #=> 67 ('fold1' and 'map' from prelude.ls) ================================================ FILE: examples/language/llvmir.ll ================================================ ; f returns the sum of the given operands. define i32 @f(i32 %x, i32 %y) { %result = add i32 %x, %y ret i32 %result } ================================================ FILE: examples/language/lua.lua ================================================ -- lua test local function f(a) for i = 1, a do io.write(a .. " x " .. i .. " = " .. (i*a)) if i ~= a then io.write(', ') end end print() end for i = 1, 9 do f(i) end ================================================ FILE: examples/language/luau.luau ================================================ -- test for luau local function f(a: number): string local res = "" for i = 1, a do res = res .. (a .. " x " .. i .. " = " .. (i*a)) if i ~= a then res = res .. (', ') end end return res end for i = 1, 9 do print(f(i)) end ================================================ FILE: examples/language/luna.luna ================================================ def barify t: 'bar ' + t.toText + ' bar' # This is a comment reportedValue = case myNumber of Just v -> 'Got a number ' + v.toText + '.' Nothing -> 'Did not get a number.' print reportedValue class Shape: Circle: radius :: Real Rectangle: width :: Real height :: Real def perimeter: case self of Circle r: 2.0 * pi * r Rectangle w h: 2.0 * w + 2.0 * h def area: case self of Circle r: pi * r * r Rectangle w h: w * h ================================================ FILE: examples/language/main.cj ================================================ import std.sync.* import std.time.* import std.collection.* let count = AtomicInt64(0) main(): Int64 { let list = ArrayList>() // create 1000 threads. for (i in 0..1000) { let fut = spawn { sleep(Duration.millisecond) // sleep for 1ms. count.fetchAdd(1) } list.append(fut) } // Wait for all threads finished. for (f in list) { f.get() } let val = count.load() println("count = ${val}") return 0 } ================================================ FILE: examples/language/makefile ================================================ makefile ================================================ FILE: examples/language/metal.metal ================================================ /* Copyright (C) 2016 Apple Inc. All Rights Reserved. See LICENSE.txt for this sample’s licensing information Abstract: A shader using random noise to create a wood texture for the Metal Shader Showcase. This is an example of a 3D procedural texture based shader. The wood texture is accomplished by making rings of two different colors and using perlin noise to add some variation to the rings. */ #include #include #include #include "AAPLSharedTypes.h" using namespace metal; struct ColorInOut { float4 position [[position]]; float3 normal_cameraspace; float3 eye_direction_cameraspace; float3 light_direction_cameraspace; float3 position_modelspace; float3 position_cameraspace; }; float rand(int x, int y, int z); float smoothNoise(float x, float y, float z); float noise3D(float unscaledX, float unscaledY, float unscaledZ); float3 woodColor(float3 position); // Global constants constant float3 light_position = float3(-1.0, 1.0, -1.0); constant float4 light_color = float4(1.0, 1.0, 1.0, 1.0); constant float teapotMin = -0.144000; constant float teapotMax = 0.164622; constant float scaleLength = teapotMax - teapotMin; constant uint NOISE_DIM = 512; constant float NOISE_SIZE = 64; constant float3 darkBrown = float3(0.234f, 0.125f, 0.109f); constant float3 lightBrown = float3(0.168f, 0.133f, 0.043f); constant float numberOfRings = 84.0; constant float turbulence = 0.015; constant float PI = 3.14159; constant float materialShine = 50.0; // Generate a random float in the range [0.0f, 1.0f] using x, y, and z (based on the xor128 algorithm) float rand(int x, int y, int z) { int seed = x + y * 57 + z * 241; seed= (seed<< 13) ^ seed; return (( 1.0 - ( (seed * (seed * seed * 15731 + 789221) + 1376312589) & 2147483647) / 1073741824.0f) + 1.0f) / 2.0f; } // Return the interpolated noise for the given x, y, and z values. This is done by finding the whole // number before and after the given position in each dimension. Using these values we can get 6 vertices // that represent a cube that surrounds the position. We get each of the vertices noise values, and using the // given position, interpolate between the noise values of the vertices to get the smooth noise. float smoothNoise(float x, float y, float z) { // Get the truncated x, y, and z values int intX = x; int intY = y; int intZ = z; // Get the fractional reaminder of x, y, and z float fractX = x - intX; float fractY = y - intY; float fractZ = z - intZ; // Get first whole number before int x1 = (intX + NOISE_DIM) % NOISE_DIM; int y1 = (intY + NOISE_DIM) % NOISE_DIM; int z1 = (intZ + NOISE_DIM) % NOISE_DIM; // Get the number after int x2 = (x1 + NOISE_DIM - 1) % NOISE_DIM; int y2 = (y1 + NOISE_DIM - 1) % NOISE_DIM; int z2 = (z1 + NOISE_DIM - 1) % NOISE_DIM; // Tri-linearly interpolate the noise float sumY1Z1 = mix(rand(x2,y1,z1), rand(x1,y1,z1), fractX); float sumY1Z2 = mix(rand(x2,y1,z2), rand(x1,y1,z2), fractX); float sumY2Z1 = mix(rand(x2,y2,z1), rand(x1,y2,z1), fractX); float sumY2Z2 = mix(rand(x2,y2,z2), rand(x1,y2,z2), fractX); float sumZ1 = mix(sumY2Z1, sumY1Z1, fractY); float sumZ2 = mix(sumY2Z2, sumY1Z2, fractY); float value = mix(sumZ2, sumZ1, fractZ); return value; } // Generate perlin noise for the given input values. This is done by generating smooth noise at mutiple // different sizes and adding them together. float noise3D(float unscaledX, float unscaledY, float unscaledZ) { // Scale the values to force them in the range [0, NOISE_DIM] float x = ((unscaledX - teapotMin) / scaleLength) * NOISE_DIM; float y = ((unscaledY - teapotMin) / scaleLength) * NOISE_DIM; float z = ((unscaledZ - teapotMin) / scaleLength) * NOISE_DIM; float value = 0.0f, size = NOISE_SIZE, div = 0.0; //Add together smooth noise of increasingly smaller size. while(size >= 1.0f) { value += smoothNoise(x / size, y / size, z / size) * size; div += size; size /= 2.0f; } value /= div; return value; } // Calculate the wood color given the position float3 woodColor(float3 position) { float x = position.x, y = position.y, z = position.z; // Get the distance of the point from the y-axis to identify whether it will be a ring or not. // Get the smooth value for that point to add some randomness to the rings and scale the // randomness by a factor called turbulence. Use the cosine function to make the rings and // interpolate between the two wood ring colors. float distanceValue = sqrt(x*x + z*z) + turbulence * noise3D(x, y, z); float cosineValue = fabs(cos(2.0f * numberOfRings * distanceValue * PI)); float3 finalColor = darkBrown + cosineValue * lightBrown; return finalColor; } // Wood vertex shader function vertex ColorInOut wood_vertex(device packed_float3* vertices [[ buffer(0) ]], device packed_float3* normals [[ buffer(1) ]], constant AAPL::uniforms_t& uniforms [[ buffer(2) ]], unsigned int vid [[ vertex_id ]]) { ColorInOut out; float4x4 model_matrix = uniforms.model_matrix; float4x4 view_matrix = uniforms.view_matrix; float4x4 projection_matrix = uniforms.projection_matrix; float4x4 mvp_matrix = projection_matrix * view_matrix * model_matrix; float4x4 model_view_matrix = view_matrix * model_matrix; // Calculate the position of the object from the perspective of the camera float4 vertex_position_modelspace = float4(float3(vertices[vid]), 1.0f); out.position = mvp_matrix * vertex_position_modelspace; out.position_modelspace = vertices[vid]; // Calculate the normal from the perspective of the camera float3 normal = normals[vid]; out.normal_cameraspace = (normalize(model_view_matrix * float4(normal, 0.0f))).xyz; // Calculate the view vector from the perspective of the camera float3 vertex_position_cameraspace = ( view_matrix * model_matrix * vertex_position_modelspace ).xyz; out.eye_direction_cameraspace = float3(0.0f,0.0f,0.0f) - vertex_position_cameraspace; // Calculate the direction of the light from the position of the camera float3 light_position_cameraspace = ( view_matrix * float4(light_position,1.0f)).xyz; out.light_direction_cameraspace = light_position_cameraspace + out.eye_direction_cameraspace; return out; } // Wood fragment shader function fragment half4 wood_fragment(ColorInOut in [[stage_in]]) { half4 color(1.0f); // Get the woods base color using the woodColor function float3 baseColor = woodColor(in.position_modelspace); // Generate material ambient, difuse, and specular colors derived from the base color of the wood float3 material_ambient_color = 0.5f * baseColor; float3 material_diffuse_color = baseColor; float3 material_specular_color = float3(0.4f); // Calculate the ambient color float3 ambient_component = material_ambient_color; // Calculate the diffuse color float3 n = normalize(in.normal_cameraspace); float3 l = normalize(in.light_direction_cameraspace); float n_dot_l = saturate( dot(n, l) ); float3 diffuse_component = light_color.xyz * n_dot_l * material_diffuse_color; // Calculate the specular color float3 e = normalize(in.eye_direction_cameraspace); float3 r = -l + 2.0f * n_dot_l * n; float e_dot_r = saturate( dot(e, r) ); float3 specular_component = material_specular_color * light_color.xyz * pow(e_dot_r, materialShine); // Combine the ambient, specular and diffuse colors to get the final color color.rgb = half3(ambient_component + diffuse_component + specular_component); return color; }; ================================================ FILE: examples/language/mojo.mojo ================================================ from std.collections import InlineArray struct StaticMultiplicationTable: comptime length = 81 var data: InlineArray[Int, Self.length] fn __init__(out self): self.data = InlineArray[Int, Self.length](fill=0) # unroll the loop # all completed during compiling time comptime for i in range(1, 10): comptime for j in range(1, 10): self.data[(i-1)*9 + (j-1)] = i * j fn display(self): comptime for i in range(1, 10): var line: String = "" comptime for j in range(1, 10): if j <= i: var val = self.data[(i-1)*9 + (j-1)] line += String(j) + "x" + String(i) + "=" + String(val) + "\t" print(line) fn main(): comptime table_const = StaticMultiplicationTable() var table = materialize[table_const]() # run table.display() ================================================ FILE: examples/language/moonbit.mbt ================================================ fn iter(data : Bytes) -> Iter[Byte] { Iter::new( fn(yield) { // The code that actually does the iteration ///////////////////////////////////////////// for i = 0, len = data.length(); i < len; i = i + 1 { if yield(data[i]) == IterEnd { break IterEnd } ///////////////////////////////////////////// } else { IterContinue } }, ) } ================================================ FILE: examples/language/nature.n ================================================ // example from https://github.com/nature-lang/nature/blob/89d3196ec6f6e077fc7c3cba05c58d9f1bea6a03/tests/features/cases/20230811_00_template/main.n import syscall import package.zlib fn main():void! { var input = 'mock/input.txt' var output = 'output.gz' var fd = syscall.open(input, syscall.O_RDONLY, 0666) var gzfile = zlib.gzopen(output.ref(), 'wb'.ref()) var buf = vec_new(0, 4096) for true { var len = syscall.read(fd, buf.ref(), buf.len()) if len == 0 { break } // gzwrite int write_len = zlib.gzwrite(gzfile, buf.ref(), len) if write_len != len { syscall.close(fd) zlib.gzclose(gzfile) throw errorf('write failed') } println('gz write success, len:', write_len) } syscall.close(fd) zlib.gzclose(gzfile) println('gz success full') } ================================================ FILE: examples/language/nawk.awk ================================================ #!/usr/bin/nawk -f BEGIN { print("Enter string to encode:") } { print("Encoded string:") print(rot13($0)) } function rot13(str, new, idx) { new = "" for (idx = 1; idx <= length; ++idx) { new = new rot13_impl(substr(str, idx, 1)) } return new } function rot13_impl(ch, list, idx) { list = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ" idx = index(list, ch) if (idx == 0) { return ch } else { return substr(list, idx + 13, 1) } } ================================================ FILE: examples/language/perl.pl ================================================ #!/usr/bin/perl for($i=1; $i<10; $i++){ for($j=1; $j<$i+1; $j++){ printf "%-4s%-2d ", "$j*$i=", $i*$j; } print "\n"; } ================================================ FILE: examples/language/pkl.pkl ================================================ // ===----------------------------------------------------------------------===// // Copyright © 2024 Apple Inc. and the Pkl project authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // ===----------------------------------------------------------------------===// @go.Package { name = "github.com/apple/pkl-go-examples/gen/redisconfig" } module org.pkl.golang.example.RedisConfig import "package://pkg.pkl-lang.org/pkl-go/pkl.golang@0.5.0#/go.pkl" class Auth { /// Basic HTTP authorization username username: String /// Basic HTTP authorization password password: String } /// Whether Redis connections are enabled or not. enabled: Boolean /// The hostname that Redis listens on host: String /// The port that Redis listens on port: UInt16 /// Authorization settings for Redis auth: Auth? ================================================ FILE: examples/language/plain.txt ================================================ This a plain text file. ================================================ FILE: examples/language/python.py ================================================ #!/usr/bin/python3 for i in range(1, 10): for j in range(1, i+1): print(f"{i}x{j}={i*j}", end=' ') else: print() ================================================ FILE: examples/language/qasm.qasm ================================================ // 89 lines 58 code 21 comments 10 blanks /* * Variational eigensolver example * * Goal is to estimate the energy for a fixed set of parameters. * The parameters are updated outside of this program and a new * OpenQASM circuit is generated for the next iteration. */ include "stdgates.inc"; const int[32] n = 10; // number of qubits const int[32] layers = 3; // number of entangler layers const int[32] prec = 16; // precision of all types const int[32] shots = 1000; // number of shots per Pauli observable // Parameters could be written to local variables for this // iteration, but we will request them using extern functions extern get_parameter(uint[prec], uint[prec]) -> angle[prec]; extern get_npaulis() -> uint[prec]; extern get_pauli(int[prec]) -> bit[2 * n]; // The energy calculation uses floating point division, // so we do that calculation in an extern function extern update_energy(int[prec], uint[prec], float[prec]) -> float[prec]; gate entangler q { for uint i in [0:n-2] { cx q[i], q[i+1]; } } def xmeasure(qubit q) -> bit { h q; return measure q; } def ymeasure(qubit q) -> bit { s q; h q; return measure q; } /* Pauli measurement circuit. * The first n-bits of spec are the X component. * The second n-bits of spec are the Z component. */ def pauli_measurement(bit[2*n] spec, qubit[n] q) -> bit { bit b = 0; for uint[prec] i in [0: n - 1] { bit temp; if(spec[i]==1 && spec[n+i]==0) { temp = xmeasure(q[i]); } if(spec[i]==0 && spec[n+i]==1) { temp = measure q[i]; } if(spec[i]==1 && spec[n+i]==1) { temp = ymeasure(q[i]); } b ^= temp; } return b; } // Circuit to prepare trial wave function def trial_circuit(qubit[n] q) { for int[prec] l in [0: layers - 1] { for uint[prec] i in [0: n - 1] { angle[prec] theta; theta = get_parameter(l * layers + i); ry(theta) q[i]; } if(l != layers - 1) entangler q; } } /* Apply VQE ansatz circuit and measure a Pauli operator * given by spec. Return the number of 1 outcomes. */ def counts_for_term(bit[2*n] spec, qubit[n] q) -> uint[prec] { uint[prec] counts; for uint i in [1: shots] { bit b; reset q; trial_circuit q; b = pauli_measurement(spec, q); counts += int[1](b); } return counts; } // Estimate the expected energy def estimate_energy(qubit[n] q) -> float[prec] { float[prec] energy; uint[prec] npaulis = get_npaulis(); for int[prec] t in [0:npaulis-1] { bit[2*n] spec = get_pauli(t); uint[prec] counts; counts = counts_for_term(spec, q); energy = update_energy(t, counts, energy); } return energy; } qubit[n] q; float[prec] energy; energy = estimate_energy(q); ================================================ FILE: examples/language/qsharp.qs ================================================ operation BellTest (count : Int, initial: Result) : (Int, Int, Int) { mutable numOnes = 0; mutable agree = 0; using ((q0, q1) = (Qubit(), Qubit())) { for (test in 1..count) { Set (initial, q0); Set (Zero, q1); H(q0); CNOT(q0,q1); let res = M (q0); if (M (q1) == res) { set agree += 1; } // Count the number of ones we saw: if (res == One) { set numOnes += 1; } } Set(Zero, q0); Set(Zero, q1); } // Return number of times we saw a |0> and number of times we saw a |1> return (count-numOnes, numOnes, agree); } ================================================ FILE: examples/language/racket.rkt ================================================ #lang racket/base (require racket/private/norm-arity) (provide normalize-arity normalized-arity? arity=? arity-includes?) (define (normalized-arity? a) (or (null? a) (arity? a) (and (list? a) ((length a) . >= . 2) (andmap arity? a) (if (ormap arity-at-least? a) (non-empty-non-singleton-sorted-list-ending-with-arity? a) (non-singleton-non-empty-sorted-list? a))))) (define (arity? a) (or (exact-nonnegative-integer? a) (and (arity-at-least? a) (exact-nonnegative-integer? (arity-at-least-value a))))) ;; non-empty-non-singleton-sorted-list-ending-with-arity? : xx -> boolean ;; know that 'a' is a list of at least 2 elements (define (non-empty-non-singleton-sorted-list-ending-with-arity? a) (let loop ([bound (car a)] [lst (cdr a)]) (cond [(null? (cdr lst)) (and (arity-at-least? (car lst)) (> (arity-at-least-value (car lst)) (+ 1 bound)))] [else (and (exact-nonnegative-integer? (car lst)) ((car lst) . > . bound) (loop (car lst) (cdr lst)))]))) (define (non-empty-sorted-list? a) (and (pair? a) (sorted-list? a))) (define (non-singleton-non-empty-sorted-list? a) (and (pair? a) (pair? (cdr a)) (sorted-list? a))) (define (sorted-list? a) (or (null? a) (sorted/bounded-list? (cdr a) (car a)))) (define (sorted/bounded-list? a bound) (or (null? a) (and (number? (car a)) (< bound (car a)) (sorted/bounded-list? (cdr a) (car a))))) (define (arity-supports-number? arity n) (cond [(exact-nonnegative-integer? arity) (= arity n)] [(arity-at-least? arity) (<= (arity-at-least-value arity) n)] [(list? arity) (for/or {[elem (in-list arity)]} (arity-supports-number? elem n))])) (define (arity-supports-at-least? arity n) (cond [(exact-nonnegative-integer? arity) #f] [(arity-at-least? arity) (<= (arity-at-least-value arity) n)] [(list? arity) (define min-at-least (for/fold {[min-at-least #f]} {[elem (in-list arity)]} (cond [(exact-nonnegative-integer? elem) min-at-least] [(arity-at-least? elem) (cond [(not min-at-least) (arity-at-least-value elem)] [else (min min-at-least (arity-at-least-value elem))])]))) (cond [(not min-at-least) #f] [else (for/and {[i (in-range n min-at-least)]} (arity-supports-number? arity i))])])) (define (unchecked-arity-includes? one two) (cond [(exact-nonnegative-integer? two) (arity-supports-number? one two)] [(arity-at-least? two) (arity-supports-at-least? one (arity-at-least-value two))] [(list? two) (for/and {[elem (in-list two)]} (unchecked-arity-includes? one elem))])) (define (arity-includes? one two) (unless (procedure-arity? one) (raise-argument-error 'arity-includes? "procedure-arity?" 0 one two)) (unless (procedure-arity? two) (raise-argument-error 'arity-includes? "procedure-arity?" 1 one two)) (unchecked-arity-includes? one two)) (define (arity=? one two) (unless (procedure-arity? one) (raise-argument-error 'arity=? "procedure-arity?" 0 one two)) (unless (procedure-arity? two) (raise-argument-error 'arity=? "procedure-arity?" 1 one two)) (and (unchecked-arity-includes? one two) (unchecked-arity-includes? two one))) ================================================ FILE: examples/language/raml.raml ================================================ #%RAML 1.0 title: API with Examples types: User: type: object properties: name: string lastname: string example: name: Bob lastname: Marley Org: type: object properties: name: string address?: string value?: string /organizations: post: headers: UserID: description: the identifier for the user who posts a new organization type: string example: SWED-123 # single scalar example body: application/json: type: Org example: # single request body example value: # needs to be declared since instance contains a 'value' property name: Doe Enterprise value: Silver /organizations/{orgId}: get: description: Returns an organization entity. responses: 201: body: application/json: type: Org examples: acme: name: Acme softwareCorp: value: # validate against the available facets for the map value of an example name: Software Corp address: 35 Central Street value: Gold # validate against an instance of the `value` property ================================================ FILE: examples/language/rebol.reb ================================================ ; An example comes from https://www.re-bol.com/rebol.html#section-11 ; This is a slightly edited version of the 3D Maze program (raycasting engine) by Olivier Auverlot REBOL [title: "3D Maze - Ray Casting Example"] px: 9 * 1024 py: 11 * 1024 stride: 2 heading: 0 turn: 5 laby: [ [ 8 7 8 7 8 7 8 7 8 7 8 7 ] [ 7 0 0 0 0 0 0 0 13 0 0 8 ] [ 8 0 0 0 12 0 0 0 14 0 9 7 ] [ 7 0 0 0 12 0 4 0 13 0 0 8 ] [ 8 0 4 11 11 0 3 0 0 0 0 7 ] [ 7 0 3 0 12 3 4 3 4 3 0 8 ] [ 8 0 4 0 0 0 3 0 3 0 0 7 ] [ 7 0 3 0 0 0 4 0 4 0 9 8 ] [ 8 0 4 0 0 0 0 0 0 0 0 7 ] [ 7 0 5 6 5 6 0 0 0 0 0 8 ] [ 8 0 0 0 0 0 0 0 0 0 0 7 ] [ 8 7 8 7 8 7 8 7 8 7 8 7 ] ] ctable: [] for a 0 (718 + 180) 1 [ append ctable to-integer (((cosine a ) * 1024) / 20) ] palette: [ 0.0.128 0.128.0 0.128.128 0.0.128 128.0.128 128.128.0 192.192.192 128.128.128 0.0.255 0.255.0 255.255.0 0.0.255 255.0.255 0.255.255 255.255.255 ] get-angle: func [ v ] [ pick ctable (v + 1) ] retrace: does [ clear display/effect/draw xy1: xy2: 0x0 angle: remainder (heading - 66) 720 if angle < 0 [ angle: angle + 720 ] for a angle (angle + 89) 1 [ xx: px yy: py stepx: get-angle a + 90 stepy: get-angle a l: 0 until [ xx: xx - stepx yy: yy - stepy l: l + 1 column: make integer! (xx / 1024) line: make integer! (yy / 1024) laby/:line/:column <> 0 ] h: make integer! (1800 / l) xy1/y: 200 - h xy2/y: 200 + h xy2/x: xy1/x + 6 color: pick palette laby/:line/:column append display/effect/draw reduce [ 'pen color 'fill-pen color 'box xy1 xy2 ] xy1/x: xy2/x + 2 ; set to 1 for smooth walls ] ] player-move: function [ /backwards ] [ mul ] [ either backwards [ mul: -1 ] [ mul: 1 ] newpx: px - ((get-angle (heading + 90)) * stride * mul) newpy: py - ((get-angle heading) * stride * mul) c: make integer! (newpx / 1024) l: make integer! (newpy / 1024) if laby/:l/:c = 0 [ px: newpx py: newpy refresh-display ] ] evt-key: function [ f event ] [] [ if (event/type = 'key) [ switch event/key [ up [ player-move ] down [ player-move/backwards ] left [ heading: remainder (heading + (720 - turn)) 720 refresh-display ] right [ heading: remainder (heading + turn) 720 refresh-display ] ] ] event ] insert-event-func :evt-key refresh-display: does [ retrace show display ] screen: layout [ display: box 720x400 effect [ gradient 0x1 0.0.0 128.128.128 draw [] ] edge [ size: 1x1 color: 255.255.255 ] ] refresh-display view screen ================================================ FILE: examples/language/redscript.reds ================================================ // redscript allows line comments /* as well as block comments */ // it supports global functions func add2(x: Int32, y: Int32) -> Int32 { return x + y; } // functions without a type annotation default to Void return type func tutorial() { let x: Int32 = 10; // compiler can infer types for local variables, y will be Int32 let y = 20; // it supports arithmetic let sum = x + y + 13; // as well as mutation let mutable = 0; mutable += 10; // numbers with decimal points default to type Float let num = 10.0; // you can cast between some types let uint: Uint8 = Cast(10); // array literals let arr = [1, 2, 3]; // array iteration for item in arr { // logging and string operations Log("at " + ToString(item)); } } // you can define your own classes public class IntTuple { let fst: Int32; let snd: Int32; // you can define static member functions public static func Create(fst: Int32, snd: Int32) -> ref { let tuple = new IntTuple(); tuple.fst = fst; tuple.snd = snd; return tuple; } public func Swap() { let tmp = this.fst; this.fst = this.snd; this.snd = tmp; } } // you can replace existing in-game methods by specifying the class they belong to @replaceMethod(CraftingSystem) private final func ProcessCraftSkill(xpAmount: Int32, craftedItem: StatsObjectID) { // instantiate a class using the new operator let xpEvent = new ExperiencePointsEvent(); xpEvent.amount = xpAmount * 100; xpEvent.type = gamedataProficiencyType.Crafting; GetPlayer(this.GetGameInstance()).QueueEvent(xpEvent); } // you can add new methods to existing classes as well // they are visible to other code using the class @addMethod(BackpackMainGameController) private final func DisassembleAllJunkItems() -> Void { let items = this.m_InventoryManager.GetPlayerItemsByType(gamedataItemType.Gen_Junk); let i = 0; for item in items { ItemActionsHelper.DisassembleItem(this.m_player, InventoryItemData.GetID(item)); }; // some methods require CName literals, they need to be prefixed with the n letter this.PlaySound(n"Item", n"OnBuy"); } // you can trigger calls when game functions are called @wrapMethod(CraftingSystem) private final func ProcessCraftSkill(xpAmount: Int32, craftedItem: StatsObjectID) { // this calls the original function. Don't omit this - use replaceMethod instead! wrappedMethod(xpAmount, craftedItem); // you can now do your own stuff. // Or even do your own stuff _first_, modify the parameters passed to the // original call. } ================================================ FILE: examples/language/rscript.r ================================================ #!/usr/bin/env Rscript print("===== Start =====") for (i in 1:9) { for (j in 1:i) { cat(i, 'x', j, '=', i*j, ' ') } cat('\n') } print("===== End =====") ================================================ FILE: examples/language/rtf.rtf ================================================ {\rtf1\ansi\deff0 {\colortbl;\red0\green0\blue0;\red255\green0\blue0;\red0\green128\blue0;\red0\green0\blue255;\red255\green165\blue0;\red128\green0\blue128;\red0\green255\blue255;\red128\green128\blue0;\red255\green192\blue203;\red105\green105\blue105;} \fs36\qc\b Multiplication Table\b0\par \fs24 {\trowd\trgaph108\trleft-108 \cellx1000\cellx2000\cellx3000\cellx4000\cellx5000\cellx6000\cellx7000\cellx8000\cellx9000 \cf1\intbl\qc\i 1\'d71 \i0 =\b 1\b0\cell \cell \cell \cell \cell \cell \cell \cell \cell\row \cf2\intbl\qc\i 2\'d71 \i0 =\b 2\b0\cell \i 2\'d72 \i0 =\b 4\b0\cell \cell \cell \cell \cell \cell \cell \cell\row \cf3\intbl\qc\i 3\'d71 \i0 =\b 3\b0\cell \i 3\'d72 \i0 =\b 6\b0\cell \i 3\'d73 \i0 =\b 9\b0\cell \cell \cell \cell \cell \cell \cell\row \cf4\intbl\qc\i 4\'d71 \i0 =\b 4\b0\cell \i 4\'d72 \i0 =\b 8\b0\cell \i 4\'d73 \i0 =\b 12\b0\cell \i 4\'d74 \i0 =\b 16\b0\cell \cell \cell \cell \cell \cell\row \cf5\intbl\qc\i 5\'d71 \i0 =\b 5\b0\cell \i 5\'d72 \i0 =\b 10\b0\cell \i 5\'d73 \i0 =\b 15\b0\cell \i 5\'d74 \i0 =\b 20\b0\cell \i 5\'d75 \i0 =\b 25\b0\cell \cell \cell \cell \cell\row \cf6\intbl\qc\i 6\'d71 \i0 =\b 6\b0\cell \i 6\'d72 \i0 =\b 12\b0\cell \i 6\'d73 \i0 =\b 18\b0\cell \i 6\'d74 \i0 =\b 24\b0\cell \i 6\'d75 \i0 =\b 30\b0\cell \i 6\'d76 \i0 =\b 36\b0\cell \cell \cell \cell\row \cf7\intbl\qc\i 7\'d71 \i0 =\b 7\b0\cell \i 7\'d72 \i0 =\b 14\b0\cell \i 7\'d73 \i0 =\b 21\b0\cell \i 7\'d74 \i0 =\b 28\b0\cell \i 7\'d75 \i0 =\b 35\b0\cell \i 7\'d76 \i0 =\b 42\b0\cell \i 7\'d77 \i0 =\b 49\b0\cell \cell \cell\row \cf8\intbl\qc\i 8\'d71 \i0 =\b 8\b0\cell \i 8\'d72 \i0 =\b 16\b0\cell \i 8\'d73 \i0 =\b 24\b0\cell \i 8\'d74 \i0 =\b 32\b0\cell \i 8\'d75 \i0 =\b 40\b0\cell \i 8\'d76 \i0 =\b 48\b0\cell \i 8\'d77 \i0 =\b 56\b0\cell \i 8\'d78 \i0 =\b 64\b0\cell \cell\row \cf9\intbl\qc\i 9\'d71 \i0 =\b 9\b0\cell \i 9\'d72 \i0 =\b 18\b0\cell \i 9\'d73 \i0 =\b 27\b0\cell \i 9\'d74 \i0 =\b 36\b0\cell \i 9\'d75 \i0 =\b 45\b0\cell \i 9\'d76 \i0 =\b 54\b0\cell \i 9\'d77 \i0 =\b 63\b0\cell \i 9\'d78 \i0 =\b 72\b0\cell \i 9\'d79 \i0 =\b 81\b0\cell\row } } ================================================ FILE: examples/language/scallop.scl ================================================ // There are three classes rel classes = {0, 1, 2} // There are 6 students, 2 in each class rel student = { (0, "tom"), (0, "jenny"), // Class 0 (1, "alice"), (1, "bob"), // Class 1 (2, "jerry"), (2, "john"), // Class 2 } // Each student is enrolled in a course (Math or CS) rel enroll = { ("tom", "CS"), ("jenny", "Math"), // Class 0 ("alice", "CS"), ("bob", "CS"), // Class 1 ("jerry", "Math"), ("john", "Math"), // Class 2 } // Count how many student enrolls in CS course in each class rel count_enroll_cs_in_class(c, n) :- n = count(s: student(c, s), enroll(s, "CS") where c: classes(c)) // Expected: {(0, 1), (1, 2), (2, 0)} // Interpretation: class 0 has 1 student enroll in CS, class 1 has 2, class 2 has 0 query count_enroll_cs_in_class ================================================ FILE: examples/language/seed7.sd7 ================================================ (* Language test for Seed7 *) $ include "seed7_05.s7i"; # import the standard library const proc: main is func local var integer: i is 1; var integer: j is 1; begin for i range 1 to 9 do j := 1; while j <= i do write(i <& "x" <& j <& "=" <& j*i); if j <> i then write(", "); else write("."); end if; j +:= 1; end while; writeln(); end for; end func; ================================================ FILE: examples/language/slang.slang ================================================ // 15 lines 8 code 4 comments 2 blanks Texture2D in_tex; RWTexture2D out_tex; // Blit compute shader [shader("compute")] [numthreads(8, 8, 1)] void main(uint2 id: SV_DispatchThreadID) { /* Perform the blit */ out_tex[id] = in_tex[id]; return; } ================================================ FILE: examples/language/slint.slint ================================================ // an example from https://releases.slint.dev/1.7.2/docs/slint/src/recipes/recipes#custom-table-view // 2 comments 5 blanks 9 Complexity 65 code import { VerticalBox, ListView } from "std-widgets.slint"; component TableView inherits Rectangle { in property <[string]> columns; in property <[[string]]> values; private property e: self.width / root.columns.length; private property <[length]> column_sizes: [ root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, root.e, ]; VerticalBox { padding: 5px; HorizontalLayout { padding: 5px; spacing: 5px; vertical-stretch: 0; for title[idx] in root.columns : HorizontalLayout { width: root.column_sizes[idx]; Text { overflow: elide; text: title; } Rectangle { width: 1px; background: gray; TouchArea { width: 10px; x: (parent.width - self.width) / 2; property cached; pointer-event(event) => { if (event.button == PointerEventButton.left && event.kind == PointerEventKind.down) { self.cached = root.column_sizes[idx]; } } moved => { if (self.pressed) { root.column_sizes[idx] += (self.mouse-x - self.pressed-x); if (root.column_sizes[idx] < 0) { root.column_sizes[idx] = 0; } } } mouse-cursor: ew-resize; } } } } ListView { for r in root.values : HorizontalLayout { padding: 5px; spacing: 5px; for t[idx] in r : HorizontalLayout { width: root.column_sizes[idx]; Text { overflow: elide; text: t; } } } } } } export component Example inherits Window { TableView { columns: ["Device", "Mount Point", "Total", "Free"]; values: [ ["/dev/sda1", "/", "255GB", "82.2GB"] , ["/dev/sda2", "/tmp", "60.5GB", "44.5GB"] , ["/dev/sdb1", "/home", "255GB", "32.2GB"] , ]; } } ================================================ FILE: examples/language/smalltalk.cs.st ================================================ Class: CookieMonster Superclass: Monster Category: Sesame Street Instance variables: state hunger private askForCookie ^ FillInTheBlank request: 'Give me cookie !!! (please)' complainAbout: anItem Transcript show: 'No want ', anItem printString. Transcript cr. self colour: #red isCookie: anItem " | serves as the OR operator" ^ ((anItem = 'cookie') | (anItem = #cookie)) actions eat: aCookie super eat: aCookie. self colour: #green nag | item | [self isAwake] whileTrue: [item := self askForCookie. (self isCookie: item) ifTrue: [self eat: item] ifFalse: [self complainAbout: item]. (self isFull) ifTrue: [self sleep]] sleep self state: #asleep. self hunger: 0 wakeUp self tummy: Bag new. self state: #awake. self hunger: (Random new next * 13). "Cookie Monsters are superstitious and never eat more than 13 cookies in one go !" self nag queries isAsleep ^ state = #asleep isAwake ^ self isAsleep not isFull self isEmpty ifFalse: [^ self tummy size >= self hunger] ifTrue: [^false] access hunger ^ hunger hunger: anIntegerNumberOfCookies hunger := anIntegerNumberOfCookies state ^ state state: aSymbol state := aSymbol initialization initialize self state: #asleep. self hunger: nil. super initialize ================================================ FILE: examples/language/snakefile.smk ================================================ # 67 lines 50 code 4 comments 13 blanks """ A sample Snakefile for testing line counting """ SAMPLES = ["A", "B"] # This is a # multiline # comment rule all: input: "plots/quals.svg" '''Sometimes even some comments in single quote fences.''' rule bwa_map: input: "data/genome.fa", # Inline comments are also supported "data/samples/{sample}.fastq" output: "mapped_reads/{sample}.bam" shell: "bwa mem {input} | samtools view -Sb - > {output}" rule samtools_sort: input: "mapped_reads/{sample}.bam" output: "sorted_reads/{sample}.bam" shell: "samtools sort -T sorted_reads/{wildcards.sample} " "-O bam {input} > {output}" rule samtools_index: input: "sorted_reads/{sample}.bam" output: "sorted_reads/{sample}.bam.bai" shell: "samtools index {input}" rule bcftools_call: input: fa="data/genome.fa", bam=expand("sorted_reads/{sample}.bam", sample=SAMPLES), bai=expand("sorted_reads/{sample}.bam.bai", sample=SAMPLES) output: "calls/all.vcf" shell: "bcftools mpileup -f {input.fa} {input.bam} | " "bcftools call -mv - > {output}" rule plot_quals: input: "calls/all.vcf" output: "plots/quals.svg" script: "scripts/plot-quals.py" ================================================ FILE: examples/language/stan.stan ================================================ data{ int N_national_polls; // Number of polls int N_state_polls; // Number of polls int T; // Number of days int S; // Number of states (for which at least 1 poll is available) + 1 int P; // Number of pollsters int M; // Number of poll modes int Pop; // Number of poll populations int state[N_state_polls]; // State index int day_state[N_state_polls]; // Day index int day_national[N_national_polls]; // Day index int poll_state[N_state_polls]; // Pollster index int poll_national[N_national_polls]; // Pollster index int poll_mode_state[N_state_polls]; // Poll mode index int poll_mode_national[N_national_polls]; // Poll mode index int poll_pop_state[N_state_polls]; // Poll mode index int poll_pop_national[N_national_polls]; // Poll mode index int n_democrat_national[N_national_polls]; int n_two_share_national[N_national_polls]; int n_democrat_state[N_state_polls]; int n_two_share_state[N_state_polls]; vector[N_national_polls] unadjusted_national; vector[N_state_polls] unadjusted_state; // cov_matrix[S] ss_cov_mu_b_walk; // cov_matrix[S] ss_cov_mu_b_T; // cov_matrix[S] ss_cov_poll_bias; //*** prior input vector[S] mu_b_prior; vector[S] state_weights; real sigma_c; real sigma_m; real sigma_pop; real sigma_measure_noise_national; real sigma_measure_noise_state; real sigma_e_bias; // covariance matrix and scales cov_matrix[S] state_covariance_0; real random_walk_scale; real mu_b_T_scale; real polling_bias_scale; } transformed data { real national_cov_matrix_error_sd = sqrt(transpose(state_weights) * state_covariance_0 * state_weights); cholesky_factor_cov[S] cholesky_ss_cov_poll_bias; cholesky_factor_cov[S] cholesky_ss_cov_mu_b_T; cholesky_factor_cov[S] cholesky_ss_cov_mu_b_walk; // scale covariance matrix[S, S] ss_cov_poll_bias = state_covariance_0 * square(polling_bias_scale/national_cov_matrix_error_sd); matrix[S, S] ss_cov_mu_b_T = state_covariance_0 * square(mu_b_T_scale/national_cov_matrix_error_sd); matrix[S, S] ss_cov_mu_b_walk = state_covariance_0 * square(random_walk_scale/national_cov_matrix_error_sd); // transformation cholesky_ss_cov_poll_bias = cholesky_decompose(ss_cov_poll_bias); cholesky_ss_cov_mu_b_T = cholesky_decompose(ss_cov_mu_b_T); cholesky_ss_cov_mu_b_walk = cholesky_decompose(ss_cov_mu_b_walk); } parameters { vector[S] raw_mu_b_T; matrix[S, T] raw_mu_b; vector[P] raw_mu_c; vector[M] raw_mu_m; vector[Pop] raw_mu_pop; real mu_e_bias; real rho_e_bias; vector[T] raw_e_bias; vector[N_national_polls] raw_measure_noise_national; vector[N_state_polls] raw_measure_noise_state; vector[S] raw_polling_bias; real mu_b_T_model_estimation_error; } transformed parameters { //*** parameters matrix[S, T] mu_b; vector[P] mu_c; vector[M] mu_m; vector[Pop] mu_pop; vector[T] e_bias; vector[S] polling_bias = cholesky_ss_cov_poll_bias * raw_polling_bias; vector[T] national_mu_b_average; real national_polling_bias_average = transpose(polling_bias) * state_weights; real sigma_rho; //*** containers vector[N_state_polls] logit_pi_democrat_state; vector[N_national_polls] logit_pi_democrat_national; //*** construct parameters mu_b[:,T] = cholesky_ss_cov_mu_b_T * raw_mu_b_T + mu_b_prior; // * mu_b_T_model_estimation_error for (i in 1:(T-1)) mu_b[:, T - i] = cholesky_ss_cov_mu_b_walk * raw_mu_b[:, T - i] + mu_b[:, T + 1 - i]; national_mu_b_average = transpose(mu_b) * state_weights; mu_c = raw_mu_c * sigma_c; mu_m = raw_mu_m * sigma_m; mu_pop = raw_mu_pop * sigma_pop; e_bias[1] = raw_e_bias[1] * sigma_e_bias; sigma_rho = sqrt(1-square(rho_e_bias)) * sigma_e_bias; for (t in 2:T) e_bias[t] = mu_e_bias + rho_e_bias * (e_bias[t - 1] - mu_e_bias) + raw_e_bias[t] * sigma_rho; //*** fill pi_democrat for (i in 1:N_state_polls){ logit_pi_democrat_state[i] = mu_b[state[i], day_state[i]] + mu_c[poll_state[i]] + mu_m[poll_mode_state[i]] + mu_pop[poll_pop_state[i]] + unadjusted_state[i] * e_bias[day_state[i]] + raw_measure_noise_state[i] * sigma_measure_noise_state + polling_bias[state[i]]; } logit_pi_democrat_national = national_mu_b_average[day_national] + mu_c[poll_national] + mu_m[poll_mode_national] + mu_pop[poll_pop_national] + unadjusted_national .* e_bias[day_national] + raw_measure_noise_national * sigma_measure_noise_national + national_polling_bias_average; } model { //*** priors raw_mu_b_T ~ std_normal(); //mu_b_T_model_estimation_error ~ scaled_inv_chi_square(7, 1); to_vector(raw_mu_b) ~ std_normal(); raw_mu_c ~ std_normal(); raw_mu_m ~ std_normal(); raw_mu_pop ~ std_normal(); mu_e_bias ~ normal(0, 0.02); rho_e_bias ~ normal(0.7, 0.1); raw_e_bias ~ std_normal(); raw_measure_noise_national ~ std_normal(); raw_measure_noise_state ~ std_normal(); raw_polling_bias ~ std_normal(); //*** likelihood n_democrat_state ~ binomial_logit(n_two_share_state, logit_pi_democrat_state); n_democrat_national ~ binomial_logit(n_two_share_national, logit_pi_democrat_national); } generated quantities { matrix[T, S] predicted_score; for (s in 1:S){ //predicted_score[1:T, s] = inv_logit(mu_a[1:T] + to_vector(mu_b[s, 1:T])); predicted_score[1:T, s] = inv_logit(to_vector(mu_b[s, 1:T])); } } ================================================ FILE: examples/language/syntax.wren ================================================ // This file provides examples of syntactic constructs in wren, which is mainly // interesting for testing syntax highlighters. // This is a comment. /* This is /* a nested */ comment. */ // Class definition with a toplevel name. class SyntaxExample { // Constructor construct new() { // Top-level name `IO` System.print("I am a constructor!") // Method calls variables fields() // Block arguments fields { block } fields {|a, b| block } fields(argument) { block } fields(argument) {|a, b| block } // Static method call SyntaxExample.fields(1) } // Constructor with arguments construct constructor(a, b) { print(a, b) field = a } // Method without arguments variables { // Valid local variable names. var hi var camelCase var PascalCase var abc123 var ALL_CAPS } // Method with empty argument list fields() { // Fields _under_score = 1 _field = 2 } // Static method with single argument static fields(a) { // Static field __a = a } // Setter field=(value) { _field = value } // Method with arguments print(a, b) { System.print(a + b) } // Operators +(other) { "infix + %(other)" } -(other) { "infix - %(other)" } *(other) { "infix * %(other)" } /(other) { "infix / %(other)" } %(other) { "infix \% %(other)" } <(other) { "infix < %(other)" } >(other) { "infix > %(other)" } <=(other) { "infix <= %(other)" } >=(other) { "infix >= %(other)" } ==(other) { "infix == %(other)" } !=(other) { "infix != %(other)" } &(other) { "infix & %(other)" } |(other) { "infix | %(other)" } ! { "prefix !" } ~ { "prefix ~" } - { "prefix -" } } // `class`, `is` class ReservedWords is SyntaxExample { reserved { // `super`, `true`, `false` super(true, false) // `this` this.foo } foo { // `var` var n = 27 // `while`, `if`, `else` while (n != 1) if (n % 2 == 0) n = n / 2 else n = 3 * n + 1 // `for`, `in` for (beatle in ["george", "john", "paul", "ringo"]) { System.print(beatle) // `break` break } // `return`, `null` return null } imports { // `import` import "hello" // `import`, `for` import "set" for Set } // `foreign`, `static` // foreign static bar // foreign baz(string) // (Remove lines above to make this file compile) } class Literals is SyntaxExample { booleans { true || false } numbers { 0 1234 -5678 3.14159 1.0 -12.34 0x1000000 0xdeadbeef 0x1234567890ABCDEF } strings { "hi there" // Escapes: "\0" // The NUL byte: 0. "\"" // A double quote character. "\\" // A backslash. "\a" // Alarm beep. (Who uses this?) "\b" // Backspace. "\f" // Formfeed. "\n" // Newline. "\r" // Carriage return. "\t" // Tab. "\v" // Vertical tab. // Unicode code points System.print("\u0041fgdg\u0b83\u00DE") // "AஃÞ" // Unencoded bytes System.print("\x48\x69\x2e") // "Hi." } ranges { 3..8 // inclusive 4...6 // half-inclusive } nothing { null } lists { var list = [1, "banana", true] list[0] = 5 list[1..2] } maps { var stringMap = { "George": "Harrison", "John": "Lennon", "Paul": "McCartney", "Ringo": "Starr" } var a = 1 var weirdMap = { true: 1, false: 0, null: -1, "str": "abc", (1..5): 10, a: 2, _a: 3, __a: 4 } } } ================================================ FILE: examples/language/systemd.service ================================================ # exampple systemd file [Unit] Description=scc [Service] WorkingDirectory=/webapps/scc ExecStart=/webapps/scc/scc Restart=always RestartSec=5s # persist to disk StandardOutput=file:/tmp/scc-stdout.log StandardError=file:/tmp/scc-error.log [Install] WantedBy=multi-user.target ================================================ FILE: examples/language/tact.tact ================================================ // 20 lines 12 code 4 comments 4 blanks import "@stdlib/ownable"; // comment /* comment */ fun global() { let str: String = "\n \r \t \u1234 \xFF // /* ... */"; // comment while (true) { // comment if /* comment */ (true) { /* comment */ } } } // "quoted" struct St { /* " */ field1: Int; // /* field2: Int as uint128; field3: Int; // */ } ================================================ FILE: examples/language/teal.teal ================================================ #pragma version 4 // loop 1 - 10 // init loop var int 0 loop: int 1 + dup // implement loop code // ... // check upper bound int 10 <= bnz loop // once the loop exits, the last counter value will be left on stack ================================================ FILE: examples/language/tera.tera ================================================ {% set map = section.pages | group_by(attribute="year") %} {% set_global years = [] %} {% for year, ignored in map %} {% set_global years = years | concat(with=year) %} {% endfor %} {% for year in years | reverse %} {% set posts = map[year] %} {% endfor %} ================================================ FILE: examples/language/test.ch ================================================ /* Constants and macro definitions for the program https://github.com/boyter/scc/issues/484 */ // Define a constant for the number to calculate factorial #define NUM_TO_FACTORIAL 5 // Define messages to display #define MSG_FACT_GT_100 "Factorial is greater than 100" #define MSG_FACT_LE_100 "Factorial is less than or equal to 100" // Define a macro for maximum factorial limit #define MAX_FACT_LIMIT 100 // Prototype for the Factorial function FUNCTION Factorial( n ) RETURN NIL // Prototype for the Main function FUNCTION Main() RETURN NIL ================================================ FILE: examples/language/test.dm ================================================ // A singleline comment /* A multiline comment /* Nested multiline */ */ /proc/foo() for(var/turf/station/T in world) if(T.name == "floor") del(T) T.color = "red" /turf/station icon = 'station.dmi' icon_state = "wall" var/description = {" Multiline string "} ================================================ FILE: examples/language/test.java ================================================ package com.boyter.SpellingCorrector; import java.util.*; import java.util.stream.Stream; /** * A simple spell checker based on a few implementations such as the infamous Peter Noving spell checker and * the like. Attempts to be highly performing by never changing the first character since we can assume that the * user got that correct. */ public class SpellingCorrector implements ISpellingCorrector { // word to count map - how may times a word is present - or a weight attached to a word private Map dictionary = null; public SpellingCorrector(int lruCount) { this.dictionary = Collections.synchronizedMap(new LruCache<>(lruCount)); } @Override public void putWord(String word) { word = word.toLowerCase(); if (dictionary.containsKey(word)) { dictionary.put(word, (dictionary.get(word) + 1)); } else { dictionary.put(word, 1); } } @Override public String correct(String word) { if (word == null || word.trim().isEmpty()) { return word; } word = word.toLowerCase(); // If the word exists in our dictionary then return if (dictionary.containsKey(word)) { return word; } Map possibleMatches = new HashMap<>(); List closeEdits = wordEdits(word); for (String closeEdit: closeEdits) { if (dictionary.containsKey(closeEdit)) { possibleMatches.put(closeEdit, this.dictionary.get(closeEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // Ok we did't find anything, so lets run the edits function on the previous results and use those // this gives us results which are 2 characters away from whatever was entered List furtherEdits = new ArrayList<>(); for(String closeEdit: closeEdits) { furtherEdits.addAll(this.wordEdits(closeEdit)); } for (String futherEdit: furtherEdits) { if (dictionary.containsKey(futherEdit)) { possibleMatches.put(futherEdit, this.dictionary.get(futherEdit)); } } if (!possibleMatches.isEmpty()) { // Sorted least likely first Object[] matches = this.sortByValue(possibleMatches).keySet().toArray(); // Try to match anything of the same length first String bestMatch = ""; for(Object o: matches) { if (o.toString().length() == word.length()) { bestMatch = o.toString(); } } if (!bestMatch.trim().isEmpty()) { return bestMatch; } // Just return whatever is the best match return matches[matches.length - 1].toString(); } // If unable to find something better return the same string return word; } @Override public boolean containsWord(String word) { if (dictionary.containsKey(word)) { return true; } return false; } /** * Return a list of strings which are words similar to our one which could potentially be misspellings * Abuse the fact that a char can be used as an integer * Assume that they got the first letter correct for all edits to cut on CPU burn time */ private List wordEdits(String word) { List closeWords = new ArrayList(); for (int i = 1; i < word.length() + 1; i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they forgot to type a letter? Try adding one StringBuilder sb = new StringBuilder(word); sb.insert(i, character); closeWords.add(sb.toString()); } } for (int i = 1; i < word.length(); i++) { for (char character = 'a'; character <= 'z'; character++) { // Maybe they mistyped a single letter? Try replacing them all StringBuilder sb = new StringBuilder(word); sb.setCharAt(i, character); closeWords.add(sb.toString()); // Maybe they added an extra letter? Try deleting one sb = new StringBuilder(word); sb.deleteCharAt(i); closeWords.add(sb.toString()); } } return closeWords; } /** * Sorts a map by value taken from * http://stackoverflow.com/questions/109383/sort-a-mapkey-value-by-values-java */ public static > Map sortByValue( Map map ) { Map result = new LinkedHashMap<>(); Stream> st = map.entrySet().stream(); st.sorted( Map.Entry.comparingByValue() ).forEachOrdered( e -> result.put(e.getKey(), e.getValue()) ); return result; } /** * A very simple LRU cache implementation that can be used for random data types. */ public class LruCache extends LinkedHashMap { private final int maxEntries; public LruCache(final int maxEntries) { super(maxEntries + 1, 1.0f, true); this.maxEntries = maxEntries; } @Override protected boolean removeEldestEntry(final Map.Entry eldest) { return super.size() > maxEntries; } } } ================================================ FILE: examples/language/test.prg ================================================ /* This program demonstrates the calculation of the factorial of a number using a function. https://github.com/boyter/scc/issues/484 */ FUNCTION Factorial( n ) LOCAL result := 1 LOCAL i // Loop from 1 to n FOR i := 1 TO n result := result * i NEXT RETURN result // Main program execution starts here FUNCTION Main() LOCAL num := 5 LOCAL fact // Calculate the factorial of the number fact := Factorial( num ) // Check if the factorial is greater than 100 IF fact > 100 ? "Factorial is greater than 100" ELSE ? "Factorial is less than or equal to 100" ENDIF RETURN ================================================ FILE: examples/language/test.sieve ================================================ require ["fileinto", "reject", "vacation", "notify", "envelope", "body", "relational", "regex", "subaddress", "copy", "mailbox", "mboxmetadata", "servermetadata", "date", "index", "comparator-i;ascii-numeric", "variables", "imap4flags", "editheader", "duplicate", "vacation-seconds", "fcc", "x-cyrus-jmapquery"]; # whitelist first since we can't use the address-book whitelisting feature # when the from = to address if header :contains "From" "root@armakuni.example.com" { fileinto "INBOX.ln"; stop; } ### 1. Sieve generated for save-on-SMTP identities if header :contains "X-Resolved-To" "+personalitysentitem-15989017@" { setflag "\\Seen"; fileinto "\\Sent"; stop; } if header :contains "X-Resolved-To" "+personalitysentitem-15989021@" { setflag "\\Seen"; fileinto "\\Sent"; stop; } ### 2. Sieve generated for discard rules if not header :matches "X-Spam-Known-Sender" "yes*" { if address :is ["To","Cc","Resent-To","X-Delivered-To"] "alldaychemist@t.example.com" { discard; stop; } } ### 3. Sieve generated for spam protection if not header :matches "X-Spam-Known-Sender" "yes*" { if allof( header :contains "X-Backscatter" "yes", not header :matches "X-LinkName" "*" ) { discard; stop; } if header :value "ge" :comparator "i;ascii-numeric" "X-Spam-score" "8" { fileinto "\\Junk"; stop; } } ### 4. Sieve generated for forwarding rules if anyof( address :contains "From" "majswps.example.com", address :contains "From" "majorsweeps.example.comcom", address :contains "From" "mjsupdates.example.com" ) { redirect :copy "somespammer@mediacompany.example.com"; discard; } if address :contains "From" "spammer.example.com" { redirect :copy "abuse@someisp.example.com"; discard; } ### 5. Sieve generated for vacation responses # You do not have vacation responses enabled. ### 6. Sieve generated for calendar preferences if allof( header :is "X-ME-Cal-Method" "request", not exists "X-ME-Cal-Exists", header :contains "X-Spam-Known-Sender" "in-addressbook" ) { notify :method "addcal"; } elsif exists "X-ME-Cal-Exists" { notify :method "updatecal"; } ### 7. Sieve generated for organise rules if header :contains ["List-Id","List-Post"] "" { fileinto "INBOX.ml.freebsd-announce"; } elsif header :contains ["List-Id","List-Post"] "" { fileinto "INBOX.ml.iccrg"; } elsif anyof( header :contains ["List-Id","List-Post"] "<~sircmpwn/aerc@lists.sr.ht>", header :contains ["List-Id","List-Post"] "<~sircmpwn/aerc.lists.sr.ht>" ) { fileinto "INBOX.ml.aerc"; } elsif header :contains ["List-Id","List-Post"] "" { fileinto "INBOX.ml.sidrops"; } elsif header :contains ["List-Id","List-Post"] "" { fileinto "INBOX.ml.tuhs"; } elsif header :contains ["List-Id","List-Post"] "" { fileinto "INBOX.ml.lynx-dev"; } elsif header :contains ["List-Id","List-Post"] "" { fileinto "INBOX.ml.cyrus-info"; } elsif header :contains ["List-Id","List-Post"] "" { fileinto "INBOX.ml.cyrus-announce"; } elsif header :contains ["List-Id","List-Post"] "" { fileinto "INBOX.ml.cyrus-devel"; } elsif header :contains ["List-Id","List-Post"] "" { fileinto "INBOX.ml.mutt-announce"; } elsif header :contains ["List-Id","List-Post"] "" { fileinto "INBOX.ml.mutt-users"; } elsif header :contains ["List-Id","List-Post"] "" { fileinto "INBOX.ml.mutt-dev"; } elsif header :contains ["List-Id","List-Post"] "" { fileinto "INBOX.ml.neomutt-users"; } elsif header :contains ["List-Id","List-Post"] "" { fileinto "INBOX.ml.neomutt-devel"; } elsif header :contains ["List-Id","List-Post"] "" { fileinto "INBOX.ml.ccan"; } elsif header :contains ["List-Id","List-Post"] "" { fileinto "INBOX.ml.messaging"; } elsif header :contains ["List-Id","List-Post"] "" { fileinto "INBOX.ml.noise"; } elsif header :contains ["List-Id","List-Post"] "" { fileinto "INBOX.ml.cfrg"; } elsif header :contains ["List-Id","List-Post"] "" { fileinto "INBOX.ml.pearg"; } elsif header :contains ["List-Id","List-Post"] "" { fileinto "INBOX.ml.ausnog"; } elsif header :contains ["List-Id","List-Post"] "" { fileinto "INBOX.ml.wireguard"; } elsif header :contains ["List-Id","List-Post"] "" { fileinto "INBOX.ml.jnsp"; } elsif header :contains ["List-Id","List-Post"] "" { fileinto "INBOX.ml.cnsp"; } elsif header :contains ["List-Id","List-Post"] "" { fileinto "INBOX.ml.jmap"; } elsif header :contains ["List-Id","List-Post"] "" { fileinto "INBOX.ml.oss-security"; } elsif header :contains "Mail-Followup-To" "cryptanalytic-algorithms@list.cr.yp.to" { fileinto "INBOX.ml.cryptanalytic-algorithms"; } elsif header :contains ["List-Id","List-Post"] "" { fileinto "INBOX.ml.cryptography"; } elsif header :contains ["List-Id","List-Post"] "" { fileinto "INBOX.ml.nanog"; } elsif header :contains ["List-Id","List-Post"] "" { fileinto "INBOX.ml.icnrg"; } elsif anyof( address :is ["To","Cc","Resent-To","X-Delivered-To"] "root@armakuni.example.net", address :is ["To","Cc","Resent-To","X-Delivered-To"] "myname@armakuni.example.net" ) { fileinto "INBOX.ln"; } ### 8. Sieve generated for fetch mail filing # You have no pop-links filing into special folders. # Start user advanced sieve block 'PostFolder' {{{ else { } # }}} End user advanced sieve block 'PostFolder' ================================================ FILE: examples/language/test.tf ================================================ # This is a comment // This is another comment /* This is a multiline comment */ provider "null" {} locals { list = [for i, v in ["foo", "bar"] : v if v == "foo"] map = { for k, v in { "a" = "foo", "b" = "bar" } : v => k } } resource "null_resource" "count" { count = 2 triggers = { conditional = 1 < 2 || 2 <= 3 && "a" == "c" ? "foo" : "bar" conditional2 = 1 > 2 || 2 >= 3 && "a" != "c" ? "foo" : "bar" } provisioner "local-exec" { command = "echo ${join(" ", local.list)}" } } resource "null_resource" "foreach" { for_each = toset(local.map) } ================================================ FILE: examples/language/test.tofu ================================================ # This is a comment // This is another comment /* This is a multiline comment */ provider "null" {} locals { list = [for i, v in ["foo", "bar"] : v if v == "foo"] map = { for k, v in { "a" = "foo", "b" = "bar" } : v => k } } resource "null_resource" "count" { count = 2 triggers = { conditional = 1 < 2 || 2 <= 3 && "a" == "c" ? "foo" : "bar" conditional2 = 1 > 2 || 2 >= 3 && "a" != "c" ? "foo" : "bar" } provisioner "local-exec" { command = "echo ${join(" ", local.list)}" } } resource "null_resource" "foreach" { for_each = toset(local.map) } ================================================ FILE: examples/language/textile.textile ================================================ ###. -*- mode: textile; -*- See ["Textile":https://textile-lang.com]. ###.. //////////////// // Local Variables: // coding: utf-8-unix // End: ////////////////////// ================================================ FILE: examples/language/ttcn.ttcn ================================================ module TestSystem { // Define a subtype of integer type integer myNewType (0..50) // Declare Request struct type with 2 fields type record Request { myNewType param1, charstring param2 } // Declare Answer struct type with one field type record Answer { myNewType param1 } // Declare a message based communication port type port cEnv_type message { out Request; in Answer; } // Declare the component on which the test case will run type component sSystem { port cEnv_type cEnv; } // The templates define the outgoing parameter values // and verify the incoming parameter values template Request Good_Req := {param1 := 42, param2 := "hello !" }; template Answer All_is_OK := {param1 := 0}; // Define testcase1 that will run on sSystem component testcase testcase1() runs on sSystem { // Send Request message with (42, "hello !") as parmeters cEnv.send(Good_Req); // An alternative for the 2 possible answers alt { // Do we receive Answer with 0 as parameter []cEnv.receive(All_is_OK) { // Pass verdict ! setverdict(pass) } // Or do we receive something else []cEnv.receive { // Fail verdict setverdict(fail) } } } // Control part chains test cases execution automatically control { var verdicttype verdict1; verdict1 := execute(testcase1()); } } ================================================ FILE: examples/language/typescript.ts ================================================ const url = `/foo/bar/*`; function getUrl(path?: string): string { return path ?? url; } function getUrl2() { return url; } ================================================ FILE: examples/language/typespec.tsp ================================================ import "@typespec/http"; using TypeSpec.Http; model Store { name: string; address: Address; } model Address { street: string; city: string; } @route("/stores") interface Stores { list(@query filter: string): Store[]; read(@path id: Store): Store; } ================================================ FILE: examples/language/typst.typ ================================================ // 16 lines 9 code 3 comments 4 blanks // Some example settings #set document(title: "a title", author: "an author") #set page(numbering: "1 / 1", number-align: center) #set par(justify: true) #set text(size: 13pt, lang: "fr") // with a trailing comment #set heading(numbering: "1.1") /* with another trailing comment */ #let foo = "multiline string" #let bar = "singleline string" /* comment */ /* nested /* comment */ */ #lorem(50) ================================================ FILE: examples/language/up.up ================================================ // func => function definition keyword (reserved word) // function_a => function name (user-defined) // int1 => parameter name (user-defined) // [variable_name]: int => parameter data type (int is a reserved word) // [function] -> string => return data type (string is a reserved word) // nilStr => variable name (user-defined) // "nil" => variable value (user-defined) func function_a(int1: int) -> string { nilStr = "nil" return nilStr + int1 } // func => function definition keyword (reserved word) // integer_mul => function name (user-defined) // integer => parameter name (user-defined) // [variable_name]: int => parameter data type (int is a reserved word) // [function] -> int => return data type (int is a reserved word) func integer_mul(integer: int) -> int { return integer * 2 } func main() -> nil { print(function_a(3) + integer_mul()) } ================================================ FILE: examples/language/vala.vala ================================================ // test for vala class Demo.Demo : GLib.Object { public static int main(string[] args) { int[] arr = {1, 2, 3, 4, 5, 6, 7, 8, 9}; foreach (var i in arr) { foreach (var j in arr[0:i]) { var n = i * j; stdout.printf(@"$j * $i = $n "); } stdout.printf("\n"); } stdout.printf(""" Test for "verbatim strings". \r \n \a \b """); stdout.printf("\n"); return 0; } } ================================================ FILE: examples/language/version.rc ================================================ #define VER_FILEVERSION 3,10,349,0 #define VER_FILEVERSION_STR "3.10.349.0\0" #define VER_PRODUCTVERSION 3,10,0,0 #define VER_PRODUCTVERSION_STR "3.10\0" #ifndef DEBUG #define VER_DEBUG 0 #else #define VER_DEBUG VS_FF_DEBUG #endif VS_VERSION_INFO VERSIONINFO FILEVERSION VER_FILEVERSION PRODUCTVERSION VER_PRODUCTVERSION FILEFLAGSMASK VS_FFI_FILEFLAGSMASK FILEFLAGS (VER_PRIVATEBUILD|VER_PRERELEASE|VER_DEBUG) FILEOS VOS__WINDOWS32 FILETYPE VFT_DLL FILESUBTYPE VFT2_UNKNOWN BEGIN BLOCK "StringFileInfo" BEGIN BLOCK "040904E4" BEGIN VALUE "CompanyName", VER_COMPANYNAME_STR VALUE "FileDescription", VER_FILEDESCRIPTION_STR VALUE "FileVersion", VER_FILEVERSION_STR VALUE "InternalName", VER_INTERNALNAME_STR VALUE "LegalCopyright", VER_LEGALCOPYRIGHT_STR VALUE "LegalTrademarks1", VER_LEGALTRADEMARKS1_STR VALUE "LegalTrademarks2", VER_LEGALTRADEMARKS2_STR VALUE "OriginalFilename", VER_ORIGINALFILENAME_STR VALUE "ProductName", VER_PRODUCTNAME_STR VALUE "ProductVersion", VER_PRODUCTVERSION_STR END END BLOCK "VarFileInfo" BEGIN /* The following line should only be modified for localized versions. */ /* It consists of any number of WORD,WORD pairs, with each pair */ /* describing a language,codepage combination supported by the file. */ /* */ /* For example, a file might have values "0x409,1252" indicating that it */ /* supports English language (0x409) in the Windows ANSI codepage (1252). */ VALUE "Translation", 0x409, 1252 END END ================================================ FILE: examples/language/vim.vim ================================================ " func function! ToggleLineNumbers() if &number set nonumber echo "turn off line numbers" else set number echo "turn on line numbers" endif endfunction nnoremap :call ToggleLineNumbers() " auto format go source code autocmd BufWritePre *.go :silent! execute '%!gofmt' set tabstop=4 set shiftwidth=4 set expandtab set number ================================================ FILE: examples/language/wenyan.wy ================================================ 批曰。「「文氣淋灕。字句切實」」。 吾有一言。曰「「春日宴。」」。書之。 有數九。名之曰「酒數」。 恆為是。若「酒數」等於零者乃止也。 吾有三言。曰「「與君」」。曰「酒數」。 曰「「杯酒。可以窮歡宴。綠酒一杯歌一遍。」」。書之。 減「酒數」以一。昔之「酒數」者。今其是矣云云。 吾有一言。曰「「綠酒千杯腸已爛。」」。書之。 ================================================ FILE: examples/language/wsdl.wsdl ================================================ this is a wsdl file ================================================ FILE: examples/language/xhtml.xhtml ================================================ XHTML Example

Hello, World!

================================================ FILE: examples/language/xmake.lua ================================================ set_project("test-project") set_version("0.1.0") set_xmakever("2.9.9") set_allowedplats("windows") set_allowedmodes("debug", "release", "releasedbg") includes("src", "xmake", "test") -- fixed config set_languages("c++20") add_rules("mode.debug", "mode.release", "mode.releasedbg") if is_mode("debug") then add_defines("LIBRARY_DEBUG") elseif is_mode("release") then set_optimize("smallest") end if is_plat("windows") then add_defines("UNICODE", "_UNICODE") add_cxflags("/permissive-", {tools = "cl"}) end set_encodings("utf-8") -- dynamic config if has_config("dev") then set_policy("compatibility.version", "3.0") set_warnings("all") if is_plat("windows") then set_runtimes("MD") end end ================================================ FILE: examples/language/xmlschema.xsd ================================================ something ================================================ FILE: examples/language/yaml.yml ================================================ %YAML 1.2 --- YAML: YAML Ain't Markup Language™ What It Is: YAML is a human-friendly data serialization language for all programming languages. YAML Resources: YAML Specifications: - YAML 1.2: - Revision 1.2.2 # Oct 1, 2021 *New* - Revision 1.2.1 # Oct 1, 2009 - Revision 1.2.0 # Jul 21, 2009 - YAML 1.1 - YAML 1.0 YAML Matrix Chat: '#chat:yaml.io' # Our New Group Chat Room! YAML IRC Channel: libera.chat#yaml # The old chat YAML News: twitter.com/yamlnews YAML Mailing List: yaml-core # Obsolete, but historical YAML on GitHub: # github.com/yaml/ YAML Specs: yaml-spec/ YAML 1.2 Grammar: yaml-grammar/ YAML Test Suite: yaml-test-suite/ YAML Issues: issues/ YAML Reference Parsers: - Generated Reference Parsers - YPaste Interactive Parser YAML Test Matrix: matrix.yaml.io YAML Frameworks and Tools: C/C++: - libfyaml # "C" YAML 1.2 processor (YTS) - libyaml # "C" Fast YAML 1.1 (YTS) - libcyaml # YAML de/serialization of C data (using libyaml) - yaml-cpp # C++ YAML 1.2 implementation Crystal: - YAML # YAML 1.1 from the standard library C#/.NET: - YamlDotNet # YAML 1.1/(1.2) library + serialization (YTS) - yaml-net # YAML 1.1 library D: - D-YAML # YAML 1.1 library w/ official community support (YTS) Dart: - yaml # YAML package for Dart Delphi: - Neslib.Yaml # YAML 1.1 Delphi binding to libyaml (YTS) Elixir: - yaml-elixir # YAML support for the Elixir language Erlang: - yamerl # YAML support for the Erlang language Golang: - Go-yaml # YAML support for the Go language - Go-gypsy # Simplified YAML parser written in Go - goccy/go-yaml # YAML 1.2 implementation in pure Go Haskell: - HsYAML # YAML 1.2 implementation in pure Haskell (YTS) - YamlReference # Haskell 1.2 reference parser - yaml # YAML 1.1 Haskell framework (based on libyaml) Java: - SnakeYAML Engine # Java 8+ / YAML 1.2 - SnakeYAML # Java 5 / YAML 1.1 - YamlBeans # To/from JavaBeans. YAML 1.0/1.1 - eo-yaml # YAML 1.2 for Java 8. Packaged as a Module (Java 9+) - Chronicle-Wire # Java Implementation JavaScript: - yaml # JavaScript parser/stringifier (YAML 1.2, 1.1) (YTS) - js-yaml # Native PyYAML port to JavaScript (Demo) Nim: - NimYAML # YAML 1.2 implementation in pure Nim (YTS) OCaml: - ocaml-yaml # YAML 1.1/1.2 via libyaml bindings - ocaml-syck # YAML 1.0 via syck bindings Perl Modules: - YAML # Pure Perl YAML 1.0 Module - YAML::XS # Binding to libyaml - YAML::Syck # Binding to libsyck - YAML::Tiny # A small YAML subset module - YAML::PP # A YAML 1.2/1.1 processor (YTS) PHP: - The Yaml Component # Symfony Yaml Component (YAML 1.2) - php-yaml # libyaml bindings (YAML 1.1) - syck # syck bindings (YAML 1.0) - spyc # yaml loader/dumper (YAML 1.?) Python: - PyYAML # YAML 1.1, pure python and libyaml binding - ruamel.yaml # YAML 1.2, update of PyYAML; comments round-trip - PySyck # YAML 1.0, syck binding - strictyaml # Restricted YAML subset R: - R YAML # libyaml wrapper Raku: - YAMLish # Port of YAMLish to Raku - YAML::Parser::LibYAML # LibYAML wrapper Ruby: - psych # libyaml wrapper (in Ruby core for 1.9.2) - RbYaml # YAML 1.1 (PyYAML Port) - yaml4r # YAML 1.0, standard library syck binding Rust: - yaml-rust # YAML 1.2 implementation in pure Rust - serde-yaml # YAML de/serialization of structs Shell: - parse_yaml # Simple YAML parser for Bash using sed and awk - shyaml # Read YAML files - jq style Swift: - Yams # libyaml wrapper Others: - yamlvim # YAML dumper/emitter in pure vimscript Related Projects: - Rx # Multi-Language Schemata Tool for JSON/YAML - Kwalify # Ruby Schemata Tool for JSON/YAML - pyKwalify # Python Schemata Tool for JSON/YAML - yatools.net # Visual Studio editor for YAML - JSON # Official JSON Website - Pygments # Python language Syntax Colorizer /w YAML support - yamllint # YAML Linter based on PyYAML - YAML Diff # Semantically compare two YAML documents - JSON Schema # YAML-compliant JSON standard for data validation # Edit This Website ... ================================================ FILE: examples/language/zig.zig ================================================ const std = @import("std"); const print = std.debug.print; pub fn main() void { const arr = [_]u32{1, 2, 3, 4, 5, 6, 7, 8, 9}; for (arr) |m| { var n: u32 = 1; while (n <= m) : (n += 1) { print("{} x {} = {}, ", .{n, m, n*m}); } print("\n", .{}); } } ================================================ FILE: examples/language/zokrates.zok ================================================ /* This is a multi-line comment written in more than just one line. */ def main() -> field { // an inline comment u32 mut res = 0; for u32 i in 0..4 { for u32 j in i..5 { res = res + i; } } return res; } ================================================ FILE: examples/long/test.feature ================================================ ================================================ FILE: examples/long/test.ftl ================================================ ================================================ FILE: examples/long/test.jsp ================================================ ================================================ FILE: examples/long/test.mxml ================================================ ================================================ FILE: examples/long/test.rdl ================================================ ================================================ FILE: examples/long/test.vcl ================================================ ================================================ FILE: examples/long/test.xslt ================================================ ================================================ FILE: examples/minified/0-941d61979b9396d94f06.js ================================================ (window.webpackJsonp=window.webpackJsonp||[]).push([[0],{245:function(e,t,n){n(5),n(4),n(3),n(6),n(12),t.__esModule=!0,t.Helmet=void 0;var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var E,p,d,A=(0,u.default)(T.reducePropsToState,T.handleClientStateChange,T.mapStateOnServer)(function(){return null}),S=(E=A,d=p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!(0,c.default)(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case s.TAG_NAMES.SCRIPT:case s.TAG_NAMES.NOSCRIPT:return{innerHTML:t};case s.TAG_NAMES.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,o=e.arrayTypeChildren,i=e.newChildProps,a=e.nestedChildren;return r({},o,((t={})[n.type]=[].concat(o[n.type]||[],[r({},i,this.mapNestedChildrenToProps(n,a))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,o=e.child,i=e.newProps,a=e.newChildProps,u=e.nestedChildren;switch(o.type){case s.TAG_NAMES.TITLE:return r({},i,((t={})[o.type]=u,t.titleAttributes=r({},a),t));case s.TAG_NAMES.BODY:return r({},i,{bodyAttributes:r({},a)});case s.TAG_NAMES.HTML:return r({},i,{htmlAttributes:r({},a)})}return r({},i,((n={})[o.type]=r({},a),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=r({},t);return Object.keys(e).forEach(function(t){var o;n=r({},n,((o={})[t]=e[t],o))}),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return i.default.Children.forEach(e,function(e){if(e&&e.props){var o=e.props,i=o.children,a=l(o,["children"]),u=(0,T.convertReactPropstoHtmlAttributes)(a);switch(n.warnOnInvalidChildren(e,i),e.type){case s.TAG_NAMES.LINK:case s.TAG_NAMES.META:case s.TAG_NAMES.NOSCRIPT:case s.TAG_NAMES.SCRIPT:case s.TAG_NAMES.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:u,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:u,nestedChildren:i})}}}),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=l(e,["children"]),o=r({},n);return t&&(o=this.mapChildrenToProps(t,o)),i.default.createElement(E,o)},o(t,null,[{key:"canUseDOM",set:function(e){E.canUseDOM=e}}]),t}(i.default.Component),p.propTypes={base:a.default.object,bodyAttributes:a.default.object,children:a.default.oneOfType([a.default.arrayOf(a.default.node),a.default.node]),defaultTitle:a.default.string,defer:a.default.bool,encodeSpecialCharacters:a.default.bool,htmlAttributes:a.default.object,link:a.default.arrayOf(a.default.object),meta:a.default.arrayOf(a.default.object),noscript:a.default.arrayOf(a.default.object),onChangeClientState:a.default.func,script:a.default.arrayOf(a.default.object),style:a.default.arrayOf(a.default.object),title:a.default.string,titleAttributes:a.default.object,titleTemplate:a.default.string},p.defaultProps={defer:!0,encodeSpecialCharacters:!0},p.peek=E.peek,p.rewind=function(){var e=E.rewind();return e||(e=(0,T.mapStateOnServer)({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},d);S.renderStatic=S.rewind,t.Helmet=S,t.default=S},253:function(e,t,n){n(21),n(5),n(4),n(3),n(6),t.__esModule=!0;t.ATTRIBUTE_NAMES={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"};var r=t.TAG_NAMES={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},o=(t.VALID_TAG_NAMES=Object.keys(r).map(function(e){return r[e]}),t.TAG_PROPERTIES={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src"},t.REACT_TAG_MAP={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"});t.HELMET_PROPS={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},t.HTML_TAG_MAP=Object.keys(o).reduce(function(e,t){return e[o[t]]=t,e},{}),t.SELF_CLOSING_TAGS=[r.NOSCRIPT,r.SCRIPT,r.STYLE],t.HELMET_ATTRIBUTE="data-react-helmet"},259:function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}n(21);var o=n(0),i=r(o),a=r(n(260)),u=r(n(261));e.exports=function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var c=[],T=void 0;function s(){T=e(c.map(function(e){return e.props})),f.canUseDOM?t(T):n&&(T=n(T))}var f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.peek=function(){return T},t.rewind=function(){if(t.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=T;return T=void 0,c=[],e},t.prototype.shouldComponentUpdate=function(e){return!u(e,this.props)},t.prototype.componentWillMount=function(){c.push(this),s()},t.prototype.componentDidUpdate=function(){s()},t.prototype.componentWillUnmount=function(){var e=c.indexOf(this);c.splice(e,1),s()},t.prototype.render=function(){return i.createElement(r,this.props)},t}(o.Component);return f.displayName="SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")",f.canUseDOM=a.canUseDOM,f}}},260:function(e,t,n){var r;!function(){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}()},261:function(e,t,n){n(5),n(4),n(3),n(6),e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(t),c=0;c1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},f=function(e){var t=A(e,u.TAG_NAMES.TITLE),n=A(e,u.HELMET_PROPS.TITLE_TEMPLATE);if(n&&t)return n.replace(/%s/g,function(){return t});var r=A(e,u.HELMET_PROPS.DEFAULT_TITLE);return t||r||void 0},l=function(e){return A(e,u.HELMET_PROPS.ON_CHANGE_CLIENT_STATE)||function(){}},E=function(e,t){return t.filter(function(t){return void 0!==t[e]}).map(function(t){return t[e]}).reduce(function(e,t){return o({},e,t)},{})},p=function(e,t){return t.filter(function(e){return void 0!==e[u.TAG_NAMES.BASE]}).map(function(e){return e[u.TAG_NAMES.BASE]}).reverse().reduce(function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},S=(T=Date.now(),function(e){var t=Date.now();t-T>16?(T=t,e(t)):setTimeout(function(){S(e)},0)}),h=function(e){return clearTimeout(e)},y="undefined"!=typeof window?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||S:e.requestAnimationFrame||S,_="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||h:e.cancelAnimationFrame||h,b=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},m=null,R=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,c=e.noscriptTags,T=e.onChangeClientState,s=e.scriptTags,f=e.styleTags,l=e.title,E=e.titleAttributes;O(u.TAG_NAMES.BODY,r),O(u.TAG_NAMES.HTML,o),v(l,E);var p={baseTag:M(u.TAG_NAMES.BASE,n),linkTags:M(u.TAG_NAMES.LINK,i),metaTags:M(u.TAG_NAMES.META,a),noscriptTags:M(u.TAG_NAMES.NOSCRIPT,c),scriptTags:M(u.TAG_NAMES.SCRIPT,s),styleTags:M(u.TAG_NAMES.STYLE,f)},d={},A={};Object.keys(p).forEach(function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(d[e]=n),r.length&&(A[e]=p[e].oldTags)}),t&&t(),T(e,d,A)},P=function(e){return Array.isArray(e)?e.join(""):e},v=function(e,t){void 0!==e&&document.title!==e&&(document.title=P(e)),O(u.TAG_NAMES.TITLE,t)},O=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(u.HELMET_ATTRIBUTE),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),c=0;c=0;l--)n.removeAttribute(i[l]);o.length===i.length?n.removeAttribute(u.HELMET_ATTRIBUTE):n.getAttribute(u.HELMET_ATTRIBUTE)!==a.join(",")&&n.setAttribute(u.HELMET_ATTRIBUTE,a.join(","))}},M=function(e,t){var n=document.head||document.querySelector(u.TAG_NAMES.HEAD),r=n.querySelectorAll(e+"["+u.HELMET_ATTRIBUTE+"]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach(function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===u.TAG_PROPERTIES.INNER_HTML)n.innerHTML=t.innerHTML;else if(r===u.TAG_PROPERTIES.CSS_TEXT)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var c=void 0===t[r]?"":t[r];n.setAttribute(r,c)}n.setAttribute(u.HELMET_ATTRIBUTE,"true"),o.some(function(e,t){return a=t,n.isEqualNode(e)})?o.splice(a,1):i.push(n)}),o.forEach(function(e){return e.parentNode.removeChild(e)}),i.forEach(function(e){return n.appendChild(e)}),{oldTags:o,newTags:i}},C=function(e){return Object.keys(e).reduce(function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r},"")},g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce(function(t,n){return t[u.REACT_TAG_MAP[n]||n]=e[n],t},t)},w=function(e,t,n){switch(e){case u.TAG_NAMES.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[u.HELMET_ATTRIBUTE]=!0,o=g(n,r),[i.default.createElement(u.TAG_NAMES.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=C(n),i=P(t);return o?"<"+e+" "+u.HELMET_ATTRIBUTE+'="true" '+o+">"+s(i,r)+"":"<"+e+" "+u.HELMET_ATTRIBUTE+'="true">'+s(i,r)+""}(e,t.title,t.titleAttributes,n)}};case u.ATTRIBUTE_NAMES.BODY:case u.ATTRIBUTE_NAMES.HTML:return{toComponent:function(){return g(t)},toString:function(){return C(t)}};default:return{toComponent:function(){return function(e,t){return t.map(function(t,n){var r,o=((r={key:n})[u.HELMET_ATTRIBUTE]=!0,r);return Object.keys(t).forEach(function(e){var n=u.REACT_TAG_MAP[e]||e;if(n===u.TAG_PROPERTIES.INNER_HTML||n===u.TAG_PROPERTIES.CSS_TEXT){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]}),i.default.createElement(e,o)})}(e,t)},toString:function(){return function(e,t,n){return t.reduce(function(t,r){var o=Object.keys(r).filter(function(e){return!(e===u.TAG_PROPERTIES.INNER_HTML||e===u.TAG_PROPERTIES.CSS_TEXT)}).reduce(function(e,t){var o=void 0===r[t]?t:t+'="'+s(r[t],n)+'"';return e?e+" "+o:o},""),i=r.innerHTML||r.cssText||"",a=-1===u.SELF_CLOSING_TAGS.indexOf(e);return t+"<"+e+" "+u.HELMET_ATTRIBUTE+'="true" '+o+(a?"/>":">"+i+"")},"")}(e,t,n)}}}};t.convertReactPropstoHtmlAttributes=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce(function(t,n){return t[u.HTML_TAG_MAP[n]||n]=e[n],t},t)},t.handleClientStateChange=function(e){m&&_(m),e.defer?m=y(function(){R(e,function(){m=null})}):(R(e),m=null)},t.mapStateOnServer=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,c=e.noscriptTags,T=e.scriptTags,s=e.styleTags,f=e.title,l=void 0===f?"":f,E=e.titleAttributes;return{base:w(u.TAG_NAMES.BASE,t,r),bodyAttributes:w(u.ATTRIBUTE_NAMES.BODY,n,r),htmlAttributes:w(u.ATTRIBUTE_NAMES.HTML,o,r),link:w(u.TAG_NAMES.LINK,i,r),meta:w(u.TAG_NAMES.META,a,r),noscript:w(u.TAG_NAMES.NOSCRIPT,c,r),script:w(u.TAG_NAMES.SCRIPT,T,r),style:w(u.TAG_NAMES.STYLE,s,r),title:w(u.TAG_NAMES.TITLE,{title:l,titleAttributes:E},r)}},t.reducePropsToState=function(e){return{baseTag:p([u.TAG_PROPERTIES.HREF],e),bodyAttributes:E(u.ATTRIBUTE_NAMES.BODY,e),defer:A(e,u.HELMET_PROPS.DEFER),encode:A(e,u.HELMET_PROPS.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:E(u.ATTRIBUTE_NAMES.HTML,e),linkTags:d(u.TAG_NAMES.LINK,[u.TAG_PROPERTIES.REL,u.TAG_PROPERTIES.HREF],e),metaTags:d(u.TAG_NAMES.META,[u.TAG_PROPERTIES.NAME,u.TAG_PROPERTIES.CHARSET,u.TAG_PROPERTIES.HTTPEQUIV,u.TAG_PROPERTIES.PROPERTY,u.TAG_PROPERTIES.ITEM_PROP],e),noscriptTags:d(u.TAG_NAMES.NOSCRIPT,[u.TAG_PROPERTIES.INNER_HTML],e),onChangeClientState:l(e),scriptTags:d(u.TAG_NAMES.SCRIPT,[u.TAG_PROPERTIES.SRC,u.TAG_PROPERTIES.INNER_HTML],e),styleTags:d(u.TAG_NAMES.STYLE,[u.TAG_PROPERTIES.CSS_TEXT],e),title:f(e),titleAttributes:E(u.ATTRIBUTE_NAMES.TITLE,e)}},t.requestAnimationFrame=y,t.warn=b}).call(this,n(161))}}]); //# sourceMappingURL=0-941d61979b9396d94f06.js.map ================================================ FILE: examples/minified/1-fa6e7d2ffea9ee90c8d8.js ================================================ (window.webpackJsonp=window.webpackJsonp||[]).push([[1],{244:function(e,t,r){"use strict";r(5),r(4),r(3),r(85),r(160),r(246);var a=r(26);t.__esModule=!0,t.default=void 0;var i,n=a(r(83)),o=a(r(84)),s=a(r(158)),u=a(r(159)),d=a(r(0)),l=a(r(10)),f=function(e){var t=(0,u.default)({},e),r=t.resolutions,a=t.sizes,i=t.critical;return r&&(t.fixed=r,delete t.resolutions),a&&(t.fluid=a,delete t.sizes),i&&(t.loading="eager"),t.fluid&&(t.fluid=x([].concat(t.fluid))),t.fixed&&(t.fixed=x([].concat(t.fixed))),t},c=function(e){var t=e.fluid,r=e.fixed;return(t&&t[0]||r&&r[0]).src},p=Object.create({}),g=function(e){var t=f(e),r=c(t);return p[r]||!1},h="undefined"!=typeof HTMLImageElement&&"loading"in HTMLImageElement.prototype,m="undefined"!=typeof window,b=m&&window.IntersectionObserver,v=new WeakMap;function y(e){return e.map(function(e){var t=e.src,r=e.srcSet,a=e.srcSetWebp,i=e.media,n=e.sizes;return d.default.createElement(d.default.Fragment,{key:t},a&&d.default.createElement("source",{type:"image/webp",media:i,srcSet:a,sizes:n}),d.default.createElement("source",{media:i,srcSet:r,sizes:n}))})}function x(e){var t=[],r=[];return e.forEach(function(e){return(e.media?t:r).push(e)}),t.concat(r)}function S(e){return e.map(function(e){var t=e.src,r=e.media,a=e.tracedSVG;return d.default.createElement("source",{key:t,media:r,srcSet:a})})}function E(e){return e.map(function(e){var t=e.src,r=e.media,a=e.base64;return d.default.createElement("source",{key:t,media:r,srcSet:a})})}function L(e,t){var r=e.srcSet,a=e.srcSetWebp,i=e.media,n=e.sizes;return""}var w=function(e,t){var r=(void 0===i&&"undefined"!=typeof window&&window.IntersectionObserver&&(i=new window.IntersectionObserver(function(e){e.forEach(function(e){if(v.has(e.target)){var t=v.get(e.target);(e.isIntersecting||e.intersectionRatio>0)&&(i.unobserve(e.target),v.delete(e.target),t())}})},{rootMargin:"200px"})),i);return r&&(r.observe(e),v.set(e,t)),function(){r.unobserve(e),v.delete(e)}},O=function(e){var t=e.src?'src="'+e.src+'" ':'src="" ',r=e.sizes?'sizes="'+e.sizes+'" ':"",a=e.srcSet?'srcset="'+e.srcSet+'" ':"",i=e.title?'title="'+e.title+'" ':"",n=e.alt?'alt="'+e.alt+'" ':'alt="" ',o=e.width?'width="'+e.width+'" ':"",s=e.height?'height="'+e.height+'" ':"",u=e.crossOrigin?'crossorigin="'+e.crossOrigin+'" ':"",d=e.loading?'loading="'+e.loading+'" ':"",l=e.draggable?'draggable="'+e.draggable+'" ':"";return""+e.imageVariants.map(function(e){return(e.srcSetWebp?L(e,!0):"")+L(e)}).join("")+"'},I=function(e){var t=e.src,r=e.imageVariants,a=e.generateSources,i=e.spreadProps,n=d.default.createElement(z,(0,u.default)({src:t},i));return r.length>1?d.default.createElement("picture",null,a(r),n):n},z=d.default.forwardRef(function(e,t){var r=e.sizes,a=e.srcSet,i=e.src,n=e.style,o=e.onLoad,l=e.onError,f=e.loading,c=e.draggable,p=(0,s.default)(e,["sizes","srcSet","src","style","onLoad","onError","loading","draggable"]);return d.default.createElement("img",(0,u.default)({sizes:r,srcSet:a,src:i},p,{onLoad:o,onError:l,ref:t,loading:f,draggable:c,style:(0,u.default)({position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"cover",objectPosition:"center"},n)}))});z.propTypes={style:l.default.object,onError:l.default.func,onLoad:l.default.func};var R=function(e){function t(t){var r;(r=e.call(this,t)||this).seenBefore=m&&g(t),r.addNoScript=!(t.critical&&!t.fadeIn),r.useIOSupport=!h&&b&&!t.critical&&!r.seenBefore;var a=t.critical||m&&(h||!r.useIOSupport);return r.state={isVisible:a,imgLoaded:!1,imgCached:!1,fadeIn:!r.seenBefore&&t.fadeIn},r.imageRef=d.default.createRef(),r.handleImageLoaded=r.handleImageLoaded.bind((0,o.default)((0,o.default)(r))),r.handleRef=r.handleRef.bind((0,o.default)((0,o.default)(r))),r}(0,n.default)(t,e);var r=t.prototype;return r.componentDidMount=function(){if(this.state.isVisible&&"function"==typeof this.props.onStartLoad&&this.props.onStartLoad({wasCached:g(this.props)}),this.props.critical){var e=this.imageRef.current;e&&e.complete&&this.handleImageLoaded()}},r.componentWillUnmount=function(){this.cleanUpListeners&&this.cleanUpListeners()},r.handleRef=function(e){var t=this;this.useIOSupport&&e&&(this.cleanUpListeners=w(e,function(){var e=g(t.props);t.state.isVisible||"function"!=typeof t.props.onStartLoad||t.props.onStartLoad({wasCached:e}),t.setState({isVisible:!0},function(){return t.setState({imgLoaded:e,imgCached:!!t.imageRef.current.currentSrc})})}))},r.handleImageLoaded=function(){var e,t,r;e=this.props,t=f(e),r=c(t),p[r]=!0,this.setState({imgLoaded:!0}),this.props.onLoad&&this.props.onLoad()},r.render=function(){var e=f(this.props),t=e.title,r=e.alt,a=e.className,i=e.style,n=void 0===i?{}:i,o=e.imgStyle,s=void 0===o?{}:o,l=e.placeholderStyle,c=void 0===l?{}:l,p=e.placeholderClassName,g=e.fluid,h=e.fixed,m=e.backgroundColor,b=e.durationFadeIn,v=e.Tag,x=e.itemProp,L=e.loading,w=e.draggable,R=!1===this.state.fadeIn||this.state.imgLoaded,j=!0===this.state.fadeIn&&!this.state.imgCached,T=(0,u.default)({opacity:R?1:0,transition:j?"opacity "+b+"ms":"none"},s),V="boolean"==typeof m?"lightgray":m,A={transitionDelay:b+"ms"},N=(0,u.default)({opacity:this.state.imgLoaded?0:1},j&&A,s,c),C={title:t,alt:this.state.isVisible?"":r,style:N,className:p};if(g){var k=g,U=k[0];return d.default.createElement(v,{className:(a||"")+" gatsby-image-wrapper",style:(0,u.default)({position:"relative",overflow:"hidden"},n),ref:this.handleRef,key:"fluid-"+JSON.stringify(U.srcSet)},d.default.createElement(v,{style:{width:"100%",paddingBottom:100/U.aspectRatio+"%"}}),V&&d.default.createElement(v,{title:t,style:(0,u.default)({backgroundColor:V,position:"absolute",top:0,bottom:0,opacity:this.state.imgLoaded?0:1,right:0,left:0},j&&A)}),U.base64&&d.default.createElement(I,{src:U.base64,spreadProps:C,imageVariants:k,generateSources:E}),U.tracedSVG&&d.default.createElement(I,{src:U.tracedSVG,spreadProps:C,imageVariants:k,generateSources:S}),this.state.isVisible&&d.default.createElement("picture",null,y(k),d.default.createElement(z,{alt:r,title:t,sizes:U.sizes,src:U.src,crossOrigin:this.props.crossOrigin,srcSet:U.srcSet,style:T,ref:this.imageRef,onLoad:this.handleImageLoaded,onError:this.props.onError,itemProp:x,loading:L,draggable:w})),this.addNoScript&&d.default.createElement("noscript",{dangerouslySetInnerHTML:{__html:O((0,u.default)({alt:r,title:t,loading:L},U,{imageVariants:k}))}}))}if(h){var P=h,G=P[0],Z=(0,u.default)({position:"relative",overflow:"hidden",display:"inline-block",width:G.width,height:G.height},n);return"inherit"===n.display&&delete Z.display,d.default.createElement(v,{className:(a||"")+" gatsby-image-wrapper",style:Z,ref:this.handleRef,key:"fixed-"+JSON.stringify(G.srcSet)},V&&d.default.createElement(v,{title:t,style:(0,u.default)({backgroundColor:V,width:G.width,opacity:this.state.imgLoaded?0:1,height:G.height},j&&A)}),G.base64&&d.default.createElement(I,{src:G.base64,spreadProps:C,imageVariants:P,generateSources:E}),G.tracedSVG&&d.default.createElement(I,{src:G.tracedSVG,spreadProps:C,imageVariants:P,generateSources:S}),this.state.isVisible&&d.default.createElement("picture",null,y(P),d.default.createElement(z,{alt:r,title:t,width:G.width,height:G.height,sizes:G.sizes,src:G.src,crossOrigin:this.props.crossOrigin,srcSet:G.srcSet,style:T,ref:this.imageRef,onLoad:this.handleImageLoaded,onError:this.props.onError,itemProp:x,loading:L,draggable:w})),this.addNoScript&&d.default.createElement("noscript",{dangerouslySetInnerHTML:{__html:O((0,u.default)({alt:r,title:t,loading:L},G,{imageVariants:P}))}}))}return null},t}(d.default.Component);R.defaultProps={fadeIn:!0,durationFadeIn:500,alt:"",Tag:"div",loading:"lazy"};var j=l.default.shape({width:l.default.number.isRequired,height:l.default.number.isRequired,src:l.default.string.isRequired,srcSet:l.default.string.isRequired,base64:l.default.string,tracedSVG:l.default.string,srcWebp:l.default.string,srcSetWebp:l.default.string,media:l.default.string}),T=l.default.shape({aspectRatio:l.default.number.isRequired,src:l.default.string.isRequired,srcSet:l.default.string.isRequired,sizes:l.default.string.isRequired,base64:l.default.string,tracedSVG:l.default.string,srcWebp:l.default.string,srcSetWebp:l.default.string,media:l.default.string});R.propTypes={resolutions:j,sizes:T,fixed:l.default.oneOfType([j,l.default.arrayOf(j)]),fluid:l.default.oneOfType([T,l.default.arrayOf(T)]),fadeIn:l.default.bool,durationFadeIn:l.default.number,title:l.default.string,alt:l.default.string,className:l.default.oneOfType([l.default.string,l.default.object]),critical:l.default.bool,crossOrigin:l.default.oneOfType([l.default.string,l.default.bool]),style:l.default.object,imgStyle:l.default.object,placeholderStyle:l.default.object,placeholderClassName:l.default.string,backgroundColor:l.default.oneOfType([l.default.string,l.default.bool]),onLoad:l.default.func,onError:l.default.func,onStartLoad:l.default.func,Tag:l.default.string,itemProp:l.default.string,loading:l.default.oneOf(["auto","lazy","eager"]),draggable:l.default.bool};var V=R;t.default=V},246:function(e,t,r){"use strict";r(157)("fixed",function(e){return function(){return e(this,"tt","","")}})},250:function(e,t,r){var a=r(270).Symbol;e.exports=a},254:function(e,t,r){var a=r(264)(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()});e.exports=a},255:function(e,t,r){var a=r(269);e.exports=function(e){return null==e?"":a(e)}},264:function(e,t,r){r(13),r(60);var a=r(265),i=r(266),n=r(279),o=RegExp("['’]","g");e.exports=function(e){return function(t){return a(n(i(t).replace(o,"")),e,"")}}},265:function(e,t){e.exports=function(e,t,r,a){var i=-1,n=null==e?0:e.length;for(a&&n&&(r=e[++i]);++ie.length)return;if(!(k instanceof u)){if(m&&b!=t.length-1){if(d.lastIndex=w,!(C=d.exec(e)))break;for(var x=C.index+(h?C[1].length:0),E=C.index+C[0].length,S=b,_=w,T=t.length;S=(_+=t[S].length)&&(++b,w=_);if(t[b]instanceof u)continue;O=S-b,k=e.slice(w,_),C.index-=w}else{d.lastIndex=0;var C=d.exec(k),O=1}if(C){h&&(g=C[1]?C[1].length:0);E=(x=C.index+g)+(C=C[0].slice(g)).length;var P=k.slice(0,x),A=k.slice(E),I=[b,O];P&&(++b,w+=P.length,I.push(P));var R=new u(s,p?o.tokenize(C,p):C,v,C,m);if(I.push(R),A&&I.push(A),Array.prototype.splice.apply(t,I),1!=O&&o.matchGrammar(e,t,n,b,w,!0,s),i)break}else if(i)break}}}}},hooks:{add:function(){}},tokenize:function(e,t,n){var r=[e],a=t.rest;if(a){for(var i in a)t[i]=a[i];delete t.rest}return o.matchGrammar(e,r,t,0,0,!1),r}},(a=o.Token=function(e,t,n,r,o){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length,this.greedy=!!o}).stringify=function(e,t,n){if("string"==typeof e)return e;if("Array"===o.util.type(e))return e.map(function(n){return a.stringify(n,t,e)}).join("");var r={type:e.type,content:a.stringify(e.content,t,n),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:n};if(e.alias){var i="Array"===o.util.type(e.alias)?e.alias:[e.alias];Array.prototype.push.apply(r.classes,i)}var l=Object.keys(r.attributes).map(function(e){return e+'="'+(r.attributes[e]||"").replace(/"/g,""")+'"'}).join(" ");return"<"+r.tag+' class="'+r.classes.join(" ")+'"'+(l?" "+l:"")+">"+r.content+""},o);e.exports=i,i.default=i},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return rt}),n.d(t,"a",function(){return Ke}),n.d(t,"d",function(){return ot});n(29),n(22),n(5),n(4),n(3),n(6),n(60),n(13),n(21),n(128),n(12),n(48),n(18);var r=n(101),o=n.n(r),a=n(140),i=n.n(a),l=n(0),u=n.n(l),s=n(141),c=n(102),f=n(103),d=(n(10),n(156)),p=n(155),h=function(e,t){for(var n=[e[0]],r=0,o=t.length;r=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},k=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},x=function(e){return"object"===(void 0===e?"undefined":m(e))&&e.constructor===Object},E=Object.freeze([]),S=Object.freeze({});function _(e){return"function"==typeof e}function T(e){return e.displayName||e.name||"Component"}function C(e){return e&&"string"==typeof e.styledComponentId}var O=void 0!==e&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",P="undefined"!=typeof window&&"HTMLElement"in window,A="boolean"==typeof SC_DISABLE_SPEEDY&&SC_DISABLE_SPEEDY||void 0!==e&&({}.REACT_APP_SC_DISABLE_SPEEDY||{}.SC_DISABLE_SPEEDY)||!1,I={};var R=function(e){function t(n){g(this,t);for(var r=arguments.length,o=Array(r>1?r-1:0),a=1;a0?" Additional arguments: "+o.join(", "):"")));return k(i)}return b(t,e),t}(Error),j=/^[^\S\n]*?\/\* sc-component-id:\s*(\S+)\s+\*\//gm,N=function(e){var t=""+(e||""),n=[];return t.replace(j,function(e,t,r){return n.push({componentId:t,matchIndex:r}),e}),n.map(function(e,r){var o=e.componentId,a=e.matchIndex,i=n[r+1];return{componentId:o,cssFromDOM:i?t.slice(a,i.matchIndex):t.slice(a)}})},F=/^\s*\/\/.*$/gm,M=new o.a({global:!1,cascade:!0,keyframe:!1,prefix:!1,compress:!1,semicolon:!0}),L=new o.a({global:!1,cascade:!0,keyframe:!1,prefix:!0,compress:!1,semicolon:!1}),D=[],U=function(e){if(-2===e){var t=D;return D=[],t}},z=i()(function(e){D.push(e)}),B=void 0,$=void 0,W=void 0,H=function(e,t,n){return t>0&&-1!==n.slice(0,t).indexOf($)&&n.slice(t-$.length,t)!==$?"."+B:e};L.use([function(e,t,n){2===e&&n.length&&n[0].lastIndexOf($)>0&&(n[0]=n[0].replace(W,H))},z,U]),M.use([z,U]);function q(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"&",o=e.join("").replace(F,""),a=t&&n?n+" "+t+" { "+o+" }":o;return B=r,$=t,W=new RegExp("\\"+$+"\\b","g"),L(n||!t?"":t,a)}var V=function(){return n.nc},G=function(e,t,n){n&&((e[t]||(e[t]=Object.create(null)))[n]=!0)},K=function(e,t){e[t]=Object.create(null)},Y=function(e){return function(t,n){return void 0!==e[t]&&e[t][n]}},X=function(e){var t="";for(var n in e)t+=Object.keys(e[n]).join(" ")+" ";return t.trim()},Q=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets.length,n=0;n"+e()+""}},ne=function(e,t){return function(){var n,r=((n={})[O]=X(t),n["data-styled-version"]="4.3.2",n),o=V();return o&&(r.nonce=o),u.a.createElement("style",y({},r,{dangerouslySetInnerHTML:{__html:e()}}))}},re=function(e){return function(){return Object.keys(e)}},oe=function(e){return document.createTextNode(J(e))},ae=function e(t,n){var r=void 0===t?Object.create(null):t,o=void 0===n?Object.create(null):n,a=function(e){var t=o[e];return void 0!==t?t:o[e]=[""]},i=function(){var e="";for(var t in o){var n=o[t][0];n&&(e+=J(t)+n)}return e};return{clone:function(){var t=function(e){var t=Object.create(null);for(var n in e)t[n]=y({},e[n]);return t}(r),n=Object.create(null);for(var a in o)n[a]=[o[a][0]];return e(t,n)},css:i,getIds:re(o),hasNameForId:Y(r),insertMarker:a,insertRules:function(e,t,n){a(e)[0]+=t.join(" "),G(r,e,n)},removeRules:function(e){var t=o[e];void 0!==t&&(t[0]="",K(r,e))},sealed:!1,styleTag:null,toElement:ne(i,r),toHTML:te(i,r)}},ie=function(e,t,n,r,o){if(P&&!n){var a=function(e,t,n){var r=document.createElement("style");r.setAttribute(O,""),r.setAttribute("data-styled-version","4.3.2");var o=V();if(o&&r.setAttribute("nonce",o),r.appendChild(document.createTextNode("")),e&&!t)e.appendChild(r);else{if(!t||!e||!t.parentNode)throw new R(6);t.parentNode.insertBefore(r,n?t:t.nextSibling)}return r}(e,t,r);return A?function(e,t){var n=Object.create(null),r=Object.create(null),o=void 0!==t,a=!1,i=function(t){var o=r[t];return void 0!==o?o:(r[t]=oe(t),e.appendChild(r[t]),n[t]=Object.create(null),r[t])},l=function(){var e="";for(var t in r)e+=r[t].data;return e};return{clone:function(){throw new R(5)},css:l,getIds:re(r),hasNameForId:Y(n),insertMarker:i,insertRules:function(e,r,l){for(var u=i(e),s=[],c=r.length,f=0;f0&&(a=!0,t().insertRules(e+"-import",s))},removeRules:function(i){var l=r[i];if(void 0!==l){var u=oe(i);e.replaceChild(u,l),r[i]=u,K(n,i),o&&a&&t().removeRules(i+"-import")}},sealed:!1,styleTag:e,toElement:ne(l,n),toHTML:te(l,n)}}(a,o):function(e,t){var n=Object.create(null),r=Object.create(null),o=[],a=void 0!==t,i=!1,l=function(e){var t=r[e];return void 0!==t?t:(r[e]=o.length,o.push(0),K(n,e),r[e])},u=function(){var t=Q(e).cssRules,n="";for(var a in r){n+=J(a);for(var i=r[a],l=ee(o,i),u=l-o[i];u0&&(i=!0,t().insertRules(r+"-import",h)),o[c]+=p,G(n,r,s)},removeRules:function(l){var u=r[l];if(void 0!==u){var s=o[u];!function(e,t,n){for(var r=t-n,o=t;o>r;o-=1)e.deleteRule(o)}(Q(e),ee(o,u)-1,s),o[u]=0,K(n,l),a&&i&&t().removeRules(l+"-import")}},sealed:!1,styleTag:e,toElement:ne(u,n),toHTML:te(u,n)}}(a,o)}return ae()},le=/\s+/,ue=void 0;ue=P?A?40:1e3:-1;var se=0,ce=void 0,fe=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:P?document.head:null,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];g(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(void 0!==e)return e;var n=t.tags[0];return t.importRuleTag=ie(t.target,n?n.styleTag:null,t.forceServer,!0)},se+=1,this.id=se,this.forceServer=r,this.target=r?null:n,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!P||this.forceServer)return this;var e=[],t=[],n=!1,r=document.querySelectorAll("style["+O+'][data-styled-version="4.3.2"]'),o=r.length;if(!o)return this;for(var a=0;a0&&void 0!==arguments[0]&&arguments[0];ce=new e(void 0,t).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map(function(e){for(var n=e.getIds(),r=e.clone(),o=0;o1?t-1:0),r=1;r=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return((r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16))^r>>>15)>>>0}var ke=52,xe=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ee(e){var t="",n=void 0;for(n=e;n>ke;n=Math.floor(n/ke))t=xe(n%ke)+t;return xe(n%ke)+t}function Se(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:S,r=!!n&&e.theme===n.theme;return e.theme&&!r?e.theme:t||n.theme},Ae=/[[\].#*$><+~=|^:(),"'`-]+/g,Ie=/(^-|-$)/g;function Re(e){return e.replace(Ae,"-").replace(Ie,"")}function je(e){return"string"==typeof e&&!0}var Ne={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Fe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Me=((_e={})[c.ForwardRef]={$$typeof:!0,render:!0},_e),Le=Object.defineProperty,De=Object.getOwnPropertyNames,Ue=Object.getOwnPropertySymbols,ze=void 0===Ue?function(){return[]}:Ue,Be=Object.getOwnPropertyDescriptor,$e=Object.getPrototypeOf,We=Object.prototype,He=Array.prototype;function qe(e,t,n){if("string"!=typeof t){var r=$e(t);r&&r!==We&&qe(e,r,n);for(var o=He.concat(De(t),ze(t)),a=Me[e.$$typeof]||Ne,i=Me[t.$$typeof]||Ne,l=o.length,u=void 0,s=void 0;l--;)if(s=o[l],!(Fe[s]||n&&n[s]||i&&i[s]||a&&a[s])&&(u=Be(t,s)))try{Le(e,s,u)}catch(c){}return e}return e}var Ve=Object(l.createContext)(),Ge=Ve.Consumer,Ke=function(e){function t(n){g(this,t);var r=k(this,e.call(this,n));return r.getContext=Object(f.a)(r.getContext.bind(r)),r.renderInner=r.renderInner.bind(r),r}return b(t,e),t.prototype.render=function(){return this.props.children?u.a.createElement(Ve.Consumer,null,this.renderInner):null},t.prototype.renderInner=function(e){var t=this.getContext(this.props.theme,e);return u.a.createElement(Ve.Provider,{value:t},u.a.Children.only(this.props.children))},t.prototype.getTheme=function(e,t){if(_(e))return e(t);if(null===e||Array.isArray(e)||"object"!==(void 0===e?"undefined":m(e)))throw new R(8);return y({},t,e)},t.prototype.getContext=function(e,t){return this.getTheme(e,t)},t}(l.Component),Ye=(function(){function e(){g(this,e),this.masterSheet=fe.master,this.instance=this.masterSheet.clone(),this.sealed=!1}e.prototype.seal=function(){if(!this.sealed){var e=this.masterSheet.clones.indexOf(this.instance);this.masterSheet.clones.splice(e,1),this.sealed=!0}},e.prototype.collectStyles=function(e){if(this.sealed)throw new R(2);return u.a.createElement(Qe,{sheet:this.instance},e)},e.prototype.getStyleTags=function(){return this.seal(),this.instance.toHTML()},e.prototype.getStyleElement=function(){return this.seal(),this.instance.toReactElements()},e.prototype.interleaveWithNodeStream=function(e){throw new R(3)}}(),Object(l.createContext)()),Xe=Ye.Consumer,Qe=function(e){function t(n){g(this,t);var r=k(this,e.call(this,n));return r.getContext=Object(f.a)(r.getContext),r}return b(t,e),t.prototype.getContext=function(e,t){if(e)return e;if(t)return new fe(t);throw new R(4)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.sheet,r=e.target;return u.a.createElement(Ye.Provider,{value:this.getContext(n,r)},t)},t}(l.Component),Ze={};var Je=function(e){function t(){g(this,t);var n=k(this,e.call(this));return n.attrs={},n.renderOuter=n.renderOuter.bind(n),n.renderInner=n.renderInner.bind(n),n}return b(t,e),t.prototype.render=function(){return u.a.createElement(Xe,null,this.renderOuter)},t.prototype.renderOuter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fe.master;return this.styleSheet=e,this.props.forwardedComponent.componentStyle.isStatic?this.renderInner():u.a.createElement(Ge,null,this.renderInner)},t.prototype.renderInner=function(e){var t=this.props.forwardedComponent,n=t.componentStyle,r=t.defaultProps,o=(t.displayName,t.foldedComponentIds),a=t.styledComponentId,i=t.target,u=void 0;u=n.isStatic?this.generateAndInjectStyles(S,this.props):this.generateAndInjectStyles(Pe(this.props,e,r)||S,this.props);var s=this.props.as||this.attrs.as||i,c=je(s),f={},p=y({},this.attrs,this.props),h=void 0;for(h in p)"forwardedComponent"!==h&&"as"!==h&&("forwardedRef"===h?f.ref=p[h]:"forwardedAs"===h?f.as=p[h]:c&&!Object(d.a)(h)||(f[h]=p[h]));return this.props.style&&this.attrs.style&&(f.style=y({},this.attrs.style,this.props.style)),f.className=Array.prototype.concat(o,this.props.className,a,this.attrs.className,u).filter(Boolean).join(" "),Object(l.createElement)(s,f)},t.prototype.buildExecutionContext=function(e,t,n){var r=this,o=y({},t,{theme:e});return n.length?(this.attrs={},n.forEach(function(e){var t,n=e,a=!1,i=void 0,l=void 0;for(l in _(n)&&(n=n(o),a=!0),n)i=n[l],a||!_(i)||(t=i)&&t.prototype&&t.prototype.isReactComponent||C(i)||(i=i(o)),r.attrs[l]=i,o[l]=i}),o):o},t.prototype.generateAndInjectStyles=function(e,t){var n=t.forwardedComponent,r=n.attrs,o=n.componentStyle;n.warnTooManyClasses;return o.isStatic&&!r.length?o.generateAndInjectStyles(S,this.styleSheet):o.generateAndInjectStyles(this.buildExecutionContext(e,t,r),this.styleSheet)},t}(l.Component);function et(e,t,n){var r=C(e),o=!je(e),a=t.displayName,i=void 0===a?function(e){return je(e)?"styled."+e:"Styled("+T(e)+")"}(e):a,l=t.componentId,s=void 0===l?function(e,t,n){var r="string"!=typeof t?"sc":Re(t),o=(Ze[r]||0)+1;Ze[r]=o;var a=r+"-"+e.generateName(r+o);return n?n+"-"+a:a}(Oe,t.displayName,t.parentComponentId):l,c=t.ParentComponent,f=void 0===c?Je:c,d=t.attrs,h=void 0===d?E:d,m=t.displayName&&t.componentId?Re(t.displayName)+"-"+t.componentId:t.componentId||s,g=r&&e.attrs?Array.prototype.concat(e.attrs,h).filter(Boolean):h,v=new Oe(r?e.componentStyle.rules.concat(n):n,g,m),b=void 0,k=function(e,t){return u.a.createElement(f,y({},e,{forwardedComponent:b,forwardedRef:t}))};return k.displayName=i,(b=u.a.forwardRef(k)).displayName=i,b.attrs=g,b.componentStyle=v,b.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):E,b.styledComponentId=m,b.target=r?e.target:e,b.withComponent=function(e){var r=t.componentId,o=w(t,["componentId"]),a=r&&r+"-"+(je(e)?e:Re(T(e)));return et(e,y({},o,{attrs:g,componentId:a,ParentComponent:f}),n)},Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Object(p.a)(e.defaultProps,t):t}}),b.toString=function(){return"."+b.styledComponentId},o&&qe(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,styledComponentId:!0,target:!0,withComponent:!0}),b}var tt=function(e){return function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S;if(!Object(c.isValidElementType)(n))throw new R(1,String(n));var o=function(){return t(n,r,be.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,y({},r,o))},o.attrs=function(o){return e(t,n,y({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o}(et,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){tt[e]=tt(e)});var nt=function(){function e(t,n){g(this,e),this.rules=t,this.componentId=n,this.isStatic=Se(t,E),fe.master.hasId(n)||fe.master.deferredInject(n,[])}return e.prototype.createStyles=function(e,t){var n=q(ye(this.rules,e,t),"");t.inject(this.componentId,n)},e.prototype.removeStyles=function(e){var t=this.componentId;e.hasId(t)&&e.remove(t)},e.prototype.renderStyles=function(e,t){this.removeStyles(t),this.createStyles(e,t)},e}();function rt(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(e,t,n){for(var r=n(4),o=n(39),a=n(23),i=n(8),l=n(32),u=n(54),s=n(9),c=s("iterator"),f=s("toStringTag"),d=u.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=o(p),m=0;m0?c:n?[n]:[]},t.apiRunnerAsync=function(e,t,n){return r.reduce(function(n,r){return r.plugin[e]?n.then(function(){return r.plugin[e](t,r.options)}):n},Promise.resolve())}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(64)("wks"),o=n(50),a=n(8).Symbol,i="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=i&&a[e]||(i?a:o)("Symbol."+e))}).store=r},function(e,t,n){e.exports=n(191)()},function(e,t,n){var r=n(8),o=n(31),a=n(32),i=n(23),l=n(37),u=function(e,t,n){var s,c,f,d,p=e&u.F,h=e&u.G,m=e&u.S,g=e&u.P,v=e&u.B,y=h?r:m?r[t]||(r[t]={}):(r[t]||{}).prototype,b=h?o:o[t]||(o[t]={}),w=b.prototype||(b.prototype={});for(s in h&&(n=t),n)f=((c=!p&&y&&void 0!==y[s])?y:n)[s],d=v&&c?l(f,r):g&&"function"==typeof f?l(Function.call,f):f,y&&i(y,s,f,e&u.U),b[s]!=f&&a(b,s,d),g&&w[s]!=f&&(w[s]=f)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){var r=n(11);r(r.S+r.F,"Object",{assign:n(112)})},function(e,t,n){"use strict";var r=n(14),o=n(35),a=n(33),i=n(68),l=n(88),u=n(62),s=Math.max,c=Math.min,f=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n(65)("replace",2,function(e,t,n,h){return[function(r,o){var a=e(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,a,o):n.call(String(a),r,o)},function(e,t){var o=h(n,e,this,t);if(o.done)return o.value;var f=r(e),d=String(this),p="function"==typeof t;p||(t=String(t));var g=f.global;if(g){var v=f.unicode;f.lastIndex=0}for(var y=[];;){var b=u(f,d);if(null===b)break;if(y.push(b),!g)break;""===String(b[0])&&(f.lastIndex=l(d,a(f.lastIndex),v))}for(var w,k="",x=0,E=0;E=x&&(k+=d.slice(x,_)+A,x=_+S.length)}return k+d.slice(x)}];function m(e,t,r,a,i,l){var u=r+e.length,s=a.length,c=p;return void 0!==i&&(i=o(i),c=d),n.call(l,c,function(n,o){var l;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(u);case"<":l=i[o.slice(1,-1)];break;default:var c=+o;if(0===c)return n;if(c>s){var d=f(c/10);return 0===d?n:d<=s?void 0===a[d-1]?o.charAt(1):a[d-1]+o.charAt(1):n}l=a[c-1]}return void 0===l?"":l})}})},function(e,t,n){var r=n(15);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){e.exports=!n(16)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";var r=n(8),o=n(28),a=n(17),i=n(11),l=n(23),u=n(44).KEY,s=n(16),c=n(64),f=n(55),d=n(50),p=n(9),h=n(123),m=n(124),g=n(179),v=n(122),y=n(14),b=n(15),w=n(35),k=n(34),x=n(67),E=n(51),S=n(61),_=n(181),T=n(75),C=n(69),O=n(19),P=n(39),A=T.f,I=O.f,R=_.f,j=r.Symbol,N=r.JSON,F=N&&N.stringify,M=p("_hidden"),L=p("toPrimitive"),D={}.propertyIsEnumerable,U=c("symbol-registry"),z=c("symbols"),B=c("op-symbols"),$=Object.prototype,W="function"==typeof j&&!!C.f,H=r.QObject,q=!H||!H.prototype||!H.prototype.findChild,V=a&&s(function(){return 7!=S(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=A($,t);r&&delete $[t],I(e,t,n),r&&e!==$&&I($,t,r)}:I,G=function(e){var t=z[e]=S(j.prototype);return t._k=e,t},K=W&&"symbol"==typeof j.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof j},Y=function(e,t,n){return e===$&&Y(B,t,n),y(e),t=x(t,!0),y(n),o(z,t)?(n.enumerable?(o(e,M)&&e[M][t]&&(e[M][t]=!1),n=S(n,{enumerable:E(0,!1)})):(o(e,M)||I(e,M,E(1,{})),e[M][t]=!0),V(e,t,n)):I(e,t,n)},X=function(e,t){y(e);for(var n,r=g(t=k(t)),o=0,a=r.length;a>o;)Y(e,n=r[o++],t[n]);return e},Q=function(e){var t=D.call(this,e=x(e,!0));return!(this===$&&o(z,e)&&!o(B,e))&&(!(t||!o(this,e)||!o(z,e)||o(this,M)&&this[M][e])||t)},Z=function(e,t){if(e=k(e),t=x(t,!0),e!==$||!o(z,t)||o(B,t)){var n=A(e,t);return!n||!o(z,t)||o(e,M)&&e[M][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=R(k(e)),r=[],a=0;n.length>a;)o(z,t=n[a++])||t==M||t==u||r.push(t);return r},ee=function(e){for(var t,n=e===$,r=R(n?B:k(e)),a=[],i=0;r.length>i;)!o(z,t=r[i++])||n&&!o($,t)||a.push(z[t]);return a};W||(l((j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===$&&t.call(B,n),o(this,M)&&o(this[M],e)&&(this[M][e]=!1),V(this,e,E(1,n))};return a&&q&&V($,e,{configurable:!0,set:t}),G(e)}).prototype,"toString",function(){return this._k}),T.f=Z,O.f=Y,n(57).f=_.f=J,n(52).f=Q,C.f=ee,a&&!n(49)&&l($,"propertyIsEnumerable",Q,!0),h.f=function(e){return G(p(e))}),i(i.G+i.W+i.F*!W,{Symbol:j});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)p(te[ne++]);for(var re=P(p.store),oe=0;re.length>oe;)m(re[oe++]);i(i.S+i.F*!W,"Symbol",{for:function(e){return o(U,e+="")?U[e]:U[e]=j(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in U)if(U[t]===e)return t},useSetter:function(){q=!0},useSimple:function(){q=!1}}),i(i.S+i.F*!W,"Object",{create:function(e,t){return void 0===t?S(e):X(S(e),t)},defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee});var ae=s(function(){C.f(1)});i(i.S+i.F*ae,"Object",{getOwnPropertySymbols:function(e){return C.f(w(e))}}),N&&i(i.S+i.F*(!W||s(function(){var e=j();return"[null]"!=F([e])||"{}"!=F({a:e})||"{}"!=F(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(b(t)||void 0!==e)&&!K(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),r[1]=t,F.apply(N,r)}}),j.prototype[L]||n(32)(j.prototype,L,j.prototype.valueOf),f(j,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(e,t,n){var r=n(14),o=n(110),a=n(67),i=Object.defineProperty;t.f=n(17)?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),o)try{return i(e,t,n)}catch(l){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";n.r(t);n(133),n(73),n(134),n(5),n(4),n(85),n(98),n(76),n(77),n(12),n(53),n(3),n(200);var r=function(e){if("undefined"==typeof document)return!1;var t=document.createElement("link");try{if(t.relList&&"function"==typeof t.relList.supports)return t.relList.supports(e)}catch(n){return!1}return!1}("prefetch")?function(e){return new Promise(function(t,n){if("undefined"!=typeof document){var r=document.createElement("link");r.setAttribute("rel","prefetch"),r.setAttribute("href",e),r.onload=t,r.onerror=n,(document.getElementsByTagName("head")[0]||document.getElementsByName("script")[0].parentNode).appendChild(r)}else n()})}:function(e){return new Promise(function(t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.withCredentials=!0,r.onload=function(){200===r.status?t():n()},r.send(null)})},o={},a=function(e){return new Promise(function(t){o[e]?t():r(e).then(function(){t(),o[e]=!0}).catch(function(){})})},i=n(46),l=(n(48),n(18),n(22),n(25)),u=n(81),s=function(){function e(e){this.matchPaths=e,this.pathCache=new Map}var t=e.prototype;return t.findMatchPath=function(e){var t=this.matchPaths,n=Array.isArray(t),r=0;for(t=n?t:t[Symbol.iterator]();;){var o;if(n){if(r>=t.length)break;o=t[r++]}else{if((r=t.next()).done)break;o=r.value}var a=o,i=a.matchPath,u=a.path;if(Object(l.b)(i,e))return u}return null},t.find=function(e){var t=function(e){var t=decodeURIComponent(e),n=Object(u.a)(t,"");return n.split("#").length>1&&(n=n.split("#").slice(0,-1).join("")),n.split("?").length>1&&(n=n.split("?").slice(0,-1).join("")),n}(e);if(this.pathCache.has(t))return this.pathCache.get(t);var n,r=this.findMatchPath(t);return r||(r="/index.html"===t?"/":t),r=void 0===(n=r)?n:"/"===n?"/":"/"===n.charAt(n.length-1)?n.slice(0,-1):n,this.pathCache.set(t,r),r},e}();n.d(t,"BaseLoader",function(){return m}),n.d(t,"ProdLoader",function(){return v}),n.d(t,"setLoader",function(){return y}),n.d(t,"publicLoader",function(){return b});var c,f=function(e){return e&&e.default||e},d=function(e){var t;return"/page-data/"+("/"===e?"index":t=(t="/"===(t=e)[0]?t.slice(1):t).endsWith("/")?t.slice(0,-1):t)+"/page-data.json"},p=function(e){var t=e.pagePath,n=e.retries,r=void 0===n?0:n;return function(e,t){return void 0===t&&(t="GET"),new Promise(function(n,r){var o=new XMLHttpRequest;o.open(t,e,!0),o.withCredentials=!0,o.onreadystatechange=function(){4==o.readyState&&n(o)},o.send(null)})}(d(t)).then(function(n){var o=n.status,a=n.responseText;if(200===o)try{var i=JSON.parse(a);if(void 0===i.webpackCompilationHash)throw new Error("not a valid pageData response");return Object.assign(e,{status:"success",payload:i})}catch(l){}return 404===o||200===o?"/404.html"===t?Object.assign(e,{status:"failure"}):p(Object.assign(e,{pagePath:"/404.html",notFound:!0})):500===o?Object.assign(e,{status:"error"}):r<3?p(Object.assign(e,{retries:r+1})):Object.assign(e,{status:"error"})})},h=function(e,t){void 0===t&&(t=null);var n={componentChunkName:e.componentChunkName,path:e.path,webpackCompilationHash:e.webpackCompilationHash,matchPath:e.matchPath};return{component:t,json:e.result,page:n}},m=function(){function e(e,t){this.pageDb=new Map,this.inFlightDb=new Map,this.pageDataDb=new Map,this.prefetchTriggered=new Set,this.prefetchCompleted=new Set,this.loadComponent=e,this.pathFinder=new s(t)}var t=e.prototype;return t.setApiRunner=function(e){this.apiRunner=e,this.prefetchDisabled=e("disableCorePrefetching").some(function(e){return e})},t.loadPageDataJson=function(e){var t=this,n=this.pathFinder.find(e);return this.pageDataDb.has(n)?Promise.resolve(this.pageDataDb.get(n)):p({pagePath:n}).then(function(e){return t.pageDataDb.set(n,e),e})},t.loadPage=function(e){var t=this,n=this.pathFinder.find(e);if(this.pageDb.has(n)){var r=this.pageDb.get(n);return Promise.resolve(r.payload)}if(this.inFlightDb.has(n))return this.inFlightDb.get(n);var o=this.loadPageDataJson(n).then(function(e){if("error"===e.status)return{status:"error"};if("failure"===e.status)throw new Error("404 page could not be found. Checkout https://www.gatsbyjs.org/docs/add-404-page/");var r=e.payload,o=r.componentChunkName;return t.loadComponent(o).then(function(o){var a,l={createdAt:new Date};return o?(l.status="success",!0===e.notFound&&(l.notFound=!0),a=h(r,o),l.payload=a,i.a.emit("onPostLoadPageResources",{page:a,pageResources:a})):l.status="error",t.pageDb.set(n,l),a})}).finally(function(){t.inFlightDb.delete(n)});return this.inFlightDb.set(n,o),o},t.loadPageSync=function(e){var t=this.pathFinder.find(e);if(this.pageDb.has(t))return this.pageDb.get(t).payload},t.shouldPrefetch=function(e){return!this.prefetchDisabled&&(!!function(){if("connection"in navigator){if((navigator.connection.effectiveType||"").includes("2g"))return!1;if(navigator.connection.saveData)return!1}return!0}()&&!this.pageDb.has(e))},t.prefetch=function(e){var t=this;return!!this.shouldPrefetch(e)&&(this.prefetchTriggered.has(e)||(this.apiRunner("onPrefetchPathname",{pathname:e}),this.prefetchTriggered.add(e)),this.doPrefetch(e).then(function(n){var r=t.pathFinder.find(e);if(!t.prefetchCompleted.has(r)){t.apiRunner("onPostPrefetchPathname",{pathname:e});var o=t.pathFinder.find(e);t.prefetchCompleted.add(o)}}),!0)},t.doPrefetch=function(e){throw new Error("doPrefetch not implemented")},t.hovering=function(e){this.loadPage(e)},t.getResourceURLsForPathname=function(e){var t=this.pathFinder.find(e),n=this.pageDataDb.get(t);if(n){var r=h(n.payload);return[].concat(g(r.page.componentChunkName),[d(t)])}return null},t.isPageNotFound=function(e){var t=this.pathFinder.find(e),n=this.pageDb.get(t);return n&&!0===n.notFound},e}(),g=function(e){return window.___chunkMapping[e].map(function(e){return""+e})},v=function(e){var t,n;function r(t,n){return e.call(this,function(e){return t.components[e]().then(f)},n)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.doPrefetch=function(e){var t=this,n=d(e);return a(n).then(function(){return t.loadPageDataJson(e)}).then(function(e){if("success"!==e.status)return Promise.resolve();var t=e.payload,n=t.componentChunkName,r=g(n);return Promise.all(r.map(a)).then(function(){return t})})},r}(m),y=function(e){c=e},b={getResourcesForPathname:function(e){return console.warn("Warning: getResourcesForPathname is deprecated. Use loadPage instead"),c.i.loadPage(e)},getResourcesForPathnameSync:function(e){return console.warn("Warning: getResourcesForPathnameSync is deprecated. Use loadPageSync instead"),c.i.loadPageSync(e)},enqueue:function(e){return c.prefetch(e)},getResourceURLsForPathname:function(e){return c.getResourceURLsForPathname(e)},loadPage:function(e){return c.loadPage(e)},loadPageSync:function(e){return c.loadPageSync(e)},prefetch:function(e){return c.prefetch(e)},isPageNotFound:function(e){return c.isPageNotFound(e)},hovering:function(e){return c.hovering(e)}};t.default=b},function(e,t,n){var r=n(19).f,o=Function.prototype,a=/^\s*function ([^ (]*)/;"name"in o||n(17)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(a)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(95),o=n(14),a=n(92),i=n(88),l=n(33),u=n(62),s=n(86),c=n(16),f=Math.min,d=[].push,p=!c(function(){RegExp(4294967295,"y")});n(65)("split",2,function(e,t,n,c){var h;return h="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var o=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(o,e,t);for(var a,i,l,u=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,p=void 0===t?4294967295:t>>>0,h=new RegExp(e.source,c+"g");(a=s.call(h,o))&&!((i=h.lastIndex)>f&&(u.push(o.slice(f,a.index)),a.length>1&&a.index=p));)h.lastIndex===a.index&&h.lastIndex++;return f===o.length?!l&&h.test("")||u.push(""):u.push(o.slice(f)),u.length>p?u.slice(0,p):u}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var o=e(this),a=null==n?void 0:n[t];return void 0!==a?a.call(n,o,r):h.call(String(o),n,r)},function(e,t){var r=c(h,e,this,t,h!==n);if(r.done)return r.value;var s=o(e),d=String(this),m=a(s,RegExp),g=s.unicode,v=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(p?"y":"g"),y=new m(p?s:"^(?:"+s.source+")",v),b=void 0===t?4294967295:t>>>0;if(0===b)return[];if(0===d.length)return null===u(y,d)?[d]:[];for(var w=0,k=0,x=[];k0)&&(r.unobserve(t),r.disconnect(),n())})})).observe(t))},n.render=function(){var e=this,t=this.props,n=t.to,r=t.getProps,i=void 0===r?this.defaultGetProps:r,l=t.onClick,u=t.onMouseEnter,s=(t.activeClassName,t.activeStyle,t.innerRef,t.partiallyActive,t.state),h=t.replace,m=(0,o.default)(t,["to","getProps","onClick","onMouseEnter","activeClassName","activeStyle","innerRef","partiallyActive","state","replace"]);var g=p(n);return c.default.createElement(f.Link,(0,a.default)({to:g,state:s,getProps:i,innerRef:this.handleRef,onMouseEnter:function(e){u&&u(e),___loader.hovering((0,d.parsePath)(n).pathname)},onClick:function(t){return l&&l(t),0!==t.button||e.props.target||t.defaultPrevented||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||(t.preventDefault(),v(n,{state:s,replace:h})),!0}},m))},t}(c.default.Component);m.propTypes=(0,a.default)({},h,{onClick:s.default.func,to:s.default.string.isRequired,replace:s.default.bool});var g=c.default.forwardRef(function(e,t){return c.default.createElement(m,(0,a.default)({innerRef:t},e))});t.default=g;var v=function(e,t){window.___navigate(p(e),t)};t.navigate=v;var y=function(e){console.warn('The "push" method is now deprecated and will be removed in Gatsby v3. Please use "navigate" instead.'),window.___push(p(e))};t.push=y;t.replace=function(e){console.warn('The "replace" method is now deprecated and will be removed in Gatsby v3. Please use "navigate" instead.'),window.___replace(p(e))};t.navigateTo=function(e){return console.warn('The "navigateTo" method is now deprecated and will be removed in Gatsby v3. Please use "navigate" instead.'),y(e)}},function(e,t,n){"use strict";n.d(t,"e",function(){return a}),n.d(t,"c",function(){return i}),n.d(t,"b",function(){return l}),n.d(t,"d",function(){return u}),n.d(t,"a",function(){return s}),n.d(t,"f",function(){return c});n(13),n(131),n(22);var r=n(42),o=n.n(r),a=function(e,t){return e.substr(0,t.length)===t},i=function(e,t){for(var n=void 0,r=void 0,a=t.split("?")[0],i=m(a),l=""===i[0],u=h(e),s=0,c=u.length;st.score?-1:e.index-t.index})},m=function(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")},g=function(e,t){return e+(t?"?"+t:"")},v=["uri","path"]},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";n.r(t);n(13),n(53),n(3),n(12);var r=n(0),o=n.n(r),a=(n(196),n(10),n(42)),i=n.n(a),l=o.a.createContext,u=n(142),s=n(25),c=n(41);n.d(t,"Link",function(){return I}),n.d(t,"Location",function(){return y}),n.d(t,"LocationProvider",function(){return b}),n.d(t,"Match",function(){return L}),n.d(t,"Redirect",function(){return M}),n.d(t,"Router",function(){return x}),n.d(t,"ServerLocation",function(){return w}),n.d(t,"isRedirect",function(){return j}),n.d(t,"redirectTo",function(){return N}),n.d(t,"BaseContext",function(){return k}),n.d(t,"createHistory",function(){return c.createHistory}),n.d(t,"createMemorySource",function(){return c.createMemorySource}),n.d(t,"navigate",function(){return c.navigate}),n.d(t,"globalHistory",function(){return c.globalHistory});var f=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=function(e,t){var n=l(t);return n.Consumer.displayName=e+".Consumer",n.Provider.displayName=e+".Provider",n},v=g("Location"),y=function(e){var t=e.children;return o.a.createElement(v.Consumer,null,function(e){return e?t(e):o.a.createElement(b,null,t)})},b=function(e){function t(){var n,r;p(this,t);for(var o=arguments.length,a=Array(o),i=0;if;)void 0!==(n=u(r,t=s[f++]))&&l(c,t,n);return c}})},function(e,t){var n=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(19),o=n(51);e.exports=n(17)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(68),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(89),o=n(38);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(38);e.exports=function(e){return Object(r(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(47);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(113),o=n(91);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(15);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){"use strict";n.r(t),n.d(t,"globalHistory",function(){return u}),n.d(t,"navigate",function(){return s}),n.d(t,"createHistory",function(){return a}),n.d(t,"createMemorySource",function(){return i});n(22),n(53),n(3),n(13),n(12);var r=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},s=u.state,c=u.replace,f=void 0!==c&&c;s=r({},s,{key:Date.now()+""});try{i||f?e.history.replaceState(s,null,t):e.history.pushState(s,null,t)}catch(p){e.location[f?"replace":"assign"](t)}a=o(e),i=!0;var d=new Promise(function(e){return l=e});return n.forEach(function(e){return e({location:a,action:"PUSH"})}),d}}},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=0,n=[{pathname:e,search:""}],r=[];return{get location(){return n[t]},addEventListener:function(e,t){},removeEventListener:function(e,t){},history:{get entries(){return n},get index(){return t},get state(){return r[t]},pushState:function(e,o,a){var i=a.split("?"),l=i[0],u=i[1],s=void 0===u?"":u;t++,n.push({pathname:l,search:s}),r.push(e)},replaceState:function(e,o,a){var i=a.split("?"),l=i[0],u=i[1],s=void 0===u?"":u;n[t]={pathname:l,search:s},r[t]=e}}}},l=!("undefined"==typeof window||!window.document||!window.document.createElement),u=a(l?window:i()),s=u.navigate},function(e,t,n){"use strict";n(21),n(13);e.exports=function(e,t,n,r,o,a,i,l){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,a,i,l],c=0;(u=new Error(t.replace(/%s/g,function(){return s[c++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){"use strict";n(5),n(4),n(3),n(6),n(12);var r=n(45),o=n(0),a=n.n(o),i=n(2);var l=Object(i.c)(function(e){var t=e.children,n=e.to,o=e.activeClassName,i=e.partiallyActive,l=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["children","to","activeClassName","partiallyActive"]);return/^\/(?!\/)/.test(n)?a.a.createElement(r.Link,Object.assign({to:n,activeClassName:o,partiallyActive:i},l),t):a.a.createElement("a",Object.assign({href:n},l),t)}).withConfig({displayName:"link__Anchor",componentId:"qvnqzr-0"})(["color:",';font-size:1em;font-feature-settings:"kern","liga","clig","calt";'],function(e){return e.theme.site.color.Foreground});Object(i.c)(l).withConfig({displayName:"link__SubtleLink",componentId:"qvnqzr-1"})(["color:",";font-family:",";margin:0 0.4rem;&:hover{color:",";}"],function(e){return e.theme.code.color.Comment},function(e){return e.theme.fonts.Monospace},function(e){return e.theme.site.color.Foreground}),Object(i.c)(l).withConfig({displayName:"link__NotSoSubtleLink",componentId:"qvnqzr-2"})(["color:",";font-family:",";margin:0 0.4rem;&:hover{color:",";}"],function(e){return e.theme.code.color.Comment},function(e){return e.theme.fonts.HeaderSans},function(e){return e.theme.site.color.Foreground});t.a=l},function(e,t,n){var r=n(50)("meta"),o=n(15),a=n(28),i=n(19).f,l=0,u=Object.isExtensible||function(){return!0},s=!n(16)(function(){return u(Object.preventExtensions({}))}),c=function(e){i(e,r,{value:{i:"O"+ ++l,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,r)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[r].i},getWeak:function(e,t){if(!a(e,r)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[r].w},onFreeze:function(e){return s&&f.NEED&&u(e)&&!a(e,r)&&c(e),e}}},function(e,t,n){"use strict";n.r(t),n.d(t,"graphql",function(){return m}),n.d(t,"StaticQueryContext",function(){return f}),n.d(t,"StaticQuery",function(){return p}),n.d(t,"useStaticQuery",function(){return h});var r=n(0),o=n.n(r),a=n(10),i=n.n(a),l=n(24),u=n.n(l);n.d(t,"Link",function(){return u.a}),n.d(t,"withAssetPrefix",function(){return l.withAssetPrefix}),n.d(t,"withPrefix",function(){return l.withPrefix}),n.d(t,"parsePath",function(){return l.parsePath}),n.d(t,"navigate",function(){return l.navigate}),n.d(t,"push",function(){return l.push}),n.d(t,"replace",function(){return l.replace}),n.d(t,"navigateTo",function(){return l.navigateTo});var s=n(132),c=n.n(s);n.d(t,"PageRenderer",function(){return c.a});var f=o.a.createContext({});function d(e){var t=e.staticQueryData,n=e.data,r=e.query,a=e.render,i=n?n.data:t[r]&&t[r].data;return o.a.createElement(o.a.Fragment,null,i&&a(i),!i&&o.a.createElement("div",null,"Loading (StaticQuery)"))}var p=function(e){var t=e.data,n=e.query,r=e.render,a=e.children;return o.a.createElement(f.Consumer,null,function(e){return o.a.createElement(d,{data:t,query:n,render:r||a,staticQueryData:e})})},h=function(e){o.a.useContext;var t=o.a.useContext(f);if(t[e]&&t[e].data)return t[e].data;throw new Error("The result of this StaticQuery could not be fetched.\n\nThis is likely a bug in Gatsby and if refreshing the page does not fix it, please open an issue in https://github.com/gatsbyjs/gatsby/issues")};function m(){throw new Error("It appears like Gatsby is misconfigured. Gatsby related `graphql` calls are supposed to only be evaluated at compile time, and then compiled away. Unfortunately, something went wrong and the query was left in the compiled code.\n\nUnless your site has a complex or custom babel/Gatsby configuration this is likely a bug in Gatsby.")}p.propTypes={data:i.a.object,query:i.a.string.isRequired,render:i.a.func,children:i.a.func}},function(e,t,n){"use strict";var r=function(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t,n){(e[t]||[]).slice().map(function(e){e(n)}),(e["*"]||[]).slice().map(function(e){e(t,n)})}}}();t.a=r},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){n(124)("asyncIterator")},function(e,t){e.exports=!1},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";var r,o,a,i,l=n(49),u=n(8),s=n(37),c=n(63),f=n(11),d=n(15),p=n(47),h=n(70),m=n(71),g=n(92),v=n(116).set,y=n(169)(),b=n(118),w=n(170),k=n(171),x=n(119),E=u.TypeError,S=u.process,_=S&&S.versions,T=_&&_.v8||"",C=u.Promise,O="process"==c(S),P=function(){},A=o=b.f,I=!!function(){try{var e=C.resolve(1),t=(e.constructor={})[n(9)("species")]=function(e){e(P,P)};return(O||"function"==typeof PromiseRejectionEvent)&&e.then(P)instanceof t&&0!==T.indexOf("6.6")&&-1===k.indexOf("Chrome/66")}catch(r){}}(),R=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},j=function(e,t){if(!e._n){e._n=!0;var n=e._c;y(function(){for(var r=e._v,o=1==e._s,a=0,i=function(t){var n,a,i,l=o?t.ok:t.fail,u=t.resolve,s=t.reject,c=t.domain;try{l?(o||(2==e._h&&M(e),e._h=1),!0===l?n=r:(c&&c.enter(),n=l(r),c&&(c.exit(),i=!0)),n===t.promise?s(E("Promise-chain cycle")):(a=R(n))?a.call(n,u,s):u(n)):s(r)}catch(f){c&&!i&&c.exit(),s(f)}};n.length>a;)i(n[a++]);e._c=[],e._n=!1,t&&!e._h&&N(e)})}},N=function(e){v.call(u,function(){var t,n,r,o=e._v,a=F(e);if(a&&(t=w(function(){O?S.emit("unhandledRejection",o,e):(n=u.onunhandledrejection)?n({promise:e,reason:o}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",o)}),e._h=O||F(e)?2:1),e._a=void 0,a&&t.e)throw t.v})},F=function(e){return 1!==e._h&&0===(e._a||e._c).length},M=function(e){v.call(u,function(){var t;O?S.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})})},L=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),j(t,!0))},D=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw E("Promise can't be resolved itself");(t=R(e))?y(function(){var r={_w:n,_d:!1};try{t.call(e,s(D,r,1),s(L,r,1))}catch(o){L.call(r,o)}}):(n._v=e,n._s=1,j(n,!1))}catch(r){L.call({_w:n,_d:!1},r)}}};I||(C=function(e){h(this,C,"Promise","_h"),p(e),r.call(this);try{e(s(D,this,1),s(L,this,1))}catch(t){L.call(this,t)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(72)(C.prototype,{then:function(e,t){var n=A(g(this,C));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=O?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&j(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new r;this.promise=e,this.resolve=s(D,e,1),this.reject=s(L,e,1)},b.f=A=function(e){return e===C||e===i?new a(e):o(e)}),f(f.G+f.W+f.F*!I,{Promise:C}),n(55)(C,"Promise"),n(93)("Promise"),i=n(31).Promise,f(f.S+f.F*!I,"Promise",{reject:function(e){var t=A(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(l||!I),"Promise",{resolve:function(e){return x(l&&this===i?C:this,e)}}),f(f.S+f.F*!(I&&n(120)(function(e){C.all(e).catch(P)})),"Promise",{all:function(e){var t=this,n=A(t),r=n.resolve,o=n.reject,a=w(function(){var n=[],a=0,i=1;m(e,!1,function(e){var l=a++,u=!1;n.push(void 0),i++,t.resolve(e).then(function(e){u||(u=!0,n[l]=e,--i||r(n))},o)}),--i||r(n)});return a.e&&o(a.v),n.promise},race:function(e){var t=this,n=A(t),r=n.reject,o=w(function(){m(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(e,t){e.exports={}},function(e,t,n){var r=n(19).f,o=n(28),a=n(9)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},function(e,t,n){var r=n(9)("unscopables"),o=Array.prototype;null==o[r]&&n(32)(o,r,{}),e.exports=function(e){o[r][e]=!0}},function(e,t,n){var r=n(113),o=n(91).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){"use strict";n.r(t),n.d(t,"MDXContext",function(){return a}),n.d(t,"MDXProvider",function(){return u}),n.d(t,"useMDXComponents",function(){return l}),n.d(t,"withMDXComponents",function(){return i}),n.d(t,"mdx",function(){return d});n(12);var r=n(0),o=n.n(r),a=o.a.createContext({}),i=function(e){return function(t){var n=l(t.components);return o.a.createElement(e,Object.assign({},t,{components:n}))}},l=function(e){var t=o.a.useContext(a),n=t;return e&&(n="function"==typeof e?e(t):Object.assign({},t,e)),n},u=function(e){var t=l(e.components);return o.a.createElement(a.Provider,{value:t},e.children)},s="mdxType",c={inlineCode:"code",wrapper:function(e){return o.a.createElement(o.a.Fragment,{},e.children)}},f=function(e){var t=e.components,n=e.mdxType,r=e.originalType,a=e.parentName,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}(e,["components","mdxType","originalType","parentName"]),u=l(t);return o.a.createElement(u[a+"."+n]||u[n]||c[n]||r,t?Object.assign({},i,{components:t}):i)};function d(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var a=n.length,i=new Array(a);i[0]=f;var l={};for(var u in t)hasOwnProperty.call(t,u)&&(l[u]=t[u]);l.originalType=e,l[s]="string"==typeof e?e:r,i[1]=l;for(var c=2;cv;)m(g[v++]);f.constructor=s,s.prototype=f,n(23)(r,"RegExp",s)}n(93)("RegExp")},function(e,t,n){var r=n(14),o=n(180),a=n(91),i=n(90)("IE_PROTO"),l=function(){},u=function(){var e,t=n(87)("iframe"),r=a.length;for(t.style.display="none",n(117).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("