Skip to content

Commit 47a7fef

Browse files
Add GitHub template and workflows needed on the default branch (#70)
* Copy across GitHub Action workflows * Add workflow to close stale PRs * Add PR template * Remove codeowners from upstream
1 parent 426927e commit 47a7fef

File tree

5 files changed

+65
-6
lines changed

5 files changed

+65
-6
lines changed

.github/CODEOWNERS

Lines changed: 0 additions & 6 deletions
This file was deleted.

.github/pull_request_template.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!---
2+
PRs to RelationalAI/julia must be opened to the correct branch (see
3+
https://github.com/RelationalAI/raicode/blob/master/nix/julia-version.json).
4+
-->
5+
## PR Description
6+
7+
_What does this PR do?_
8+
9+
## Checklist
10+
11+
Requirements for merging:
12+
- [ ] I have opened an issue or PR upstream on JuliaLang/julia: <link to JuliaLang/julia>
13+
- [ ] I have removed the `port-to-*` labels that don't apply.

.github/workflows/LabelCheck.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Labels
2+
3+
permissions:
4+
contents: read
5+
on:
6+
pull_request:
7+
types: [labeled, unlabeled, opened, reopened, edited, synchronize]
8+
jobs:
9+
enforce-labels:
10+
name: Check for blocking labels
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 2
13+
steps:
14+
- uses: yogevbd/[email protected]
15+
with:
16+
# REQUIRED_LABELS_ANY: "bug,enhancement,skip-changelog"
17+
# REQUIRED_LABELS_ANY_DESCRIPTION: "Select at least one label ['bug','enhancement','skip-changelog']"
18+
BANNED_LABELS: "needs docs,needs compat annotation,needs more info,needs nanosoldier run,needs news,needs pkgeval,needs tests,DO NOT MERGE"
19+
BANNED_LABELS_DESCRIPTION: "A PR should not be merged with `needs *` or `DO NOT MERGE` labels"

.github/workflows/labeler.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# See https://github.com/actions/labeler
2+
name: "Pull Request Labeler"
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
8+
jobs:
9+
triage:
10+
permissions:
11+
contents: read
12+
pull-requests: write
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/labeler@v4
16+
with:
17+
dot: true

.github/workflows/stale.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: "Close stale PRs"
2+
on:
3+
schedule:
4+
- cron: "0 0 * * *" # every night at midnight
5+
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/stale@v8
11+
with:
12+
repo-token: ${{ secrets.GITHUB_TOKEN }}
13+
stale-pr-message: 'This PR is stale because it has been open 30 days with no activity. Comment or remove stale label, or this PR will be closed in 5 days.'
14+
days-before-stale: 30
15+
days-before-close: 5
16+
stale-pr-label: 'stale'

0 commit comments

Comments
 (0)