Macro todo_or_die::pr_closed [−][src]
pr_closed!() { /* proc-macro */ }
Expand description
Trigger a compile error if a pull request has been closed or merged.
Note that this will make network requests during compile which may make your builds flaky at times.
Requires the github
feature to be enabled.
Example
ⓘ
todo_or_die::pr_closed!("tokio-rs/axum#266");
// todo_or_die::pr_closed!("tokio-rs", "axum", 266);
Authentication
pr_closed
will first look for the environment variable TODO_OR_DIE_GITHUB_TOKEN
and then
GITHUB_TOKEN
, if either are found its value will be used as the auth token when making
requests to the GitHub API. This allows you to access private repos and get more generous
rate limits.