Skip to content

Commit 324ee7a

Browse files
committed
Update
1 parent 6bb8f73 commit 324ee7a

15 files changed

+32
-1052
lines changed

.circleci/config.yml

Lines changed: 0 additions & 95 deletions
This file was deleted.

.circleci/setup_env.sh

Lines changed: 0 additions & 64 deletions
This file was deleted.

.github/workflows/asv-bot.yml

Lines changed: 0 additions & 78 deletions
This file was deleted.

.github/workflows/autoupdate-pre-commit-config.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/code-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Code Checks
1+
name: Code Checks
22

33
on:
44
push:

.github/workflows/codeql.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deprecations Bot
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- 2.0.x
8+
- 1.5.x
9+
pull_request:
10+
branches:
11+
- main
12+
- 2.0.x
13+
- 1.5.x
14+
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
deprecation_update:
21+
permissions:
22+
issues: write
23+
runs-on: ubuntu-22.04
24+
steps:
25+
- name: Checkout
26+
run: |
27+
echo "Adding deprecation"
28+
export PR=${{ github.event.pull_request.number }}
29+
BODY=$(curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/phofl/${{ github.repository }}/issues/2 | python3 -c "import sys, json, os; x = {'body': json.load(sys.stdin)['body']}; pr = os.environ['PR']; x['body'] += f'\n- [ ] #{pr}'; print(json.dumps(x))")
30+
echo ${BODY}
31+
curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -X PATCH -d "${BODY}" https://api.github.com/repos/phofl/${{ github.repository }}/issues/issues/2

0 commit comments

Comments
 (0)