Skip to content

added redis headers and scafolding #8

added redis headers and scafolding

added redis headers and scafolding #8

name: "Auto-Close External PRs"
on:
pull_request_target:
types: [opened]
jobs:
close-on-open:
if: github.event.pull_request.user.login != github.repository_owner
runs-on: ubuntu-latest
permissions:
pull-requests: write
issues: write
steps:
- uses: actions/github-script@v7
with:
script: |
const pr = context.issue.number;
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: pr,
body: "Thanks for the interest! This repository isn't currently accepting external contributions as I am actively experimenting with different approaches and want to avoid merge conflicts. Therefore, this PR is being closed automatically by Github Bot. See [CONTRIBUTING.md](https://github.com/mccaffers/backtesting-engine-cpp/blob/main/CONTRIBUTING.md) for how to fork or file an issue instead."
});
await github.rest.pulls.update({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: pr,
state: "closed"
});