Skip to content

Commit

Permalink
feat: Pass waiting when add integrate-testing label
Browse files Browse the repository at this point in the history
构建状态同步目前还是不太稳定,并且很多包不能做到全架构的构建支持,需要手动确定,可以通过添加integrate-testing标签的方式手动确认构建通过
  • Loading branch information
hudeng-go authored and Zeno-sole committed Mar 15, 2024
1 parent 8945169 commit 3ee6dc1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/auto-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,20 @@ jobs:
if ( context.issue.number != undefined ) {
while (true) {
// Get the latest information about the Pull Request
const pullRequest = await github.rest.pulls.get({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number,
});
// Check if the Pull Request has the '/integrate-testing' label
const hasLabel = pullRequest.data.labels.some(label => label.name === 'integrate-testing')
if (hasLabel) {
console.log(`All build commit statuses is now a success by manual`)
break
}
const { data: statuses } = await github.rest.repos.getCombinedStatusForRef({
owner: context.repo.owner,
repo: context.repo.repo,
Expand Down

0 comments on commit 3ee6dc1

Please sign in to comment.