You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/CONTRIBUTING.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,18 @@ Make sure your problem does not exist as a ticket already by searching through [
44
44
45
45
We will review your pull request and merge when everything is in order. We will help you to make sure the code complies with the standards described above.
46
46
47
+
### Automated Backport Process
48
+
When a pull request is merged into the `main` branch, an automated workflow will create a backport pull request to merge the same feature branch into the `develop` branch. This ensures that changes in `main` are also applied to the development branch without directly merging `main` into `develop`.
49
+
50
+
**How it works:**
51
+
- The workflow triggers automatically when a PR is merged into `main`
52
+
- It extracts the original branch name that was merged
53
+
- If the branch still exists, it creates a new PR to merge that branch into `develop`
54
+
- The backport PR is labeled with `backport` and `automated` labels
55
+
- If the branch no longer exists, the workflow logs a message indicating manual backport may be needed
56
+
57
+
**No action required** - this process is fully automated and requires no manual intervention in most cases.
58
+
47
59
#### 'Patch welcome' issues
48
60
Some issues are labeled 'patch-welcome'. This means we see the value in the particular enhancement being suggested but have decided for now not to prioritize it. If you however decide to write a patch for it, we'll gladly include it after some code review.
Copy file name to clipboardExpand all lines: .github/copilot-instructions.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,8 @@ This is a WordPress plugin called "Accessibility Checker" developed by Equalize
46
46
47
47
## Development Workflow
48
48
49
+
Commit lock files (`composer.lock`, `package-lock.json`) only when adding or updating packages. Run `composer install` and `npm install` to get dependencies matching the lock file.
50
+
49
51
Code should always be linted by phpcs and eslint before committing. Tests should be added for new functionality. Tests should also be added for any bug fixes. Use the following commands to run tests and linting:
body: `## Automatic Backport\n\nThis is an automatic backport of PR #${originalPrNumber} by @${originalPrAuthor} to the \`develop\` branch.\n\n### Original PR Details:\n${originalPrBody}\n\n---\n*This PR was created automatically when #${originalPrNumber} was merged into \`main\`.*`,
69
+
maintainer_can_modify: true
70
+
});
71
+
72
+
console.log(`✅ Successfully created backport PR #${response.data.number}`);
0 commit comments