Skip to content

Override LINEAR_API_URL by environment variable #53

Open

Description

@devurandom

It would be nice if it was possible to override the base URL (LINEAR_API_URL) by environment variable (env var), so that one could redirect the requests through an HTTP proxy (e.g. https://nono.sh/).

linear-cli/src/api.rs

Lines 22 to 23 in e100db1

const LINEAR_API_URL: &str = "https://api.linear.app/graphql";
const LINEAR_UPLOADS_HOST: &str = "uploads.linear.app";

linear-cli/src/api.rs

Lines 731 to 738 in e100db1

let response = self
.client
.post(LINEAR_API_URL)
.header("Content-Type", "application/json")
.header("Authorization", &auth_header)
.json(&body)
.send()
.await?;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions