Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use deployments API instead of commit status #3

Closed
timja opened this issue Sep 6, 2020 · 7 comments · Fixed by #21
Closed

Use deployments API instead of commit status #3

timja opened this issue Sep 6, 2020 · 7 comments · Fixed by #21

Comments

@timja
Copy link
Member

timja commented Sep 6, 2020

No description provided.

@halkeye
Copy link
Member

halkeye commented Sep 6, 2020

So again, why? what does deployments do that checks don't in this case?

looking at https://docs.github.com/en/rest/reference/repos#create-a-deployment (and https://octokit.github.io/rest.js/v18#repos-create-deployment) it looks like creating a deployment triggers events for other systems to use? is that right?

Would you create a deployment before anything starts,
set the status to pending (https://docs.github.com/en/rest/reference/repos#create-a-deployment-status)
then do all the work
then set the status to completed (https://docs.github.com/en/rest/reference/repos#create-a-deployment-status)?

@timja
Copy link
Member Author

timja commented Sep 7, 2020

Deployments is more obvious than a commit status I think, it separates it out from the other checks and is an explicit release I think.

You would create a deployment once the zip has been uploaded to incrementals app and before it’s been uploaded to artifactory I think

@halkeye
Copy link
Member

halkeye commented Sep 7, 2020

I can certainly look into it, might be a good hacktober thing too.

Do you have an exmaple repo with deployments happening? i couldn't find one to see how it worked.

Otherwise i'll prototype something down the line.

@jglick
Copy link
Collaborator

jglick commented Jan 30, 2021

@timja timja mentioned this issue Jan 12, 2022
@timja timja closed this as completed in #21 Jan 13, 2022
@jglick
Copy link
Collaborator

jglick commented Jan 13, 2022

To be clear, #21 closes this effectively as “will not fix”.

@timja
Copy link
Member Author

timja commented Jan 13, 2022

To be clear, #21 closes this effectively as “will not fix”.

Yeah, a better alternative I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants