Skip to content

Added scaffolding for a random trading strategy #3

Added scaffolding for a random trading strategy

Added scaffolding for a random trading strategy #3

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."
});
await github.rest.pulls.update({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: pr,
state: "closed"
});