This is an automated email from the ASF dual-hosted git repository.
hsluoyz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/casbin-sqlx-adapter.git
The following commit(s) were added to refs/heads/master by this push:
new aebf152 feat: update repo path
aebf152 is described below
commit aebf1520ad9eb5f16a7fb36b5a79147d9a814182
Author: Yang Luo <[email protected]>
AuthorDate: Sat Jun 27 10:56:36 2026 +0800
feat: update repo path
---
.github/workflows/ci.yml | 7 +++----
.github/workflows/coverage.yml | 8 +++-----
.github/workflows/release.yml | 10 ++--------
Cargo.toml | 2 +-
README.md | 6 +++---
src/adapter.rs | 4 ++--
6 files changed, 14 insertions(+), 23 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 3f16d70..b603188 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -13,16 +13,15 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macOS-latest ]
- rust: [ stable ]
steps:
- name: Checkout Repository
- uses: actions/checkout@master
+ uses: actions/checkout@v4
- name: Install Rust toolchain
- uses: dtolnay/rust-toolchain@master
+ uses: dtolnay/rust-toolchain@stable
with:
- toolchain: ${{ matrix.rust }}
+ toolchain: stable
components: rustfmt, clippy
- name: Cargo Clippy
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
index 7683b27..b2c259b 100644
--- a/.github/workflows/coverage.yml
+++ b/.github/workflows/coverage.yml
@@ -26,12 +26,10 @@ jobs:
steps:
- name: Checkout Repository
- uses: actions/checkout@master
+ uses: actions/checkout@v4
- name: Install Rust toolchain
- uses: dtolnay/rust-toolchain@master
- with:
- toolchain: stable
+ uses: dtolnay/rust-toolchain@stable
- name: Install PostgreSQL Dependencies
run: sudo apt-get install libpq-dev postgresql-client
@@ -62,6 +60,6 @@ jobs:
- name: Upload to codecov.io
- uses: codecov/codecov-action@v1
+ uses: codecov/codecov-action@v5
with:
token: ${{secrets.CODECOV_TOKEN}}
\ No newline at end of file
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 444fe66..e8ae3e8 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -28,12 +28,6 @@ jobs:
run: cargo publish
- name: GitHub Release
- id: create_release
- uses: actions/create-release@v1
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided
by Actions, you do not need to create your own token
+ uses: softprops/action-gh-release@v2
with:
- tag_name: ${{ github.ref }}
- release_name: Release ${{ github.ref }}
- draft: false
- prerelease: false
\ No newline at end of file
+ token: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
diff --git a/Cargo.toml b/Cargo.toml
index b4451e9..22b5b17 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,7 +5,7 @@ authors = ["Eason Chai <[email protected]>","Cheng JIANG
<jiang.cheng@vip
edition = "2018"
license = "Apache-2.0"
description = "Sqlx adapter for casbin-rs"
-homepage= "https://github.com/casbin-rs/sqlx-adapter"
+homepage= "https://casbin.apache.org"
readme= "README.md"
[dependencies]
diff --git a/README.md b/README.md
index 4543732..c2d16b8 100644
--- a/README.md
+++ b/README.md
@@ -2,10 +2,10 @@
[](https://crates.io/crates/sqlx-adapter)
[](https://docs.rs/sqlx-adapter)
-[](https://github.com/casbin-rs/sqlx-adapter/actions/workflows/ci.yml)
-[](https://codecov.io/gh/casbin-rs/sqlx-adapter)
+[](https://github.com/apache/casbin-sqlx-adapter/actions/workflows/ci.yml)
+[](https://codecov.io/gh/apache/casbin-sqlx-adapter)
-sqlx-adapter is the [Sqlx](https://github.com/launchbadge/sqlx) adapter for
[casbin-rs](https://github.com/casbin/casbin-rs). With this library, Casbin can
load policy from Sqlx supported database or save policy to it with fully
asynchronous support.
+sqlx-adapter is the [Sqlx](https://github.com/launchbadge/sqlx) adapter for
[casbin-rs](https://github.com/apache/casbin-rs). With this library, Casbin can
load policy from Sqlx supported database or save policy to it with fully
asynchronous support.
Based on [Sqlx](https://github.com/launchbadge/sqlx), The current supported
databases are:
diff --git a/src/adapter.rs b/src/adapter.rs
index 52b9488..68d08e8 100644
--- a/src/adapter.rs
+++ b/src/adapter.rs
@@ -555,7 +555,7 @@ mod tests {
.await
.unwrap());
- // GitHub issue: https://github.com/casbin-rs/sqlx-adapter/issues/64
+ // GitHub issue:
https://github.com/apache/casbin-sqlx-adapter/issues/64
assert!(adapter
.add_policy("", "g", to_owned(vec!["carol", "data1_admin"]),)
.await
@@ -566,7 +566,7 @@ mod tests {
.unwrap());
assert_eq!(vec![String::new(); 0], e.get_roles_for_user("carol",
None));
- // GitHub issue: https://github.com/casbin-rs/sqlx-adapter/pull/90
+ // GitHub issue: https://github.com/apache/casbin-sqlx-adapter/pull/90
// add policies:
// p, alice_rfp, book_rfp, read_rfp
// p, bob_rfp, book_rfp, read_rfp
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]