This repository has been archived by the owner on Sep 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
169 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: "Conflicts" | ||
on: | ||
# So that PRs touching the same files as the push are updated | ||
push: | ||
# So that the `dirtyLabel` is removed if conflicts are resolve | ||
# We recommend `pull_request_target` so that github secrets are available. | ||
# In `pull_request` we wouldn't be able to change labels of fork PRs | ||
pull_request_target: | ||
types: [synchronize] | ||
workflow_run: | ||
workflows: ['Dummy workflow for conflicts'] | ||
types: [requested] | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: check if prs are dirty | ||
uses: eps1lon/actions-label-merge-conflict@releases/2.x | ||
with: | ||
dirtyLabel: "PR: merge conflicts / rebase needed" | ||
removeOnDirtyLabel: "PR: waiting for review" | ||
repoToken: "${{ secrets.GITHUB_TOKEN }}" | ||
commentOnDirty: "This pull request has conflicts, please resolve those before we can evaluate the pull request." | ||
commentOnClean: "Conflicts have been resolved. A maintainer will review the pull request shortly." |
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,9 @@ | ||
name: Dummy workflow for conflicts | ||
on: | ||
pull_request_review: | ||
types: [submitted] | ||
jobs: | ||
dummy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: echo "this is a dummy workflow that triggers a workflow_run; it's necessary because otherwise the repo secrets will not be in scope for externally forked pull requests" |
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,36 @@ | ||
name: Remove outdated labels | ||
on: | ||
# https://github.community/t/github-actions-are-severely-limited-on-prs/18179/15 | ||
pull_request_target: | ||
types: | ||
- closed | ||
jobs: | ||
remove-merged-pr-labels: | ||
name: Remove merged pull request labels | ||
if: github.event.pull_request.merged | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: mondeja/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
labels: | | ||
PR: waiting for review | ||
PR: WIP | ||
PR: changes requested | ||
PR: merge conflicts / rebase needed | ||
PR/Issue: dependent | ||
remove-closed-pr-labels: | ||
name: Remove closed pull request labels | ||
if: github.event_name == 'pull_request_target' && (! github.event.pull_request.merged) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: mondeja/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
labels: | | ||
PR: waiting for review | ||
PR: WIP | ||
PR: changes requested | ||
PR: merge conflicts / rebase needed | ||
PR/Issue: dependent |
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,40 @@ | ||
declare module "@freetubeapp/yt-trending-scraper" { | ||
interface Thumbnail { | ||
quality: string | ||
url: string | ||
width: number | ||
height: number | ||
} | ||
interface Video { | ||
videoId: string, | ||
title: string, | ||
type: "video", | ||
author: string, | ||
authorId: string, | ||
authorUrl: string, | ||
videoThumbnails: Thumbnail[], | ||
description: string, | ||
viewCount: number, | ||
published: EpochTimeStamp, | ||
publishedText: string, | ||
lengthSeconds: number, | ||
timeText: string, | ||
liveNow: false, | ||
paid: false, | ||
premium: false, | ||
isUpcoming: false, | ||
isCreatorOnRise: boolean, | ||
isVerified: boolean, | ||
isVerifiedAuthor: boolean, | ||
isShort: boolean | ||
} | ||
interface TrendingPayload { | ||
geoLocation: string, | ||
parseCreatorOnRise: boolean, | ||
page: "default" | "music" | "gaming" | "movies" | ||
} | ||
class TrendingScraper { | ||
static scrapeTrendingPage(payload: TrendingPayload) : Promise<Video[]> | ||
} | ||
export default TrendingScraper | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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