Replies: 1 comment
-
New version using Install set-github-status-with-octokit // Menu: Set GitHub Status with Octokit
// Description: Sets the status text on your GitHub Profile
const { Octokit } = await npm("scriptkit-octokit");
const octokit = new Octokit({
auth: {
scopes: ["user"],
// optional, defaults to `GITHUB_TOKEN_USER`
env: "GITHUB_TOKEN_SET_USER_PROFILE",
},
});
await octokit.graphql(
`mutation ($text:String) {
changeUserStatus(input:{message:$text}) {
status {
message
}
}
}`,
{
text: await arg("What would you like to say?"),
}
); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Install set-github-status
Beta Was this translation helpful? Give feedback.
All reactions