Skip to content

Commit caff693

Browse files
committed
meta: time to leave GitHub
The repository is moving to https://git.danirod.es/dotfiles/vimrc. Updates the README to notify about this fact, plus introduces an action to close pull requests. Minor formats.
1 parent 6657fa3 commit caff693

File tree

5 files changed

+41
-103
lines changed

5 files changed

+41
-103
lines changed

.github/workflows/closepr.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Close PR
3+
4+
on:
5+
pull_request_target:
6+
types: [opened]
7+
8+
jobs:
9+
run:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
issues: write
13+
pull-requests: write
14+
steps:
15+
- uses: actions/github-script@v7
16+
with:
17+
script: |
18+
github.rest.issues.createComment({
19+
owner: context.repo.owner,
20+
repo: context.repo.repo,
21+
issue_number: context.issue_number,
22+
body: "Due to GDPR policies, pull requests cannot be accepted currently. Sorry.",
23+
})
24+
github.rest.issues.update({
25+
owner: context.repo.owner,
26+
repo: context.repo.repo,
27+
issue_number: context.issue.number,
28+
state: 'closed',
29+
state_reason: 'not_planned',
30+
})

.gitignore

-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
.netrwhist
2-
3-
# I initially don't want my local wiki committed.
4-
wiki/
5-
6-
# I initially don't want my bookmarks file to be committed.
72
bookmarks
83
info

GNUmakefile

+1-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: info fetch-packs format-readme
1+
.PHONY: info fetch-packs update-packs
22

33
## make info :: prints help
44
info:
@@ -12,13 +12,3 @@ fetch-packs:
1212
## make update-packs :: updates the plugins
1313
update-packs:
1414
git submodule update --remote
15-
16-
## make lint-packs :: checks that every pack is in README
17-
lint-packs:
18-
@for m in $$(<.gitmodules grep 'path = ' | cut -d/ -f4); do \
19-
grep -q $$m README.md || echo "Missing reference to $$m"; \
20-
done
21-
22-
## make format-readme :: formats the README.md file
23-
format-readme:
24-
npx prettier -w --print-width=72 --prose-wrap=always README.md

README

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
This is my vimrc, the configuration file for my Vim distribution. Currently, my
2+
vimrc is more frugal and boring that what it used to be.
3+
4+
Plugins are installed as regular packs and tracked by Git submodule. The
5+
provided GNUmakefile is used to fetch and update the packs.
6+
7+
The online backup is hosted at https://git.danirod.es/dotfiles/vimrc. There is
8+
a GitHub mirror, but it is read only. Please, do not send GitHub pull requests.
9+
They cannot be accepted due to a GDPR policy and they will be closed
10+
automatically.

README.md

-87
This file was deleted.

0 commit comments

Comments
 (0)