mutation { createProjectV2StatusUpdate( input: {projectId: "0123456", body: "We wrapped up our bug bash following the beta rollout. We're back on track for our GA date in August! 🚀 ", startDate: "2024-06-03", targetDate: "2024-08-09", status: ON_TRACK} ) { statusUpdate { id startDate targetDate body bodyHTML status } } }
{ "action": "edited", "projects_v2_status_update": { "id": 32633, "node_id": "PVTSU_lADOBH2n9s4Ajp6VzX95", "project_node_id": "PVT_kwDOBH2n9s4Ajp6V", "creator": { ... }, "body": "We've kicked off this project and are feeling confident in our rollout plan. More updates and demos to come next week!", "start_date": "2024-06-24", "target_date": "2024-08-16", "status": "ON_TRACK", "created_at": "2024-06-24T20:27:48Z", "updated_at": "2024-06-24T20:30:47Z" }, "changes": { "body": { "from": "We're still planning this out and are kicking off soon.", "to": "We've kicked off this project and are feeling confident in our rollout plan. More updates and demos to come next week!" }, "status": { "from": "INACTIVE", "to": "ON_TRACK" }, "start_date": { "from": null, "to": "2024-06-24" }, "target_date": { "from": null, "to": "2024-08-16" } }, "organization": { ... }, "sender": { ... } }
"changes": { "field_value": { "field_node_id": "PVTSSF_lADOBH2n9s4Aje1Izgb1kEs", "field_type": "single_select", "field_name": "Status", "project_number": 18, "from": { "id": "f75ad846", "name": "Todo", "color": "GREEN", "description": "This item hasn't been started" }, "to": { "id": "47fc9ee4", "name": "In Progress", "color": "YELLOW", "description": "This is actively being worked on" } } },
convertProjectV2DraftIssueItemToIssue
require 'openssl' require 'jwt' # https://rubygems.org/gems/jwt # Private key contents private_pem = File.read("YOUR_PATH_TO_PEM") private_key = OpenSSL::PKey::RSA.new(private_pem) # Generate the JWT payload = { # issued at time, 60 seconds in the past to allow for clock drift iat: Time.now.to_i - 60, # JWT expiration time (10 minute maximum) exp: Time.now.to_i + (10 * 60), --- # GitHub App's App ID --- iss: "12345" +++ # GitHub App's Client ID +++ iss: "Iv23f8doAlphaNumer1c" } jwt = JWT.encode(payload, private_key, "RS256") puts jwt
|
|
---|---|
|
|
---|---|
zero
/repos/{owner}/{repo}/stats/contributors
/repos/{owner}/{repo}/stats/code_frequency
GraphQL-Features: ospo_metrics_api