diff options
author | 2021-09-19 04:07:51 +0530 | |
---|---|---|
committer | 2021-09-19 04:07:51 +0530 | |
commit | 0cce3a8f3d44260c26dbe9f677755acec3be5c26 (patch) | |
tree | e29099a3eeef63206749666331a8ae88d7120188 /.github/workflows | |
parent | fix: accent color customization regression hotfix (#1965) (diff) | |
download | ferdium-app-0cce3a8f3d44260c26dbe9f677755acec3be5c26.tar.gz ferdium-app-0cce3a8f3d44260c26dbe9f677755acec3be5c26.tar.zst ferdium-app-0cce3a8f3d44260c26dbe9f677755acec3be5c26.zip |
chore: removed 'first-time-contributors' GH workflow since that is not working [skip ci]
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/ferdi-first-time-contributor.yml | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/.github/workflows/ferdi-first-time-contributor.yml b/.github/workflows/ferdi-first-time-contributor.yml deleted file mode 100644 index 22bd4f8e0..000000000 --- a/.github/workflows/ferdi-first-time-contributor.yml +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | # Copied from: https://awesomeopensource.com/project/actions/github-script?categoryPage=7 | ||
2 | |||
3 | name: Welcome first time contributors | ||
4 | |||
5 | on: pull_request | ||
6 | |||
7 | jobs: | ||
8 | welcome: | ||
9 | runs-on: ubuntu-latest | ||
10 | steps: | ||
11 | - uses: actions/github-script@v4 | ||
12 | with: | ||
13 | github-token: ${{ secrets.FERDI_PUBLISH_TOKEN }} | ||
14 | script: | | ||
15 | // Get a list of all issues created by the PR opener | ||
16 | // See: https://octokit.github.io/rest.js/#pagination | ||
17 | const creator = context.payload.sender.login | ||
18 | const opts = github.issues.listForRepo.endpoint.merge({ | ||
19 | ...context.issue, | ||
20 | creator, | ||
21 | state: 'all' | ||
22 | }) | ||
23 | const issues = await github.paginate(opts) | ||
24 | |||
25 | for (const issue of issues) { | ||
26 | if (issue.number === context.issue.number) { | ||
27 | continue | ||
28 | } | ||
29 | |||
30 | if (issue.pull_request) { | ||
31 | return // Creator is already a contributor. | ||
32 | } | ||
33 | } | ||
34 | |||
35 | await github.issues.createComment({ | ||
36 | issue_number: context.issue.number, | ||
37 | owner: context.repo.owner, | ||
38 | repo: context.repo.repo, | ||
39 | body: `Welcome, ${ creator }! Thanks for contributing to Ferdi!` | ||
40 | }) | ||