[−][src]Struct octocrab::actions::ActionsHandler
Handler for GitHub's actions API.
Created with Octocrab::actions
.
Implementations
impl<'octo> ActionsHandler<'octo>
[src]
pub async fn add_selected_repo_to_org_secret<'_>(
&'_ self,
org: impl AsRef<str>,
secret_name: impl AsRef<str>,
repository_id: u64
) -> Result<()>
[src]
&'_ self,
org: impl AsRef<str>,
secret_name: impl AsRef<str>,
repository_id: u64
) -> Result<()>
Adds a repository to an organization secret when the visibility for repository access is set to selected. The visibility is set when you create or update an organization secret. You must authenticate using an access token with the admin:org scope to use this endpoint. GitHub Apps must have the secrets organization permission to use this endpoint.
octocrab::instance() .actions() .add_selected_repo_to_org_secret("org", "secret_name", 1234) .await?;
pub async fn remove_selected_repo_from_org_secret<'_>(
&'_ self,
org: impl AsRef<str>,
secret_name: impl AsRef<str>,
repository_id: u64
) -> Result<()>
[src]
&'_ self,
org: impl AsRef<str>,
secret_name: impl AsRef<str>,
repository_id: u64
) -> Result<()>
Removes a repository from an organization secret when the visibility for repository access is set to selected. The visibility is set when you create or update an organization secret. You must authenticate using an access token with the admin:org scope to use this endpoint. GitHub Apps must have the secrets organization permission to use this endpoint.
octocrab::instance() .actions() .remove_selected_repo_from_org_secret("org", "secret_name", 1234) .await?;
pub async fn cancel_workflow_run<'_>(
&'_ self,
owner: impl AsRef<str>,
repo: impl AsRef<str>,
run_id: u64
) -> Result<()>
[src]
&'_ self,
owner: impl AsRef<str>,
repo: impl AsRef<str>,
run_id: u64
) -> Result<()>
Cancels a workflow run using its id. You must authenticate using an
access token with the repo
scope to use this endpoint. GitHub Apps
must have the actions:write
permission to use this endpoint.
octocrab::instance() .actions() .cancel_workflow_run("owner", "repo", 1234) .await?;
pub async fn download_workflow_run_logs<'_>(
&'_ self,
owner: impl AsRef<str>,
repo: impl AsRef<str>,
run_id: u64
) -> Result<Bytes>
[src]
&'_ self,
owner: impl AsRef<str>,
repo: impl AsRef<str>,
run_id: u64
) -> Result<Bytes>
Downloads and returns the raw data representing a zip of the logs from
the workflow run specified by run_id
.
octocrab::instance() .actions() .download_workflow_run_logs("owner", "repo", 1234) .await?;
pub async fn download_artifact<'_>(
&'_ self,
owner: impl AsRef<str>,
repo: impl AsRef<str>,
artifact_id: u64,
archive_format: ArchiveFormat
) -> Result<Bytes>
[src]
&'_ self,
owner: impl AsRef<str>,
repo: impl AsRef<str>,
artifact_id: u64,
archive_format: ArchiveFormat
) -> Result<Bytes>
Downloads and returns the raw data representing an artifact from a repository.
use octocrab::params::actions::ArchiveFormat; octocrab::instance() .actions() .download_artifact("owner", "repo", 1234, ArchiveFormat::Zip) .await?;
pub async fn delete_workflow_run_logs<'_>(
&'_ self,
owner: impl AsRef<str>,
repo: impl AsRef<str>,
run_id: u64
) -> Result<()>
[src]
&'_ self,
owner: impl AsRef<str>,
repo: impl AsRef<str>,
run_id: u64
) -> Result<()>
Deletes all logs for a workflow run. You must authenticate using an
access token with the repo
scope to use this endpoint. GitHub Apps
must have the actions:write
permission to use this endpoint.
octocrab::instance() .actions() .delete_workflow_run_logs("owner", "repo", 1234) .await?;
pub async fn get_org_public_key<'_>(
&'_ self,
org: impl AsRef<str>
) -> Result<PublicKey>
[src]
&'_ self,
org: impl AsRef<str>
) -> Result<PublicKey>
Get an organization's public key, which you need to encrypt secrets.
You need to encrypt a secret before you can create or update secrets.
You must authenticate using an access token with the admin:org
scope
to use this endpoint. GitHub Apps must have the secrets organization
permission to use this endpoint.
let org = octocrab.actions().get_org_public_key("org").await?;
Auto Trait Implementations
impl<'octo> !RefUnwindSafe for ActionsHandler<'octo>
[src]
impl<'octo> Send for ActionsHandler<'octo>
[src]
impl<'octo> Sync for ActionsHandler<'octo>
[src]
impl<'octo> Unpin for ActionsHandler<'octo>
[src]
impl<'octo> !UnwindSafe for ActionsHandler<'octo>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,