Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ indent_style = space
[*.md]
trim_trailing_whitespace = false

[*.{json,yaml,yml}]
[*.{json,toml,yaml,yml}]
indent_size = 2
12 changes: 12 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Default code owners unless overridden below
* @MorpheusXAUT @IamLuisAUT

# Explicitly specify code owners for GitHub config, such as workflows or CODEOWNERS, and other relevant files
/.github/ @MorpheusXAUT @IamLuisAUT
/docs/ @MorpheusXAUT @IamLuisAUT
LICENSE* @MorpheusXAUT @IamLuisAUT
README.md @MorpheusXAUT @IamLuisAUT
CONTRIBUTING.md @MorpheusXAUT @IamLuisAUT

# Dataset owners
/dataset/LO/ @MorpheusXAUT @IamLuisAUT
File renamed without changes.
40 changes: 40 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Dataset Changes

Thank you for your contribution to the `vacs` dataset.

> [!WARNING]
> Please make sure your dataset is in the correct `dataset/{FIR}/` directory, otherwise it will not be picked up by our validations and release process.

If you're contributing configuration for a new FIR, please add a small paragraph about your affiliation to the respective FIR to this PR description. We'll be glad to accept your contribution, but would like to ensure our dataset's origin is transparent.
After the first PR was merged, we'll add you to the CODEOWNERS file for that FIR, so that future changes can be reviewed by you.

If you're contributing for an existing FIR, we'll wait for feedback from the current CODEOWNER(s) before merging.

_You may just delete these paragraphs from your PR description, they're just here to remind you of our contribution guidelines._

## Auto-Formatting

This repository uses [autofix.ci](https://autofix.ci) to automatically ensure consistent code formatting using our [prettier](https://prettier.io) configuration.
The `autofix-ci` bot will automatically push formatting fixes to your branch if needed.

> [!IMPORTANT]
> Please **enable "Allow edits by maintainers"** so that the bot can push commits to your PR branch.

Look for the **"Allow edits by maintainers"** checkbox when creating the PR (below the description box or in the right sidebar). Please ensure this checkbox is checked before submitting the PR.

The `autofix-ci` bot will automatically push formatting fixes to your branch if needed (commits will have the message `chore(dataset): format with prettier`).

<details>
<summary>If you prefer not to enable this setting:</summary>

Make sure your dataset changes are formatted properly.
If your editor supports `prettier`, formatting should happen automatically.

**Malformed dataset files will automatically be rejected by CI.**

Alternatively, you can run our formatter locally:

1. Install [Node.js](https://nodejs.org/en/download)
2. Run `npm install` to install `prettier` and the required plugins
3. Run `npm run format` to format your dataset changes
</details>
40 changes: 40 additions & 0 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: autofix.ci
on:
pull_request:
paths:
- "dataset/**"
- ".github/workflows/autofix.yml"
push:
branches: ["main"]
paths:
- "dataset/**"
- ".github/workflows/autofix.yml"

permissions:
contents: read

jobs:
autofix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Setup Node (LTS)
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version: "lts/*"
cache: "npm"
cache-dependency-path: |
package-lock.json

- name: Install dependencies
run: npm ci

- name: Format dataset
run: npm run format

- uses: autofix-ci/action@7a166d7532b277f34e16238930461bf77f9d7ed8 # v1.3.3
with:
commit-message: "chore(dataset): format with prettier"
4 changes: 2 additions & 2 deletions .github/workflows/ci-dataset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Cache cargo
uses: Swatinem/[email protected]
uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
with:
shared-key: "linux-x86_64"
workspaces: "tools -> target"
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ci-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ jobs:
continue-on-error: ${{ matrix.checks == 'advisories' }}
steps:
- name: Checkout
uses: actions/[email protected]
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: false

- name: cargo deny
uses: EmbarkStudios/[email protected]
uses: EmbarkStudios/cargo-deny-action@3fd3802e88374d3fe9159b834c7714ec57d6c979 # v2.0.15
with:
manifest-path: "tools/Cargo.toml"
command: check ${{ matrix.checks }}
Expand All @@ -60,28 +60,28 @@ jobs:
continue-on-error: true
steps:
- name: Checkout
uses: actions/[email protected]
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: false

- name: cargo machete
uses: bnjbvr/[email protected]
uses: bnjbvr/cargo-machete@7959c845782fed02ee69303126d4a12d64f1db18 # v0.9.1

check:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/[email protected]
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt

- name: Cache cargo
uses: Swatinem/[email protected]
uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
with:
shared-key: "linux-x86_64"
workspaces: "tools -> target"
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/release-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

steps:
- name: Checkout
uses: actions/[email protected]
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
ref: ${{ inputs.ref }}
Expand Down Expand Up @@ -91,12 +91,12 @@ jobs:
release_body: ${{ steps.git-cliff.outputs.content }}
steps:
- name: Checkout
uses: actions/[email protected]
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0

- name: Generate a changelog
uses: orhun/[email protected]
uses: orhun/git-cliff-action@e16f179f0be49ecdfe63753837f20b9531642772 # v4.7.0
id: git-cliff
with:
config: tools/cliff.toml
Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:

steps:
- name: Checkout
uses: actions/[email protected]
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: false
Expand All @@ -137,7 +137,7 @@ jobs:
targets: ${{ matrix.target }}

- name: Cache cargo
uses: Swatinem/[email protected]
uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
with:
shared-key: ${{ matrix.platform }}
workspaces: "tools -> target"
Expand All @@ -161,7 +161,7 @@ jobs:
mv "target/${{ matrix.target }}/release/${{ steps.vars.outputs.binary_name }}" "target/${{ matrix.target }}/release/${{ steps.vars.outputs.release_binary_name }}"

- name: Upload binary artifact
uses: actions/[email protected]
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: vacs-data-${{ matrix.platform }}
if-no-files-found: error
Expand All @@ -171,7 +171,7 @@ jobs:

- name: Attest build provenance
if: ${{ !github.event.repository.private || github.event.repository.owner.type == 'Organization' }}
uses: actions/[email protected]
uses: actions/attest-build-provenance@96278af6caaf10aea03fd8d33a09a777ca52d62f # v3.2.0
with:
subject-path: |
tools/target/${{ matrix.target }}/release/${{ steps.vars.outputs.release_binary_name }}
Expand All @@ -184,7 +184,7 @@ jobs:
contents: write
steps:
- name: Download binaries
uses: actions/[email protected]
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 #v7.0.0
with:
path: dist
pattern: vacs-data-*
Expand All @@ -199,7 +199,7 @@ jobs:
done

- name: Create/update GitHub release
uses: softprops/[email protected]
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
with:
tag_name: ${{ needs.prep.outputs.tag }}
name: ${{ needs.prep.outputs.release_name }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tag-airac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Check for AIRAC cycle
id: check
Expand Down
Loading