1. Apr 24, 2024
    • Javyer's avatar
      Updated review-bot to obtain number from event (#4271) · d29c3636
      Javyer authored
      It seems that `review-trigger` is not uploading the artifact that is
      used by `review-bot`, so I changed the PR-Number to be obtained by the
      previous event that triggered this action.
      
      I also took the liberty to replace `tibdex/github-app-token` for
      `actions/create-github-app-token` which is GitHub's official app.
      d29c3636
  2. Apr 22, 2024
  3. Apr 18, 2024
  4. Apr 16, 2024
  5. Apr 15, 2024
    • Javyer's avatar
      added script to require a review post push (#3431) · 8b4cfda7
      Javyer authored
      Closes https://github.com/paritytech/opstooling/issues/174
      
      Added a new step in the action that triggers review bot to stop approval
      from new pushes.
      
      This step works in the following way:
      - If the **author of the PR**, who **is not** a member of the org,
      pushed a new commit then:
      - Review-Trigger requests new reviews from the reviewers and fails.
      
      It *does not dismiss reviews*. It simply request them again, but they
      will still be available.
      
      This way, if the author changed something in the code, they will still
      need to have this latest change approved to stop them from uploading
      malicious code.
      
      Find the requested issue linked to this PR (it is from a private repo so
      I can't link it here)
      8b4cfda7
  6. Apr 13, 2024
  7. Apr 12, 2024
  8. Apr 09, 2024
  9. Apr 08, 2024
    • Egor_P's avatar
      Github workflow to automate release draft creation (#3978) · 216509db
      Egor_P authored
      
      
      This PR introduces the github flow which will create a release draft
      automatically when the rc tag is pushed. The flow contains the following
      steps:
      
      - Gets the info about rust version used to build the node
      - Builds the runtimes using `srtool`
      - Extracts the info about each runtime 
      - Aggregates the changelog from the prdocs
      - Creates the release draft containing all the info related to the
      release (changelog, runtimes, rust versions)
      - Attaches the runtimes to the draft
      - Posts the message to the RelEng internal channel to inform that the
      build is done.
      
      Related to the #3295
      
      ---------
      
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      216509db
  10. Apr 01, 2024
  11. Mar 28, 2024
  12. Mar 27, 2024
  13. Mar 11, 2024
  14. Mar 05, 2024
    • Kian Paimani's avatar
      Repot all templates into a single directory (#3460) · 4c810609
      Kian Paimani authored
      The first step towards
      https://github.com/paritytech/polkadot-sdk/issues/3155
      
      Brings all templates under the following structure
      
      ```
      templates
      |   parachain
      |   |   polkadot-launch
      |   |   runtime              --> parachain-template-runtime
      |   |   pallets              --> pallet-parachain-template
      |   |   node                 --> parachain-template-node
      |   minimal
      |   |   runtime              --> minimal-template-runtime
      |   |   pallets              --> pallet-minimal-template
      |   |   node                 --> minimal-template-node
      |   solochain
      |   |   runtime              --> solochain-template-runtime
      |   |   pallets              --> pallet-template (the naming is not consistent here)
      |   |   node                 --> solochain-template-node
      ```
      
      The only note-worthy changes in this PR are: 
      
      - More `Cargo.toml` fields are forwarded to use the one from the
      workspace.
      - parachain template now has weights and benchmarks
      - adds a shell pallet to the minimal template
      - remove a few unused deps 
      
      
      A list of possible follow-ups: 
      
      - [ ] Unify READMEs, create a parent README for all
      - [ ] remove references to `docs.substrate.io` in templates
      - [ ] make all templates use `#[derive_impl]`
      - [ ] update and unify all licenses
      - [ ] Remove polkadot launch, use
      https://github.com/paritytech/polkadot-sdk/blob/35349df993ea2e7c4769914ef5d199e787b23d4c/cumulus/zombienet/examples/small_network.toml
      instead.
      4c810609
  15. Feb 26, 2024
    • Oliver Tale-Yazdi's avatar
      [prdoc] Validate crate names (#3467) · 4080632e
      Oliver Tale-Yazdi authored
      Changes:
      - Add CI script to check that the `crate` names that are mentioned in
      prdocs are valid.
      
      We can extend it lateron to also validate the correct SemVer bumps as
      introduced in https://github.com/paritytech/polkadot-sdk/pull/3441.
      
      Example output:
      ```pre
      $ python3 .github/scripts/check-prdoc.py Cargo.toml prdoc/*.prdoc
      
      🔎 Reading workspace polkadot-sdk/Cargo.toml.
      📦 Checking 36 prdocs against 494 crates.
       All prdocs are valid.
      ```
      
      Note that not all old prdocs pass the check since crates have been
      renamed:
      ```pre
      $ python3 .github/scripts/check-prdoc.py Cargo.toml prdoc/**/*.prdoc
      
      🔎 Reading workspace polkadot-sdk/Cargo.toml.
      📦 Checking 186 prdocs against 494 crates.
       Some prdocs are invalid.
      💥 prdoc/1.4.0/pr_1926.prdoc lists invalid crate: node-cli
      💥 prdoc/1.4.0/pr_2086.prdoc lists invalid crate: xcm-executor
      💥 prdoc/1.4.0/pr_2107.prdoc lists invalid crate: xcm
      💥
      
       prdoc/1.6.0/pr_2684.prdoc lists invalid crate: xcm-builder
      
      ```
      
      ---------
      
      Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
      4080632e
  16. Feb 23, 2024
    • Sebastian Kunert's avatar
      prdoc: Print errors on CI (#3459) · 64050cf3
      Sebastian Kunert authored
      By passing `RUST_LOG=info` to the check command, we will be able to see
      the exact problem with a given prdoc.
      
      Before:
      ```
      PR #3243 -> ERR
      ```
      
      After:
      ```
      [2024-02-23T12:53:55Z INFO  prdoclib::commands::check] Checking directory prdoc
      [2024-02-23T12:53:55Z INFO  prdoclib::commands::check] Using schema: /Users/sebastian/work/repos/polkadot-sdk/prdoc/schema_user.json
      [2024-02-23T12:53:55Z WARN  prdoclib::schema] validation_result: false
      [2024-02-23T12:53:55Z WARN  prdoclib::schema] validation_result_strict: false
      [2024-02-23T12:53:55Z WARN  prdoclib::schema] errors: [
              Required {
                  path: "/title",
              },
          ]
      [2024-02-23T12:53:55Z WARN  prdoclib::schema] missing: []
      [2024-02-23T12:53:55Z ERROR prdoclib::commands::check] Loading the schema failed:
      [2024-02-23T12:53:55Z ERROR prdoclib::commands::check] ValidationErrors(ValidationState { errors: [Required { path: "/title" }], missing: [], replacement: None, evaluated: {"/doc/0/description", "/crates/0/name", "/doc/0", "/crates", "/crates/0", "", "/doc", "/doc/0/audience"} })
      PR #3243 -> ERR
      ```
      64050cf3
  17. Feb 22, 2024
  18. Feb 21, 2024
  19. Feb 13, 2024
  20. Feb 12, 2024
  21. Feb 08, 2024
  22. Feb 05, 2024
  23. Jan 30, 2024
  24. Jan 16, 2024
  25. Jan 15, 2024
  26. Jan 12, 2024
  27. Jan 11, 2024
  28. Jan 10, 2024
  29. Jan 04, 2024
  30. Jan 03, 2024
  31. Dec 19, 2023