Skip to content
Open
Show file tree
Hide file tree
Changes from 12 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
47 changes: 47 additions & 0 deletions .github/workflows/comment_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Comment on PR

on: pull_request

jobs:
welcome:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v3
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
await github.pulls.createReview({
pull_number: 14,
owner: context.repo.owner,
repo: context.repo.repo,
body: "yes"
})
console.log(context.repo)


// Get a list of all issues created by the PR opener
// See: https://octokit.github.io/rest.js/#pagination
//const creator = context.payload.sender.login
//const opts = github.issues.listForRepo.endpoint.merge({
// ...context.issue,
// creator,
// state: 'all'
//})
//const issues = await github.paginate(opts)

//for (const issue of issues) {
// if (issue.number === context.issue.number) {
// continue
// }

// if (issue.pull_request) {
// return // Creator is already a contributor.
// }
//}

//await github.issues.createComment({
// issue_number: context.issue.number,
// owner: context.repo.owner,
// repo: context.repo.repo,
// body: 'Welcome, new contributor!'
//})
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

170 changes: 170 additions & 0 deletions .idea/domjudge.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions .idea/jsLinters/jshint.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading