Skip to content

[job] Add a job to block release if main branch is broken #1703

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

Closed
wants to merge 1 commit into from

Conversation

dmitryax
Copy link
Contributor

@dmitryax dmitryax commented Mar 7, 2025

No description provided.

@dmitryax dmitryax requested review from a team as code owners March 7, 2025 21:33
@dmitryax dmitryax force-pushed the add-job-blocking-release-if-main-is-broken branch 4 times, most recently from ec39ea7 to abfd8a0 Compare March 7, 2025 22:06
run: |
response=$(curl -s \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
"https://api.github.com/repos/${{ github.repository }}/commits/main/status")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know if this gets the status of the last completed run? or of runs in progress too? The workflow run endpoint gives a status and conclusion to differentiate this https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/about-status-checks#check-statuses-and-conclusions. Not sure if this is a concern here.

Copy link
Contributor Author

@dmitryax dmitryax Mar 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question. I don't know. Looks like it should be the last commit status only including in_progress. But let me print the fetched status so we can easily debug if needed

@dmitryax
Copy link
Contributor Author

Closing this for now. Let's make functional tests stable and make them required instead

@dmitryax dmitryax closed this Mar 12, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Mar 12, 2025
@dmitryax dmitryax deleted the add-job-blocking-release-if-main-is-broken branch March 13, 2025 04:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants