Skip to content

Tag app authors in PRs to their apps #3935

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
58 changes: 58 additions & 0 deletions .github/workflows/pr-tagging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Tag app authors

on:
pull_request:
types: [opened, synchronize]

jobs:
mention-app-authors:
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install jq
run: |
sudo apt-get update
sudo apt-get install -y jq

- name: Fetch relevant refs
run: |
# fetch master and unshallow HEAD
git fetch origin --unshallow

- name: Tag app authors
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#PR_NUMBER: ${{ github.event.pull_request.number }}
#REPO: ${{ github.repository }} # this is the slug, so user/repo
COMMENT_URL: https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments
run: |
git diff --name-only origin/master... -- apps/ \
| grep -o 'apps/[^/]*' \
| sort \
| uniq \
| while read d
do
author=$(jq -r '.author // ""' < "$d/metadata.json")
if test -z "$author"
then continue
fi

echo "tagging @$author for \`$d\`"
done \
> comment.txt

- uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const fs = require("fs");
const comment = fs.readFileSync("comment.txt", "utf8");

github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: comment,
})
3 changes: 2 additions & 1 deletion apps/autoreset/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
],
"data":[
{"name":"autoreset.json"}
]
],
"author": "thyttan"
}
3 changes: 2 additions & 1 deletion apps/beeptest/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
"storage": [
{ "name": "beeptest.app.js", "url": "beeptest.js" },
{ "name": "beeptest.img", "url": "app-icon.js", "evaluate": true }
]
],
"author": "bb0x88"
}
3 changes: 2 additions & 1 deletion apps/btadv/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
"storage": [
{"name":"btadv.app.js","url":"app.js"},
{"name":"btadv.img","url":"icon.js","evaluate":true}
]
],
"author": "bobrippling"
}
3 changes: 2 additions & 1 deletion apps/bwclklite/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@
{
"name": "bwclklite.setting.json"
}
]
],
"author": "thyttan"
}
3 changes: 2 additions & 1 deletion apps/chess/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
{"name":"chess.img","url":"app-icon.js","evaluate":true}
],
"data": [{"name":"chess.json"}],
"screenshots": [ {"url":"screenshot.png"} ]
"screenshots": [ {"url":"screenshot.png"} ],
"author": "nxdefiant"
}
3 changes: 2 additions & 1 deletion apps/chronlog/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"storage": [
{"name":"chronlog.app.js","url":"app.js"},
{"name":"chronlog.img","url":"app-icon.js","evaluate":true}
]
],
"author": "thyttan"
}
3 changes: 2 additions & 1 deletion apps/clkinfostopw/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
"allow_emulator": true,
"storage": [
{"name":"stopw.clkinfo.js","url":"clkinfo.js"}
]
],
"author": "bobrippling"
}
3 changes: 2 additions & 1 deletion apps/confthyttan/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,6 @@
"url":"edgeclk.settings.json"},
{"name":"setting.json",
"url":"setting.json"}
]
],
"author": "thyttan"
}
3 changes: 2 additions & 1 deletion apps/ctrlpad/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"storage": [
{"name":"ctrlpad.boot.js","url":"main.js"},
{"name":"ctrlpad.img","url":"icon.js","evaluate":true}
]
],
"author": "bobrippling"
}
3 changes: 2 additions & 1 deletion apps/delaylock/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"readme": "README.md",
"storage": [
{"name":"delaylock.boot.js","url":"boot.js"}
]
],
"author": "thyttan"
}
3 changes: 2 additions & 1 deletion apps/dragboard/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
],
"data": [
{"name":"dragboard.json"}
]
],
"author": "thyttan"
}
3 changes: 2 additions & 1 deletion apps/drained/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
],
"data": [
{"name":"drained.setting.json"}
]
],
"author": "bobrippling"
}
3 changes: 2 additions & 1 deletion apps/fastreset/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"readme": "README.md",
"storage": [
{"name":"fastreset.boot.js","url":"boot.js"}
]
],
"author": "thyttan"
}
3 changes: 2 additions & 1 deletion apps/folderlaunch/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@
{
"url": "screenshot2.png"
}
]
],
"author": "bruceblore"
}
3 changes: 2 additions & 1 deletion apps/gbdiscon/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"storage": [
{"name":"gbdiscon.app.js","url":"app.js"},
{"name":"gbdiscon.img","url":"app-icon.js","evaluate":true}
]
],
"author": "thyttan"
}
3 changes: 2 additions & 1 deletion apps/gpsautotime/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
{"name":"gpsautotime.wid.js","url":"widget.js"},
{"name":"gpsautotime.settings.js","url":"settings.js"}
],
"data": [{"name":"gpsautotime.json"}]
"data": [{"name":"gpsautotime.json"}],
"author": "nxdefiant"
}
4 changes: 2 additions & 2 deletions apps/gpsmagcourse/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
{"name":"gpsmagcourse.wid.js","url":"widget.js"},
{"name":"gpsmagcourse.settings.js","url":"settings.js"}
],
"data": [{"name":"gpsmagcourse.json"}]
"data": [{"name":"gpsmagcourse.json"}],
"author": "nxdefiant"
}

3 changes: 2 additions & 1 deletion apps/hidjoystick/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"storage": [
{"name":"hidjoystick.app.js","url":"app.js"},
{"name":"hidjoystick.img","url":"app-icon.js","evaluate":true}
]
],
"author": "nxdefiant"
}
3 changes: 2 additions & 1 deletion apps/hrmmar/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
{"name":"hrmfftelim","url":"fftelim.js"},
{"name":"hrmmar.settings.js","url":"settings.js"}
],
"data": [{"name":"hrmmar.json"}]
"data": [{"name":"hrmmar.json"}],
"author": "nxdefiant"
}
3 changes: 2 additions & 1 deletion apps/longpressbuzz/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"readme": "README.md",
"storage": [
{"name":"longpressbuzz.0.boot.js","url":"boot.js"}
]
],
"author": "thyttan"
}
3 changes: 2 additions & 1 deletion apps/messagesmusic/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
{"name":"messagesmusic.app.js","url":"app.js"},
{"name":"messagesmusic.img","url":"app-icon.js","evaluate":true}
],
"dependencies":{"messages":"module"}
"dependencies":{"messages":"module"},
"author": "thyttan"
}
3 changes: 2 additions & 1 deletion apps/miclock2/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"storage": [
{"name":"miclock2.app.js","url":"clock-mixed.js"},
{"name":"miclock2.img","url":"clock-mixed-icon.js","evaluate":true}
]
],
"author": "nxdefiant"
}
3 changes: 2 additions & 1 deletion apps/msgtwscr/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"readme": "README.md",
"storage": [
{"name":"msgtwscr.boot.js","url":"boot.js"}
]
],
"author": "thyttan"
}
3 changes: 2 additions & 1 deletion apps/msgwakefup/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"readme": "README.md",
"storage": [
{"name":"msgwakefup.boot.js","url":"boot.js"}
]
],
"author": "thyttan"
}
3 changes: 2 additions & 1 deletion apps/myprofile/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
],
"data": [
{"name":"myprofile.json"}
]
],
"author": "nxdefiant"
}
3 changes: 2 additions & 1 deletion apps/pace/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"storage": [
{ "name": "pace.app.js","url": "app.js" },
{ "name": "pace.img","url": "app-icon.js","evaluate": true }
]
],
"author": "bobrippling"
}
3 changes: 2 additions & 1 deletion apps/podadrem/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
"storage": [
{"name":"podadrem.app.js","url":"app.js"},
{"name":"podadrem.img","url":"app-icon.js","evaluate":true}
]
],
"author": "thyttan"
}
3 changes: 2 additions & 1 deletion apps/popconlaunch/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
],
"data": [
{"name":"popcon.cache.json"}
]
],
"author": "bobrippling"
}
3 changes: 2 additions & 1 deletion apps/promenu/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
{"name":"promenu.img","url":"promenuIcon.js","evaluate":true},
{"name":"promenu.settings.js","url":"settings.js"}
],
"data": [{"name":"promenu.settings.json"}]
"data": [{"name":"promenu.settings.json"}],
"author": "bobrippling"
}
3 changes: 2 additions & 1 deletion apps/recorder/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
"data": [
{"name":"recorder.json","url":"app-settings.json"},
{"wildcard":"recorder.log?.csv","storageFile":true}
]
],
"author": "bobrippling"
}
3 changes: 2 additions & 1 deletion apps/rep/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
{"name":"rep.settings.js","url":"settings.js"},
{"name":"rep.img","url":"app-icon.js","evaluate":true}
],
"data": [{"name":"rep.json"}]
"data": [{"name":"rep.json"}],
"author": "bobrippling"
}
3 changes: 2 additions & 1 deletion apps/runplus/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
],
"data": [
{"name": "runplus.json"}
]
],
"author": "thyttan"
}
3 changes: 2 additions & 1 deletion apps/scrolly/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
],
"data": [
{"name":"scrolly.json"}
]
],
"author": "retcurve"
}
3 changes: 2 additions & 1 deletion apps/sevenmin/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"storage": [
{"name":"sevenmin.app.js", "url":"app.js"},
{"name":"sevenmin.img", "url":"app-icon.js","evaluate":true}
]
],
"author": "thyttan"
}
3 changes: 2 additions & 1 deletion apps/sleepphasealarm/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
],
"data": [{"name":"sleepphasealarm.json"}],
"interface": "interface.html",
"screenshots": [ {"url":"screenshot.png"}, {"url":"screenshot_log.png"} ]
"screenshots": [ {"url":"screenshot.png"}, {"url":"screenshot_log.png"} ],
"author": "nxdefiant"
}
3 changes: 2 additions & 1 deletion apps/sportmode/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
{"name":"sportmode.boot.js","url":"boot.js"},
{"name":"sportmode.settings.js","url":"settings.js"}
],
"data": [{"name":"sportmode.json"}]
"data": [{"name":"sportmode.json"}],
"author": "nxdefiant"
}
3 changes: 2 additions & 1 deletion apps/spotrem/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
"storage": [
{"name":"spotrem.app.js","url":"app.js"},
{"name":"spotrem.img","url":"app-icon.js","evaluate":true}
]
],
"author": "thyttan"
}
4 changes: 2 additions & 2 deletions apps/swipeinv/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
{"name":"swipeinv.boot.js","url":"boot.js"},
{"name":"swipeinv.settings.js","url":"settings.js"}
],
"data": [{"name":"swipeinv.json"}]
"data": [{"name":"swipeinv.json"}],
"author": "nxdefiant"
}

3 changes: 2 additions & 1 deletion apps/swscroll/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"supports": ["BANGLEJS2"],
"storage": [
{"name":"swscroll.boot.js","url":"boot.js"}
]
],
"author": "thyttan"
}
3 changes: 2 additions & 1 deletion apps/taglaunch/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
{"name":"taglaunch.app.js","url":"app.js"},
{"name":"taglaunch.settings.js","url":"settings.js"}
],
"data": [{"name":"taglaunch.json"},{"name":"taglaunch.cache.json"}]
"data": [{"name":"taglaunch.json"},{"name":"taglaunch.cache.json"}],
"author": "nxdefiant"
}
3 changes: 2 additions & 1 deletion apps/tally/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
"data": [
{ "name": "tallycfg.json" },
{ "name": "tallies.csv" }
]
],
"author": "bobrippling"
}
3 changes: 2 additions & 1 deletion apps/txtreader/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"storage": [
{"name":"txtreader.app.js","url":"app.js"},
{"name":"txtreader.img","url":"app-icon.js","evaluate":true}
]
],
"author": "tonykakuuu"
}
Loading
Loading