Skip to content

Commit f8aa1ed

Browse files
committed
Update
1 parent 6bb8f73 commit f8aa1ed

15 files changed

+33
-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: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Deprecations Bot
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
types:
8+
[closed]
9+
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
deprecation_update:
16+
permissions:
17+
issues: write
18+
if: >-
19+
(github.event_name == 'pull_request' &&
20+
contains(github.event.pull_request.labels.*.name, 'Deprecate') &&
21+
github.event.pull_request.merged == 'true')
22+
runs-on: ubuntu-22.04
23+
steps:
24+
- name: Checkout
25+
run: |
26+
echo "Adding deprecation to issue"
27+
ISSUENR=2
28+
export PR=${{ github.event.pull_request.number }}
29+
BODY=$(curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/${{ github.repository }}/issues/${ISSUENR} |
30+
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))")
31+
echo ${BODY}
32+
curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -X PATCH -d "${BODY}" https://api.github.com/repos/${{ github.repository }}/issues/${ISSUENR}

0 commit comments

Comments
 (0)