Skip to content

Instantly share code, notes, and snippets.

@SaschaMann
SaschaMann / stop-hacktoberfest-spam.yml
Last active September 30, 2020 23:39
An action that closes all PRs by new contributors and marks them as invalid.
name: Stop Hacktoberfest Spam
on:
pull_request_target:
jobs:
stop-spam:
runs-on: ubuntu-latest
steps:
function main(outfile)
out = """documentation:
- docs/**/*
"""
for slug in readdir("languages")
isdir(joinpath("languages", slug)) || continue
out *= """track/$slug:
- languages/$slug/**/*
using OffsetArrays
using Test
const input = parse.(Int, split(read("2_input", String), ','))
const instructions = Dict(
1 => +,
2 => *,
)
using OffsetArrays
using Test
const input = parse.(Int, split(read("2_input", String), ','))
const instructions = Dict(
1 => +,
2 => *,
)