Skip to content

Commit

Permalink
[workflow] Prepare for version 2024 (backport #5404) (#5405)
Browse files Browse the repository at this point in the history
[workflow] Prepare for version 2024 (#5404)

* [automation] Prepare to version 2024

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update PULL_REQUEST_TEMPLATE.md

* Update translations.yml

* Update PULL_REQUEST_TEMPLATE.md

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
(cherry picked from commit 70bf91d)

Co-authored-by: Hailin Wang <[email protected]>
  • Loading branch information
mergify[bot] and haiiliin authored Dec 14, 2023
1 parent 7f4ae6b commit 92a79ea
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Here are a couple of friendly tutorials you can include: http://makeapullrequest

Working on your first Pull Request? You can learn how from this _free_ series, [How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github).

As a side note, it helps to use newcomer-friendly language throughout the rest of your document. Here are a couple of examples from [Active Admin](https://github.com/haiiliin/abqpy/blob/2023/CONTRIBUTING.md):
As a side note, it helps to use newcomer-friendly language throughout the rest of your document. Here are a couple of examples from [Active Admin](https://github.com/haiiliin/abqpy/blob/2024/CONTRIBUTING.md):

At this point, you're ready to make your changes! Feel free to ask for help; everyone is a beginner at first :smile_cat:

Expand Down
2 changes: 2 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ Refer [here](https://github.com/haiiliin/abqpy/discussions/1500) to resolve back
- [x] 2020
- [x] 2021
- [x] 2022
- [x] 2023
- [ ] 2024
1 change: 1 addition & 0 deletions .github/keylabeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ caseSensitive: false

# Explicit keyword mappings to labels. Form of match:label. Required.
labelMappings:
"- [x] 2024": backport-to-2024
"- [x] 2023": backport-to-2023
"- [x] 2022": backport-to-2022
"- [x] 2021": backport-to-2021
Expand Down
33 changes: 33 additions & 0 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,37 @@
pull_request_rules:
- name: Backport to 2024 (auto-merge)
conditions:
- label=backport-to-2024
- label!=disable-auto-merge
- label!=disable-auto-merge-2024
actions:
backport:
title: "{{ title }} (backport #{{ number }})"
branches:
- "2024"
assignees:
- "{{ author }}"
labels:
- backport
- "2024"
- name: Backport to 2024 (disable-auto-merge)
conditions:
- label=backport-to-2024
- or:
- label=disable-auto-merge
- label=disable-auto-merge-2024
actions:
backport:
title: "{{ title }} (backport #{{ number }})"
branches:
- "2024"
assignees:
- "{{ author }}"
labels:
- backport
- "2024"
- disable-auto-merge

- name: Backport to 2023 (auto-merge)
conditions:
- label=backport-to-2023
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ name: docs
on:
push:
branches:
- "2023"
- "2024"
paths:
- "src/**"
- "docs/source/**"
- "examples/**"
- ".github/workflows/docs.yml"
pull_request:
branches:
- "2023"
- "2024"
paths:
- "src/**"
- "docs/source/**"
Expand Down
20 changes: 18 additions & 2 deletions .github/workflows/translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@ jobs:
fail-fast: true
matrix:
version:
["2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023"]
- "2016"
- "2017"
- "2018"
- "2019"
- "2020"
- "2021"
- "2022"
- "2023"
- "2024"
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
Expand Down Expand Up @@ -48,7 +56,15 @@ jobs:
max-parallel: 1
matrix:
version:
["2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023"]
- "2016"
- "2017"
- "2018"
- "2019"
- "2020"
- "2021"
- "2022"
- "2023"
- "2024"
runs-on: ubuntu-latest
steps:
- name: Download Artifacts
Expand Down

0 comments on commit 92a79ea

Please sign in to comment.