Skip to content
Merged
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
82 changes: 0 additions & 82 deletions .github/workflows/check-repro.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .github/workflows/publish-each-pr.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Expo Preview
on: [pull_request]

permissions:
contents: read
pull-requests: write

jobs:
publish:
name: Install and publish
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
schedule:
- cron: '30 1 * * *'

permissions:
contents: read
issues: write
pull-requests: write

jobs:
stale:
runs-on: ubuntu-latest
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/triage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
issues:
types: [labeled]

permissions:
contents: read
issues: write

jobs:
needs-more-info:
runs-on: ubuntu-latest
Expand All @@ -13,6 +17,18 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const actor = context.actor;
const { data: collaborators } = await github.rest.repos.listCollaborators({
owner: context.repo.owner,
repo: context.repo.repo,
});

const isCollaborator = collaborators.some(collaborator => collaborator.login === actor);
if (!isCollaborator) {
console.log(`Actor ${actor} is not a collaborator, skipping workflow`);
return;
}

github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
Expand All @@ -29,6 +45,18 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const actor = context.actor;
const { data: collaborators } = await github.rest.repos.listCollaborators({
owner: context.repo.owner,
repo: context.repo.repo,
});

const isCollaborator = collaborators.some(collaborator => collaborator.login === actor);
if (!isCollaborator) {
console.log(`Actor ${actor} is not a collaborator, skipping workflow`);
return;
}

github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
issues:
types: [opened, edited]

permissions:
contents: read
issues: write

jobs:
check-versions:
if: ${{ github.event.label.name == 'bug' }}
Expand Down
Loading