Skip to content

Commit

Permalink
Merge branch 'microsoft:main' into fix-links-issues
Browse files Browse the repository at this point in the history
  • Loading branch information
john0isaac authored Nov 8, 2023
2 parents b546c42 + 1fb7ff5 commit bc9d148
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/welcome-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Welcome to the Microsoft Generative AI
on:
# Trigger the workflow on new issue
issues:
types: [opened]
jobs:
asses-issue:
runs-on: ubuntu-latest
steps:
- name: Add Label and thanks comment to Issue
uses: actions/github-script@v6
with:
script: |
const issueAuthor = context.payload.sender.login
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['needs-review']
})
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `👋 Thanks for contributing @${ issueAuthor }! We will review the issue and get back to you soon.`
})
- name: Auto-assign issue
uses: pozil/auto-assign-issue@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
assignees: koreyspace
31 changes: 31 additions & 0 deletions .github/workflows/welcome-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Welcome to the Microsoft Generative AI
on:
# Trigger the workflow on pull request
pull_request_target:
types: [opened]
jobs:
asses-pull-request:
runs-on: ubuntu-latest
steps:
- name: Add Label and thanks comment to Pull request
uses: actions/github-script@v6
with:
script: |
const issueAuthor = context.payload.sender.login
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['needs-review']
})
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `👋 Thanks for contributing @${ issueAuthor }! We will review the pull request and get back to you soon.`
})
- name: Auto-assign issue
uses: pozil/auto-assign-issue@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
assignees: koreyspace

0 comments on commit bc9d148

Please sign in to comment.