| /third_party/grpc/tools/release/ |
| D | release_notes.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 14 """Generate draft and release notes in Markdown from Github PRs. 16 You'll need a github API token to avoid being rate-limited. See 17 https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/ 40 -- 41 … auto generated release notes. Previous release notes are [here](https://github.com/grpc/grpc/rele… 43 …bels and make necessary corrections (like fixing the title) to the PR in Github. Final release not… 46 -- 49 - 53 - [all …]
|
| D | backport_pr.sh | 8 # http://www.apache.org/licenses/LICENSE-2.0 16 set -euo pipefail 19 if command -v "$1" 1>/dev/null 2>&1; then 29 USAGE: $0 PR_ID GITHUB_USER BACKPORT_BRANCHES REVIEWERS [-c PER_BACKPORT_COMMAND] 31 GITHUB_USER: Your GitHub username. 32 BACKPORT_BRANCHES: A space-separated list of branches to which the source PR will be backported. 33 REVIEWERS: A comma-separated list of users to add as both reviewer and assignee. 35 If you use this option, ensure your working directory is clean, as "git add -A" will be used to 36 incorporate any generated files. Try running "git clean -xdff" beforehand. 39 Example: $0 25493 gnossen "\$(seq 30 33 | xargs -n1 printf 'v1.%s.x ')" "menghanl" -c ./tools/docke… [all …]
|
| /third_party/jinja2/.github/workflows/ |
| D | publish.yaml | 5 - '*' 8 runs-on: ubuntu-latest 12 - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c 13 - uses: actions/setup-python@5ccb29d8773c3f3f653e1705f474dfaa8a06a912 15 python-version: '3.x' 17 cache-dependency-path: 'requirements/*.txt' 18 - run: pip install -r requirements/build.txt 20 - run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV 21 - run: python -m build 23 - name: generate hash [all …]
|
| /third_party/rust/rust/src/tools/rust-analyzer/xtask/src/ |
| D | publish.rs | 9 pub(crate) fn run(self, sh: &Shell) -> Result<()> { in run() 27 fn check_file_name<P: AsRef<std::path::Path>>(path: P) -> Result<String> { in check_file_name() 40 && chars.next().unwrap() == '-' in check_file_name() 43 && chars.next().unwrap() == '-' in check_file_name() 53 fn create_original_changelog_url(file_name: &str) -> String { in create_original_changelog_url() 61 format!("https://rust-analyzer.github.io/thisweek/{year}/{month}/{day}/{stem}.html") in create_original_changelog_url() 64 fn update_release(sh: &Shell, tag_name: &str, release_notes: &str) -> Result<()> { in update_release() 65 let token = match env::var("GITHUB_TOKEN") { in update_release() localVariable 66 Ok(token) => token, in update_release() 67 …Err(_) => bail!("Please obtain a personal access token from https://github.com/settings/tokens and… in update_release() [all …]
|
| /third_party/python/ |
| D | .gitattributes | 25 [attr]noeol -text 48 # https://tekin.co.uk/2020/10/better-git-diff-output-for-ruby-python-elixir-and-more 49 # https://gist.github.com/tekin/12500956bd56784728e490d8cef9cb81 58 # https://github.com/github/linguist/blob/master/docs/overrides.md 63 [attr]generated linguist-generated=true diff=generated 68 Doc/library/token-list.inc generated 73 Include/token.h generated 76 Lib/token.py generated 80 Parser/token.c generated 82 Python/Python-ast.c generated
|
| /third_party/grpc/examples/python/auth/ |
| D | README.md | 12 4. Authenticate with Google using an Oauth2 token 43 [`AuthMetadataPlugin`](https://grpc.github.io/grpc/python/grpc.html#grpc.AuthMetadataPlugin). 114 ## Token-based authentication 116 Instead of `AuthMetadataPlugin`, you can also use token-based authentication 119 …ens can be obtained using libraries like [google-auth](https://google-auth.readthedocs.io/en/maste… 125 call_credentials = grpc.access_token_call_credentials(google_credentials.token) 128 …token, the rest of the flow is documented in [token_based_auth_client.py](https://github.com/grpc/…
|
| /third_party/grpc/tools/run_tests/python_utils/ |
| D | check_on_pr.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 27 _GITHUB_API_PREFIX = "https://api.github.com" 37 -1: "improvement", 45 -1: "decrease", 74 url="https://api.github.com/app/installations/%s/access_tokens" 78 "Accept": "application/vnd.github.machine-man-preview+json", 84 "token": resp.json()["token"], 91 print("Fetch access token from Github API failed:") 93 if i != _ACCESS_TOKEN_FETCH_RETRIES - 1: 100 print("error: Unable to fetch access token, exiting...") [all …]
|
| /third_party/pcre2/pcre2/.github/workflows/ |
| D | scorecards.yml | 1 name: Scorecards supply-chain security 6 - cron: '23 17 * * 1' 11 permissions: read-all 16 runs-on: ubuntu-latest 18 # Needed to upload the results to code-scanning dashboard. 19 security-events: write 24 - name: "Checkout code" 27 persist-credentials: false 29 - name: "Run analysis" 30 uses: ossf/scorecard-action@3e15ea8318eee9b333819ec77a36aca8d39df13e # tag=v1.1.1 [all …]
|
| /third_party/rust/rust/compiler/rustc_lexer/src/ |
| D | tests.rs | 57 // https://github.com/rust-lang/rust/issues/70677 in test_unterminated_no_pound() 73 // Valid number of hashes (255 = 2^8 - 1 = u8::MAX). in test_too_many_hashes() 82 // https://github.com/rust-lang/rust/issues/70528 in test_valid_shebang() 89 // https://github.com/rust-lang/rust/issues/70528 in test_invalid_shebang_valid_rust_syntax() 133 let input = "#!/bin/rust-scripts\n#![allow_unused(true)]"; in test_shebang_followed_by_attrib() 138 let actual: String = tokenize(src).map(|token| format!("{:?}\n", token)).collect(); in check_lexing() 147 Token { kind: BlockComment { doc_style: None, terminated: true }, len: 20 } in smoke_test() 148 Token { kind: Whitespace, len: 1 } in smoke_test() 149 Token { kind: Ident, len: 2 } in smoke_test() 150 Token { kind: Whitespace, len: 1 } in smoke_test() [all …]
|
| /third_party/littlefs/.github/workflows/ |
| D | status.yml | 9 runs-on: ubuntu-18.04 12 - uses: dawidd6/action-download-artifact@v2 13 continue-on-error: true 15 workflow: ${{github.event.workflow_run.name}} 16 run_id: ${{github.event.workflow_run.id}} 19 - name: update-status 20 continue-on-error: true 23 for s in $(shopt -s nullglob ; echo status/*.json) 26 export STATE="$(jq -er '.state' $s)" 27 export CONTEXT="$(jq -er '.context' $s)" [all …]
|
| /third_party/rust/crates/syn/ |
| D | README.md | 4 …t="github" src="https://img.shields.io/badge/github-dtolnay/syn-8da0cb?style=for-the-badge&labelCo… 5 [<img alt="crates.io" src="https://img.shields.io/crates/v/syn.svg?style=for-the-badge&color=fc8d62… 6 [<img alt="docs.rs" src="https://img.shields.io/badge/docs.rs-syn-66c2a5?style=for-the-badge&labelC… 7 …ps://img.shields.io/github/actions/workflow/status/dtolnay/syn/ci.yml?branch=master&style=for-the-… 15 - **Data structures** — Syn provides a complete syntax tree that can represent 21 - **Derives** — Of particular interest to derive macros is [`syn::DeriveInput`] 24 user-defined trait. 26 - **Parsing** — Parsing in Syn is built around [parser functions] with the 27 signature `fn(ParseStream) -> Result<T>`. Every syntax tree node defined by 32 - **Location information** — Every token parsed by Syn is associated with a [all …]
|
| /third_party/rust/rust/src/bootstrap/ |
| D | toolstate.rs | 28 #[serde(rename_all = "kebab-case")] 40 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() 45 ToolState::TestFail => "test-fail", in fmt() 46 ToolState::TestPass => "test-pass", in fmt() 47 ToolState::BuildFail => "build-fail", in fmt() 54 /// Its value is 41 on the Tuesday where "Promote master to beta (T-2)" happens. 56 /// We track this value to prevent regressing tools in the last week of the 6-week cycle. 57 fn days_since_beta_promotion() -> u64 { in days_since_beta_promotion() 59 (since_epoch.as_secs() / 86400 - 20) % 42 in days_since_beta_promotion() 62 // These tools must test-pass on the beta/stable channels. [all …]
|
| /third_party/rust/crates/cxx/gen/lib/src/ |
| D | lib.rs | 4 //! higher-level code generators. See [dtolnay/cxx#235] and 5 //! [https://github.com/google/autocxx]. 7 //! [dtolnay/cxx#235]: https://github.com/dtolnay/cxx/issues/235 8 //! [https://github.com/google/autocxx]: https://github.com/google/autocxx 10 #![doc(html_root_url = "https://docs.rs/cxx-gen/0.7.97")] 39 // clippy bug: https://github.com/rust-lang/rust-clippy/issues/6983 53 /// Generate C++ bindings code from a Rust token stream. This should be a Rust 54 /// token stream which somewhere contains a `#[cxx::bridge] mod {}`. 55 pub fn generate_header_and_cc(rust_source: TokenStream, opt: &Opt) -> Result<GeneratedCode, Error> { in generate_header_and_cc()
|
| /third_party/rust/rust/src/tools/rust-analyzer/xtask/src/release/ |
| D | changelog.rs | 13 ) -> anyhow::Result<String> { in get_changelog() 14 let token = match env::var("GITHUB_TOKEN") { in get_changelog() localVariable 15 Ok(token) => token, in get_changelog() 16 …Err(_) => bail!("Please obtain a personal access token from https://github.com/settings/tokens and… in get_changelog() 19 let git_log = cmd!(sh, "git log {prev_tag}..HEAD --reverse").read()?; in get_changelog() 27 let accept = "Accept: application/vnd.github.v3+json"; in get_changelog() 28 let authorization = format!("Authorization: token {token}"); in get_changelog() 29 let pr_url = "https://api.github.com/repos/rust-lang/rust-analyzer/issues"; in get_changelog() 34 cmd!(sh, "curl -s -H {accept} -H {authorization} {pr_url}/{pr}").read()?; in get_changelog() 36 let pr_title = unescape(&pr_title[1..pr_title.len() - 1]); in get_changelog() [all …]
|
| /third_party/rust/rust/compiler/rustc_codegen_cranelift/.github/actions/github-release/ |
| D | main.js | 1 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 const github = require('@actions/github'); constant 16 const token = core.getInput('token'); 28 core.info(`token: ${token}`); 30 const octokit = github.getOctokit(token); 75 console.log("double-checking tag is correct"); 126 headers: { 'content-length': size, 'content-type': 'application/octet-stream' }, 140 if (i === retries - 1)
|
| D | package-lock.json | 2 "name": "rustc_codegen_cranelift-github-release", 8 "name": "rustc_codegen_cranelift-github-release", 12 "@actions/github": "^5.1.0", 18 "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.9.1.tgz", 19 …"integrity": "sha512-5ad+U2YGrmmiw6du20AQW5XuWo7UKN2052FjSV7MX+Wfjf8sCqcsZe62NfgHys4QI4/Y+vQvLKYL8… 21 "@actions/http-client": "^2.0.1", 25 "node_modules/@actions/github": { 27 "resolved": "https://registry.npmjs.org/@actions/github/-/github-5.1.0.tgz", 28 …"integrity": "sha512-tuI80F7JQIhg77ZTTgUAPpVD7ZnP9oHSPN8xw7LOwtA4vEMbAjWJNbmLBfV7xua7r016GyjzWLuec… 30 "@actions/http-client": "^2.0.1", [all …]
|
| /third_party/rust/rust/src/tools/rust-analyzer/.github/actions/github-release/ |
| D | main.js | 4 const github = require('@actions/github'); constant 15 const token = core.getInput('token'); 29 const octokit = github.getOctokit(token, options); 69 // Creates an official GitHub release for this `tag`, and if this is `dev` 103 const headers = { 'content-length': size, 'content-type': 'application/octet-stream' }; 125 if (i === retries - 1)
|
| /third_party/grpc/doc/ |
| D | grpc_xds_bootstrap_format.md | 100 // server. If the token `%s` is present in the string, all instances of the 101 // token will be replaced with the server's listening "IP:port" (e.g., 109 // If starts with "xdstp:", will be interpreted as a new-style name, in which 113 // The token "%s", if present in this string, will be replaced with the 116 // will be percent-encoded. In that case, the replacement string must include 117 // only characters allowed in a URI path as per RFC-3986 section 3.3 (which 118 // includes '/'), and all other characters must be percent-encoded. 126 // - A gRPC client channel is created using an "xds:" URI that includes 128 // - A gRPC client channel is created using an "xds:" URI with no 131 // - A gRPC server is created and the [all …]
|
| /third_party/rust/rust/src/tools/rust-analyzer/docs/dev/ |
| D | syntax.md | 1 # Syntax in rust-analyzer 5 …e of syntax trees and parsing in rust-analyzer as of 2020-01-09 ([link to commit](https://github.c… 11 * [rowan](https://github.com/rust-analyzer/rowan/tree/v0.15.10) -- a generic library for rowan synt… 12 …github.com/rust-lang/rust-analyzer/tree/36a70b7435c48837018c71576d7bb4e8f763f501/crates/syntax) cr… 13 Nothing in rust-analyzer except this crate knows about `rowan`. 14 * [parser](https://github.com/rust-lang/rust-analyzer/tree/36a70b7435c48837018c71576d7bb4e8f763f501… 19 * Syntax trees are semantic-less. They describe *strictly* the structure of a sequence of character… 37 Of these, only GreenNodes store the actual data, the other two layers are (non-trivial) views into … 38 …-green terminology comes from Roslyn ([link](https://ericlippert.com/2012/06/08/red-green-trees/))… 40 Syntax trees are a semi-transient data structure. [all …]
|
| /third_party/rust/rust/src/tools/clippy/tests/ui/ |
| D | unnecessary_filter_map.rs | 21 fn filter_map_none_changes_item_type() -> impl Iterator<Item = bool> { in filter_map_none_changes_item_type() 25 // https://github.com/rust-lang/rust-clippy/issues/4433#issue-483920107 35 fn severity(&self) -> Severity { in severity() 61 // https://github.com/rust-lang/rust-clippy/issues/4433#issuecomment-611006622 65 token: u8, field 77 fn send_response(&self, _reply_to: u8, _token: u8, _value: Value) -> &Self { in send_response() 80 fn on_error_warn(&self) -> &Self { in on_error_warn() 101 // Matched - reuse strings and remove in foo() 102 node.send_response(pending.reply_to, pending.token, Value::Null) in foo() 115 // https://github.com/rust-lang/rust-clippy/issues/4433#issuecomment-621925270 [all …]
|
| /third_party/typescript/scripts/ |
| D | request-pr-review.mjs | 6 string: ["token", "pull", "reviewer", "owner", "repo"], 13 token: process.env.GH_TOKEN, 25 if (!options.token || !options.pull || !options.reviewer || !options.owner || !options.repo) { 27 printHelpAndExit(-1); 33 printHelpAndExit(-2); 41 const gh = new Octokit({ auth: options.token }); 61 usage: request-pr-review.js [options] 64 --token <token> Your GitHub auth token. Uses %GH_TOKEN% if present. 65 --owner <owner> The GH user or organization for the repo (default: 'microsoft'). 66 --repo <repo> The GH repo for the pull request (default: 'TypeScript'). [all …]
|
| /third_party/rust/rust/tests/ui/rfcs/rfc-2497-if-let-chains/ |
| D | feature-gate.stderr | 2 --> $DIR/feature-gate.rs:55:20 8 --> $DIR/feature-gate.rs:45:17 13 error: no rules expected the token `let` 14 --> $DIR/feature-gate.rs:58:15 17 | --------------------- when calling this macro 20 | ^^^ no rules expected this token in macro call 22 note: while trying to match meta-variable `$e:expr` 23 --> $DIR/feature-gate.rs:50:10 29 --> $DIR/feature-gate.rs:14:16 34 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information [all …]
|
| /third_party/rust/crates/syn/tests/ |
| D | test_expr.rs | 9 use syn::{parse_quote, token, Expr, ExprRange, ExprTuple, Stmt, Token}; 103 // mimics the token stream corresponding to `$fn()` in test_macro_variable_func() 169 // mimics the token stream corresponding to `$macro!()` in test_macro_variable_macro() 192 // mimics the token stream corresponding to `$struct {}` in test_macro_variable_struct() 211 // mimics the token stream corresponding to `$expr.method()` where expr is `&self` in test_macro_variable_unary() 236 // mimics the token stream corresponding to `match v { _ => $expr }` in test_macro_variable_match_arm() 309 // https://github.com/dtolnay/syn/issues/1019 312 #[rustfmt::skip] // rustfmt bug: https://github.com/rust-lang/rustfmt/issues/4808 in test_closure_vs_rangefull() 371 // Parentheses required. See https://github.com/rust-lang/rust/pull/87026. in test_ambiguous_label() 394 Token![::], in test_extended_interpolated_path() [all …]
|
| /third_party/rust/crates/libc/.github/workflows/ |
| D | docs.yml | 1 name: Upload documentation to GitHub Pages 6 - master 8 # Sets permissions of `GITHUB_TOKEN` to allow deployment to GitHub Pages 12 id-token: write 17 name: github-pages 19 runs-on: ubuntu-22.04 21 - name: Checkout 23 - name: Setup Rust toolchain 24 run: TARGET=x86_64-unknown-linux-gnu sh ./ci/install-rust.sh 25 - name: Generate documentation [all …]
|
| /third_party/rust/crates/proc-macro2/ |
| D | Cargo.toml | 2 name = "proc-macro2" 6 categories = ["development-tools::procedural-macro-helpers"] 7 description = "A substitute implementation of the compiler's `proc_macro` API to decouple token-bas… 8 documentation = "https://docs.rs/proc-macro2" 11 license = "MIT OR Apache-2.0" 12 repository = "https://github.com/dtolnay/proc-macro2" 13 rust-version = "1.56" 16 rustc-args = ["--cfg", "procmacro2_semver_exempt"] 17 rustdoc-args = ["--cfg", "procmacro2_semver_exempt", "--generate-link-to-definition"] 18 targets = ["x86_64-unknown-linux-gnu"] [all …]
|