Skip to content

Commit dea9124

Browse files
committed
Initial commit
0 parents  commit dea9124

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed

.github/workflows/fast-forward.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: fast-forward
2+
on:
3+
issue_comment:
4+
types: [created, edited]
5+
jobs:
6+
fast-forward:
7+
# Only run if the comment contains the /fast-forward command.
8+
if: ${{ contains(github.event.comment.body, '/fast-forward')
9+
&& github.event.issue.pull_request }}
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
contents: write
14+
pull-requests: write
15+
issues: write
16+
17+
steps:
18+
- name: Fast forwarding
19+
uses: sequoia-pgp/fast-forward@042cd23fbf9d5ed1400497a106c8abe4b45408ab
20+
with:
21+
merge: true
22+
# To reduce the workflow's verbosity, use 'on-error'
23+
# to only post a comment when an error occurs, or 'never' to
24+
# never post a comment. (In all cases the information is
25+
# still available in the step's summary.)
26+
comment: always
27+

.github/workflows/pull_request.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: pull-request
2+
on:
3+
pull_request:
4+
types: [opened, reopened, synchronize]
5+
jobs:
6+
check-fast-forward:
7+
runs-on: ubuntu-latest
8+
9+
permissions:
10+
contents: read
11+
# We appear to need write permission for both pull-requests and
12+
# issues in order to post a comment to a pull request.
13+
pull-requests: write
14+
issues: write
15+
16+
steps:
17+
- name: Checking if fast forwarding is possible
18+
uses: sequoia-pgp/fast-forward@042cd23fbf9d5ed1400497a106c8abe4b45408ab
19+
with:
20+
merge: false
21+
# To reduce the workflow's verbosity, use 'on-error'
22+
# to only post a comment when an error occurs, or 'never' to
23+
# never post a comment. (In all cases the information is
24+
# still available in the step's summary.)
25+
comment: always

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
```text
2+
# Commit that we are testing
3+
GITHUB_REPOSITORY=sequoia-pgp/fast-forward
4+
GITHUB_HEAD_REF=042cd23fbf9d5ed1400497a106c8abe4b45408ab
5+
# Unit test repository:
6+
OWNER=sequoia-pgp
7+
REPO=fast-forward-unit-tests
8+
DEFAULT_BRANCH=fast-forward-test-014366
9+
10+
GITHUB_ACTOR=nwalfield
11+
```

0 commit comments

Comments
 (0)