Skip to content

Commit

Permalink
chore: comment out pr validate
Browse files Browse the repository at this point in the history
  • Loading branch information
siggerzz committed Apr 16, 2024
1 parent 2c64ca6 commit 2e7e972
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/test-aperture.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,30 +27,30 @@ jobs:
comment-id: ${{ github.event.comment.id }}
reactions: eyes

- name: Validate pull request
uses: actions/github-script@v6
id: pr_data
env:
GITHUB_TOKEN: ${{ secrets.CHANGESETS_TOKEN }}
with:
script: |
try {
const pullRequest = await github.rest.pulls.get({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number,
});
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: errorMessage,
});
} catch (err) {
core.setFailed(`Request failed with error ${err}`);
}
# - name: Validate pull request
# uses: actions/github-script@v6
# id: pr_data
# env:
# GITHUB_TOKEN: ${{ secrets.CHANGESETS_TOKEN }}
# with:
# script: |
# try {
# const pullRequest = await github.rest.pulls.get({
# owner: context.repo.owner,
# repo: context.repo.repo,
# pull_number: context.issue.number,
# });

# await github.rest.issues.createComment({
# issue_number: context.issue.number,
# owner: context.repo.owner,
# repo: context.repo.repo,
# body: errorMessage,
# });

# } catch (err) {
# core.setFailed(`Request failed with error ${err}`);
# }

- name: Add link to build
uses: actions/github-script@v6
Expand Down

0 comments on commit 2e7e972

Please sign in to comment.