List private events of a github repository? - events

I want to get private events of a github repo. The documentation for github api v3 suggests this end point GET /repos/:owner/:repo/events but I am not seeing any events using that. I am afraid if it has something to do with github apps, because there is an information icon on the endpoint which on hover says enabled for github apps. I am not sure what that exactly means, though I have read about github apps. Does that imply that only github apps are eligible for this endpoint and if yes then how other apps can access the private repo events ?

Related

How can I send push notifications to an outlook add-in from a web server?

Problem
I can't seem to find a reference a suggested way to implement sending notifications from a web server to an outlook add-in.
I've looked on:
the officeJS docs, which have a deprecated entry about notifications rest api v2.0, pointing to the Microsoft Graph, which again is deprecated (but without pointing to any up to date version)
stackoverflow, but the questions were either unanswered, or, answering the question with the deprecated notifications api
the officejs Q&A forum, where someone pointed out the Azure Notifications Hub service, but only linked to an android example; but the docs state that it's primarily made to send messages to mobile devices officejs add-ins as a tutorial or reference
Could you help me understand what's the best way to implement push notifications from web server -> outlook add-in?
Context
I personally would like to use Firebase Cloud Messaging, which depends on the Push API under the hood. Is the Push API supported?
WebSockets could also work, but here again I wasn't able to find something before working away on an implementation
#nickromano is correct in that an add-in is just a webpage embedded in Outlook, so you may be able to send data to it through websockets or long polling outside of a standard request. However, this is not a supported use case scenario.
Web add-ins are not run all the time in Outlook. They are activated in reaction to any event or by users (for example, when a task pane is opened). Moreover, Outlook add-ins are working under the context of the currently selected item(s) only. So, your add-in should be activated if you want to receive any push notifications (by opening a task pane or any event).
Be aware, feature requests on Tech Community are considered, when the dev team go through the planning process. Use the github label: “Type: product feature request” at https://aka.ms/M365dev-suggestions .

Is there a Heroku webhook when a Heroku Add-On is attached (not created)?

Can Heroku notify Add-on creators when an existing Add-on is attached (not created)?
Heroku Add-ons can be shared between multiple apps (Heroku Docs: making your Add-on shareable), and there's this Add-on Partner API reference, but I found no information about receiving webhooks/information when an existing Add-on is attached to a second app.
I thought about using the API for periodically checking the attached apps (which is possible). But if I wanted to give different config variables to each attached app, while sharing the same Add-on (and billing, which I assume is the reason behind this feature), using the readonly API doesn't help.
Thanks for any tips!
Yes, as an add-on provider, you can subscribe to an api:addon-attachment Webhook topic that would be triggered whenever your add-on attachment is being created / destroyed.
You can read more about using Webhooks as an add-on partner, here.

How to show additional information on github checks from Google Cloud build github App

I configured github checks with the Google Cloud Build Github App and now I would like to know if I can show any additional custom data on the github check or in the github check detail page.
Currently, there isn't much useful information when a build fails:

How to find out if workspace added or removed your Slack App?

I have some questions about Slack App after Public Distribution is activated.
Our team has developed a Slack App with bot and incoming webhook features, and we have activated public distribution for this Slack App, and added the "Add to Slack" button on our product webpage.
Questions:
Is there any way to find out what workspaces have added our Slack App? I understand that via the Add-to-Slack flow, we would know when a workspace has added the Slack App along with the resulting bot access token and webhook. But is that the only way to keep track? Is there no API to just list the workspaces, resulting bot, and webhook?
Is there any way to find out which workspaces have removed our Slack App? I can infer that information by doing an users.list API call using the bot access token. If it says token invalid, then I can guess that the workspace has removed the Slack App. Is there no other direct API to find out if a workspace has removed the Slack App?
Thank you.
Is there any way to find out what workspaces have added our Slack App?
I understand that via the Add-to-Slack flow, we would know when a
workspace has added the Slack App along with the resulting bot access
token and webhook. But is that the only way to keep track? Is there no
API to just list the workspaces, resulting bot, and webhook?
This is the only way (to track workspace during installation flow). At least for now, I saw such a feature in mid/long term plans for Slack API team.
Is there any way to find out which workspaces have removed our Slack
App? I can infer that information by doing an users.list API call
using the bot access token. If it says token invalid, then I can guess
that the workspace has removed the Slack App. Is there no other direct
API to find out if a workspace has removed the Slack App?
Take a look at app_uninstalled and tokens_revoked API events.

Slack API re-activate user after deactivating by users.admin.setInactive

When a user was deactivated (after using undocumented API method users.admin.setInactive), is there any possibilities to re-activate him using slackAPI? Unfortunatelly i didn't find any method for this...
The only way I've found is by using Slack SIM API. See PATCH /Users/{id} on:
https://api.slack.com/scim
Worth mentioning this is only available to Slack workspaces on the Plus plan and Slack Enterprise Grid.
Hope that helps!
After long searching it is possible to get users reactivated with the free api. You can not do it with a legacy key and api key. But you can with an session api key
see https://github.com/SvenHamers/slack-sessiontoken for an example how to automate it (Golang)
Api: users.admin.setRegular

Resources