-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into filtered-actions
- Loading branch information
Showing
1,125 changed files
with
33,812 additions
and
5,915 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Check CLA Signature | ||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- reopened | ||
paths-ignore: | ||
- 'licenses/cla-individual.md' | ||
jobs: | ||
check_cla: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
if: ${{ (github.event.pull_request.user.login != github.repository_owner) }} | ||
steps: | ||
- run: | | ||
if ! curl -s https://raw.githubusercontent.com/Jermolene/TiddlyWiki5/tiddlywiki-com/licenses/cla-individual.md | grep -o "@$USER,"; then | ||
echo "CLA not signed" | ||
gh pr comment "$NUMBER" -b "@$USER It appears that this is your first contribution to the project, welcome. | ||
With apologies for the bureaucracy, please could you prepare a separate PR to the 'tiddlywiki-com' branch with your signature for the Contributor License Agreement (see [contributing.md](https://github.com/TiddlyWiki/TiddlyWiki5/blob/master/contributing.md))." | ||
else | ||
echo "CLA already signed" | ||
gh pr comment "$NUMBER" -b "Confirmed: **$USER** has already signed the Contributor License Agreement (see [contributing.md](https://github.com/TiddlyWiki/TiddlyWiki5/blob/master/contributing.md))" | ||
fi | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GH_REPO: ${{ github.repository }} | ||
NUMBER: ${{ github.event.pull_request.number }} | ||
USER: ${{ github.actor }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: CLA Signed | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- closed | ||
paths: | ||
- 'licenses/cla-individual.md' | ||
|
||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GH_REPO: ${{ github.repository }} | ||
NUMBER: ${{ github.event.pull_request.number }} | ||
AUTHOR: ${{ github.event.pull_request.user.login }} | ||
|
||
jobs: | ||
# check if PRs updating the CLA are targetting the tiddlywiki-com branch | ||
check-signature-branch: | ||
if: (github.event.pull_request.merged != true) && (github.event.pull_request.user.login != github.repository_owner) | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
steps: | ||
- run: | | ||
if ! $BRANCH == "tiddlywiki-com"; then | ||
echo "This CLA signature targets the wrong branch" | ||
gh pr comment "$NUMBER" -b "@$AUTHOR Signatures to the CLA must target the 'tiddlywiki-com' branch." | ||
fi | ||
env: | ||
BRANCH: ${{ github.event.pull_request.base.ref }} | ||
# leave a comment on each open PR by a given author when their signature is added to the CLA | ||
cla-signed: | ||
if: (github.event.pull_request.merged == true) && (github.event.pull_request.user.login != github.repository_owner) | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
steps: | ||
- name: List open PRs by user | ||
id: list-prs | ||
uses: actions/github-script@v6 | ||
with: | ||
result-encoding: string | ||
script: | | ||
const owner = context.repo.owner, | ||
repo = context.repo.repo, | ||
author = context.payload.pull_request.user.login; | ||
const { data: pullRequests } = await github.rest.pulls.list({ | ||
owner: owner, | ||
repo: repo, | ||
state: 'open', | ||
sort: 'created', | ||
direction: 'desc', | ||
per_page: 100 | ||
}); | ||
const userPullRequests = pullRequests.filter(pr => pr.user.login === author), | ||
prNumbers = userPullRequests.map(pr => pr.number).join(','); | ||
console.log(`Open pull requests by ${author}:${prNumbers}`); | ||
return prNumbers; | ||
- name: Comment open PRs by the same author | ||
run: | | ||
prs=($(echo ${{ steps.list-prs.outputs.result }} | tr "," "\n")) | ||
for number in "${prs[@]}" | ||
do | ||
gh pr comment "$number" -b "**$AUTHOR** has signed the Contributor License Agreement (see [contributing.md](https://github.com/TiddlyWiki/TiddlyWiki5/blob/master/contributing.md))" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ node_modules/ | |
/test-results/ | ||
/playwright-report/ | ||
/playwright/.cache/ | ||
$__StoryList.tid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Actions" | ||
git add -A . | ||
git commit --message "GitHub build: $GITHUB_RUN_NUMBER of $TW5_BUILD_BRANCH ($(date +'%F %T %Z'))" | ||
git remote add deploy "https://$GH_TOKEN@github.com/Jermolene/jermolene.github.io.git" &>/dev/null | ||
git remote add deploy "https://$GH_TOKEN@github.com/TiddlyWiki/tiddlywiki.com-gh-pages.git" &>/dev/null | ||
git push deploy master &>/dev/null | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.