Skip to content

Commit 4e138a2

Browse files
Merge branch 'master' into dependabot/go_modules/pkg/app/pipedv1/plugin/waitapproval/github.com/pipe-cd/piped-plugin-sdk-go-0.4.0
2 parents 20b7d91 + dcc037e commit 4e138a2

3 files changed

Lines changed: 3 additions & 11 deletions

File tree

docs/content/en/docs-v1.0.x/development/ci.md renamed to .github/ci.md

File renamed without changes.

.github/workflows/stale.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,4 @@ jobs:
2121
close-pr-message: 'This PR was closed because it has been stalled for 7 days with no activity. Feel free to reopen if still applicable.'
2222
days-before-pr-stale: 30
2323
days-before-pr-close: 7
24-
delete-branch: true
25-
exempt-pr-labels: 'not-auto-close'
24+
exempt-pr-labels: 'not-auto-close'

.github/workflows/thank-you.yaml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@ permissions:
1111

1212
jobs:
1313
thank-you:
14-
# Only run if the PR was actually merged
15-
if: github.event.pull_request.merged
14+
if: github.event.pull_request.merged == true
1615
runs-on: ubuntu-latest
1716
steps:
18-
# We must check out the code to read the MAINTAINERS.json file
1917
- name: Checkout repository
2018
uses: actions/checkout@v4
2119

@@ -26,29 +24,24 @@ jobs:
2624
const fs = require('fs');
2725
const creator = context.payload.pull_request.user.login;
2826
29-
// Skip bots to avoid comment loops
3027
if (creator.endsWith('[bot]')) {
3128
console.log('Skipping bot account.');
3229
return;
3330
}
3431
35-
// Read maintainers list from JSON file
3632
const maintainersData = JSON.parse(fs.readFileSync('MAINTAINERS.json', 'utf8'));
3733
const maintainers = maintainersData.maintainers.map(m => m.toLowerCase());
3834
39-
// Skip core maintainers to avoid spamming the team
4035
if (maintainers.includes(creator.toLowerCase())) {
4136
console.log(`Skipping maintainer account: ${creator}`);
4237
return;
4338
}
4439
45-
const message = 'Thank you for contributing to PipeCD! The changes in this pull request will be part of the upcoming release!';
40+
const message = `Thank you for contributing to PipeCD, @${creator}! The changes in this pull request will be part of the upcoming release!`;
4641
47-
// Post the comment to the PR
4842
await github.rest.issues.createComment({
4943
owner: context.repo.owner,
5044
repo: context.repo.repo,
5145
issue_number: context.payload.pull_request.number,
5246
body: message
5347
});
54-

0 commit comments

Comments
 (0)