integrations / microsoft-teams

Bringing your code and work to the conversations you care about with the GitHub and Microsoft integration
430 stars 95 forks source link

Subscriptions disappearing #267

Closed garyc0221 closed 1 year ago

garyc0221 commented 1 year ago

Describe the bug I have signed in to the plugin and subscribed to my organization. After 10 minutes or so I stop getting any updates into the channel, then when I run GitHub subscribe list it states Not subscribed to any repositories or accounts. Even though I was.

I may suspect this to be an issue with 2FA that I have on my GitHub and Microsoft account.

To Reproduce Steps to reproduce the behavior:

  1. Install GitHub app
  2. Login to github account with 2fa
  3. Subscribe to organization
  4. Commit to main branch a couple times
  5. Wait a bit
  6. Run subscribe list

Expected behavior It should always keep my subscriptions.

Desktop (please complete the following information):

You can see below the time stamps.

image

garyc0221 commented 1 year ago

Do you need the GHES Private Preview for this to work?

sanjeev9160 commented 1 year ago

@garyc0221 Was the app uninstalled from the repos? Also can you retry to re-subscribe it and observe it for couple of days. Also, GHES Private Preview is not required for it.

garyc0221 commented 1 year ago

@sanjeev9160 I checked and the GitHub app is set to all repos and hasn't changed. I have resubscribed multiple times and it always stops working. It seems it stops working after a pull request that has an github action happening on it

sanjeev9160 commented 1 year ago

@garyc0221 I tried debugging the issue to see what could be the possible reason for it. Will keep you posted of the further investigation. Meanwhile could you do the following steps to see if it helps you:

  1. Open teams in a chrome/edge browser by logging in through: https://teams.microsoft.com
  2. Run signout command. This will remove all of your existing subscriptions in all the channels where subscription was present.
  3. Re-run the signin command and login to github.
  4. Run the subscribe command with org/repo to one single repo(later if things work then you can subscribe to entire org) and raise a test PR and merge it and then run subscribe list to see if you still face the problem. Thanks.
garyc0221 commented 1 year ago

@sanjeev9160 Im going to close this issue for now, it has been working as expected today. Thanks.