Commit a6789e8
Add expires support for create-pull-request safe-outputs (#12344)
* Initial plan
* Add expires field support for pull-request safe-outputs
- Added close_expired_pull_requests.cjs script following same pattern as issues/discussions
- Updated maintenance_workflow.go to include pull requests in expires checking
- Added pull-requests: write permission to maintenance job
- Added step to close expired pull requests in maintenance workflow
- Updated documentation in maintenance workflow comments
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Add tests for close_expired_pull_requests
- Created comprehensive test suite for close_expired_pull_requests.cjs
- Tests cover: no PRs found, expired PRs, not expired PRs, error handling, pagination
- All 5 tests passing
- Follows same testing pattern as close_expired_discussions
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Add expires field to pull request safe-outputs config generation
- Updated generatePullRequestConfig to include expires parameter
- Updated function call to pass CreatePullRequests.Expires
- Config now properly includes expires field in generated workflows
- Verified with test workflow compilation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Complete: Add expires field support for pull-request safe-outputs
All requirements implemented and tested:
- Expires field on create-pull-request configuration ✓
- XML comment marker for PR expiration ✓
- AI footer with expiration date ✓
- Maintenance job step to close expired PRs ✓
- Full test coverage ✓
- All workflows recompiled successfully ✓
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Use lowercase identifier in gh-aw-expires-type XML comment
Changed "Pull Request" to "pull-request" in XML comment for searchability as requested by @pelikhan
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Add 7d expires to daily workflows with create-pull-request
Added expires: 7d to create-pull-request configurations in:
- daily-doc-updater.md
- daily-workflow-updater.md
This ensures PRs from daily automation workflows are automatically closed after 7 days if not merged.
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Add changeset [skip-ci]
* Update dev workflow to create PR with poem and 2h expiration
Modified dev.md workflow to:
- Add single line poem to poems.txt
- Create pull request with expires: 2h
- Set as draft PR with [dev] prefix
- Updated description and requirements
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Merge main, format, and lint
- Merged main branch into feature branch
- Resolved merge conflict in dev.lock.yml by keeping dev version
- Ran make fmt - all files formatted successfully
- Ran make lint - all validations passed
- All 141 workflows recompiled successfully
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Peli de Halleux <pelikhan@users.noreply.github.com>1 parent 29877dc commit a6789e8
File tree
17 files changed
+1389
-28
lines changed- .changeset
- .github/workflows
- actions/setup/js
- pkg/workflow
17 files changed
+1389
-28
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
78 | 88 | | |
79 | 89 | | |
80 | 90 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
0 commit comments