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
22 changes: 22 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: 2
updates:
- package-ecosystem: cargo
directory: /
schedule:
interval: weekly
day: monday
open-pull-requests-limit: 10
groups:
rust-dependencies:
patterns:
- "*"
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
day: monday
open-pull-requests-limit: 5
groups:
github-actions:
patterns:
- "*"
41 changes: 41 additions & 0 deletions .github/workflows/dependabot-linear.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Dependabot Linear Integration

on:
pull_request:
types: [opened]

permissions:
pull-requests: read

jobs:
create-linear-issue:
if: github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- name: Create Linear Issue
env:
LINEAR_API_KEY: ${{ secrets.LINEAR_API_TOKEN }}
PR_TITLE: ${{ github.event.pull_request.title }}
PR_URL: ${{ github.event.pull_request.html_url }}
PR_BODY: ${{ github.event.pull_request.body }}
REPO_NAME: ${{ github.event.repository.name }}
run: |
DESCRIPTION="**Dependabot PR:** ${PR_URL}

**Repository:** ${REPO_NAME}

${PR_BODY}"

# Escape for JSON
TITLE=$(echo "$PR_TITLE" | jq -Rs '.')
DESC=$(echo "$DESCRIPTION" | jq -Rs '.')

curl -s -X POST https://api.linear.app/graphql \
-H "Content-Type: application/json" \
-H "Authorization: ${LINEAR_API_KEY}" \
-d "{
\"query\": \"mutation { issueCreate(input: { title: ${TITLE}, description: ${DESC},
teamId: \"c2acb063-92b9-4d9f-ab23-0ced91983a97\",
labelIds: [\"0ee40789-158e-4b1c-93b3-3974e1b80117\"]
}) { success issue { id identifier url } } }"
}'
48 changes: 4 additions & 44 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repository = "https://github.com/AusAgentSmith-org/librtbit-upnp"
[dependencies]
tracing = "0.1"
anyhow = "1"
reqwest = { version = "0.12", default-features = false }
reqwest = { version = "0.13", default-features = false }
serde = "1"
serde_derive = "1"
tokio = { version = "1", features = ["macros"] }
Expand All @@ -18,7 +18,7 @@ url = { version = "2", default-features = false }
network-interface = "2"
httparse = "1"
bstr = "1"
quick-xml = { version = "0.38", features = ["serialize"] }
quick-xml = { version = "0.39", features = ["serialize"] }
librqbit-dualstack-sockets = "0.7"
socket2 = "0.6"

Expand Down
Loading