1 name: Close up open PRs on a nightly basis
13 runs-on: ubuntu-latest
15 - uses: actions/github-script@0.2.0
17 github-token: ${{github.token}}
19 const msg =`Back in early 2014 we [launched CocoaPods Trunk](http://blog.cocoapods.org/CocoaPods-Trunk/). Trunk is the only way that you can submit pods to CocoaPods, we do not accept pull requests to the CocoaPods Specs repo, and so this is being auto-closed. Please see #12199 for more info.
21 - To push a new version to trunk, you can use `pod trunk push`.
22 - You cannot amend an existing pod, however you can delete and deprecate a pod. You need to be using CocoaPods 1.0 to have access to `pod trunk delete` and `pod trunk deprecate`. People may be relying on your pod version, so use these with caution.
23 - If you don't have permission to update a pod that you own, please [file a claim](http://blog.cocoapods.org/Claim-Your-Pods/) on trunk.
26 const pulls = await octokit.pulls.list({ owner: 'CocoaPods', repo: 'Specs', state: 'open' })
28 for (const pull of pulls.data) {
29 if (!pull.labels.find(l => l.name === "Keep")) {
32 await octokit.pulls.update({ owner: 'CocoaPods', repo: 'Specs', state: "closed", pull_number: pull.number })
35 await github.issues.createComment({...context.issue, body: msg})