[PR #16] [MERGED] Restrict release job to main and development branches #37

Closed
opened 2026-06-08 09:15:38 +00:00 by ryangr0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/webgrip/invoiceninja-application/pull/16
Author: @Copilot
Created: 11/21/2025
Status: Merged
Merged: 11/21/2025
Merged by: @Ryangr0

Base: developmentHead: copilot/sub-pr-14


📝 Commits (2)

  • 2d6d59d Initial plan
  • 97c5c78 fix: restrict release job to main and development branches

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 .github/workflows/on_source_change.yml (+1 -0)

📄 Description

Addresses feedback from #14 to prevent releases from triggering on all branches. The release job was modified in a previous commit to remove branch restrictions, which could lead to unintended releases from feature branches.

Changes

  • Added branch restriction to release job condition: (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/development')
  • Allows production releases from main and pre-releases from development while blocking feature branches
release:
  name: 'Release'
  needs: [ static-analysis, test ]
  if: >
    always()
    && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/development')
    && needs.static-analysis.result == 'success'
    && needs.test.result == 'success'

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/webgrip/invoiceninja-application/pull/16 **Author:** [@Copilot](https://github.com/apps/copilot-swe-agent) **Created:** 11/21/2025 **Status:** ✅ Merged **Merged:** 11/21/2025 **Merged by:** [@Ryangr0](https://github.com/Ryangr0) **Base:** `development` ← **Head:** `copilot/sub-pr-14` --- ### 📝 Commits (2) - [`2d6d59d`](https://github.com/webgrip/invoiceninja-application/commit/2d6d59df9fe78366ac18c13d471f40198e0cc914) Initial plan - [`97c5c78`](https://github.com/webgrip/invoiceninja-application/commit/97c5c7896500a52407a1377706105b10ecf42eef) fix: restrict release job to main and development branches ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/on_source_change.yml` (+1 -0) </details> ### 📄 Description Addresses feedback from #14 to prevent releases from triggering on all branches. The release job was modified in a previous commit to remove branch restrictions, which could lead to unintended releases from feature branches. ## Changes - Added branch restriction to release job condition: `(github.ref == 'refs/heads/main' || github.ref == 'refs/heads/development')` - Allows production releases from `main` and pre-releases from `development` while blocking feature branches ```yaml release: name: 'Release' needs: [ static-analysis, test ] if: > always() && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/development') && needs.static-analysis.result == 'success' && needs.test.result == 'success' ``` <!-- START COPILOT CODING AGENT TIPS --> --- 💬 We'd love your input! Share your thoughts on Copilot coding agent in our [2 minute survey](https://gh.io/copilot-coding-agent-survey). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
ryangr0 2026-06-08 09:15:38 +00:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
webgrip/invoiceninja-application#37
No description provided.