Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Pr automation #1072

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gregsdennis wants to merge 19 commits into main from pr-automation
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
c35e9ca
added first pr action - checklists
gregsdennis Feb 1, 2021
daa417a
add enforcement
gregsdennis Feb 1, 2021
a16656d
check out files first
gregsdennis Feb 1, 2021
59a6810
full file path
gregsdennis Feb 1, 2021
41dfae6
get pr number
gregsdennis Feb 1, 2021
32d389a
search for comment
gregsdennis Feb 1, 2021
7ab42c8
add debug step
gregsdennis Feb 1, 2021
6143c6d
alternate way of getting first comment
gregsdennis Feb 1, 2021
0797e68
more debugging
gregsdennis Feb 1, 2021
503e5d6
new action for updating the first 'comment' or 'body'
gregsdennis Feb 1, 2021
d634dbd
input token as param
gregsdennis Feb 1, 2021
598fa15
append existing text
gregsdennis Feb 1, 2021
e5ae410
no quotes
gregsdennis Feb 1, 2021
d051a97
no new line
gregsdennis Feb 1, 2021
09478c2
quotes
gregsdennis Feb 1, 2021
c507d83
needs another blank line
gregsdennis Feb 1, 2021
3e1aa12
disable update for existing prs
gregsdennis Feb 1, 2021
c56bb21
trying a different checklist verifier
gregsdennis Feb 1, 2021
ca72687
allow manual trigger
gregsdennis Feb 1, 2021
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
7 changes: 7 additions & 0 deletions .github/workflows/checklist.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@


---

- [ ] [Issue](https://github.com/json-schema-org/json-schema-spec/issues) linked
- [ ] [Milestone](https://github.com/json-schema-org/json-schema-spec/milestones) assigned
- [ ] Test coverage issue in [test suite](https://github.com/json-schema-org/JSON-Schema-Test-Suite)
34 changes: 34 additions & 0 deletions .github/workflows/checklist.yml
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Checklist Handler
on:
pull_request:
workflow_dispatch:

jobs:
add-checklist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get Comment Body
id: get-comment-body
run: |
existing="${{ github.event.pull_request.body }}"
body="${existing}$(cat .github/workflows/checklist.md)"
body="${body//'%'/'%25'}"
body="${body//$'\n'/'%0A'}"
body="${body//$'\r'/'%0D'}"
echo ::set-output name=body::$body
- name: Update comment
if: github.event.action == 'opened'
uses: AsasInnab/pr-body-action@v1
with:
body: ${{ steps.get-comment-body.outputs.body }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
enforce-checklist:
runs-on: ubuntu-latest
needs: add-checklist
steps:
- uses: mheap/require-checklist-action@v1
with:
requireChecklist: false # If this is true and there are no checklists detected, the action will fail
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

AltStyle によって変換されたページ (->オリジナル) /