netlify / ask-netlify

A place to submit questions for Netlify to answer in tutorials, podcasts and blog posts
https://ask.netlify.com
32 stars 8 forks source link

Multiple Github status notifications per repo #53

Open moretti opened 5 years ago

moretti commented 5 years ago

About me

My question in a little more detail

I have a mono repo hosted on Github which contains multiple Netlify sites. When a PR is created I'd like to see a preview of each site, eg. something like:

Screenshot 2019-07-18 at 12 23 13

From the admin panel, there's a way to specify a custom context message:

Screenshot 2019-07-18 at 12 26 23

But any Github commit status posted from "Site 1" will override "Site 2" (and vice-versa), meaning that something like posted in the first screenshot is currently not achievable.

Is there any workaround to this problem?

j-f1 commented 5 years ago

From what I’ve heard, this repo is getting archived/deleted soon, and they’re suggesting people move over to the community forum.


I think the reason these statuses are overwriting each other is that GitHub only shows the most recent status for a given context (e.g. deploy/netlify). This is useful, since it allows service providers like Netlify to overwrite old statuses (such as the “deploy is in progress” one) which can’t be deleted. A way for Netlify to fix this would be for it to detect if there are multiple sites configured for a repo and if so, suffix the context with the site name (e.g. deploy/netlify/site-1 & deploy/netlify/site-2).