Skip to content

Commit 082d2fa

Browse files
committed
ci: cool
1 parent b623172 commit 082d2fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/warn-master-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
owner,
3636
repo,
3737
issue_number,
38-
body: "⚠️ **Warning: PR targeting master branch detected!**\n\nThis pull request is attempting to merge changes into the `master` branch. This is typically not recommended because:\n\n1. **Protected workflow**: The master branch should usually be protected and only updated through specific processes\n2. **Stability concerns**: Direct merges to master can introduce instability to the main codebase\n3. **Best practices**: Changes should typically go through a development branch (like `dev` or `develop`) first\n\n**Recommended action:**\n- Consider changing the target branch to `dev` or `develop` instead\n- If this is a hotfix or emergency change, ensure it has been properly reviewed\n- Make sure all tests pass and the change has been thoroughly tested\n\nIf this PR targeting master is intentional and has been approved by maintainers, you can ignore this warning.\n\n---\n*This is an automated message. If you believe this warning is incorrect, please contact the maintainers.*"
38+
body: "⚠️ **Warning: PR targeting master branch detected!**\n\n**This PR is targeting `master` but should target `dev` instead.**\n\nAccording to our [CONTRIBUTING.md](https://github.com/HyDE-Project/HyDE/blob/master/CONTRIBUTING.md) and [RELEASE_POLICY.md](https://github.com/HyDE-Project/HyDE/blob/master/RELEASE_POLICY.md):\n\n- **All pull requests must be submitted to the `dev` branch**\n- Changes go through `dev` first for testing before being merged to `master` during release windows\n- **PRs to `master` are only allowed for emergencies**\n\n**Required Action:**\n1. **Rebase this PR to target the `dev` branch instead**\n2. Update the base branch from `master` to `dev`\n3. Follow the [pull request template](https://github.com/HyDE-Project/HyDE/blob/master/.github/PULL_REQUEST_TEMPLATE.md)\n\n**If this is an emergency fix, please add a comment explaining why it needs to target `master` directly.**\n\n---\n*This is an automated message enforcing our contribution workflow.*"
3939
});
4040
console.log('Warning comment added to PR #' + issue_number);
4141
} else {

0 commit comments

Comments
 (0)