Skip to content

Commit

Permalink
Next JS Version Upgrade (DSGT-DLP#1037)
Browse files Browse the repository at this point in the history
* nextjs version upgrade

* nextjs version upgrade
  • Loading branch information
karkir0003 authored Oct 24, 2023
1 parent 1b84ced commit 3d1737f
Show file tree
Hide file tree
Showing 8 changed files with 20,804 additions and 20,789 deletions.
204 changes: 102 additions & 102 deletions .github/workflows/issue-form-submission.yml
Original file line number Diff line number Diff line change
@@ -1,102 +1,102 @@
name: Comment on Issue
on:
issues:
types:
- opened

jobs:
comment-on-issue:
runs-on: ubuntu-latest
steps:
- name: Comment on Issue
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const issueNumber = context.issue.number;
const labels = context.payload.issue.labels.map(label => label.name);
const isBugRequest = labels.includes('bug');
const isFeatureRequest = labels.includes('enhancement');
const defaultBranch = "nextjs"
if (isBugRequest) {
const branchName = `bug-${issueNumber}`;
const branchSetupInstructions = `
Hello @${{ github.actor }}! Thank you for submitting the 🐞Bug Request Form. We appreciate your contribution. :wave:
We will look into it and provide a response as soon as possible.
To work on this bug request, you can follow these branch setup instructions:
1. Checkout the main branch:
\`\`\`
git checkout ${defaultBranch}
\`\`\`
2. Pull the latest changes from the remote main branch:
\`\`\`
git pull origin ${defaultBranch}
\`\`\`
3. Create a new branch specific to this bug request using the issue number:
\`\`\`
git checkout -b ${branchName}
\`\`\`
Feel free to make the necessary changes in this branch and submit a pull request when you're ready.
Best regards,
Deep Learning Playground (DLP) Team
`;
github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: branchSetupInstructions
});
} else if (isFeatureRequest) {
const branchName = `feature-${issueNumber}`;
const branchSetupInstructions = `
Hello @${{ github.actor }}! Thank you for submitting the Feature Request Form. We appreciate your contribution. :wave:
We will look into it and provide a response as soon as possible.
To work on this feature request, you can follow these branch setup instructions:
1. Checkout the main branch:
\`\`\`
git checkout ${defaultBranch}
\`\`\`
2. Pull the latest changes from the remote main branch:
\`\`\`
git pull origin ${defaultBranch}
\`\`\`
3. Create a new branch specific to this feature request using the issue number:
\`\`\`
git checkout -b ${branchName}
\`\`\`
Feel free to make the necessary changes in this branch and submit a pull request when you're ready.
Best regards,
Deep Learning Playground (DLP) Team
`;
github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: branchSetupInstructions
});
}
name: Comment on Issue
on:
issues:
types:
- opened

jobs:
comment-on-issue:
runs-on: ubuntu-latest
steps:
- name: Comment on Issue
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const issueNumber = context.issue.number;
const labels = context.payload.issue.labels.map(label => label.name);
const isBugRequest = labels.includes('bug');
const isFeatureRequest = labels.includes('enhancement');
const defaultBranch = "nextjs"
if (isBugRequest) {
const branchName = `bug-${issueNumber}`;
const branchSetupInstructions = `
Hello @${{ github.actor }}! Thank you for submitting the 🐞Bug Request Form. We appreciate your contribution. :wave:
We will look into it and provide a response as soon as possible.
To work on this bug request, you can follow these branch setup instructions:
1. Checkout the main branch:
\`\`\`
git checkout ${defaultBranch}
\`\`\`
2. Pull the latest changes from the remote main branch:
\`\`\`
git pull origin ${defaultBranch}
\`\`\`
3. Create a new branch specific to this bug request using the issue number:
\`\`\`
git checkout -b ${branchName}
\`\`\`
Feel free to make the necessary changes in this branch and submit a pull request when you're ready.
Best regards,
Deep Learning Playground (DLP) Team
`;
github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: branchSetupInstructions
});
} else if (isFeatureRequest) {
const branchName = `feature-${issueNumber}`;
const branchSetupInstructions = `
Hello @${{ github.actor }}! Thank you for submitting the Feature Request Form. We appreciate your contribution. :wave:
We will look into it and provide a response as soon as possible.
To work on this feature request, you can follow these branch setup instructions:
1. Checkout the main branch:
\`\`\`
git checkout ${defaultBranch}
\`\`\`
2. Pull the latest changes from the remote main branch:
\`\`\`
git pull origin ${defaultBranch}
\`\`\`
3. Create a new branch specific to this feature request using the issue number:
\`\`\`
git checkout -b ${branchName}
\`\`\`
Feel free to make the necessary changes in this branch and submit a pull request when you're ready.
Best regards,
Deep Learning Playground (DLP) Team
`;
github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: branchSetupInstructions
});
}
Loading

0 comments on commit 3d1737f

Please sign in to comment.