Crate search_issue_refs

Crate search_issue_refs 

Source
Expand description

Recursively searches local directory for references to issues that are closed.

Requires a Github access token as this program will make queries to the GitHub API where authentication is needed.

See https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token

Example usage:

(from the root directory of the Zebra repo)

GITHUB_TOKEN={valid_github_access_token} search-issue-refs

Example output:

Found 3 possible issue refs, checking Github issue statuses..


Found reference to closed issue #4794: ./zebra-rpc/src/methods/get_block_template_rpcs.rs:114:19 https://github.com/ZcashFoundation/zebra/blob/main/zebra-rpc/src/methods/get_block_template_rpcs.rs#L114 https://github.com/ZcashFoundation/zebra/issues/4794


Found reference to closed issue #2379: ./zebra-consensus/src/transaction.rs:717:49 https://github.com/ZcashFoundation/zebra/blob/main/zebra-consensus/src/transaction.rs#L717 https://github.com/ZcashFoundation/zebra/issues/2379


Found reference to closed issue #3027: ./zebra-consensus/src/transaction/check.rs:319:6 https://github.com/ZcashFoundation/zebra/blob/main/zebra-consensus/src/transaction/check.rs#L319 https://github.com/ZcashFoundation/zebra/issues/3027

Found 3 references to closed issues.

Structsยง

PossibleIssueRef ๐Ÿ”’

Constantsยง

GITHUB_TOKEN_ENV_KEY ๐Ÿ”’
VALID_EXTENSIONS ๐Ÿ”’

Functionsยง

check_file_ext ๐Ÿ”’
crate_mod_path ๐Ÿ”’
github_issue_api_url ๐Ÿ”’
github_issue_url ๐Ÿ”’
github_permalink ๐Ÿ”’
github_ref_api_url ๐Ÿ”’
github_remote_file_ref ๐Ÿ”’
main ๐Ÿ”’
Process entry point for search-issue-refs
search_directory ๐Ÿ”’

Type Aliasesยง

IssueId ๐Ÿ”’