Skip to content

Feature/ci pipeline#3

Merged
PeriodicallyZoneOut merged 2 commits into
mainfrom
feature/ci-pipeline
Apr 30, 2026
Merged

Feature/ci pipeline#3
PeriodicallyZoneOut merged 2 commits into
mainfrom
feature/ci-pipeline

Conversation

@PeriodicallyZoneOut

Copy link
Copy Markdown
Owner

status check added workflow for setting branch protection

Copilot AI review requested due to automatic review settings April 30, 2026 03:17
@PeriodicallyZoneOut PeriodicallyZoneOut merged commit 0a3d0b6 into main Apr 30, 2026
47 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds a dedicated “CI Gate” status context to the repository’s CI pipeline so it can be used as a required status check for branch protection, and improves resiliency of Maven steps via retries.

Changes:

  • Grants statuses: write permission to allow publishing a commit status.
  • Wraps Maven test/package commands in a 3-attempt retry loop with backoff.
  • Adds a ci-gate job that evaluates test/build results, publishes a “CI Gate” commit status, then fails the workflow if the gate failed.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 12 to +15
permissions:
contents: read
actions: write
statuses: write
Comment on lines +230 to +243
- name: Publish CI Gate status
uses: actions/github-script@v7
with:
script: |
const state = '${{ steps.gate.outputs.state }}' || 'failure';
await github.rest.repos.createCommitStatus({
owner: context.repo.owner,
repo: context.repo.repo,
sha: context.sha,
state,
context: 'CI Gate',
description: state === 'success' ? 'CI Gate passed' : 'CI Gate failed',
target_url: `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`
});
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 this pull request may close these issues.

2 participants