Skip to content

Commit 16de7c7

Browse files
DrviRAI CI (GitHub Action Automation)
authored andcommitted
Add GitHub template and workflows needed on the default branch (#135)
1 parent 222b6d4 commit 16de7c7

File tree

5 files changed

+78
-0
lines changed

5 files changed

+78
-0
lines changed

.github/labeler.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# See https://github.com/actions/labeler
2+
port-to-master: '**'
3+
port-to-v1.10: '**'

.github/pull_request_template.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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.
14+
- [ ] I have opened a PR on raicode to test these changes: <link to raicode>

.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'
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: "Update upstream branches"
2+
on:
3+
schedule:
4+
- cron: "0 0 * * *" # every night at midnight
5+
workflow_dispatch:
6+
7+
jobs:
8+
PullUpstream:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
fail-fast: false # run all jobs in the matrix even if one fails
12+
matrix:
13+
branch:
14+
- "master"
15+
- "backports-release-1.10"
16+
steps:
17+
- name: Checkout RAI/julia
18+
uses: actions/checkout@v3
19+
with:
20+
ref: ${{ matrix.branch }}
21+
- name: Update ${{ matrix.branch }}
22+
run: |
23+
git config --global user.email "[email protected]"
24+
git config --global user.name "RAI CI (GitHub Action Automation)"
25+
26+
git remote add upstream https://github.com/JuliaLang/julia
27+
git pull upstream ${{ matrix.branch }}
28+
git push origin ${{ matrix.branch }}

0 commit comments

Comments
 (0)